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.

487 lines
11 KiB

  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.67861429em 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.28571429rem;
  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.64285714em 0em 0em -0.64285714em;
  81. width: 1.28571429em;
  82. height: 1.28571429em;
  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.64285714em 0em 0em -0.64285714em;
  92. width: 1.28571429em;
  93. height: 1.28571429em;
  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: #767676 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.35);
  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.1em;
  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.67142857em;
  208. opacity: 0.5;
  209. border-radius: 0em 0.28571429rem 0.28571429rem 0em;
  210. -webkit-transition: opacity 0.3s ease;
  211. transition: opacity 0.3s ease;
  212. }
  213. .ui.icon.input > i.icon:not(.link) {
  214. pointer-events: none;
  215. }
  216. .ui.icon.input input {
  217. padding-right: 2.67142857em !important;
  218. }
  219. .ui.icon.input > i.icon:before,
  220. .ui.icon.input > i.icon:after {
  221. left: 0;
  222. position: absolute;
  223. text-align: center;
  224. top: 50%;
  225. width: 100%;
  226. margin-top: -0.5em;
  227. }
  228. .ui.icon.input > i.link.icon {
  229. cursor: pointer;
  230. }
  231. .ui.icon.input > i.circular.icon {
  232. top: 0.35em;
  233. right: 0.5em;
  234. }
  235. /* Left Icon Input */
  236. .ui[class*="left icon"].input > i.icon {
  237. right: auto;
  238. left: 1px;
  239. border-radius: 0.28571429rem 0em 0em 0.28571429rem;
  240. }
  241. .ui[class*="left icon"].input > i.circular.icon {
  242. right: auto;
  243. left: 0.5em;
  244. }
  245. .ui[class*="left icon"].input > input {
  246. padding-left: 2.67142857em !important;
  247. padding-right: 1em !important;
  248. }
  249. /* Focus */
  250. .ui.icon.input > input:focus ~ i.icon {
  251. opacity: 1;
  252. }
  253. /*--------------------
  254. Labeled
  255. ---------------------*/
  256. /* Adjacent Label */
  257. .ui.labeled.input > .label {
  258. -webkit-box-flex: 0;
  259. -webkit-flex: 0 0 auto;
  260. -ms-flex: 0 0 auto;
  261. flex: 0 0 auto;
  262. margin: 0;
  263. font-size: 1rem;
  264. }
  265. .ui.labeled.input > .label:not(.corner) {
  266. padding-top: 0.78571429em;
  267. padding-bottom: 0.78571429em;
  268. }
  269. /* Regular Label on Left */
  270. .ui.labeled.input:not([class*="corner labeled"]):not([class*="right labeled"]) > input {
  271. border-left: none;
  272. border-top-left-radius: 0px;
  273. border-bottom-left-radius: 0px;
  274. }
  275. .ui.labeled.input:not([class*="corner labeled"]):not([class*="right labeled"]) > .label {
  276. border-top-right-radius: 0px;
  277. border-bottom-right-radius: 0px;
  278. }
  279. /* Regular Label on Right */
  280. .ui[class*="right labeled"].input > input {
  281. border-right: none;
  282. border-top-right-radius: 0px !important;
  283. border-bottom-right-radius: 0px !important;
  284. }
  285. .ui[class*="right labeled"].input > .label {
  286. border-top-left-radius: 0px;
  287. border-bottom-left-radius: 0px;
  288. }
  289. /* Corner Label */
  290. .ui.labeled.input .corner.label {
  291. top: 1px;
  292. right: 1px;
  293. font-size: 0.64285714em;
  294. border-radius: 0em 0.28571429rem 0em 0em;
  295. }
  296. /* Spacing with corner label */
  297. .ui[class*="corner labeled"]:not(.left).labeled.input input {
  298. padding-right: 2.5em !important;
  299. }
  300. .ui[class*="corner labeled"].icon.input:not(.left) > input {
  301. padding-right: 3.25em !important;
  302. }
  303. .ui[class*="corner labeled"].icon.input:not(.left) > .icon {
  304. margin-right: 1.25em;
  305. }
  306. /* Left Labeled */
  307. .ui[class*="corner labeled"].left.labeled.input input {
  308. padding-left: 2.5em !important;
  309. }
  310. .ui[class*="corner labeled"].icon.input.left > input {
  311. padding-left: 3.25em !important;
  312. }
  313. .ui[class*="corner labeled"].icon.input.left > .icon {
  314. margin-left: 1.25em;
  315. }
  316. /* Corner Label Position */
  317. .ui.input > .ui.corner.label {
  318. top: 1px;
  319. right: 1px;
  320. }
  321. .ui.input > .ui.left.corner.label {
  322. right: auto;
  323. left: 1px;
  324. }
  325. /*--------------------
  326. Action
  327. ---------------------*/
  328. .ui.action.input > .button,
  329. .ui.action.input > .buttons {
  330. display: -webkit-box;
  331. display: -webkit-flex;
  332. display: -ms-flexbox;
  333. display: flex;
  334. -webkit-box-align: center;
  335. -webkit-align-items: center;
  336. -ms-flex-align: center;
  337. align-items: center;
  338. -webkit-box-flex: 0;
  339. -webkit-flex: 0 0 auto;
  340. -ms-flex: 0 0 auto;
  341. flex: 0 0 auto;
  342. }
  343. .ui.action.input > .button,
  344. .ui.action.input > .buttons > .button {
  345. padding-top: 0.78571429em;
  346. padding-bottom: 0.78571429em;
  347. margin: 0;
  348. }
  349. /* Button on Right */
  350. .ui.action.input:not([class*="left action"]) > input {
  351. border-right: none;
  352. border-top-right-radius: 0px !important;
  353. border-bottom-right-radius: 0px !important;
  354. }
  355. .ui.action.input:not([class*="left action"]) > .dropdown,
  356. .ui.action.input:not([class*="left action"]) > .button,
  357. .ui.action.input:not([class*="left action"]) > .buttons > .button {
  358. border-radius: 0px;
  359. }
  360. .ui.action.input:not([class*="left action"]) > .dropdown:last-child,
  361. .ui.action.input:not([class*="left action"]) > .button:last-child,
  362. .ui.action.input:not([class*="left action"]) > .buttons:last-child > .button {
  363. border-radius: 0px 0.28571429rem 0.28571429rem 0px;
  364. }
  365. /* Button on Left */
  366. .ui[class*="left action"].input > .dropdown,
  367. .ui[class*="left action"].input > .button,
  368. .ui[class*="left action"].input > .buttons > .button {
  369. border-radius: 0px;
  370. }
  371. .ui[class*="left action"].input > .dropdown:first-child,
  372. .ui[class*="left action"].input > .button:first-child,
  373. .ui[class*="left action"].input > .buttons:first-child > .button {
  374. border-radius: 0.28571429rem 0px 0px 0.28571429rem;
  375. }
  376. .ui[class*="left action"].input > input {
  377. border-left: none;
  378. border-top-left-radius: 0px;
  379. border-bottom-left-radius: 0px;
  380. }
  381. /*--------------------
  382. Inverted
  383. ---------------------*/
  384. /* Standard */
  385. .ui.inverted.input input {
  386. border: none;
  387. }
  388. /*--------------------
  389. Fluid
  390. ---------------------*/
  391. .ui.fluid.input {
  392. display: -webkit-box;
  393. display: -webkit-flex;
  394. display: -ms-flexbox;
  395. display: flex;
  396. }
  397. .ui.fluid.input > input {
  398. width: 0px !important;
  399. }
  400. /*--------------------
  401. Size
  402. ---------------------*/
  403. .ui.mini.input {
  404. font-size: 0.71428571em;
  405. }
  406. .ui.small.input {
  407. font-size: 0.92857143em;
  408. }
  409. .ui.input {
  410. font-size: 1em;
  411. }
  412. .ui.large.input {
  413. font-size: 1.14285714em;
  414. }
  415. .ui.big.input {
  416. font-size: 1.28571429em;
  417. }
  418. .ui.huge.input {
  419. font-size: 1.42857143em;
  420. }
  421. .ui.massive.input {
  422. font-size: 1.71428571em;
  423. }
  424. /*******************************
  425. Theme Overrides
  426. *******************************/
  427. /*******************************
  428. Site Overrides
  429. *******************************/