textbox.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. .textbox {
  2. position: relative;
  3. border: 1px solid #D4D4D4;
  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: 5px 5px 5px 5px;
  12. -webkit-border-radius: 5px 5px 5px 5px;
  13. border-radius: 5px 5px 5px 5px;
  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: 5px 5px 5px 5px;
  25. -webkit-border-radius: 5px 5px 5px 5px;
  26. border-radius: 5px 5px 5px 5px;
  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 .textbox-button-right,
  54. .textbox .textbox-button-right:hover {
  55. right: 0;
  56. border-width: 0 0 0 1px;
  57. }
  58. .textbox .textbox-button-left,
  59. .textbox .textbox-button-left:hover {
  60. left: 0;
  61. border-width: 0 1px 0 0;
  62. }
  63. .textbox .textbox-button-top,
  64. .textbox .textbox-button-top:hover {
  65. left: 0;
  66. border-width: 0 0 1px 0;
  67. }
  68. .textbox .textbox-button-bottom,
  69. .textbox .textbox-button-bottom:hover {
  70. top: auto;
  71. bottom: 0;
  72. left: 0;
  73. border-width: 1px 0 0 0;
  74. }
  75. .textbox-addon {
  76. position: absolute;
  77. top: 0;
  78. }
  79. .textbox-label {
  80. display: inline-block;
  81. width: 80px;
  82. height: 22px;
  83. line-height: 22px;
  84. vertical-align: middle;
  85. overflow: hidden;
  86. text-overflow: ellipsis;
  87. white-space: nowrap;
  88. margin: 0;
  89. padding-right: 5px;
  90. }
  91. .textbox-label-after {
  92. padding-left: 5px;
  93. padding-right: 0;
  94. }
  95. .textbox-label-top {
  96. display: block;
  97. width: auto;
  98. padding: 0;
  99. }
  100. .textbox-disabled,
  101. .textbox-label-disabled {
  102. opacity: 0.6;
  103. filter: alpha(opacity=60);
  104. }
  105. .textbox-icon {
  106. display: inline-block;
  107. width: 18px;
  108. height: 20px;
  109. overflow: hidden;
  110. vertical-align: top;
  111. background-position: center center;
  112. cursor: pointer;
  113. opacity: 0.6;
  114. filter: alpha(opacity=60);
  115. text-decoration: none;
  116. outline-style: none;
  117. }
  118. .textbox-icon-disabled,
  119. .textbox-icon-readonly {
  120. cursor: default;
  121. }
  122. .textbox-icon:hover {
  123. opacity: 1.0;
  124. filter: alpha(opacity=100);
  125. }
  126. .textbox-icon-disabled:hover {
  127. opacity: 0.6;
  128. filter: alpha(opacity=60);
  129. }
  130. .textbox-focused {
  131. border-color: #bbbbbb;
  132. -moz-box-shadow: 0 0 3px 0 #D4D4D4;
  133. -webkit-box-shadow: 0 0 3px 0 #D4D4D4;
  134. box-shadow: 0 0 3px 0 #D4D4D4;
  135. }
  136. .textbox-invalid {
  137. border-color: #ffa8a8;
  138. background-color: #fff3f3;
  139. }