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.

412 lines
8.1 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-right: 1em;
  92. }
  93. .ui.form .inline.field .prompt:before {
  94. margin-top: -.3em;
  95. bottom: auto;
  96. left: auto;
  97. top: 50%;
  98. right: 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-right-radius: 0;
  111. border-top-right-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. color: #D95C5C;
  125. }
  126. .ui.form .fields.error .field textarea,
  127. .ui.form .fields.error .field input[type=text],
  128. .ui.form .fields.error .field input[type=email],
  129. .ui.form .fields.error .field input[type=date],
  130. .ui.form .fields.error .field input[type=password],
  131. .ui.form .fields.error .field input[type=number],
  132. .ui.form .fields.error .field input[type=tel],
  133. .ui.form .field.error textarea,
  134. .ui.form .field.error input[type=text],
  135. .ui.form .field.error input[type=email],
  136. .ui.form .field.error input[type=date],
  137. .ui.form .field.error input[type=password],
  138. .ui.form .field.error input[type=number],
  139. .ui.form .field.error input[type=tel] {
  140. background-color: snow;
  141. border-color: #E7BEBE;
  142. border-right: 0;
  143. color: #D95C5C;
  144. padding-right: 1.2em;
  145. border-bottom-right-radius: 0;
  146. border-top-right-radius: 0;
  147. -webkit-box-shadow: .3em 0 0 0 #D95C5C inset;
  148. box-shadow: .3em 0 0 0 #D95C5C inset;
  149. }
  150. .ui.form .field.error textarea:focus,
  151. .ui.form .field.error input[type=text]:focus,
  152. .ui.form .field.error input[type=email]:focus,
  153. .ui.form .field.error input[type=date]:focus,
  154. .ui.form .field.error input[type=password]:focus,
  155. .ui.form .field.error input[type=number]:focus,
  156. .ui.form .field.error input[type=tel]:focus {
  157. border-color: #ff5050;
  158. color: #ff5050;
  159. -webkit-appearance: none;
  160. -webkit-box-shadow: .3em 0 0 0 #FF5050 inset;
  161. box-shadow: .3em 0 0 0 #FF5050 inset;
  162. }
  163. .ui.form ::-webkit-input-placeholder {
  164. color: #E0E0E0;
  165. }
  166. .ui.form ::-moz-placeholder {
  167. color: #E0E0E0;
  168. }
  169. .ui.form :focus::-webkit-input-placeholder {
  170. color: #AAA;
  171. }
  172. .ui.form :focus::-moz-placeholder {
  173. color: #AAA;
  174. }
  175. .ui.form .error ::-webkit-input-placeholder {
  176. color: rgba(255,80,80,.4);
  177. }
  178. .ui.form .error ::-moz-placeholder {
  179. color: rgba(255,80,80,.4);
  180. }
  181. .ui.form .error :focus::-webkit-input-placeholder {
  182. color: rgba(255,80,80,.7);
  183. }
  184. .ui.form .error :focus::-moz-placeholder {
  185. color: rgba(255,80,80,.7);
  186. }
  187. .ui.form .field :disabled,
  188. .ui.form .field.disabled {
  189. opacity: .5;
  190. }
  191. .ui.form .field.disabled label {
  192. opacity: .5;
  193. }
  194. .ui.form .field.disabled :disabled {
  195. opacity: 1;
  196. }
  197. .ui.form.loading {
  198. position: relative;
  199. }
  200. .ui.form.loading:after {
  201. position: absolute;
  202. top: 0;
  203. right: 0;
  204. content: '';
  205. width: 100%;
  206. height: 100%;
  207. background: rgba(255,255,255,.8) url(../images/loader-large.gif) no-repeat 50% 50%;
  208. visibility: visible;
  209. }
  210. .ui.form.fluid {
  211. width: 100%;
  212. -webkit-box-sizing: border-box;
  213. -moz-box-sizing: border-box;
  214. -ms-box-sizing: border-box;
  215. box-sizing: border-box;
  216. }
  217. .ui.form input.attached {
  218. width: auto;
  219. }
  220. .ui.form .date.field>label {
  221. position: relative;
  222. }
  223. .ui.form .date.field>label:after {
  224. position: absolute;
  225. top: 2em;
  226. left: .5em;
  227. font-family: Icons;
  228. content: '\f133';
  229. font-size: 1.2em;
  230. font-weight: 400;
  231. color: #CCC;
  232. }
  233. .ui.inverted.form label {
  234. color: #FFF;
  235. }
  236. .ui.inverted.form .field.error textarea,
  237. .ui.inverted.form .field.error input[type=text],
  238. .ui.inverted.form .field.error input[type=email],
  239. .ui.inverted.form .field.error input[type=date],
  240. .ui.inverted.form .field.error input[type=password],
  241. .ui.inverted.form .field.error input[type=number],
  242. .ui.inverted.form .field.error input[type=tel] {
  243. background-color: #FCC;
  244. }
  245. .ui.form .grouped.fields {
  246. margin: 0 0 1em;
  247. }
  248. .ui.form .grouped.fields .field {
  249. display: block;
  250. float: none;
  251. margin: .5em 0;
  252. padding: 0;
  253. }
  254. .ui.form .fields {
  255. clear: both;
  256. }
  257. .ui.form .fields:after {
  258. content: ' ';
  259. display: block;
  260. clear: both;
  261. visibility: hidden;
  262. line-height: 0;
  263. height: 0;
  264. }
  265. .ui.form .fields>.field {
  266. clear: none;
  267. float: right;
  268. -webkit-box-sizing: border-box;
  269. -moz-box-sizing: border-box;
  270. -ms-box-sizing: border-box;
  271. box-sizing: border-box;
  272. }
  273. .ui.form .fields>.field:first-child {
  274. border-right: 0;
  275. -webkit-box-shadow: none;
  276. box-shadow: none;
  277. }
  278. .ui.form .two.fields>.fields,
  279. .ui.form .two.fields>.field {
  280. width: 50%;
  281. padding-right: 1%;
  282. padding-left: 1%;
  283. }
  284. .ui.form .three.fields>.fields,
  285. .ui.form .three.fields>.field {
  286. width: 33.333%;
  287. padding-right: 1%;
  288. padding-left: 1%;
  289. }
  290. .ui.form .four.fields>.fields,
  291. .ui.form .four.fields>.field {
  292. width: 25%;
  293. padding-right: 1%;
  294. padding-left: 1%;
  295. }
  296. .ui.form .five.fields>.fields,
  297. .ui.form .five.fields>.field {
  298. width: 20%;
  299. padding-right: 1%;
  300. padding-left: 1%;
  301. }
  302. .ui.form .fields .field:first-child {
  303. padding-right: 0;
  304. }
  305. .ui.form .fields .field:last-child {
  306. padding-left: 0;
  307. }
  308. .ui.form .inline.fields .field {
  309. min-height: 1.3em;
  310. margin-left: .5em;
  311. }
  312. .ui.form .inline.fields .field>label,
  313. .ui.form .inline.fields .field>p,
  314. .ui.form .inline.fields .field>input,
  315. .ui.form .inline.field>label,
  316. .ui.form .inline.field>p,
  317. .ui.form .inline.field>input {
  318. display: inline-block;
  319. width: auto;
  320. margin-top: 0;
  321. margin-bottom: 0;
  322. vertical-align: middle;
  323. font-size: 1em;
  324. }
  325. .ui.form .inline.fields .field>input,
  326. .ui.form .inline.field>input {
  327. font-size: .875em;
  328. }
  329. .ui.form .inline.fields .field>:first-child,
  330. .ui.form .inline.field>:first-child {
  331. margin: 0 0 0 .5em;
  332. }
  333. .ui.form .inline.fields .field>:only-child,
  334. .ui.form .inline.field>:only-child {
  335. margin: 0;
  336. }
  337. .ui.small.form {
  338. font-size: .875em;
  339. }
  340. .ui.small.form textarea,
  341. .ui.small.form input[type=text],
  342. .ui.small.form input[type=email],
  343. .ui.small.form input[type=date],
  344. .ui.small.form input[type=password],
  345. .ui.small.form input[type=number],
  346. .ui.small.form input[type=tel],
  347. .ui.small.form label,
  348. .ui.small.form select {
  349. font-size: 1em;
  350. }
  351. .ui.large.form {
  352. font-size: 1.125em;
  353. }