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.

429 lines
9.1 KiB

9 years ago
9 years ago
9 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
10 years ago
10 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
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. -webkit-box-flex: 1;
  28. -webkit-flex: 1 0 auto;
  29. -ms-flex: 1 0 auto;
  30. flex: 1 0 auto;
  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: #e0b4b4;
  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 > .label {
  234. -webkit-box-flex: 0;
  235. -webkit-flex: 0 0 auto;
  236. -ms-flex: 0 0 auto;
  237. flex: 0 0 auto;
  238. margin: 0;
  239. font-size: 1rem;
  240. }
  241. .ui.labeled.input > .label:not(.corner) {
  242. padding-top: 0.78571em;
  243. padding-bottom: 0.78571em;
  244. }
  245. /* Label on Left */
  246. .ui.labeled.input:not([class*="corner labeled"]):not([class*="right labeled"]) > input {
  247. border-left: none;
  248. border-top-left-radius: 0px;
  249. border-bottom-left-radius: 0px;
  250. }
  251. .ui.labeled.input:not([class*="corner labeled"]):not([class*="right labeled"]) > .label {
  252. border-top-right-radius: 0px;
  253. border-bottom-right-radius: 0px;
  254. }
  255. /* Label on Right */
  256. .ui[class*="right labeled"].input > input {
  257. border-right: none;
  258. border-top-right-radius: 0px !important;
  259. border-bottom-right-radius: 0px !important;
  260. }
  261. .ui[class*="right labeled"].input > .label {
  262. border-top-left-radius: 0px;
  263. border-bottom-left-radius: 0px;
  264. }
  265. /* Corner Label */
  266. .ui.labeled.input .corner.label {
  267. top: 1px;
  268. right: 1px;
  269. font-size: 0.75em;
  270. border-radius: 0em 0.2857rem 0em 0em;
  271. }
  272. .ui.labeled.input input {
  273. padding-right: 2.5em !important;
  274. }
  275. /* Spacing with corner label */
  276. .ui[class*="corner labeled"].icon.input:not(.left) > input {
  277. padding-right: 3.25em !important;
  278. }
  279. .ui[class*="corner labeled"].icon.input:not(.left) > .icon {
  280. margin-right: 1.25em;
  281. }
  282. /*--------------------
  283. Action
  284. ---------------------*/
  285. .ui.action.input > .button,
  286. .ui.action.input > .buttons {
  287. display: -webkit-box;
  288. display: -webkit-flex;
  289. display: -ms-flexbox;
  290. display: flex;
  291. -webkit-box-align: center;
  292. -webkit-align-items: center;
  293. -ms-flex-align: center;
  294. align-items: center;
  295. -webkit-box-flex: 0;
  296. -webkit-flex: 0 0 auto;
  297. -ms-flex: 0 0 auto;
  298. flex: 0 0 auto;
  299. }
  300. .ui.action.input > .button,
  301. .ui.action.input > .buttons > .button {
  302. padding-top: 0.78571em;
  303. padding-bottom: 0.78571em;
  304. margin: 0;
  305. }
  306. /* Button on Right */
  307. .ui.action.input:not([class*="left action"]) > input {
  308. border-right: none;
  309. border-top-right-radius: 0px !important;
  310. border-bottom-right-radius: 0px !important;
  311. }
  312. .ui.action.input:not([class*="left action"]) > .button,
  313. .ui.action.input:not([class*="left action"]) > .buttons > .button {
  314. border-top-left-radius: 0px;
  315. border-bottom-left-radius: 0px;
  316. }
  317. /* Button on Left */
  318. .ui[class*="left action"].input > .button,
  319. .ui[class*="left action"].input > .buttons > .button {
  320. border-top-right-radius: 0px;
  321. border-bottom-right-radius: 0px;
  322. }
  323. .ui[class*="left action"].input > input {
  324. border-left: none;
  325. border-top-left-radius: 0px;
  326. border-bottom-left-radius: 0px;
  327. }
  328. /*--------------------
  329. Inverted
  330. ---------------------*/
  331. /* Standard */
  332. .ui.inverted.input input {
  333. border: none;
  334. }
  335. /*--------------------
  336. Fluid
  337. ---------------------*/
  338. .ui.fluid.input {
  339. display: -webkit-box;
  340. display: -webkit-flex;
  341. display: -ms-flexbox;
  342. display: flex;
  343. }
  344. /*--------------------
  345. Size
  346. ---------------------*/
  347. .ui.mini.input {
  348. font-size: 0.71428571em;
  349. }
  350. .ui.small.input {
  351. font-size: 0.92857143em;
  352. }
  353. .ui.input {
  354. font-size: 1em;
  355. }
  356. .ui.large.input {
  357. font-size: 1.14285714em;
  358. }
  359. .ui.big.input {
  360. font-size: 1.28571429em;
  361. }
  362. .ui.huge.input {
  363. font-size: 1.42857143em;
  364. }
  365. .ui.massive.input {
  366. font-size: 1.71428571em;
  367. }
  368. /*******************************
  369. Theme Overrides
  370. *******************************/
  371. /*******************************
  372. Site Overrides
  373. *******************************/