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.

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