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.

259 lines
6.4 KiB

  1. /*
  2. * # Semantic - Input
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Standard
  13. *******************************/
  14. /*--------------------
  15. Inputs
  16. ---------------------*/
  17. .ui.input {
  18. display: inline-block;
  19. position: relative;
  20. }
  21. .ui.input input {
  22. width: 100%;
  23. font-family: "Helvetica Neue", "Helvetica", Arial;
  24. margin: 0em;
  25. padding: 0.85em 1.2em;
  26. font-size: 0.875em;
  27. background-color: #FFFFFF;
  28. border: 1px solid rgba(0, 0, 0, 0.15);
  29. outline: none;
  30. color: rgba(0, 0, 0, 0.7);
  31. -webkit-border-radius: 0.3125em;
  32. -moz-border-radius: 0.3125em;
  33. border-radius: 0.3125em;
  34. -webkit-transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  35. -moz-transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  36. -o-transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  37. -ms-transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  38. transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  39. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  40. -webkit-box-sizing: border-box;
  41. -moz-box-sizing: border-box;
  42. -ms-box-sizing: border-box;
  43. box-sizing: border-box;
  44. }
  45. /*--------------------
  46. Placeholder
  47. ---------------------*/
  48. /* browsers require these rules separate */
  49. .ui.input::-web inputkit-input-placeholder {
  50. color: #E0E0E0;
  51. }
  52. .ui.input::-moz input-placeholder {
  53. color: #E0E0E0;
  54. }
  55. /*******************************
  56. States
  57. *******************************/
  58. /*--------------------
  59. Active
  60. ---------------------*/
  61. .ui.input input:active,
  62. .ui.input.down input {
  63. border-color: rgba(0, 0, 0, 0.3);
  64. background-color: #FAFAFA;
  65. }
  66. /*--------------------
  67. Loading
  68. ---------------------*/
  69. .ui.loading.input > .icon {
  70. background: url(../images/loader-mini.gif) no-repeat 50% 50%;
  71. }
  72. .ui.loading.input > .icon:before,
  73. .ui.loading.input > .icon:after {
  74. display: none;
  75. }
  76. /*--------------------
  77. Focus
  78. ---------------------*/
  79. .ui.input.focus input,
  80. .ui.input input:focus {
  81. border-color: rgba(0, 0, 0, 0.2);
  82. color: rgba(0, 0, 0, 0.85);
  83. }
  84. .ui.input.focus input input::-webkit-input-placeholder,
  85. .ui.input input:focus input::-webkit-input-placeholder {
  86. color: #AAAAAA;
  87. }
  88. .ui.input.focus input input::-moz-placeholder,
  89. .ui.input input:focus input::-moz-placeholder {
  90. color: #AAAAAA;
  91. }
  92. /*--------------------
  93. Error
  94. ---------------------*/
  95. .ui.input.error input {
  96. background-color: #FFFAFA;
  97. border-color: #E7BEBE;
  98. color: #D95C5C;
  99. }
  100. /* Error Placeholder */
  101. .ui.input.error input ::-webkit-input-placeholder {
  102. color: rgba(255, 80, 80, 0.4);
  103. }
  104. .ui.input.error input ::-moz-placeholder {
  105. color: rgba(255, 80, 80, 0.4);
  106. }
  107. .ui.input.error input :focus::-webkit-input-placeholder {
  108. color: rgba(255, 80, 80, 0.7);
  109. }
  110. .ui.input.error input :focus::-moz-placeholder {
  111. color: rgba(255, 80, 80, 0.7);
  112. }
  113. /*******************************
  114. Variations
  115. *******************************/
  116. /*--------------------
  117. Transparent
  118. ---------------------*/
  119. .ui.transparent.input input {
  120. border: none;
  121. background-color: transparent;
  122. }
  123. /*--------------------
  124. Icon
  125. ---------------------*/
  126. .ui.icon.input > .icon {
  127. position: absolute;
  128. opacity: 0.5;
  129. top: 0px;
  130. right: 0px;
  131. margin: 0em;
  132. width: 2.6em;
  133. height: 100%;
  134. padding-top: 0.85em;
  135. text-align: center;
  136. -webkit-border-radius: 0em 0.3125em 0.3125em 0em;
  137. -moz-border-radius: 0em 0.3125em 0.3125em 0em;
  138. border-radius: 0em 0.3125em 0.3125em 0em;
  139. -webkit-box-sizing: border-box;
  140. -moz-box-sizing: border-box;
  141. -ms-box-sizing: border-box;
  142. box-sizing: border-box;
  143. -webkit-transition: opacity 0.3s ease-out;
  144. -moz-transition: opacity 0.3s ease-out;
  145. -o-transition: opacity 0.3s ease-out;
  146. -ms-transition: opacity 0.3s ease-out;
  147. transition: opacity 0.3s ease-out;
  148. }
  149. .ui.icon.input input {
  150. padding-right: 3em !important;
  151. }
  152. .ui.icon.input > .circular.icon {
  153. top: 0.35em;
  154. right: 0.5em;
  155. }
  156. /* Left Side */
  157. .ui.left.icon.input > .icon {
  158. right: auto;
  159. left: 1px;
  160. -webkit-border-radius: 0.3125em 0em 0em 0.3125em;
  161. -moz-border-radius: 0.3125em 0em 0em 0.3125em;
  162. border-radius: 0.3125em 0em 0em 0.3125em;
  163. }
  164. .ui.left.icon.input > .circular.icon {
  165. right: auto;
  166. left: 0.5em;
  167. }
  168. .ui.left.icon.input > input {
  169. padding-left: 3em !important;
  170. padding-right: 1.2em !important;
  171. }
  172. /* Focus */
  173. .ui.icon.input > input:focus ~ .icon {
  174. opacity: 1;
  175. }
  176. /*--------------------
  177. Labeled
  178. ---------------------*/
  179. .ui.labeled.input .corner.label {
  180. top: 1px;
  181. right: 1px;
  182. -webkit-border-top-right-radius: 0.3125em;
  183. -moz-border-top-right-radius: 0.3125em;
  184. border-top-right-radius: 0.3125em;
  185. }
  186. .ui.labeled.input input {
  187. padding-right: 2.5em !important;
  188. }
  189. /* Spacing with corner label */
  190. .ui.labeled.icon.input:not(.left) > input {
  191. padding-right: 3.25em !important;
  192. }
  193. .ui.labeled.icon.input:not(.left) > .icon {
  194. margin-right: 0.75em;
  195. }
  196. /*--------------------
  197. Action
  198. ---------------------*/
  199. .ui.action.input {
  200. display: table;
  201. }
  202. .ui.action.input > input {
  203. display: table-cell;
  204. border-top-right-radius: 0px !important;
  205. border-bottom-right-radius: 0px !important;
  206. border-right: none;
  207. }
  208. .ui.action.input > .button {
  209. display: table-cell;
  210. opacity: 0.9;
  211. border-top-left-radius: 0px;
  212. border-bottom-left-radius: 0px;
  213. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  214. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  215. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  216. white-space: nowrap;
  217. }
  218. .ui.action.input > .button > .icon {
  219. display: inline;
  220. }
  221. .ui.action.input > input:focus ~ .button {
  222. opacity: 1;
  223. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  224. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  225. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  226. }
  227. /*--------------------
  228. Fluid
  229. ---------------------*/
  230. .ui.fluid.input {
  231. display: block;
  232. }
  233. /*--------------------
  234. Size
  235. ---------------------*/
  236. .ui.mini.input {
  237. font-size: 0.8125rem;
  238. }
  239. .ui.tiny.input {
  240. font-size: 0.875rem;
  241. }
  242. .ui.small.input {
  243. font-size: 0.875rem;
  244. }
  245. .ui.input {
  246. font-size: 1rem;
  247. }
  248. .ui.large.input {
  249. font-size: 1.125rem;
  250. }
  251. .ui.big.input {
  252. font-size: 1.25rem;
  253. }
  254. .ui.huge.input {
  255. font-size: 1.375rem;
  256. }
  257. .ui.massive.input {
  258. font-size: 1.5rem;
  259. }