textbox.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. .textbox {
  2. position: relative;
  3. border: 1px solid #dfdfdf;
  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: 4px 4px 4px 4px;
  12. -webkit-border-radius: 4px 4px 4px 4px;
  13. border-radius: 4px 4px 4px 4px;
  14. }
  15. .textbox .textbox-text {
  16. font-size: 14px;
  17. border: 0;
  18. margin: 0;
  19. padding: 0 4px;
  20. white-space: normal;
  21. vertical-align: top;
  22. outline-style: none;
  23. resize: none;
  24. -moz-border-radius: 4px 4px 4px 4px;
  25. -webkit-border-radius: 4px 4px 4px 4px;
  26. border-radius: 4px 4px 4px 4px;
  27. height: 28px;
  28. line-height: 28px;
  29. }
  30. .textbox textarea.textbox-text {
  31. line-height: normal;
  32. }
  33. .textbox .textbox-text::-ms-clear,
  34. .textbox .textbox-text::-ms-reveal {
  35. display: none;
  36. }
  37. .textbox textarea.textbox-text {
  38. white-space: pre-wrap;
  39. }
  40. .textbox .textbox-prompt {
  41. font-size: 14px;
  42. color: #aaa;
  43. }
  44. .textbox .textbox-bgicon {
  45. background-position: 3px center;
  46. padding-left: 21px;
  47. }
  48. .textbox .textbox-button,
  49. .textbox .textbox-button:hover {
  50. position: absolute;
  51. top: 0;
  52. padding: 0;
  53. vertical-align: top;
  54. -moz-border-radius: 0 0 0 0;
  55. -webkit-border-radius: 0 0 0 0;
  56. border-radius: 0 0 0 0;
  57. }
  58. .textbox .textbox-button-right,
  59. .textbox .textbox-button-right:hover {
  60. right: 0;
  61. border-width: 0 0 0 1px;
  62. }
  63. .textbox .textbox-button-left,
  64. .textbox .textbox-button-left:hover {
  65. left: 0;
  66. border-width: 0 1px 0 0;
  67. }
  68. .textbox .textbox-button-top,
  69. .textbox .textbox-button-top:hover {
  70. left: 0;
  71. border-width: 0 0 1px 0;
  72. }
  73. .textbox .textbox-button-bottom,
  74. .textbox .textbox-button-bottom:hover {
  75. top: auto;
  76. bottom: 0;
  77. left: 0;
  78. border-width: 1px 0 0 0;
  79. }
  80. .textbox-addon {
  81. position: absolute;
  82. top: 0;
  83. }
  84. .textbox-label {
  85. display: inline-block;
  86. width: 80px;
  87. height: 30px;
  88. line-height: 30px;
  89. vertical-align: middle;
  90. overflow: hidden;
  91. text-overflow: ellipsis;
  92. white-space: nowrap;
  93. margin: 0;
  94. padding-right: 5px;
  95. }
  96. .textbox-label-after {
  97. padding-left: 5px;
  98. padding-right: 0;
  99. }
  100. .textbox-label-top {
  101. display: block;
  102. width: auto;
  103. padding: 0;
  104. }
  105. .textbox-disabled,
  106. .textbox-label-disabled {
  107. opacity: 0.6;
  108. filter: alpha(opacity=60);
  109. }
  110. .textbox-icon {
  111. display: inline-block;
  112. width: 18px;
  113. height: 20px;
  114. overflow: hidden;
  115. vertical-align: top;
  116. background-position: center center;
  117. cursor: pointer;
  118. opacity: 0.6;
  119. filter: alpha(opacity=60);
  120. text-decoration: none;
  121. outline-style: none;
  122. }
  123. .textbox-icon-disabled,
  124. .textbox-icon-readonly {
  125. cursor: default;
  126. }
  127. .textbox-icon:hover {
  128. opacity: 1.0;
  129. filter: alpha(opacity=100);
  130. }
  131. .textbox-icon-disabled:hover {
  132. opacity: 0.6;
  133. filter: alpha(opacity=60);
  134. }
  135. .textbox-focused {
  136. border-color: #c6c6c6;
  137. -moz-box-shadow: 0 0 3px 0 #dfdfdf;
  138. -webkit-box-shadow: 0 0 3px 0 #dfdfdf;
  139. box-shadow: 0 0 3px 0 #dfdfdf;
  140. }
  141. .textbox-invalid {
  142. border-color: #ffa8a8;
  143. background-color: #fff;
  144. }