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.

500 lines
8.5 KiB

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