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.

449 lines
9.6 KiB

9 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
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
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
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
10 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
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
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
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 2014 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.8);
  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.8);
  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.8);
  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.8);
  117. }
  118. .ui.input.focus input::-moz-placeholder,
  119. .ui.input input:focus input::-moz-placeholder {
  120. color: rgba(0, 0, 0, 0.8);
  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.8);
  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.6);
  188. }
  189. .ui.transparent.inverted.input input::-moz-placeholder {
  190. color: rgba(255, 255, 255, 0.6);
  191. }
  192. .ui.transparent.inverted.input input::-ms-input-placeholder {
  193. color: rgba(255, 255, 255, 0.6);
  194. }
  195. /*--------------------
  196. Icon
  197. ---------------------*/
  198. .ui.icon.input > i.icon {
  199. cursor: default;
  200. position: absolute;
  201. text-align: center;
  202. top: 0px;
  203. right: 0px;
  204. margin: 0em;
  205. height: 100%;
  206. width: 2.82142em;
  207. opacity: 0.5;
  208. border-radius: 0em 0.2857rem 0.2857rem 0em;
  209. -webkit-transition: opacity 0.3s ease;
  210. transition: opacity 0.3s ease;
  211. }
  212. .ui.icon.input input {
  213. padding-right: 2.82142em !important;
  214. }
  215. .ui.icon.input > i.icon:before,
  216. .ui.icon.input > i.icon:after {
  217. left: 0;
  218. position: absolute;
  219. text-align: center;
  220. top: 50%;
  221. width: 100%;
  222. margin-top: -0.5em;
  223. }
  224. .ui.icon.input > i.link.icon {
  225. cursor: pointer;
  226. }
  227. .ui.icon.input > i.circular.icon {
  228. top: 0.35em;
  229. right: 0.5em;
  230. }
  231. /* Left Icon Input */
  232. .ui[class*="left icon"].input > i.icon {
  233. right: auto;
  234. left: 1px;
  235. border-radius: 0.2857rem 0em 0em 0.2857rem;
  236. }
  237. .ui[class*="left icon"].input > i.circular.icon {
  238. right: auto;
  239. left: 0.5em;
  240. }
  241. .ui[class*="left icon"].input > input {
  242. padding-left: 2.82142em !important;
  243. padding-right: 1em !important;
  244. }
  245. /* Focus */
  246. .ui.icon.input > input:focus ~ i.icon {
  247. opacity: 1;
  248. }
  249. /*--------------------
  250. Labeled
  251. ---------------------*/
  252. /* Adjacent Label */
  253. .ui.labeled.input > .label {
  254. -webkit-box-flex: 0;
  255. -webkit-flex: 0 0 auto;
  256. -ms-flex: 0 0 auto;
  257. flex: 0 0 auto;
  258. margin: 0;
  259. font-size: 1rem;
  260. }
  261. .ui.labeled.input > .label:not(.corner) {
  262. padding-top: 0.78571em;
  263. padding-bottom: 0.78571em;
  264. }
  265. /* Label on Left */
  266. .ui.labeled.input:not([class*="corner labeled"]):not([class*="right labeled"]) > input {
  267. border-left: none;
  268. border-top-left-radius: 0px;
  269. border-bottom-left-radius: 0px;
  270. }
  271. .ui.labeled.input:not([class*="corner labeled"]):not([class*="right labeled"]) > .label {
  272. border-top-right-radius: 0px;
  273. border-bottom-right-radius: 0px;
  274. }
  275. /* Label on Right */
  276. .ui[class*="right labeled"].input > input {
  277. border-right: none;
  278. border-top-right-radius: 0px !important;
  279. border-bottom-right-radius: 0px !important;
  280. }
  281. .ui[class*="right labeled"].input > .label {
  282. border-top-left-radius: 0px;
  283. border-bottom-left-radius: 0px;
  284. }
  285. /* Corner Label */
  286. .ui.labeled.input .corner.label {
  287. top: 1px;
  288. right: 1px;
  289. font-size: 0.75em;
  290. border-radius: 0em 0.2857rem 0em 0em;
  291. }
  292. .ui.labeled.input input {
  293. padding-right: 2.5em !important;
  294. }
  295. /* Spacing with corner label */
  296. .ui[class*="corner labeled"].icon.input:not(.left) > input {
  297. padding-right: 3.25em !important;
  298. }
  299. .ui[class*="corner labeled"].icon.input:not(.left) > .icon {
  300. margin-right: 1.25em;
  301. }
  302. /*--------------------
  303. Action
  304. ---------------------*/
  305. .ui.action.input > .button,
  306. .ui.action.input > .buttons {
  307. display: -webkit-box;
  308. display: -webkit-flex;
  309. display: -ms-flexbox;
  310. display: flex;
  311. -webkit-box-align: center;
  312. -webkit-align-items: center;
  313. -ms-flex-align: center;
  314. align-items: center;
  315. -webkit-box-flex: 0;
  316. -webkit-flex: 0 0 auto;
  317. -ms-flex: 0 0 auto;
  318. flex: 0 0 auto;
  319. }
  320. .ui.action.input > .button,
  321. .ui.action.input > .buttons > .button {
  322. padding-top: 0.78571em;
  323. padding-bottom: 0.78571em;
  324. margin: 0;
  325. }
  326. /* Button on Right */
  327. .ui.action.input:not([class*="left action"]) > input {
  328. border-right: none;
  329. border-top-right-radius: 0px !important;
  330. border-bottom-right-radius: 0px !important;
  331. }
  332. .ui.action.input:not([class*="left action"]) > .button,
  333. .ui.action.input:not([class*="left action"]) > .buttons > .button {
  334. border-top-left-radius: 0px;
  335. border-bottom-left-radius: 0px;
  336. }
  337. /* Button on Left */
  338. .ui[class*="left action"].input > .button,
  339. .ui[class*="left action"].input > .buttons > .button {
  340. border-top-right-radius: 0px;
  341. border-bottom-right-radius: 0px;
  342. }
  343. .ui[class*="left action"].input > input {
  344. border-left: none;
  345. border-top-left-radius: 0px;
  346. border-bottom-left-radius: 0px;
  347. }
  348. /*--------------------
  349. Inverted
  350. ---------------------*/
  351. /* Standard */
  352. .ui.inverted.input input {
  353. border: none;
  354. }
  355. /*--------------------
  356. Fluid
  357. ---------------------*/
  358. .ui.fluid.input {
  359. display: -webkit-box;
  360. display: -webkit-flex;
  361. display: -ms-flexbox;
  362. display: flex;
  363. }
  364. /*--------------------
  365. Size
  366. ---------------------*/
  367. .ui.mini.input {
  368. font-size: 0.71428571em;
  369. }
  370. .ui.small.input {
  371. font-size: 0.92857143em;
  372. }
  373. .ui.input {
  374. font-size: 1em;
  375. }
  376. .ui.large.input {
  377. font-size: 1.14285714em;
  378. }
  379. .ui.big.input {
  380. font-size: 1.28571429em;
  381. }
  382. .ui.huge.input {
  383. font-size: 1.42857143em;
  384. }
  385. .ui.massive.input {
  386. font-size: 1.71428571em;
  387. }
  388. /*******************************
  389. Theme Overrides
  390. *******************************/
  391. /*******************************
  392. Site Overrides
  393. *******************************/