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.

484 lines
11 KiB

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
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 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
10 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
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
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
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
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
10 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
9 years ago
10 years ago
9 years ago
10 years ago
9 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 2.0.0 - 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.285714rem;
  42. -webkit-transition: background-color 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
  43. transition: background-color 0.1s ease, box-shadow 0.1s ease, border-color 0.1s 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: #757676 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: #fff6f6;
  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.285714rem 0.285714rem 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.285714rem 0em 0em 0.285714rem;
  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. /* Regular 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. /* Regular 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.285714rem 0em 0em;
  292. }
  293. /* Spacing with corner label */
  294. .ui[class*="corner labeled"]:not(.left).labeled.input input {
  295. padding-right: 2.5em !important;
  296. }
  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. /* Left Labeled */
  304. .ui[class*="corner labeled"].left.labeled.input input {
  305. padding-left: 2.5em !important;
  306. }
  307. .ui[class*="corner labeled"].icon.input.left > input {
  308. padding-left: 3.25em !important;
  309. }
  310. .ui[class*="corner labeled"].icon.input.left > .icon {
  311. margin-left: 1.25em;
  312. }
  313. /* Corner Label Position */
  314. .ui.input > .ui.corner.label {
  315. top: 1px;
  316. right: 1px;
  317. }
  318. .ui.input > .ui.left.corner.label {
  319. right: auto;
  320. left: 1px;
  321. }
  322. /*--------------------
  323. Action
  324. ---------------------*/
  325. .ui.action.input > .button,
  326. .ui.action.input > .buttons {
  327. display: -webkit-box;
  328. display: -webkit-flex;
  329. display: -ms-flexbox;
  330. display: flex;
  331. -webkit-box-align: center;
  332. -webkit-align-items: center;
  333. -ms-flex-align: center;
  334. align-items: center;
  335. -webkit-box-flex: 0;
  336. -webkit-flex: 0 0 auto;
  337. -ms-flex: 0 0 auto;
  338. flex: 0 0 auto;
  339. }
  340. .ui.action.input > .button,
  341. .ui.action.input > .buttons > .button {
  342. padding-top: 0.78571em;
  343. padding-bottom: 0.78571em;
  344. margin: 0;
  345. }
  346. /* Button on Right */
  347. .ui.action.input:not([class*="left action"]) > input {
  348. border-right: none;
  349. border-top-right-radius: 0px !important;
  350. border-bottom-right-radius: 0px !important;
  351. }
  352. .ui.action.input:not([class*="left action"]) > .dropdown,
  353. .ui.action.input:not([class*="left action"]) > .button,
  354. .ui.action.input:not([class*="left action"]) > .buttons > .button {
  355. border-radius: 0px;
  356. }
  357. .ui.action.input:not([class*="left action"]) > .dropdown:last-child,
  358. .ui.action.input:not([class*="left action"]) > .button:last-child,
  359. .ui.action.input:not([class*="left action"]) > .buttons:last-child > .button {
  360. border-radius: 0px 0.285714rem 0.285714rem 0px;
  361. }
  362. /* Button on Left */
  363. .ui[class*="left action"].input > .dropdown,
  364. .ui[class*="left action"].input > .button,
  365. .ui[class*="left action"].input > .buttons > .button {
  366. border-radius: 0px;
  367. }
  368. .ui[class*="left action"].input > .dropdown:first-child,
  369. .ui[class*="left action"].input > .button:first-child,
  370. .ui[class*="left action"].input > .buttons:first-child > .button {
  371. border-radius: 0.285714rem 0px 0px 0.285714rem;
  372. }
  373. .ui[class*="left action"].input > input {
  374. border-left: none;
  375. border-top-left-radius: 0px;
  376. border-bottom-left-radius: 0px;
  377. }
  378. /*--------------------
  379. Inverted
  380. ---------------------*/
  381. /* Standard */
  382. .ui.inverted.input input {
  383. border: none;
  384. }
  385. /*--------------------
  386. Fluid
  387. ---------------------*/
  388. .ui.fluid.input {
  389. display: -webkit-box;
  390. display: -webkit-flex;
  391. display: -ms-flexbox;
  392. display: flex;
  393. }
  394. .ui.fluid.input > input {
  395. width: 0px !important;
  396. }
  397. /*--------------------
  398. Size
  399. ---------------------*/
  400. .ui.mini.input {
  401. font-size: 0.71428571em;
  402. }
  403. .ui.small.input {
  404. font-size: 0.92857143em;
  405. }
  406. .ui.input {
  407. font-size: 1em;
  408. }
  409. .ui.large.input {
  410. font-size: 1.14285714em;
  411. }
  412. .ui.big.input {
  413. font-size: 1.28571429em;
  414. }
  415. .ui.huge.input {
  416. font-size: 1.42857143em;
  417. }
  418. .ui.massive.input {
  419. font-size: 1.71428571em;
  420. }
  421. /*******************************
  422. Theme Overrides
  423. *******************************/
  424. /*******************************
  425. Site Overrides
  426. *******************************/