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.

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