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.

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