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.

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