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.

418 lines
10 KiB

  1. /*
  2. * # Semantic - Input
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. /*
  15. */
  16. /*******************************
  17. Folders
  18. *******************************/
  19. /* Path to theme packages */
  20. /* Path to site override folder */
  21. /*******************************
  22. Themes
  23. *******************************/
  24. /* To override a theme for an individual element
  25. specify theme name below
  26. Be sure to update the user folder name (see README)
  27. */
  28. /* Global */
  29. /* Elements */
  30. /* Collections */
  31. /* Modules */
  32. /* Views */
  33. /*******************************
  34. Import Directives
  35. *******************************/
  36. /*------------------
  37. Load Default
  38. -------------------*/
  39. /*******************************
  40. Global Variables
  41. *******************************/
  42. /*-------------------
  43. Paths
  44. --------------------*/
  45. /*-------------------
  46. Page
  47. --------------------*/
  48. /*-------------------
  49. Breakpoints
  50. --------------------*/
  51. /*-------------------
  52. Fonts
  53. --------------------*/
  54. /*-------------------
  55. Icons
  56. --------------------*/
  57. /* Max Width of Icon */
  58. /*-------------------
  59. Easing
  60. --------------------*/
  61. /*******************************
  62. BG Colors
  63. *******************************/
  64. /*******************************
  65. Colors
  66. *******************************/
  67. /*--- Colors ---*/
  68. /*--- Neutrals ---*/
  69. /*--- Text Colors ---*/
  70. /* Preserve */
  71. /* Adjust for Legibility */
  72. /*--- Backgrounds ---*/
  73. /*-------------------
  74. Emotive Colors
  75. --------------------*/
  76. /* Positive / Negative */
  77. /* Messages */
  78. /*-------------------
  79. Text Colors
  80. --------------------*/
  81. /*-------------------
  82. Brand Colors
  83. --------------------*/
  84. /*-------------------
  85. Borders
  86. --------------------*/
  87. /*-------------------
  88. Sizes
  89. --------------------*/
  90. /*-------------------
  91. Transitions
  92. --------------------*/
  93. /*******************************
  94. States
  95. *******************************/
  96. /*-------------------
  97. Disabled
  98. --------------------*/
  99. /*-------------------
  100. Hover
  101. --------------------*/
  102. /*--- Colors ---*/
  103. /*--- Emotive ---*/
  104. /*--- Neutrals ---*/
  105. /*-------------------
  106. Down (:active)
  107. --------------------*/
  108. /*--- Colors ---*/
  109. /*--- Emotive ---*/
  110. /*--- Neutrals ---*/
  111. /*-------------------
  112. Active
  113. --------------------*/
  114. /*--- Standard ---*/
  115. /*--- Emotive ---*/
  116. /*--- Neutrals ---*/
  117. /*-------------------
  118. Globals Used
  119. --------------------*/
  120. /*-------------------
  121. Element
  122. --------------------*/
  123. /*-------------------
  124. Types
  125. --------------------*/
  126. /* Icon */
  127. /* Circular Icon Input */
  128. /* Labeled */
  129. /*-------------------
  130. States
  131. --------------------*/
  132. /* Placeholder */
  133. /* Down */
  134. /* Focus */
  135. /* Error */
  136. /* Loading */
  137. /*-------------------
  138. Variations
  139. --------------------*/
  140. /* Sizing */
  141. /*------------------
  142. Load Theme
  143. -------------------*/
  144. /*------------------
  145. Load Site
  146. -------------------*/
  147. /*******************************
  148. User Global Variables
  149. *******************************/
  150. /*******************************
  151. User Variable Overrides
  152. *******************************/
  153. /*------------------
  154. Override Mix-in
  155. -------------------*/
  156. /*******************************
  157. Standard
  158. *******************************/
  159. /*--------------------
  160. Inputs
  161. ---------------------*/
  162. .ui.input {
  163. display: inline-block;
  164. position: relative;
  165. color: rgba(0, 0, 0, 0.8);
  166. }
  167. .ui.input input {
  168. width: 100%;
  169. font-family: "Helvetica Neue", "Helvetica", Arial;
  170. margin: 0em;
  171. padding: 0.65em 1em;
  172. background: #ffffff;
  173. border: 1px solid rgba(0, 0, 0, 0.15);
  174. outline: none;
  175. color: rgba(0, 0, 0, 0.8);
  176. border-radius: 0.3125em;
  177. -webkit-transition: background-color 0.3s ease-out, -webkit-box-shadow 0.2s ease, border-color 0.2s ease;
  178. transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  179. -webkit-box-shadow: none;
  180. box-shadow: none;
  181. -webkit-box-sizing: border-box;
  182. -moz-box-sizing: border-box;
  183. box-sizing: border-box;
  184. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  185. }
  186. /*--------------------
  187. Placeholder
  188. ---------------------*/
  189. /* browsers require these rules separate */
  190. .ui.input input::-webkit-input-placeholder {
  191. color: rgba(0, 0, 0, 0.4);
  192. }
  193. .ui.input input::-moz-placeholder {
  194. color: rgba(0, 0, 0, 0.4);
  195. }
  196. /*******************************
  197. States
  198. *******************************/
  199. /*--------------------
  200. Active
  201. ---------------------*/
  202. .ui.input input:active,
  203. .ui.input.down input {
  204. border-color: rgba(0, 0, 0, 0.3);
  205. background: #fafafa;
  206. color: rgba(0, 0, 0, 0.8);
  207. -webkit-box-shadow: none;
  208. box-shadow: none;
  209. }
  210. /*--------------------
  211. Loading
  212. ---------------------*/
  213. .ui.loading.input > .icon {
  214. background: url("../../themes/packages/default/assets/images/loader-mini.gif") no-repeat 50% 50%;
  215. }
  216. .ui.loading.input > .icon:before,
  217. .ui.loading.input > .icon:after {
  218. display: none;
  219. }
  220. /*--------------------
  221. Focus
  222. ---------------------*/
  223. .ui.input.focus input,
  224. .ui.input input:focus {
  225. border-color: rgba(0, 0, 0, 0.2);
  226. background: '';
  227. color: rgba(0, 0, 0, 0.8);
  228. -webkit-box-shadow: none;
  229. box-shadow: none;
  230. }
  231. .ui.input.focus input input::-webkit-input-placeholder,
  232. .ui.input input:focus input::-webkit-input-placeholder {
  233. color: rgba(0, 0, 0, 0.8);
  234. }
  235. .ui.input.focus input input::-moz-placeholder,
  236. .ui.input input:focus input::-moz-placeholder {
  237. color: rgba(0, 0, 0, 0.8);
  238. }
  239. /*--------------------
  240. Error
  241. ---------------------*/
  242. .ui.input.error input {
  243. background-color: #fffafa;
  244. border-color: #e7bebe;
  245. color: #d95c5c;
  246. -webkit-box-shadow: none;
  247. box-shadow: none;
  248. }
  249. /* Error Placeholder */
  250. .ui.input.error input ::-webkit-input-placeholder {
  251. color: rgba(255, 80, 80, 0.4);
  252. }
  253. .ui.input.error input ::-moz-placeholder {
  254. color: rgba(255, 80, 80, 0.4);
  255. }
  256. /* Focused Error Placeholder */
  257. .ui.input.error input :focus::-webkit-input-placeholder {
  258. color: rgba(255, 80, 80, 0.7);
  259. }
  260. .ui.input.error input :focus::-moz-placeholder {
  261. color: rgba(255, 80, 80, 0.7);
  262. }
  263. /*******************************
  264. Variations
  265. *******************************/
  266. /*--------------------
  267. Transparent
  268. ---------------------*/
  269. .ui.transparent.input input {
  270. border: none;
  271. background-color: transparent;
  272. padding-left: 0em;
  273. padding-right: 0em;
  274. }
  275. /*--------------------
  276. Icon
  277. ---------------------*/
  278. .ui.icon.input > .icon {
  279. cursor: default;
  280. position: absolute;
  281. opacity: 0.5;
  282. top: 0px;
  283. right: 0px;
  284. margin: 0em;
  285. width: 2.8em;
  286. height: 100%;
  287. padding-top: 0.82em;
  288. text-align: center;
  289. border-radius: 0em 0.3125em 0.3125em 0em;
  290. -webkit-box-sizing: border-box;
  291. -moz-box-sizing: border-box;
  292. box-sizing: border-box;
  293. -webkit-transition: opacity 0.3s ease-out;
  294. transition: opacity 0.3s ease-out;
  295. }
  296. .ui.icon.input > .link.icon {
  297. cursor: pointer;
  298. }
  299. .ui.icon.input input {
  300. padding-right: 2.75em !important;
  301. }
  302. .ui.icon.input > .circular.icon {
  303. top: 0.35em;
  304. right: 0.5em;
  305. }
  306. /* Left Icon Input */
  307. .ui.left.icon.input > .icon {
  308. right: auto;
  309. left: 1px;
  310. border-radius: 0.3125em 0em 0em 0.3125em;
  311. }
  312. .ui.left.icon.input > .circular.icon {
  313. right: auto;
  314. left: 0.5em;
  315. }
  316. .ui.left.icon.input > input {
  317. padding-left: 2.75em !important;
  318. padding-right: 1em !important;
  319. }
  320. /* Focus */
  321. .ui.icon.input > input:focus ~ .icon {
  322. opacity: 1;
  323. }
  324. /*--------------------
  325. Labeled
  326. ---------------------*/
  327. .ui.labeled.input .corner.label {
  328. top: 1px;
  329. right: 1px;
  330. font-size: 0.7em;
  331. border-top-right-radius: 0.3125em;
  332. }
  333. .ui.labeled.input input {
  334. padding-right: 2.5em !important;
  335. }
  336. /* Spacing with corner label */
  337. .ui.labeled.icon.input:not(.left) > input {
  338. padding-right: 3.25em !important;
  339. }
  340. .ui.labeled.icon.input:not(.left) > .icon {
  341. margin-right: 1.25em;
  342. }
  343. /*--------------------
  344. Action
  345. ---------------------*/
  346. .ui.action.input {
  347. display: table;
  348. }
  349. .ui.action.input > input {
  350. display: table-cell;
  351. border-top-right-radius: 0px !important;
  352. border-bottom-right-radius: 0px !important;
  353. border-right: none;
  354. }
  355. .ui.action.input > .button,
  356. .ui.action.input > .buttons {
  357. display: table-cell;
  358. border-top-left-radius: 0px;
  359. border-bottom-left-radius: 0px;
  360. white-space: nowrap;
  361. }
  362. .ui.action.input > .button > .icon,
  363. .ui.action.input > .buttons > .button > .icon {
  364. display: inline;
  365. vertical-align: top;
  366. }
  367. .ui.fluid.action.input {
  368. display: table;
  369. width: 100%;
  370. }
  371. .ui.fluid.action.input > .button {
  372. width: 0.01%;
  373. }
  374. /*--------------------
  375. Fluid
  376. ---------------------*/
  377. .ui.fluid.input {
  378. display: block;
  379. }
  380. /*--------------------
  381. Size
  382. ---------------------*/
  383. .ui.mini.input {
  384. font-size: 0.8125em;
  385. }
  386. .ui.small.input {
  387. font-size: 0.875em;
  388. }
  389. .ui.input {
  390. font-size: 1em;
  391. }
  392. .ui.large.input {
  393. font-size: 1.125em;
  394. }
  395. .ui.big.input {
  396. font-size: 1.25em;
  397. }
  398. .ui.huge.input {
  399. font-size: 1.375em;
  400. }
  401. .ui.massive.input {
  402. font-size: 1.5rem;
  403. }
  404. /*******************************
  405. Overrides
  406. *******************************/
  407. /*******************************
  408. Overrides
  409. *******************************/