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.

443 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
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. /*--- Light Colors ---*/
  53. /*-------------------
  54. Page
  55. --------------------*/
  56. /*-------------------
  57. Background Colors
  58. --------------------*/
  59. /* Used for differentiating neutrals */
  60. /* Used for differentiating layers */
  61. /*-------------------
  62. Grid
  63. --------------------*/
  64. /*-------------------
  65. Breakpoints
  66. --------------------*/
  67. /*******************************
  68. Power-User
  69. *******************************/
  70. /*-------------------
  71. Icons
  72. --------------------*/
  73. /* Max Width of Icon */
  74. /*-------------------
  75. Easing
  76. --------------------*/
  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: "Helvetica Neue", "Helvetica", Arial;
  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.325em;
  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. text-align: center;
  295. border-radius: 0em 0.325em 0.325em 0em;
  296. box-sizing: border-box;
  297. -webkit-transition: opacity 0.3s ease;
  298. transition: opacity 0.3s ease;
  299. }
  300. .ui.icon.input > .icon:before,
  301. .ui.icon.input > .icon:after {
  302. left: 0;
  303. position: absolute;
  304. text-align: center;
  305. top: 50%;
  306. width: 100%;
  307. margin-top: -0.5em;
  308. }
  309. .ui.icon.input > .link.icon {
  310. cursor: pointer;
  311. }
  312. .ui.icon.input input {
  313. padding-right: 2.85em !important;
  314. }
  315. .ui.icon.input > .circular.icon {
  316. top: 0.35em;
  317. right: 0.5em;
  318. }
  319. /* Left Icon Input */
  320. .ui.left.icon.input > .icon {
  321. right: auto;
  322. left: 1px;
  323. border-radius: 0.325em 0em 0em 0.325em;
  324. }
  325. .ui.left.icon.input > .circular.icon {
  326. right: auto;
  327. left: 0.5em;
  328. }
  329. .ui.left.icon.input > input {
  330. padding-left: 2.85em !important;
  331. padding-right: 1em !important;
  332. }
  333. /* Transparent Icon */
  334. .ui.transparent.icon.input > .icon {
  335. width: 1.25em;
  336. }
  337. .ui.transparent.icon.input > input {
  338. padding-left: 0em !important;
  339. padding-right: 1.75em !important;
  340. }
  341. .ui.transparent.left.icon.input > input {
  342. padding-left: 0em !important;
  343. padding-left: 1.75em !important;
  344. }
  345. /* Focus */
  346. .ui.icon.input > input:focus ~ .icon {
  347. opacity: 1;
  348. }
  349. /*--------------------
  350. Labeled
  351. ---------------------*/
  352. .ui.labeled.input .corner.label {
  353. top: 1px;
  354. right: 1px;
  355. font-size: 0.75em;
  356. border-radius: 0em 0.325em 0em 0em;
  357. }
  358. .ui.labeled.input input {
  359. padding-right: 2.5em !important;
  360. }
  361. /* Spacing with corner label */
  362. .ui.labeled.icon.input:not(.left) > input {
  363. padding-right: 3.25em !important;
  364. }
  365. .ui.labeled.icon.input:not(.left) > .icon {
  366. margin-right: 1.25em;
  367. }
  368. /*--------------------
  369. Action
  370. ---------------------*/
  371. .ui.action.input {
  372. display: table;
  373. }
  374. .ui.action.input > input {
  375. display: table-cell;
  376. border-top-right-radius: 0px !important;
  377. border-bottom-right-radius: 0px !important;
  378. border-right: none;
  379. }
  380. .ui.action.input > .button,
  381. .ui.action.input > .buttons {
  382. display: table-cell;
  383. border-top-left-radius: 0px;
  384. border-bottom-left-radius: 0px;
  385. white-space: nowrap;
  386. }
  387. .ui.action.input > .button > .icon,
  388. .ui.action.input > .buttons > .button > .icon {
  389. display: inline;
  390. vertical-align: top;
  391. }
  392. .ui.fluid.action.input {
  393. display: table;
  394. width: 100%;
  395. }
  396. .ui.fluid.action.input > .button {
  397. width: 0.01%;
  398. }
  399. /*--------------------
  400. Fluid
  401. ---------------------*/
  402. .ui.fluid.input {
  403. display: block;
  404. }
  405. /*--------------------
  406. Size
  407. ---------------------*/
  408. .ui.mini.input {
  409. font-size: 0.8125em;
  410. }
  411. .ui.small.input {
  412. font-size: 0.875em;
  413. }
  414. .ui.input {
  415. font-size: 1em;
  416. }
  417. .ui.large.input {
  418. font-size: 1.125em;
  419. }
  420. .ui.big.input {
  421. font-size: 1.25em;
  422. }
  423. .ui.huge.input {
  424. font-size: 1.375em;
  425. }
  426. .ui.massive.input {
  427. font-size: 1.5rem;
  428. }
  429. /*******************************
  430. Overrides
  431. *******************************/
  432. /*******************************
  433. Overrides
  434. *******************************/