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.

421 lines
10 KiB

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