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.

444 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
  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 Defaults
  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. /* Used to match floats with text */
  57. /*-------------------
  58. Background Colors
  59. --------------------*/
  60. /* Used for differentiating neutrals */
  61. /* Used for differentiating layers */
  62. /*-------------------
  63. Grid
  64. --------------------*/
  65. /*-------------------
  66. Breakpoints
  67. --------------------*/
  68. /*******************************
  69. Power-User
  70. *******************************/
  71. /*-------------------
  72. Icons
  73. --------------------*/
  74. /* Max Width of Icon */
  75. /*-------------------
  76. Easing
  77. --------------------*/
  78. /*--- Neutrals ---*/
  79. /*--- Colored Backgrounds ---*/
  80. /*--- Colored Text ---*/
  81. /*--- Colored Headers ---*/
  82. /*-------------------
  83. Emotive Colors
  84. --------------------*/
  85. /* Mood */
  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 Loader
  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. text-align: left;
  185. line-height: 1.2em;
  186. font-family: "Helvetica Neue", "Helvetica", Arial;
  187. padding: 0.7em 1em;
  188. background: #ffffff;
  189. border: 1px solid rgba(0, 0, 0, 0.15);
  190. color: rgba(0, 0, 0, 0.8);
  191. border-radius: 0.325em;
  192. -webkit-transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  193. transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  194. box-shadow: none;
  195. box-sizing: border-box;
  196. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  197. }
  198. /*--------------------
  199. Placeholder
  200. ---------------------*/
  201. /* browsers require these rules separate */
  202. .ui.input input::-webkit-input-placeholder {
  203. color: rgba(0, 0, 0, 0.4);
  204. }
  205. .ui.input input::-moz-placeholder {
  206. color: rgba(0, 0, 0, 0.4);
  207. }
  208. /*******************************
  209. States
  210. *******************************/
  211. /*--------------------
  212. Active
  213. ---------------------*/
  214. .ui.input input:active,
  215. .ui.input.down input {
  216. border-color: rgba(0, 0, 0, 0.3);
  217. background: #fafafa;
  218. color: rgba(0, 0, 0, 0.8);
  219. box-shadow: none;
  220. }
  221. /*--------------------
  222. Loading
  223. ---------------------*/
  224. .ui.loading.input > .icon {
  225. background: url("../../themes/packages/default/assets/images/loader-mini.gif") no-repeat 50% 50%;
  226. }
  227. .ui.loading.input > .icon:before,
  228. .ui.loading.input > .icon:after {
  229. display: none;
  230. }
  231. /*--------------------
  232. Focus
  233. ---------------------*/
  234. .ui.input.focus input,
  235. .ui.input input:focus {
  236. border-color: rgba(0, 0, 0, 0.2);
  237. background: '';
  238. color: rgba(0, 0, 0, 0.8);
  239. box-shadow: none;
  240. }
  241. .ui.input.focus input input::-webkit-input-placeholder,
  242. .ui.input input:focus input::-webkit-input-placeholder {
  243. color: rgba(0, 0, 0, 0.8);
  244. }
  245. .ui.input.focus input input::-moz-placeholder,
  246. .ui.input input:focus input::-moz-placeholder {
  247. color: rgba(0, 0, 0, 0.8);
  248. }
  249. /*--------------------
  250. Error
  251. ---------------------*/
  252. .ui.input.error input {
  253. background-color: #fffafa;
  254. border-color: #e7bebe;
  255. color: #d95c5c;
  256. box-shadow: none;
  257. }
  258. /* Error Placeholder */
  259. .ui.input.error input ::-webkit-input-placeholder {
  260. color: rgba(255, 80, 80, 0.4);
  261. }
  262. .ui.input.error input ::-moz-placeholder {
  263. color: rgba(255, 80, 80, 0.4);
  264. }
  265. /* Focused Error Placeholder */
  266. .ui.input.error input :focus::-webkit-input-placeholder {
  267. color: rgba(255, 80, 80, 0.7);
  268. }
  269. .ui.input.error input :focus::-moz-placeholder {
  270. color: rgba(255, 80, 80, 0.7);
  271. }
  272. /*******************************
  273. Variations
  274. *******************************/
  275. /*--------------------
  276. Transparent
  277. ---------------------*/
  278. .ui.transparent.input input {
  279. border-color: transparent;
  280. background-color: transparent;
  281. padding: 0em;
  282. }
  283. /*--------------------
  284. Icon
  285. ---------------------*/
  286. .ui.icon.input > .icon {
  287. cursor: default;
  288. position: absolute;
  289. opacity: 0.5;
  290. top: 0px;
  291. right: 0px;
  292. margin: 0em;
  293. width: 2.85em;
  294. height: 100%;
  295. text-align: center;
  296. border-radius: 0em 0.325em 0.325em 0em;
  297. box-sizing: border-box;
  298. -webkit-transition: opacity 0.3s ease;
  299. transition: opacity 0.3s ease;
  300. }
  301. .ui.icon.input > .icon:before,
  302. .ui.icon.input > .icon:after {
  303. left: 0;
  304. position: absolute;
  305. text-align: center;
  306. top: 50%;
  307. width: 100%;
  308. margin-top: -0.5em;
  309. }
  310. .ui.icon.input > .link.icon {
  311. cursor: pointer;
  312. }
  313. .ui.icon.input input {
  314. padding-right: 2.85em !important;
  315. }
  316. .ui.icon.input > .circular.icon {
  317. top: 0.35em;
  318. right: 0.5em;
  319. }
  320. /* Left Icon Input */
  321. .ui.left.icon.input > .icon {
  322. right: auto;
  323. left: 1px;
  324. border-radius: 0.325em 0em 0em 0.325em;
  325. }
  326. .ui.left.icon.input > .circular.icon {
  327. right: auto;
  328. left: 0.5em;
  329. }
  330. .ui.left.icon.input > input {
  331. padding-left: 2.85em !important;
  332. padding-right: 1em !important;
  333. }
  334. /* Transparent Icon */
  335. .ui.transparent.icon.input > .icon {
  336. width: 1.25em;
  337. }
  338. .ui.transparent.icon.input > input {
  339. padding-left: 0em !important;
  340. padding-right: 1.75em !important;
  341. }
  342. .ui.transparent.left.icon.input > input {
  343. padding-left: 0em !important;
  344. padding-left: 1.75em !important;
  345. }
  346. /* Focus */
  347. .ui.icon.input > input:focus ~ .icon {
  348. opacity: 1;
  349. }
  350. /*--------------------
  351. Labeled
  352. ---------------------*/
  353. .ui.labeled.input .corner.label {
  354. top: 1px;
  355. right: 1px;
  356. font-size: 0.75em;
  357. border-radius: 0em 0.325em 0em 0em;
  358. }
  359. .ui.labeled.input input {
  360. padding-right: 2.5em !important;
  361. }
  362. /* Spacing with corner label */
  363. .ui.labeled.icon.input:not(.left) > input {
  364. padding-right: 3.25em !important;
  365. }
  366. .ui.labeled.icon.input:not(.left) > .icon {
  367. margin-right: 1.25em;
  368. }
  369. /*--------------------
  370. Action
  371. ---------------------*/
  372. .ui.action.input {
  373. display: table;
  374. }
  375. .ui.action.input > input {
  376. display: table-cell;
  377. border-top-right-radius: 0px !important;
  378. border-bottom-right-radius: 0px !important;
  379. border-right: none;
  380. }
  381. .ui.action.input > .button,
  382. .ui.action.input > .buttons {
  383. display: table-cell;
  384. border-top-left-radius: 0px;
  385. border-bottom-left-radius: 0px;
  386. white-space: nowrap;
  387. }
  388. .ui.action.input > .button > .icon,
  389. .ui.action.input > .buttons > .button > .icon {
  390. display: inline;
  391. vertical-align: top;
  392. }
  393. .ui.fluid.action.input {
  394. display: table;
  395. width: 100%;
  396. }
  397. .ui.fluid.action.input > .button {
  398. width: 0.01%;
  399. }
  400. /*--------------------
  401. Fluid
  402. ---------------------*/
  403. .ui.fluid.input {
  404. display: block;
  405. }
  406. /*--------------------
  407. Size
  408. ---------------------*/
  409. .ui.mini.input {
  410. font-size: 0.8125em;
  411. }
  412. .ui.small.input {
  413. font-size: 0.875em;
  414. }
  415. .ui.input {
  416. font-size: 1em;
  417. }
  418. .ui.large.input {
  419. font-size: 1.125em;
  420. }
  421. .ui.big.input {
  422. font-size: 1.25em;
  423. }
  424. .ui.huge.input {
  425. font-size: 1.375em;
  426. }
  427. .ui.massive.input {
  428. font-size: 1.5rem;
  429. }
  430. /*******************************
  431. Overrides
  432. *******************************/
  433. /*******************************
  434. Overrides
  435. *******************************/