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.

463 lines
10 KiB

9 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
9 years ago
10 years ago
9 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
9 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*!
  2. * # Semantic UI x.x - Input
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 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. position: relative;
  19. display: -webkit-inline-box;
  20. display: -webkit-inline-flex;
  21. display: -ms-inline-flexbox;
  22. display: inline-flex;
  23. color: rgba(0, 0, 0, 0.87);
  24. }
  25. .ui.input input {
  26. margin: 0em;
  27. max-width: 100%;
  28. -webkit-box-flex: 1;
  29. -webkit-flex: 1 0 auto;
  30. -ms-flex: 1 0 auto;
  31. flex: 1 0 auto;
  32. outline: none;
  33. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  34. text-align: left;
  35. line-height: 1.2142em;
  36. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  37. padding: 0.67861em 1em;
  38. background: #ffffff;
  39. border: 1px solid rgba(34, 36, 38, 0.15);
  40. color: rgba(0, 0, 0, 0.87);
  41. border-radius: 0.2857rem;
  42. -webkit-transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  43. transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  44. box-shadow: none;
  45. }
  46. /*--------------------
  47. Placeholder
  48. ---------------------*/
  49. /* browsers require these rules separate */
  50. .ui.input input::-webkit-input-placeholder {
  51. color: rgba(0, 0, 0, 0.4);
  52. }
  53. .ui.input input::-moz-placeholder {
  54. color: rgba(0, 0, 0, 0.4);
  55. }
  56. .ui.input input::-ms-input-placeholder {
  57. color: rgba(0, 0, 0, 0.4);
  58. }
  59. /*******************************
  60. States
  61. *******************************/
  62. /*--------------------
  63. Active
  64. ---------------------*/
  65. .ui.input input:active,
  66. .ui.input.down input {
  67. border-color: rgba(0, 0, 0, 0.3);
  68. background: #fafafa;
  69. color: rgba(0, 0, 0, 0.87);
  70. box-shadow: none;
  71. }
  72. /*--------------------
  73. Loading
  74. ---------------------*/
  75. .ui.loading.loading.input > i.icon:before {
  76. position: absolute;
  77. content: '';
  78. top: 50%;
  79. left: 50%;
  80. margin: -0.64285em 0em 0em -0.64285em;
  81. width: 1.2857em;
  82. height: 1.2857em;
  83. border-radius: 500rem;
  84. border: 0.2em solid rgba(0, 0, 0, 0.1);
  85. }
  86. .ui.loading.loading.input > i.icon:after {
  87. position: absolute;
  88. content: '';
  89. top: 50%;
  90. left: 50%;
  91. margin: -0.64285em 0em 0em -0.64285em;
  92. width: 1.2857em;
  93. height: 1.2857em;
  94. -webkit-animation: button-spin 0.6s linear;
  95. animation: button-spin 0.6s linear;
  96. -webkit-animation-iteration-count: infinite;
  97. animation-iteration-count: infinite;
  98. border-radius: 500rem;
  99. border-color: #aaaaaa transparent transparent;
  100. border-style: solid;
  101. border-width: 0.2em;
  102. box-shadow: 0px 0px 0px 1px transparent;
  103. }
  104. /*--------------------
  105. Focus
  106. ---------------------*/
  107. .ui.input.focus input,
  108. .ui.input input:focus {
  109. border-color: rgba(34, 36, 38, 0.3);
  110. background: #ffffff;
  111. color: rgba(0, 0, 0, 0.8);
  112. box-shadow: none;
  113. }
  114. .ui.input.focus input::-webkit-input-placeholder,
  115. .ui.input input:focus input::-webkit-input-placeholder {
  116. color: rgba(0, 0, 0, 0.87);
  117. }
  118. .ui.input.focus input::-moz-placeholder,
  119. .ui.input input:focus input::-moz-placeholder {
  120. color: rgba(0, 0, 0, 0.87);
  121. }
  122. .ui.input.focus input::-ms-input-placeholder,
  123. .ui.input input:focus input::-ms-input-placeholder {
  124. color: rgba(0, 0, 0, 0.87);
  125. }
  126. /*--------------------
  127. Error
  128. ---------------------*/
  129. .ui.input.error input {
  130. background-color: #fff0f0;
  131. border-color: #e0b4b4;
  132. color: #db2828;
  133. box-shadow: none;
  134. }
  135. /* Error Placeholder */
  136. .ui.input.error input ::-webkit-input-placeholder {
  137. color: rgba(255, 80, 80, 0.4);
  138. }
  139. .ui.input.error input ::-moz-placeholder {
  140. color: rgba(255, 80, 80, 0.4);
  141. }
  142. .ui.input.error input ::-ms-input-placeholder {
  143. color: rgba(255, 80, 80, 0.4);
  144. }
  145. /* Focused Error Placeholder */
  146. .ui.input.error input :focus::-webkit-input-placeholder {
  147. color: rgba(255, 80, 80, 0.7);
  148. }
  149. .ui.input.error input :focus::-moz-placeholder {
  150. color: rgba(255, 80, 80, 0.7);
  151. }
  152. .ui.input.error input :focus::-ms-input-placeholder {
  153. color: rgba(255, 80, 80, 0.7);
  154. }
  155. /*******************************
  156. Variations
  157. *******************************/
  158. /*--------------------
  159. Transparent
  160. ---------------------*/
  161. .ui.transparent.input input {
  162. border-color: transparent !important;
  163. background-color: transparent !important;
  164. padding: 0em !important;
  165. box-shadow: none !important;
  166. }
  167. /* Transparent Icon */
  168. .ui.transparent.icon.input > i.icon {
  169. width: 1.25em;
  170. }
  171. .ui.transparent.icon.input > input {
  172. padding-left: 0em !important;
  173. padding-right: 2em !important;
  174. }
  175. .ui.transparent[class*="left icon"].input > input {
  176. padding-left: 2em !important;
  177. padding-right: 0em !important;
  178. }
  179. /* Transparent Inverted */
  180. .ui.transparent.inverted.input {
  181. color: #ffffff;
  182. }
  183. .ui.transparent.inverted.input input {
  184. color: inherit;
  185. }
  186. .ui.transparent.inverted.input input::-webkit-input-placeholder {
  187. color: rgba(255, 255, 255, 0.5);
  188. }
  189. .ui.transparent.inverted.input input::-moz-placeholder {
  190. color: rgba(255, 255, 255, 0.5);
  191. }
  192. .ui.transparent.inverted.input input::-ms-input-placeholder {
  193. color: rgba(255, 255, 255, 0.5);
  194. }
  195. /*--------------------
  196. Icon
  197. ---------------------*/
  198. .ui.icon.input > i.icon {
  199. cursor: default;
  200. position: absolute;
  201. line-height: 1;
  202. text-align: center;
  203. top: 0px;
  204. right: 0px;
  205. margin: 0em;
  206. height: 100%;
  207. width: 2.82142em;
  208. opacity: 0.5;
  209. border-radius: 0em 0.2857rem 0.2857rem 0em;
  210. -webkit-transition: opacity 0.3s ease;
  211. transition: opacity 0.3s ease;
  212. }
  213. .ui.icon.input input {
  214. padding-right: 2.82142em !important;
  215. }
  216. .ui.icon.input > i.icon:before,
  217. .ui.icon.input > i.icon:after {
  218. left: 0;
  219. position: absolute;
  220. text-align: center;
  221. top: 50%;
  222. width: 100%;
  223. margin-top: -0.5em;
  224. }
  225. .ui.icon.input > i.link.icon {
  226. cursor: pointer;
  227. }
  228. .ui.icon.input > i.circular.icon {
  229. top: 0.35em;
  230. right: 0.5em;
  231. }
  232. /* Left Icon Input */
  233. .ui[class*="left icon"].input > i.icon {
  234. right: auto;
  235. left: 1px;
  236. border-radius: 0.2857rem 0em 0em 0.2857rem;
  237. }
  238. .ui[class*="left icon"].input > i.circular.icon {
  239. right: auto;
  240. left: 0.5em;
  241. }
  242. .ui[class*="left icon"].input > input {
  243. padding-left: 2.82142em !important;
  244. padding-right: 1em !important;
  245. }
  246. /* Focus */
  247. .ui.icon.input > input:focus ~ i.icon {
  248. opacity: 1;
  249. }
  250. /*--------------------
  251. Labeled
  252. ---------------------*/
  253. /* Adjacent Label */
  254. .ui.labeled.input > .label {
  255. -webkit-box-flex: 0;
  256. -webkit-flex: 0 0 auto;
  257. -ms-flex: 0 0 auto;
  258. flex: 0 0 auto;
  259. margin: 0;
  260. font-size: 1rem;
  261. }
  262. .ui.labeled.input > .label:not(.corner) {
  263. padding-top: 0.78571em;
  264. padding-bottom: 0.78571em;
  265. }
  266. /* Label on Left */
  267. .ui.labeled.input:not([class*="corner labeled"]):not([class*="right labeled"]) > input {
  268. border-left: none;
  269. border-top-left-radius: 0px;
  270. border-bottom-left-radius: 0px;
  271. }
  272. .ui.labeled.input:not([class*="corner labeled"]):not([class*="right labeled"]) > .label {
  273. border-top-right-radius: 0px;
  274. border-bottom-right-radius: 0px;
  275. }
  276. /* Label on Right */
  277. .ui[class*="right labeled"].input > input {
  278. border-right: none;
  279. border-top-right-radius: 0px !important;
  280. border-bottom-right-radius: 0px !important;
  281. }
  282. .ui[class*="right labeled"].input > .label {
  283. border-top-left-radius: 0px;
  284. border-bottom-left-radius: 0px;
  285. }
  286. /* Corner Label */
  287. .ui.labeled.input .corner.label {
  288. top: 1px;
  289. right: 1px;
  290. font-size: 0.64285em;
  291. border-radius: 0em 0.2857rem 0em 0em;
  292. }
  293. .ui.labeled.input input {
  294. padding-right: 2.5em !important;
  295. }
  296. /* Spacing with corner label */
  297. .ui[class*="corner labeled"].icon.input:not(.left) > input {
  298. padding-right: 3.25em !important;
  299. }
  300. .ui[class*="corner labeled"].icon.input:not(.left) > .icon {
  301. margin-right: 1.25em;
  302. }
  303. /*--------------------
  304. Action
  305. ---------------------*/
  306. .ui.action.input > .button,
  307. .ui.action.input > .buttons {
  308. display: -webkit-box;
  309. display: -webkit-flex;
  310. display: -ms-flexbox;
  311. display: flex;
  312. -webkit-box-align: center;
  313. -webkit-align-items: center;
  314. -ms-flex-align: center;
  315. align-items: center;
  316. -webkit-box-flex: 0;
  317. -webkit-flex: 0 0 auto;
  318. -ms-flex: 0 0 auto;
  319. flex: 0 0 auto;
  320. }
  321. .ui.action.input > .button,
  322. .ui.action.input > .buttons > .button {
  323. padding-top: 0.78571em;
  324. padding-bottom: 0.78571em;
  325. margin: 0;
  326. }
  327. /* Button on Right */
  328. .ui.action.input:not([class*="left action"]) > input {
  329. border-right: none;
  330. border-top-right-radius: 0px !important;
  331. border-bottom-right-radius: 0px !important;
  332. }
  333. .ui.action.input:not([class*="left action"]) > .dropdown,
  334. .ui.action.input:not([class*="left action"]) > .button,
  335. .ui.action.input:not([class*="left action"]) > .buttons > .button {
  336. border-radius: 0px;
  337. }
  338. .ui.action.input:not([class*="left action"]) > .dropdown:last-child,
  339. .ui.action.input:not([class*="left action"]) > .button:last-child,
  340. .ui.action.input:not([class*="left action"]) > .buttons:last-child > .button {
  341. border-radius: 0px 0.2857rem 0.2857rem 0px;
  342. }
  343. /* Button on Left */
  344. .ui[class*="left action"].input > .dropdown,
  345. .ui[class*="left action"].input > .button,
  346. .ui[class*="left action"].input > .buttons > .button {
  347. border-radius: 0px;
  348. }
  349. .ui[class*="left action"].input > .dropdown:first-child,
  350. .ui[class*="left action"].input > .button:first-child,
  351. .ui[class*="left action"].input > .buttons:first-child > .button {
  352. border-radius: 0.2857rem 0px 0px 0.2857rem;
  353. }
  354. .ui[class*="left action"].input > input {
  355. border-left: none;
  356. border-top-left-radius: 0px;
  357. border-bottom-left-radius: 0px;
  358. }
  359. /*--------------------
  360. Inverted
  361. ---------------------*/
  362. /* Standard */
  363. .ui.inverted.input input {
  364. border: none;
  365. }
  366. /*--------------------
  367. Fluid
  368. ---------------------*/
  369. .ui.fluid.input {
  370. display: -webkit-box;
  371. display: -webkit-flex;
  372. display: -ms-flexbox;
  373. display: flex;
  374. }
  375. .ui.fluid.input > input {
  376. width: 0px !important;
  377. }
  378. /*--------------------
  379. Size
  380. ---------------------*/
  381. .ui.mini.input {
  382. font-size: 0.71428571em;
  383. }
  384. .ui.small.input {
  385. font-size: 0.92857143em;
  386. }
  387. .ui.input {
  388. font-size: 1em;
  389. }
  390. .ui.large.input {
  391. font-size: 1.14285714em;
  392. }
  393. .ui.big.input {
  394. font-size: 1.28571429em;
  395. }
  396. .ui.huge.input {
  397. font-size: 1.42857143em;
  398. }
  399. .ui.massive.input {
  400. font-size: 1.71428571em;
  401. }
  402. /*******************************
  403. Theme Overrides
  404. *******************************/
  405. /*******************************
  406. Site Overrides
  407. *******************************/