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.

419 lines
10 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 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. Site 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. Input
  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. box-sizing: border-box;
  186. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  187. }
  188. /*--------------------
  189. Placeholder
  190. ---------------------*/
  191. /* browsers require these rules separate */
  192. .ui.input input::-webkit-input-placeholder {
  193. color: rgba(0, 0, 0, 0.4);
  194. }
  195. .ui.input input::-moz-placeholder {
  196. color: rgba(0, 0, 0, 0.4);
  197. }
  198. /*******************************
  199. States
  200. *******************************/
  201. /*--------------------
  202. Active
  203. ---------------------*/
  204. .ui.input input:active,
  205. .ui.input.down input {
  206. border-color: rgba(0, 0, 0, 0.3);
  207. background: #fafafa;
  208. color: rgba(0, 0, 0, 0.8);
  209. -webkit-box-shadow: none;
  210. box-shadow: none;
  211. }
  212. /*--------------------
  213. Loading
  214. ---------------------*/
  215. .ui.loading.input > .icon {
  216. background: url("../../themes/packages/default/assets/images/loader-mini.gif") no-repeat 50% 50%;
  217. }
  218. .ui.loading.input > .icon:before,
  219. .ui.loading.input > .icon:after {
  220. display: none;
  221. }
  222. /*--------------------
  223. Focus
  224. ---------------------*/
  225. .ui.input.focus input,
  226. .ui.input input:focus {
  227. border-color: rgba(0, 0, 0, 0.2);
  228. background: '';
  229. color: rgba(0, 0, 0, 0.8);
  230. -webkit-box-shadow: none;
  231. box-shadow: none;
  232. }
  233. .ui.input.focus input input::-webkit-input-placeholder,
  234. .ui.input input:focus input::-webkit-input-placeholder {
  235. color: rgba(0, 0, 0, 0.8);
  236. }
  237. .ui.input.focus input input::-moz-placeholder,
  238. .ui.input input:focus input::-moz-placeholder {
  239. color: rgba(0, 0, 0, 0.8);
  240. }
  241. /*--------------------
  242. Error
  243. ---------------------*/
  244. .ui.input.error input {
  245. background-color: #fffafa;
  246. border-color: #e7bebe;
  247. color: #d95c5c;
  248. -webkit-box-shadow: none;
  249. box-shadow: none;
  250. }
  251. /* Error Placeholder */
  252. .ui.input.error input ::-webkit-input-placeholder {
  253. color: rgba(255, 80, 80, 0.4);
  254. }
  255. .ui.input.error input ::-moz-placeholder {
  256. color: rgba(255, 80, 80, 0.4);
  257. }
  258. /* Focused Error Placeholder */
  259. .ui.input.error input :focus::-webkit-input-placeholder {
  260. color: rgba(255, 80, 80, 0.7);
  261. }
  262. .ui.input.error input :focus::-moz-placeholder {
  263. color: rgba(255, 80, 80, 0.7);
  264. }
  265. /*******************************
  266. Variations
  267. *******************************/
  268. /*--------------------
  269. Transparent
  270. ---------------------*/
  271. .ui.transparent.input input {
  272. border: none;
  273. background-color: transparent;
  274. padding-left: 0em;
  275. padding-right: 0em;
  276. }
  277. /*--------------------
  278. Icon
  279. ---------------------*/
  280. .ui.icon.input > .icon {
  281. cursor: default;
  282. position: absolute;
  283. opacity: 0.5;
  284. top: 0px;
  285. right: 0px;
  286. margin: 0em;
  287. width: 2.8em;
  288. height: 100%;
  289. padding-top: 0.82em;
  290. text-align: center;
  291. border-radius: 0em 0.3125em 0.3125em 0em;
  292. -webkit-box-sizing: border-box;
  293. box-sizing: border-box;
  294. -webkit-transition: opacity 0.3s ease-out;
  295. transition: opacity 0.3s ease-out;
  296. }
  297. .ui.icon.input > .link.icon {
  298. cursor: pointer;
  299. }
  300. .ui.icon.input input {
  301. padding-right: 2.75em !important;
  302. }
  303. .ui.icon.input > .circular.icon {
  304. top: 0.35em;
  305. right: 0.5em;
  306. }
  307. /* Left Icon Input */
  308. .ui.left.icon.input > .icon {
  309. right: auto;
  310. left: 1px;
  311. border-radius: 0.3125em 0em 0em 0.3125em;
  312. }
  313. .ui.left.icon.input > .circular.icon {
  314. right: auto;
  315. left: 0.5em;
  316. }
  317. .ui.left.icon.input > input {
  318. padding-left: 2.75em !important;
  319. padding-right: 1em !important;
  320. }
  321. /* Focus */
  322. .ui.icon.input > input:focus ~ .icon {
  323. opacity: 1;
  324. }
  325. /*--------------------
  326. Labeled
  327. ---------------------*/
  328. .ui.labeled.input .corner.label {
  329. top: 1px;
  330. right: 1px;
  331. font-size: 0.7em;
  332. border-top-right-radius: 0.3125em;
  333. }
  334. .ui.labeled.input input {
  335. padding-right: 2.5em !important;
  336. }
  337. /* Spacing with corner label */
  338. .ui.labeled.icon.input:not(.left) > input {
  339. padding-right: 3.25em !important;
  340. }
  341. .ui.labeled.icon.input:not(.left) > .icon {
  342. margin-right: 1.25em;
  343. }
  344. /*--------------------
  345. Action
  346. ---------------------*/
  347. .ui.action.input {
  348. display: table;
  349. }
  350. .ui.action.input > input {
  351. display: table-cell;
  352. border-top-right-radius: 0px !important;
  353. border-bottom-right-radius: 0px !important;
  354. border-right: none;
  355. }
  356. .ui.action.input > .button,
  357. .ui.action.input > .buttons {
  358. display: table-cell;
  359. border-top-left-radius: 0px;
  360. border-bottom-left-radius: 0px;
  361. white-space: nowrap;
  362. }
  363. .ui.action.input > .button > .icon,
  364. .ui.action.input > .buttons > .button > .icon {
  365. display: inline;
  366. vertical-align: top;
  367. }
  368. .ui.fluid.action.input {
  369. display: table;
  370. width: 100%;
  371. }
  372. .ui.fluid.action.input > .button {
  373. width: 0.01%;
  374. }
  375. /*--------------------
  376. Fluid
  377. ---------------------*/
  378. .ui.fluid.input {
  379. display: block;
  380. }
  381. /*--------------------
  382. Size
  383. ---------------------*/
  384. .ui.mini.input {
  385. font-size: 0.8125em;
  386. }
  387. .ui.small.input {
  388. font-size: 0.875em;
  389. }
  390. .ui.input {
  391. font-size: 1em;
  392. }
  393. .ui.large.input {
  394. font-size: 1.125em;
  395. }
  396. .ui.big.input {
  397. font-size: 1.25em;
  398. }
  399. .ui.huge.input {
  400. font-size: 1.375em;
  401. }
  402. .ui.massive.input {
  403. font-size: 1.5rem;
  404. }
  405. /*******************************
  406. Overrides
  407. *******************************/
  408. /*******************************
  409. Overrides
  410. *******************************/