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.

436 lines
11 KiB

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