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.

448 lines
9.3 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
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
9 years ago
10 years ago
9 years ago
10 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
9 years ago
10 years ago
9 years ago
10 years ago
  1. /*!
  2. * # Semantic UI 1.12.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(39, 41, 43, 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;
  149. background-color: transparent;
  150. padding: 0em;
  151. }
  152. /* Transparent Icon */
  153. .ui.transparent.icon.input > i.icon {
  154. width: 1.25em;
  155. }
  156. .ui.transparent.icon.input > input {
  157. padding-left: 0em !important;
  158. padding-right: 2em !important;
  159. }
  160. .ui.transparent[class*="left icon"].input > input {
  161. padding-left: 0em !important;
  162. padding-left: 2em !important;
  163. }
  164. /* Transparent Inverted */
  165. .ui.transparent.inverted.input input::-moz-placeholder {
  166. color: rgba(255, 255, 255, 0.5);
  167. }
  168. .ui.transparent.inverted.input {
  169. color: #ffffff;
  170. }
  171. .ui.transparent.inverted.input input {
  172. color: inherit;
  173. }
  174. /*--------------------
  175. Icon
  176. ---------------------*/
  177. .ui.icon.input > i.icon {
  178. cursor: default;
  179. position: absolute;
  180. text-align: center;
  181. top: 0px;
  182. right: 0px;
  183. margin: 0em;
  184. height: 100%;
  185. width: 2.82142em;
  186. opacity: 0.5;
  187. border-radius: 0em 0.2857rem 0.2857rem 0em;
  188. -webkit-transition: opacity 0.3s ease;
  189. transition: opacity 0.3s ease;
  190. }
  191. .ui.icon.input input {
  192. padding-right: 2.82142em !important;
  193. }
  194. .ui.icon.input > i.icon:before,
  195. .ui.icon.input > i.icon:after {
  196. left: 0;
  197. position: absolute;
  198. text-align: center;
  199. top: 50%;
  200. width: 100%;
  201. margin-top: -0.5em;
  202. }
  203. .ui.icon.input > i.link.icon {
  204. cursor: pointer;
  205. }
  206. .ui.icon.input > i.circular.icon {
  207. top: 0.35em;
  208. right: 0.5em;
  209. }
  210. /* Left Icon Input */
  211. .ui[class*="left icon"].input > i.icon {
  212. right: auto;
  213. left: 1px;
  214. border-radius: 0.2857rem 0em 0em 0.2857rem;
  215. }
  216. .ui[class*="left icon"].input > i.circular.icon {
  217. right: auto;
  218. left: 0.5em;
  219. }
  220. .ui[class*="left icon"].input > input {
  221. padding-left: 2.82142em !important;
  222. padding-right: 1em !important;
  223. }
  224. /* Focus */
  225. .ui.icon.input > input:focus ~ i.icon {
  226. opacity: 1;
  227. }
  228. /*--------------------
  229. Labeled
  230. ---------------------*/
  231. /* Adjacent Label */
  232. .ui.labeled.input {
  233. display: -webkit-inline-box;
  234. display: -webkit-inline-flex;
  235. display: -ms-inline-flexbox;
  236. display: inline-flex;
  237. }
  238. .ui.labeled.input > .label {
  239. -webkit-box-flex: 0;
  240. -webkit-flex-grow: 0;
  241. -ms-flex-positive: 0;
  242. flex-grow: 0;
  243. margin: 0;
  244. font-size: 1em;
  245. }
  246. .ui.labeled.input > .label:not(.corner) {
  247. padding-top: 0.78571em;
  248. padding-bottom: 0.78571em;
  249. }
  250. /* Fluid Labeled */
  251. .ui.fluid.labeled.input {
  252. display: -webkit-box;
  253. display: -webkit-flex;
  254. display: -ms-flexbox;
  255. display: flex;
  256. }
  257. /* Label on Left */
  258. .ui.labeled.input:not([class*="corner labeled"]):not([class*="right labeled"]) > input {
  259. border-left: none;
  260. border-top-left-radius: 0px;
  261. border-bottom-left-radius: 0px;
  262. }
  263. .ui.labeled.input:not([class*="corner labeled"]):not([class*="right labeled"]) > .label {
  264. border-top-right-radius: 0px;
  265. border-bottom-right-radius: 0px;
  266. }
  267. /* Label on Right */
  268. .ui[class*="right labeled"].input > input {
  269. border-right: none;
  270. border-top-right-radius: 0px !important;
  271. border-bottom-right-radius: 0px !important;
  272. }
  273. .ui[class*="right labeled"].input > .label {
  274. border-top-left-radius: 0px;
  275. border-bottom-left-radius: 0px;
  276. }
  277. /* Corner Label */
  278. .ui.labeled.input .corner.label {
  279. top: 1px;
  280. right: 1px;
  281. font-size: 0.75em;
  282. border-radius: 0em 0.2857rem 0em 0em;
  283. }
  284. .ui.labeled.input input {
  285. padding-right: 2.5em !important;
  286. }
  287. /* Spacing with corner label */
  288. .ui[class*="corner labeled"].icon.input:not(.left) > input {
  289. padding-right: 3.25em !important;
  290. }
  291. .ui[class*="corner labeled"].icon.input:not(.left) > .icon {
  292. margin-right: 1.25em;
  293. }
  294. /*--------------------
  295. Action
  296. ---------------------*/
  297. .ui.action.input {
  298. display: -webkit-inline-box;
  299. display: -webkit-inline-flex;
  300. display: -ms-inline-flexbox;
  301. display: inline-flex;
  302. }
  303. .ui.action.input > .button,
  304. .ui.action.input > .buttons {
  305. -webkit-box-flex: 0;
  306. -webkit-flex-grow: 0;
  307. -ms-flex-positive: 0;
  308. flex-grow: 0;
  309. }
  310. .ui.action.input > .button,
  311. .ui.action.input > .buttons > .button {
  312. padding-top: 0.78571em;
  313. padding-bottom: 0.78571em;
  314. margin: 0;
  315. }
  316. /* Fluid */
  317. .ui.fluid.action.input {
  318. display: -webkit-box;
  319. display: -webkit-flex;
  320. display: -ms-flexbox;
  321. display: flex;
  322. }
  323. /* Button on Right */
  324. .ui.action.input:not([class*="left action"]) > input {
  325. border-right: none;
  326. border-top-right-radius: 0px !important;
  327. border-bottom-right-radius: 0px !important;
  328. }
  329. .ui.action.input:not([class*="left action"]) > .button,
  330. .ui.action.input:not([class*="left action"]) > .buttons > .button {
  331. border-top-left-radius: 0px;
  332. border-bottom-left-radius: 0px;
  333. }
  334. /* Button on Left */
  335. .ui[class*="left action"].input > .button,
  336. .ui[class*="left action"].input > .buttons > .button {
  337. border-top-right-radius: 0px;
  338. border-bottom-right-radius: 0px;
  339. }
  340. .ui[class*="left action"].input > input {
  341. border-left: none;
  342. border-top-left-radius: 0px;
  343. border-bottom-left-radius: 0px;
  344. }
  345. /*--------------------
  346. Inverted
  347. ---------------------*/
  348. /* Standard */
  349. .ui.inverted.input input {
  350. border: none;
  351. }
  352. /*--------------------
  353. Fluid
  354. ---------------------*/
  355. .ui.fluid.input {
  356. display: -webkit-box;
  357. display: -webkit-flex;
  358. display: -ms-flexbox;
  359. display: flex;
  360. }
  361. /*--------------------
  362. Size
  363. ---------------------*/
  364. .ui.mini.input {
  365. font-size: 0.8125rem;
  366. }
  367. .ui.small.input {
  368. font-size: 0.875rem;
  369. }
  370. .ui.input {
  371. font-size: 1rem;
  372. }
  373. .ui.large.input {
  374. font-size: 1.125rem;
  375. }
  376. .ui.big.input {
  377. font-size: 1.25rem;
  378. }
  379. .ui.huge.input {
  380. font-size: 1.375rem;
  381. }
  382. .ui.massive.input {
  383. font-size: 1.5rem;
  384. }
  385. /*******************************
  386. Theme Overrides
  387. *******************************/
  388. /*******************************
  389. Site Overrides
  390. *******************************/