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.

403 lines
8.1 KiB

10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic UI
  3. * git://github.com/Semantic-Org/Semantic-UI.git#1.0
  4. *
  5. *
  6. * Copyright 2014 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Standard
  13. *******************************/
  14. /*--------------------
  15. Inputs
  16. ---------------------*/
  17. .ui.input {
  18. display: inline-block;
  19. position: relative;
  20. color: rgba(0, 0, 0, 0.8);
  21. }
  22. .ui.input input {
  23. margin: 0em;
  24. width: 100%;
  25. outline: none;
  26. text-align: left;
  27. line-height: 1.2em;
  28. font-family: "Helvetica Neue", "Helvetica", Arial;
  29. padding: 0.7em 1em;
  30. background: #ffffff;
  31. border: 1px solid rgba(0, 0, 0, 0.15);
  32. color: rgba(0, 0, 0, 0.8);
  33. border-radius: 0.2857rem;
  34. -webkit-transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  35. transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  36. box-shadow: none;
  37. box-sizing: border-box;
  38. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  39. }
  40. /*--------------------
  41. Placeholder
  42. ---------------------*/
  43. /* browsers require these rules separate */
  44. .ui.input input::-webkit-input-placeholder {
  45. color: rgba(0, 0, 0, 0.4);
  46. }
  47. .ui.input input::-moz-placeholder {
  48. color: rgba(0, 0, 0, 0.4);
  49. }
  50. /*******************************
  51. States
  52. *******************************/
  53. /*--------------------
  54. Active
  55. ---------------------*/
  56. .ui.input input:active,
  57. .ui.input.down input {
  58. border-color: rgba(0, 0, 0, 0.3);
  59. background: #fafafa;
  60. color: rgba(0, 0, 0, 0.8);
  61. box-shadow: none;
  62. }
  63. /*--------------------
  64. Loading
  65. ---------------------*/
  66. .ui.loading.input > .icon {
  67. background: url("../themes/default/assets/images/loader-mini.gif") no-repeat 50% 50%;
  68. }
  69. .ui.loading.input > .icon:before,
  70. .ui.loading.input > .icon:after {
  71. display: none;
  72. }
  73. /*--------------------
  74. Focus
  75. ---------------------*/
  76. .ui.input.focus input,
  77. .ui.input input:focus {
  78. border-color: rgba(39, 41, 43, 0.3);
  79. background: '';
  80. color: rgba(0, 0, 0, 0.8);
  81. box-shadow: none;
  82. }
  83. .ui.input.focus input input::-webkit-input-placeholder,
  84. .ui.input input:focus input::-webkit-input-placeholder {
  85. color: rgba(0, 0, 0, 0.8);
  86. }
  87. .ui.input.focus input input::-moz-placeholder,
  88. .ui.input input:focus input::-moz-placeholder {
  89. color: rgba(0, 0, 0, 0.8);
  90. }
  91. /*--------------------
  92. Error
  93. ---------------------*/
  94. .ui.input.error input {
  95. background-color: #fffafa;
  96. border-color: #e7bebe;
  97. color: #d95c5c;
  98. box-shadow: none;
  99. }
  100. /* Error Placeholder */
  101. .ui.input.error input ::-webkit-input-placeholder {
  102. color: rgba(255, 80, 80, 0.4);
  103. }
  104. .ui.input.error input ::-moz-placeholder {
  105. color: rgba(255, 80, 80, 0.4);
  106. }
  107. /* Focused Error Placeholder */
  108. .ui.input.error input :focus::-webkit-input-placeholder {
  109. color: rgba(255, 80, 80, 0.7);
  110. }
  111. .ui.input.error input :focus::-moz-placeholder {
  112. color: rgba(255, 80, 80, 0.7);
  113. }
  114. /*******************************
  115. Variations
  116. *******************************/
  117. /*--------------------
  118. Transparent
  119. ---------------------*/
  120. .ui.transparent.input input {
  121. border-color: transparent;
  122. background-color: transparent;
  123. padding: 0em;
  124. }
  125. /*--------------------
  126. Icon
  127. ---------------------*/
  128. .ui.icon.input > .icon {
  129. cursor: default;
  130. position: absolute;
  131. opacity: 0.5;
  132. top: 0px;
  133. right: 0px;
  134. margin: 0em;
  135. width: 2.85em;
  136. height: 100%;
  137. text-align: center;
  138. border-radius: 0em 0.2857rem 0.2857rem 0em;
  139. box-sizing: border-box;
  140. -webkit-transition: opacity 0.3s ease;
  141. transition: opacity 0.3s ease;
  142. }
  143. .ui.icon.input > .icon:before,
  144. .ui.icon.input > .icon:after {
  145. left: 0;
  146. position: absolute;
  147. text-align: center;
  148. top: 50%;
  149. width: 100%;
  150. margin-top: -0.5em;
  151. }
  152. .ui.icon.input > .link.icon {
  153. cursor: pointer;
  154. }
  155. .ui.icon.input input {
  156. padding-right: 2.85em !important;
  157. }
  158. .ui.icon.input > .circular.icon {
  159. top: 0.35em;
  160. right: 0.5em;
  161. }
  162. /* Left Icon Input */
  163. .ui[class*="left icon"].input > .icon {
  164. right: auto;
  165. left: 1px;
  166. border-radius: 0.2857rem 0em 0em 0.2857rem;
  167. }
  168. .ui[class*="left icon"].input > .circular.icon {
  169. right: auto;
  170. left: 0.5em;
  171. }
  172. .ui[class*="left icon"].input > input {
  173. padding-left: 2.85em !important;
  174. padding-right: 1em !important;
  175. }
  176. /* Transparent Icon */
  177. .ui.transparent.icon.input > .icon {
  178. width: 1.25em;
  179. }
  180. .ui.transparent.icon.input > input {
  181. padding-left: 0em !important;
  182. padding-right: 1.75em !important;
  183. }
  184. .ui.transparent[class*="left icon"].input > input {
  185. padding-left: 0em !important;
  186. padding-left: 1.75em !important;
  187. }
  188. /* Focus */
  189. .ui.icon.input > input:focus ~ .icon {
  190. opacity: 1;
  191. }
  192. /*--------------------
  193. Labeled
  194. ---------------------*/
  195. /* Adjacent Label */
  196. .ui.labeled.input {
  197. display: table;
  198. }
  199. .ui.labeled.input > input {
  200. display: table-cell;
  201. vertical-align: top;
  202. }
  203. .ui.labeled.input > .label {
  204. display: table-cell;
  205. vertical-align: middle;
  206. white-space: nowrap;
  207. font-size: 1em;
  208. }
  209. .ui.labeled.input > .label > .icon {
  210. display: inline;
  211. vertical-align: top;
  212. }
  213. /* Fluid Labeled */
  214. .ui.fluid.labeled.input {
  215. display: table;
  216. width: 100%;
  217. }
  218. .ui.fluid.labeled.input > .label {
  219. width: 0.01%;
  220. }
  221. /* Label on Left */
  222. .ui.labeled.input:not([class*="corner labeled"]):not([class*="right labeled"]) > input {
  223. border-left: none;
  224. border-top-left-radius: 0px;
  225. border-bottom-left-radius: 0px;
  226. }
  227. .ui.labeled.input:not([class*="corner labeled"]):not([class*="right labeled"]) > .label {
  228. border-top-right-radius: 0px;
  229. border-bottom-right-radius: 0px;
  230. }
  231. /* Label on Right */
  232. .ui[class*="right labeled"].input > input {
  233. border-right: none;
  234. border-top-right-radius: 0px !important;
  235. border-bottom-right-radius: 0px !important;
  236. }
  237. .ui[class*="right labeled"].input > .label {
  238. border-top-left-radius: 0px;
  239. border-bottom-left-radius: 0px;
  240. }
  241. /* Corner Label */
  242. .ui.labeled.input .corner.label {
  243. top: 1px;
  244. right: 1px;
  245. font-size: 0.75em;
  246. border-radius: 0em 0.2857rem 0em 0em;
  247. }
  248. .ui.labeled.input input {
  249. padding-right: 2.5em !important;
  250. }
  251. /* Spacing with corner label */
  252. .ui[class*="corner labeled"].input {
  253. display: inline-block;
  254. }
  255. .ui[class*="corner labeled"].input > input {
  256. display: block;
  257. }
  258. .ui[class*="corner labeled"].icon.input:not(.left) > input {
  259. padding-right: 3.25em !important;
  260. }
  261. .ui[class*="corner labeled"].icon.input:not(.left) > .icon {
  262. margin-right: 1.25em;
  263. }
  264. /*--------------------
  265. Action
  266. ---------------------*/
  267. .ui.action.input {
  268. display: table;
  269. }
  270. .ui.action.input > input {
  271. display: table-cell;
  272. vertical-align: top;
  273. }
  274. .ui.action.input > .button,
  275. .ui.action.input > .buttons {
  276. display: table-cell;
  277. vertical-align: middle;
  278. white-space: nowrap;
  279. }
  280. .ui.action.input > .button > .icon,
  281. .ui.action.input > .buttons > .button > .icon {
  282. display: inline;
  283. vertical-align: top;
  284. }
  285. .ui.fluid.action.input {
  286. display: table;
  287. width: 100%;
  288. }
  289. .ui.fluid.action.input > .button {
  290. width: 0.01%;
  291. }
  292. /* Button on Right */
  293. .ui.action.input:not([class*="left action"]) > input {
  294. border-right: none;
  295. border-top-right-radius: 0px !important;
  296. border-bottom-right-radius: 0px !important;
  297. }
  298. .ui.action.input:not([class*="left action"]) > .button,
  299. .ui.action.input:not([class*="left action"]) > .buttons {
  300. border-top-left-radius: 0px;
  301. border-bottom-left-radius: 0px;
  302. }
  303. /* Button on Left */
  304. .ui[class*="left action"].input > .button,
  305. .ui[class*="left action"].input > .buttons {
  306. border-top-right-radius: 0px;
  307. border-bottom-right-radius: 0px;
  308. }
  309. .ui[class*="left action"].input > input {
  310. border-left: none;
  311. border-top-left-radius: 0px;
  312. border-bottom-left-radius: 0px;
  313. }
  314. /*--------------------
  315. Fluid
  316. ---------------------*/
  317. .ui.fluid.input {
  318. display: block;
  319. }
  320. /*--------------------
  321. Size
  322. ---------------------*/
  323. .ui.mini.input {
  324. font-size: 0.8125em;
  325. }
  326. .ui.small.input {
  327. font-size: 0.875em;
  328. }
  329. .ui.input {
  330. font-size: 1em;
  331. }
  332. .ui.large.input {
  333. font-size: 1.125em;
  334. }
  335. .ui.big.input {
  336. font-size: 1.25em;
  337. }
  338. .ui.huge.input {
  339. font-size: 1.375em;
  340. }
  341. .ui.massive.input {
  342. font-size: 1.5rem;
  343. }
  344. /*******************************
  345. Theme Overrides
  346. *******************************/
  347. /*******************************
  348. Site Overrides
  349. *******************************/