textbox.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. .textbox {
  2. position: relative;
  3. border: 1px solid #abafb8;
  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,
  29. .textbox .textbox-text::-ms-reveal {
  30. display: none;
  31. }
  32. .textbox textarea.textbox-text {
  33. white-space: pre-wrap;
  34. }
  35. .textbox .textbox-prompt {
  36. font-size: 12px;
  37. color: #aaa;
  38. }
  39. .textbox .textbox-bgicon {
  40. background-position: 3px center;
  41. padding-left: 21px;
  42. }
  43. .textbox .textbox-button,
  44. .textbox .textbox-button:hover {
  45. position: absolute;
  46. top: 0;
  47. padding: 0;
  48. vertical-align: top;
  49. -moz-border-radius: 0 0 0 0;
  50. -webkit-border-radius: 0 0 0 0;
  51. border-radius: 0 0 0 0;
  52. }
  53. .textbox-button-right,
  54. .textbox-button-right:hover {
  55. border-width: 0 0 0 1px;
  56. }
  57. .textbox-button-left,
  58. .textbox-button-left:hover {
  59. border-width: 0 1px 0 0;
  60. }
  61. .textbox-addon {
  62. position: absolute;
  63. top: 0;
  64. }
  65. .textbox-icon {
  66. display: inline-block;
  67. width: 18px;
  68. height: 20px;
  69. overflow: hidden;
  70. vertical-align: top;
  71. background-position: center center;
  72. cursor: pointer;
  73. opacity: 0.6;
  74. filter: alpha(opacity=60);
  75. text-decoration: none;
  76. outline-style: none;
  77. }
  78. .textbox-icon-disabled,
  79. .textbox-icon-readonly {
  80. cursor: default;
  81. }
  82. .textbox-icon:hover {
  83. opacity: 1.0;
  84. filter: alpha(opacity=100);
  85. }
  86. .textbox-icon-disabled:hover {
  87. opacity: 0.6;
  88. filter: alpha(opacity=60);
  89. }
  90. .textbox-focused {
  91. border-color: #8f95a1;
  92. -moz-box-shadow: 0 0 3px 0 #abafb8;
  93. -webkit-box-shadow: 0 0 3px 0 #abafb8;
  94. box-shadow: 0 0 3px 0 #abafb8;
  95. }
  96. .textbox-invalid {
  97. border-color: #ffa8a8;
  98. background-color: #fff3f3;
  99. }