textbox.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. .textbox {
  2. position: relative;
  3. border: 1px solid #c3d9e0;
  4. background-color: #fff;
  5. vertical-align: middle;
  6. display: inline-block;
  7. overflow: hidden;
  8. white-space: nowrap;
  9. margin: 0;
  10. padding: 0;
  11. -moz-border-radius: 0px 0px 0px 0px;
  12. -webkit-border-radius: 0px 0px 0px 0px;
  13. border-radius: 0px 0px 0px 0px;
  14. }
  15. .textbox .textbox-text {
  16. font-size: 12px;
  17. border: 0;
  18. margin: 0;
  19. padding: 4px;
  20. white-space: normal;
  21. vertical-align: top;
  22. outline-style: none;
  23. resize: none;
  24. -moz-border-radius: 0px 0px 0px 0px;
  25. -webkit-border-radius: 0px 0px 0px 0px;
  26. border-radius: 0px 0px 0px 0px;
  27. }
  28. .textbox .textbox-text::-ms-clear, .textbox .textbox-text::-ms-reveal {
  29. display: none;
  30. }
  31. .textbox textarea.textbox-text {
  32. white-space: pre-wrap;
  33. }
  34. .textbox .textbox-prompt {
  35. font-size: 12px;
  36. color: #aaa;
  37. }
  38. .textbox .textbox-bgicon {
  39. background-position: 3px center;
  40. padding-left: 21px;
  41. }
  42. .textbox .textbox-button, .textbox .textbox-button:hover {
  43. position: absolute;
  44. top: 0;
  45. padding: 0;
  46. vertical-align: top;
  47. -moz-border-radius: 0 0 0 0;
  48. -webkit-border-radius: 0 0 0 0;
  49. border-radius: 0 0 0 0;
  50. }
  51. .textbox-button-right, .textbox-button-right:hover {
  52. border-width: 0 0 0 1px;
  53. }
  54. .textbox-button-left, .textbox-button-left:hover {
  55. border-width: 0 1px 0 0;
  56. }
  57. .textbox-addon {
  58. position: absolute;
  59. top: 0;
  60. }
  61. .textbox-icon {
  62. display: inline-block;
  63. width: 18px;
  64. height: 20px;
  65. overflow: hidden;
  66. vertical-align: top;
  67. background-position: center center;
  68. cursor: pointer;
  69. opacity: 0.6;
  70. filter: alpha(opacity = 60);
  71. text-decoration: none;
  72. outline-style: none;
  73. }
  74. .textbox-icon-disabled, .textbox-icon-readonly {
  75. cursor: default;
  76. }
  77. .textbox-icon:hover {
  78. opacity: 1.0;
  79. filter: alpha(opacity = 100);
  80. }
  81. .textbox-icon-disabled:hover {
  82. opacity: 0.6;
  83. filter: alpha(opacity = 60);
  84. }
  85. .textbox-focused {
  86. -moz-box-shadow: 0 0 3px 0 #c3d9e0;
  87. -webkit-box-shadow: 0 0 3px 0 #c3d9e0;
  88. box-shadow: 0 0 3px 0 #c3d9e0;
  89. }
  90. .textbox-invalid {
  91. border-color: #ffa8a8;
  92. background-color: #fff3f3;
  93. }