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.

454 lines
9.5 KiB

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