You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

220 lines
3.9 KiB

  1. .ui.input {
  2. display: inline-block;
  3. position: relative;
  4. color: rgba(0,0,0,.7);
  5. }
  6. .ui.input input {
  7. width: 100%;
  8. font-family: "Helvetica Neue",Helvetica,Arial;
  9. margin: 0;
  10. padding: .85em 1.2em;
  11. font-size: .875em;
  12. background-color: #FFF;
  13. border: 1px solid rgba(0,0,0,.15);
  14. outline: 0;
  15. color: rgba(0,0,0,.7);
  16. border-radius: .3125em;
  17. -webkit-transition: background-color .3s ease-out,-webkit-box-shadow .2s ease,border-color .2s ease;
  18. transition: background-color .3s ease-out,box-shadow .2s ease,border-color .2s ease;
  19. -webkit-tap-highlight-color: rgba(255,255,255,0);
  20. -webkit-box-sizing: border-box;
  21. -moz-box-sizing: border-box;
  22. -ms-box-sizing: border-box;
  23. box-sizing: border-box;
  24. }
  25. .ui.input::-web inputkit-input-placeholder {
  26. color: #E0E0E0;
  27. }
  28. .ui.input::-moz input-placeholder {
  29. color: #E0E0E0;
  30. }
  31. .ui.input input:active,
  32. .ui.input.down input {
  33. border-color: rgba(0,0,0,.3);
  34. background-color: #FAFAFA;
  35. }
  36. .ui.loading.input>.icon {
  37. background: url(../images/loader-mini.gif) no-repeat 50% 50%;
  38. }
  39. .ui.loading.input>.icon:before,
  40. .ui.loading.input>.icon:after {
  41. display: none;
  42. }
  43. .ui.input.focus input,
  44. .ui.input input:focus {
  45. border-color: rgba(0,0,0,.2);
  46. color: rgba(0,0,0,.85);
  47. }
  48. .ui.input.focus input input::-webkit-input-placeholder,
  49. .ui.input input:focus input::-webkit-input-placeholder {
  50. color: #AAA;
  51. }
  52. .ui.input.focus input input::-moz-placeholder,
  53. .ui.input input:focus input::-moz-placeholder {
  54. color: #AAA;
  55. }
  56. .ui.input.error input {
  57. background-color: snow;
  58. border-color: #E7BEBE;
  59. color: #D95C5C;
  60. }
  61. .ui.input.error input ::-webkit-input-placeholder {
  62. color: rgba(255,80,80,.4);
  63. }
  64. .ui.input.error input ::-moz-placeholder {
  65. color: rgba(255,80,80,.4);
  66. }
  67. .ui.input.error input :focus::-webkit-input-placeholder {
  68. color: rgba(255,80,80,.7);
  69. }
  70. .ui.input.error input :focus::-moz-placeholder {
  71. color: rgba(255,80,80,.7);
  72. }
  73. .ui.transparent.input input {
  74. border: 0;
  75. background-color: transparent;
  76. }
  77. .ui.icon.input>.icon {
  78. cursor: default;
  79. position: absolute;
  80. opacity: .5;
  81. top: 0;
  82. left: 0;
  83. margin: 0;
  84. width: 2.6em;
  85. height: 100%;
  86. padding-top: .82em;
  87. text-align: center;
  88. border-radius: .3125em 0 0 .3125em;
  89. -webkit-box-sizing: border-box;
  90. -moz-box-sizing: border-box;
  91. -ms-box-sizing: border-box;
  92. box-sizing: border-box;
  93. -webkit-transition: opacity .3s ease-out;
  94. transition: opacity .3s ease-out;
  95. }
  96. .ui.icon.input>.link.icon {
  97. cursor: pointer;
  98. }
  99. .ui.icon.input input {
  100. padding-left: 3em!important;
  101. }
  102. .ui.icon.input>.circular.icon {
  103. top: .35em;
  104. left: .5em;
  105. }
  106. .ui.left.icon.input>.icon {
  107. left: auto;
  108. right: 1px;
  109. border-radius: 0 .3125em .3125em 0;
  110. }
  111. .ui.left.icon.input>.circular.icon {
  112. left: auto;
  113. right: .5em;
  114. }
  115. .ui.left.icon.input>input {
  116. padding-right: 3em!important;
  117. padding-left: 1.2em!important;
  118. }
  119. .ui.icon.input>input:focus~.icon {
  120. opacity: 1;
  121. }
  122. .ui.labeled.input .corner.label {
  123. top: 1px;
  124. left: 1px;
  125. border-top-left-radius: .3125em;
  126. }
  127. .ui.labeled.input input {
  128. padding-left: 2.5em!important;
  129. }
  130. .ui.labeled.icon.input:not(.left)>input {
  131. padding-left: 3.25em!important;
  132. }
  133. .ui.labeled.icon.input:not(.left)>.icon {
  134. margin-left: .75em;
  135. }
  136. .ui.action.input {
  137. display: table;
  138. }
  139. .ui.action.input>input {
  140. display: table-cell;
  141. border-top-left-radius: 0!important;
  142. border-bottom-left-radius: 0!important;
  143. border-left: 0;
  144. }
  145. .ui.action.input>.button {
  146. display: table-cell;
  147. border-top-right-radius: 0;
  148. border-bottom-right-radius: 0;
  149. white-space: nowrap;
  150. }
  151. .ui.action.input>.button>.icon {
  152. display: inline;
  153. vertical-align: top;
  154. }
  155. .ui.fluid.input {
  156. display: block;
  157. }
  158. .ui.mini.input {
  159. font-size: .8125rem;
  160. }
  161. .ui.tiny.input {
  162. font-size: .875rem;
  163. }
  164. .ui.small.input {
  165. font-size: .875rem;
  166. }
  167. .ui.input {
  168. font-size: 1rem;
  169. }
  170. .ui.large.input {
  171. font-size: 1.125rem;
  172. }
  173. .ui.big.input {
  174. font-size: 1.25rem;
  175. }
  176. .ui.huge.input {
  177. font-size: 1.375rem;
  178. }
  179. .ui.massive.input {
  180. font-size: 1.5rem;
  181. }