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.

420 lines
8.3 KiB

  1. .ui.form {
  2. position: relative;
  3. max-width: 100%;
  4. }
  5. .ui.form :first-child {
  6. margin-top: 0;
  7. }
  8. .ui.form :last-child {
  9. margin-bottom: 0;
  10. }
  11. .ui.form>p {
  12. margin: 1em 0;
  13. }
  14. .ui.form .field {
  15. clear: both;
  16. margin: 0 0 1em;
  17. }
  18. .ui.form .field>label {
  19. margin: 0 0 .3em;
  20. display: block;
  21. color: #555;
  22. font-size: .875em;
  23. }
  24. .ui.form textarea,
  25. .ui.form select,
  26. .ui.form input[type=text],
  27. .ui.form input[type=email],
  28. .ui.form input[type=date],
  29. .ui.form input[type=password],
  30. .ui.form input[type=number],
  31. .ui.form input[type=tel],
  32. .ui.form .ui.input {
  33. width: 100%;
  34. }
  35. .ui.form textarea,
  36. .ui.form select,
  37. .ui.form input[type=text],
  38. .ui.form input[type=email],
  39. .ui.form input[type=date],
  40. .ui.form input[type=password],
  41. .ui.form input[type=number],
  42. .ui.form input[type=tel] {
  43. margin: 0;
  44. padding: .85em 1.2em;
  45. font-size: .875em;
  46. background-color: #FFF;
  47. border: 1px solid rgba(0,0,0,.15);
  48. outline: 0;
  49. color: rgba(0,0,0,.7);
  50. border-radius: .3125em;
  51. -webkit-transition: background-color .3s ease-out,-webkit-box-shadow .2s ease,border-color .2s ease;
  52. transition: background-color .3s ease-out,box-shadow .2s ease,border-color .2s ease;
  53. -webkit-box-shadow: 0 0 rgba(0,0,0,.3) inset;
  54. box-shadow: 0 0 rgba(0,0,0,.3) inset;
  55. -webkit-appearance: none;
  56. -webkit-tap-highlight-color: rgba(255,255,255,0);
  57. -webkit-box-sizing: border-box;
  58. -moz-box-sizing: border-box;
  59. -ms-box-sizing: border-box;
  60. box-sizing: border-box;
  61. }
  62. .ui.textarea,
  63. .ui.form textarea {
  64. line-height: 1.33;
  65. min-height: 8em;
  66. height: 12em;
  67. max-height: 24em;
  68. resize: vertical;
  69. }
  70. .ui.form textarea,
  71. .ui.form input[type=checkbox] {
  72. vertical-align: top;
  73. }
  74. .ui.form .divider {
  75. clear: both;
  76. margin: 1em 0;
  77. }
  78. .ui.form .info.message,
  79. .ui.form .warning.message,
  80. .ui.form .error.message {
  81. display: none;
  82. }
  83. .ui.form .message:first-child {
  84. margin-top: 0;
  85. }
  86. .ui.form .field .prompt.label {
  87. white-space: nowrap;
  88. }
  89. .ui.form .inline.field .prompt {
  90. margin-top: 0;
  91. margin-left: 1em;
  92. }
  93. .ui.form .inline.field .prompt:before {
  94. margin-top: -.3em;
  95. bottom: auto;
  96. right: auto;
  97. top: 50%;
  98. left: 0;
  99. }
  100. .ui.form input[type=text]:focus,
  101. .ui.form input[type=email]:focus,
  102. .ui.form input[type=date]:focus,
  103. .ui.form input[type=password]:focus,
  104. .ui.form input[type=number]:focus,
  105. .ui.form input[type=tel]:focus,
  106. .ui.form textarea:focus,
  107. .ui.form select:focus {
  108. color: rgba(0,0,0,.85);
  109. border-color: rgba(0,0,0,.2);
  110. border-bottom-left-radius: 0;
  111. border-top-left-radius: 0;
  112. -webkit-appearance: none;
  113. -webkit-box-shadow: .3em 0 0 0 rgba(0,0,0,.2) inset;
  114. box-shadow: .3em 0 0 0 rgba(0,0,0,.2) inset;
  115. }
  116. .ui.form.warning .warning.message {
  117. display: block;
  118. }
  119. .ui.form.error .error.message {
  120. display: block;
  121. }
  122. .ui.form .fields.error .field label,
  123. .ui.form .field.error label,
  124. .ui.form .fields.error .field .input,
  125. .ui.form .field.error .input {
  126. color: #D95C5C;
  127. }
  128. .ui.form .fields.error .field .corner.label,
  129. .ui.form .field.error .corner.label {
  130. border-color: #D95C5C;
  131. color: #FFF;
  132. }
  133. .ui.form .fields.error .field textarea,
  134. .ui.form .fields.error .field input[type=text],
  135. .ui.form .fields.error .field input[type=email],
  136. .ui.form .fields.error .field input[type=date],
  137. .ui.form .fields.error .field input[type=password],
  138. .ui.form .fields.error .field input[type=number],
  139. .ui.form .fields.error .field input[type=tel],
  140. .ui.form .field.error textarea,
  141. .ui.form .field.error input[type=text],
  142. .ui.form .field.error input[type=email],
  143. .ui.form .field.error input[type=date],
  144. .ui.form .field.error input[type=password],
  145. .ui.form .field.error input[type=number],
  146. .ui.form .field.error input[type=tel] {
  147. background-color: snow;
  148. border-color: #E7BEBE;
  149. border-left: 0;
  150. color: #D95C5C;
  151. padding-left: 1.2em;
  152. border-bottom-left-radius: 0;
  153. border-top-left-radius: 0;
  154. -webkit-box-shadow: .3em 0 0 0 #D95C5C inset;
  155. box-shadow: .3em 0 0 0 #D95C5C inset;
  156. }
  157. .ui.form .field.error textarea:focus,
  158. .ui.form .field.error input[type=text]:focus,
  159. .ui.form .field.error input[type=email]:focus,
  160. .ui.form .field.error input[type=date]:focus,
  161. .ui.form .field.error input[type=password]:focus,
  162. .ui.form .field.error input[type=number]:focus,
  163. .ui.form .field.error input[type=tel]:focus {
  164. border-color: #ff5050;
  165. color: #ff5050;
  166. -webkit-appearance: none;
  167. -webkit-box-shadow: .3em 0 0 0 #FF5050 inset;
  168. box-shadow: .3em 0 0 0 #FF5050 inset;
  169. }
  170. .ui.form ::-webkit-input-placeholder {
  171. color: #E0E0E0;
  172. }
  173. .ui.form ::-moz-placeholder {
  174. color: #E0E0E0;
  175. }
  176. .ui.form :focus::-webkit-input-placeholder {
  177. color: #AAA;
  178. }
  179. .ui.form :focus::-moz-placeholder {
  180. color: #AAA;
  181. }
  182. .ui.form .error ::-webkit-input-placeholder {
  183. color: rgba(255,80,80,.4);
  184. }
  185. .ui.form .error ::-moz-placeholder {
  186. color: rgba(255,80,80,.4);
  187. }
  188. .ui.form .error :focus::-webkit-input-placeholder {
  189. color: rgba(255,80,80,.7);
  190. }
  191. .ui.form .error :focus::-moz-placeholder {
  192. color: rgba(255,80,80,.7);
  193. }
  194. .ui.form .field :disabled,
  195. .ui.form .field.disabled {
  196. opacity: .5;
  197. }
  198. .ui.form .field.disabled label {
  199. opacity: .5;
  200. }
  201. .ui.form .field.disabled :disabled {
  202. opacity: 1;
  203. }
  204. .ui.form.loading {
  205. position: relative;
  206. }
  207. .ui.form.loading:after {
  208. position: absolute;
  209. top: 0;
  210. left: 0;
  211. content: '';
  212. width: 100%;
  213. height: 100%;
  214. background: rgba(255,255,255,.8) url(../images/loader-large.gif) no-repeat 50% 50%;
  215. visibility: visible;
  216. }
  217. .ui.form.fluid {
  218. width: 100%;
  219. -webkit-box-sizing: border-box;
  220. -moz-box-sizing: border-box;
  221. -ms-box-sizing: border-box;
  222. box-sizing: border-box;
  223. }
  224. .ui.form input.attached {
  225. width: auto;
  226. }
  227. .ui.form .date.field>label {
  228. position: relative;
  229. }
  230. .ui.form .date.field>label:after {
  231. position: absolute;
  232. top: 2em;
  233. right: .5em;
  234. font-family: Icons;
  235. content: '\f133';
  236. font-size: 1.2em;
  237. font-weight: 400;
  238. color: #CCC;
  239. }
  240. .ui.inverted.form label {
  241. color: #FFF;
  242. }
  243. .ui.inverted.form .field.error textarea,
  244. .ui.inverted.form .field.error input[type=text],
  245. .ui.inverted.form .field.error input[type=email],
  246. .ui.inverted.form .field.error input[type=date],
  247. .ui.inverted.form .field.error input[type=password],
  248. .ui.inverted.form .field.error input[type=number],
  249. .ui.inverted.form .field.error input[type=tel] {
  250. background-color: #FCC;
  251. }
  252. .ui.form .grouped.fields {
  253. margin: 0 0 1em;
  254. }
  255. .ui.form .grouped.fields .field {
  256. display: block;
  257. float: none;
  258. margin: .5em 0;
  259. padding: 0;
  260. }
  261. .ui.form .fields {
  262. clear: both;
  263. }
  264. .ui.form .fields:after {
  265. content: ' ';
  266. display: block;
  267. clear: both;
  268. visibility: hidden;
  269. line-height: 0;
  270. height: 0;
  271. }
  272. .ui.form .fields>.field {
  273. clear: none;
  274. float: left;
  275. -webkit-box-sizing: border-box;
  276. -moz-box-sizing: border-box;
  277. -ms-box-sizing: border-box;
  278. box-sizing: border-box;
  279. }
  280. .ui.form .fields>.field:first-child {
  281. border-left: 0;
  282. -webkit-box-shadow: none;
  283. box-shadow: none;
  284. }
  285. .ui.form .two.fields>.fields,
  286. .ui.form .two.fields>.field {
  287. width: 50%;
  288. padding-left: 1%;
  289. padding-right: 1%;
  290. }
  291. .ui.form .three.fields>.fields,
  292. .ui.form .three.fields>.field {
  293. width: 33.333%;
  294. padding-left: 1%;
  295. padding-right: 1%;
  296. }
  297. .ui.form .four.fields>.fields,
  298. .ui.form .four.fields>.field {
  299. width: 25%;
  300. padding-left: 1%;
  301. padding-right: 1%;
  302. }
  303. .ui.form .five.fields>.fields,
  304. .ui.form .five.fields>.field {
  305. width: 20%;
  306. padding-left: 1%;
  307. padding-right: 1%;
  308. }
  309. .ui.form .fields .field:first-child {
  310. padding-left: 0;
  311. }
  312. .ui.form .fields .field:last-child {
  313. padding-right: 0;
  314. }
  315. .ui.form .inline.fields .field {
  316. min-height: 1.3em;
  317. margin-right: .5em;
  318. }
  319. .ui.form .inline.fields .field>label,
  320. .ui.form .inline.fields .field>p,
  321. .ui.form .inline.fields .field>input,
  322. .ui.form .inline.field>label,
  323. .ui.form .inline.field>p,
  324. .ui.form .inline.field>input {
  325. display: inline-block;
  326. width: auto;
  327. margin-top: 0;
  328. margin-bottom: 0;
  329. vertical-align: middle;
  330. font-size: 1em;
  331. }
  332. .ui.form .inline.fields .field>input,
  333. .ui.form .inline.field>input {
  334. font-size: .875em;
  335. }
  336. .ui.form .inline.fields .field>:first-child,
  337. .ui.form .inline.field>:first-child {
  338. margin: 0 .5em 0 0;
  339. }
  340. .ui.form .inline.fields .field>:only-child,
  341. .ui.form .inline.field>:only-child {
  342. margin: 0;
  343. }
  344. .ui.small.form {
  345. font-size: .875em;
  346. }
  347. .ui.small.form textarea,
  348. .ui.small.form input[type=text],
  349. .ui.small.form input[type=email],
  350. .ui.small.form input[type=date],
  351. .ui.small.form input[type=password],
  352. .ui.small.form input[type=number],
  353. .ui.small.form input[type=tel],
  354. .ui.small.form label,
  355. .ui.small.form select {
  356. font-size: 1em;
  357. }
  358. .ui.large.form {
  359. font-size: 1.125em;
  360. }