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.

518 lines
12 KiB

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