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.

1078 lines
25 KiB

  1. /*!
  2. * # Semantic UI 2.1.6 - Form
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Elements
  13. *******************************/
  14. /*--------------------
  15. Form
  16. ---------------------*/
  17. .ui.form {
  18. position: relative;
  19. max-width: 100%;
  20. }
  21. /*--------------------
  22. Content
  23. ---------------------*/
  24. .ui.form > p {
  25. margin: 1em 0em;
  26. }
  27. /*--------------------
  28. Field
  29. ---------------------*/
  30. .ui.form .field {
  31. clear: both;
  32. margin: 0em 0em 1em;
  33. }
  34. .ui.form .field:last-child,
  35. .ui.form .fields:last-child .field {
  36. margin-bottom: 0em;
  37. }
  38. .ui.form .fields .field {
  39. clear: both;
  40. margin: 0em 0em 1em;
  41. }
  42. /*--------------------
  43. Labels
  44. ---------------------*/
  45. .ui.form .field > label {
  46. display: block;
  47. margin: 0em 0em 6px 0em;
  48. color: rgba(0, 0, 0, 0.87);
  49. font-size: 0.92307692em;
  50. font-weight: bold;
  51. text-transform: none;
  52. }
  53. /*--------------------
  54. Standard Inputs
  55. ---------------------*/
  56. .ui.form textarea,
  57. .ui.form input:not([type]),
  58. .ui.form input[type="date"],
  59. .ui.form input[type="datetime-local"],
  60. .ui.form input[type="email"],
  61. .ui.form input[type="number"],
  62. .ui.form input[type="password"],
  63. .ui.form input[type="search"],
  64. .ui.form input[type="tel"],
  65. .ui.form input[type="time"],
  66. .ui.form input[type="text"],
  67. .ui.form input[type="url"] {
  68. width: 100%;
  69. vertical-align: top;
  70. }
  71. /* Set max height on unusual input */
  72. .ui.form ::-webkit-datetime-edit,
  73. .ui.form ::-webkit-inner-spin-button {
  74. height: 1.2142em;
  75. }
  76. .ui.form input:not([type]),
  77. .ui.form input[type="date"],
  78. .ui.form input[type="datetime-local"],
  79. .ui.form input[type="email"],
  80. .ui.form input[type="number"],
  81. .ui.form input[type="password"],
  82. .ui.form input[type="search"],
  83. .ui.form input[type="tel"],
  84. .ui.form input[type="time"],
  85. .ui.form input[type="text"],
  86. .ui.form input[type="url"] {
  87. font-family: 'Arial', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  88. margin: 0em;
  89. outline: none;
  90. -webkit-appearance: none;
  91. tap-highlight-color: rgba(255, 255, 255, 0);
  92. line-height: 1.2142em;
  93. padding: 0.73905385em 1.07692308em;
  94. font-size: 1em;
  95. background: #FAFAFA;
  96. border: 1px solid #CCCCCC;
  97. color: rgba(0, 0, 0, 0.87);
  98. border-radius: 3px;
  99. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075) inset;
  100. -webkit-transition: color 0.1s ease, border-color 0.1s ease;
  101. transition: color 0.1s ease, border-color 0.1s ease;
  102. }
  103. /* Text Area */
  104. .ui.form textarea {
  105. margin: 0em;
  106. -webkit-appearance: none;
  107. tap-highlight-color: rgba(255, 255, 255, 0);
  108. padding: 0.84615385em 1.07692308em;
  109. background: #FAFAFA;
  110. border: 1px solid #CCCCCC;
  111. outline: none;
  112. color: rgba(0, 0, 0, 0.87);
  113. border-radius: 3px;
  114. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075) inset;
  115. -webkit-transition: color 0.1s ease, border-color 0.1s ease;
  116. transition: color 0.1s ease, border-color 0.1s ease;
  117. font-size: 1em;
  118. line-height: 1.2857;
  119. resize: vertical;
  120. }
  121. .ui.form textarea:not([rows]) {
  122. height: 12em;
  123. min-height: 8em;
  124. max-height: 24em;
  125. }
  126. .ui.form textarea,
  127. .ui.form input[type="checkbox"] {
  128. vertical-align: top;
  129. }
  130. /*--------------------------
  131. Input w/ attached Button
  132. ---------------------------*/
  133. .ui.form input.attached {
  134. width: auto;
  135. }
  136. /*--------------------
  137. Basic Select
  138. ---------------------*/
  139. .ui.form select {
  140. display: block;
  141. height: auto;
  142. width: 100%;
  143. background: #FFFFFF;
  144. border: 1px solid #CCCCCC;
  145. border-radius: 3px;
  146. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075) inset;
  147. padding: 0.62em 1.07692308em;
  148. color: rgba(0, 0, 0, 0.87);
  149. -webkit-transition: color 0.1s ease, border-color 0.1s ease;
  150. transition: color 0.1s ease, border-color 0.1s ease;
  151. }
  152. /*--------------------
  153. Dropdown
  154. ---------------------*/
  155. /* Block */
  156. .ui.form .field > .selection.dropdown {
  157. width: 100%;
  158. }
  159. .ui.form .field > .selection.dropdown > .dropdown.icon {
  160. float: right;
  161. }
  162. /* Inline */
  163. .ui.form .inline.fields .field > .selection.dropdown,
  164. .ui.form .inline.field > .selection.dropdown {
  165. width: auto;
  166. }
  167. .ui.form .inline.fields .field > .selection.dropdown > .dropdown.icon,
  168. .ui.form .inline.field > .selection.dropdown > .dropdown.icon {
  169. float: none;
  170. }
  171. /*--------------------
  172. UI Input
  173. ---------------------*/
  174. /* Block */
  175. .ui.form .field .ui.input,
  176. .ui.form .fields .field .ui.input,
  177. .ui.form .wide.field .ui.input {
  178. width: 100%;
  179. }
  180. /* Inline */
  181. .ui.form .inline.fields .field:not(.wide) .ui.input,
  182. .ui.form .inline.field:not(.wide) .ui.input {
  183. width: auto;
  184. vertical-align: middle;
  185. }
  186. /* Auto Input */
  187. .ui.form .fields .field .ui.input input,
  188. .ui.form .field .ui.input input {
  189. width: auto;
  190. }
  191. /* Full Width Input */
  192. .ui.form .ten.fields .ui.input input,
  193. .ui.form .nine.fields .ui.input input,
  194. .ui.form .eight.fields .ui.input input,
  195. .ui.form .seven.fields .ui.input input,
  196. .ui.form .six.fields .ui.input input,
  197. .ui.form .five.fields .ui.input input,
  198. .ui.form .four.fields .ui.input input,
  199. .ui.form .three.fields .ui.input input,
  200. .ui.form .two.fields .ui.input input,
  201. .ui.form .wide.field .ui.input input {
  202. -webkit-box-flex: 1;
  203. -webkit-flex: 1 0 auto;
  204. -ms-flex: 1 0 auto;
  205. flex: 1 0 auto;
  206. width: 0px;
  207. }
  208. /*--------------------
  209. Types of Messages
  210. ---------------------*/
  211. .ui.form .success.message,
  212. .ui.form .warning.message,
  213. .ui.form .error.message {
  214. display: none;
  215. }
  216. /* Assumptions */
  217. .ui.form .message:first-child {
  218. margin-top: 0px;
  219. }
  220. /*--------------------
  221. Validation Prompt
  222. ---------------------*/
  223. .ui.form .field .prompt.label {
  224. white-space: normal;
  225. background: #FFFFFF !important;
  226. border: 1px solid #E0B4B4 !important;
  227. color: #9F3A38 !important;
  228. }
  229. .ui.form .inline.fields .field .prompt,
  230. .ui.form .inline.field .prompt {
  231. vertical-align: top;
  232. margin: -0.25em 0em -0.5em 0.5em;
  233. }
  234. .ui.form .inline.fields .field .prompt:before,
  235. .ui.form .inline.field .prompt:before {
  236. border-width: 0px 0px 1px 1px;
  237. bottom: auto;
  238. right: auto;
  239. top: 50%;
  240. left: 0em;
  241. }
  242. /*******************************
  243. States
  244. *******************************/
  245. /*--------------------
  246. Autofilled
  247. ---------------------*/
  248. .ui.form .field.field input:-webkit-autofill {
  249. box-shadow: 0px 0px 0px 100px #FFFFF0 inset !important;
  250. border-color: #E5DFA1 !important;
  251. }
  252. /* Focus */
  253. .ui.form .field.field input:-webkit-autofill:focus {
  254. box-shadow: 0px 0px 0px 100px #FFFFF0 inset !important;
  255. border-color: #D5C315 !important;
  256. }
  257. /* Error */
  258. .ui.form .error.error input:-webkit-autofill {
  259. box-shadow: 0px 0px 0px 100px #FFFAF0 inset !important;
  260. border-color: #E0B4B4 !important;
  261. }
  262. /*--------------------
  263. Placeholder
  264. ---------------------*/
  265. /* browsers require these rules separate */
  266. .ui.form ::-webkit-input-placeholder {
  267. color: rgba(140, 140, 140, 0.87);
  268. }
  269. .ui.form ::-ms-input-placeholder {
  270. color: rgba(140, 140, 140, 0.87);
  271. }
  272. .ui.form ::-moz-placeholder {
  273. color: rgba(140, 140, 140, 0.87);
  274. }
  275. .ui.form :focus::-webkit-input-placeholder {
  276. color: rgba(89, 89, 89, 0.87);
  277. }
  278. .ui.form :focus::-ms-input-placeholder {
  279. color: rgba(89, 89, 89, 0.87);
  280. }
  281. .ui.form :focus::-moz-placeholder {
  282. color: rgba(89, 89, 89, 0.87);
  283. }
  284. /* Error Placeholder */
  285. .ui.form .error ::-webkit-input-placeholder {
  286. color: #e7bdbc;
  287. }
  288. .ui.form .error ::-ms-input-placeholder {
  289. color: #e7bdbc;
  290. }
  291. .ui.form .error ::-moz-placeholder {
  292. color: #e7bdbc;
  293. }
  294. .ui.form .error :focus::-webkit-input-placeholder {
  295. color: #da9796;
  296. }
  297. .ui.form .error :focus::-ms-input-placeholder {
  298. color: #da9796;
  299. }
  300. .ui.form .error :focus::-moz-placeholder {
  301. color: #da9796;
  302. }
  303. /*--------------------
  304. Focus
  305. ---------------------*/
  306. .ui.form input:not([type]):focus,
  307. .ui.form input[type="date"]:focus,
  308. .ui.form input[type="datetime-local"]:focus,
  309. .ui.form input[type="email"]:focus,
  310. .ui.form input[type="number"]:focus,
  311. .ui.form input[type="password"]:focus,
  312. .ui.form input[type="search"]:focus,
  313. .ui.form input[type="tel"]:focus,
  314. .ui.form input[type="time"]:focus,
  315. .ui.form input[type="text"]:focus,
  316. .ui.form input[type="url"]:focus {
  317. color: rgba(0, 0, 0, 0.95);
  318. border-color: #51A7E8;
  319. border-radius: 3px;
  320. background: #FFFFFF;
  321. box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.075) inset, 0px 0px 5px rgba(81, 167, 232, 0.5);
  322. }
  323. .ui.form textarea:focus {
  324. color: rgba(0, 0, 0, 0.95);
  325. border-color: #51A7E8;
  326. border-radius: 3px;
  327. background: #FFFFFF;
  328. box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.075) inset, 0px 0px 5px rgba(81, 167, 232, 0.5);
  329. -webkit-appearance: none;
  330. }
  331. /*--------------------
  332. Success
  333. ---------------------*/
  334. /* On Form */
  335. .ui.form.success .success.message:not(:empty) {
  336. display: block;
  337. }
  338. .ui.form.success .icon.success.message:not(:empty) {
  339. display: -webkit-box;
  340. display: -webkit-flex;
  341. display: -ms-flexbox;
  342. display: flex;
  343. }
  344. /*--------------------
  345. Warning
  346. ---------------------*/
  347. /* On Form */
  348. .ui.form.warning .warning.message:not(:empty) {
  349. display: block;
  350. }
  351. .ui.form.warning .icon.warning.message:not(:empty) {
  352. display: -webkit-box;
  353. display: -webkit-flex;
  354. display: -ms-flexbox;
  355. display: flex;
  356. }
  357. /*--------------------
  358. Error
  359. ---------------------*/
  360. /* On Form */
  361. .ui.form.error .error.message:not(:empty) {
  362. display: block;
  363. }
  364. .ui.form.error .icon.error.message:not(:empty) {
  365. display: -webkit-box;
  366. display: -webkit-flex;
  367. display: -ms-flexbox;
  368. display: flex;
  369. }
  370. /* On Field(s) */
  371. .ui.form .fields.error .field label,
  372. .ui.form .field.error label,
  373. .ui.form .fields.error .field .input,
  374. .ui.form .field.error .input {
  375. color: #9F3A38;
  376. }
  377. .ui.form .fields.error .field .corner.label,
  378. .ui.form .field.error .corner.label {
  379. border-color: #9F3A38;
  380. color: #FFFFFF;
  381. }
  382. .ui.form .fields.error .field textarea,
  383. .ui.form .fields.error .field select,
  384. .ui.form .fields.error .field input:not([type]),
  385. .ui.form .fields.error .field input[type="date"],
  386. .ui.form .fields.error .field input[type="datetime-local"],
  387. .ui.form .fields.error .field input[type="email"],
  388. .ui.form .fields.error .field input[type="number"],
  389. .ui.form .fields.error .field input[type="password"],
  390. .ui.form .fields.error .field input[type="search"],
  391. .ui.form .fields.error .field input[type="tel"],
  392. .ui.form .fields.error .field input[type="time"],
  393. .ui.form .fields.error .field input[type="text"],
  394. .ui.form .fields.error .field input[type="url"],
  395. .ui.form .field.error textarea,
  396. .ui.form .field.error select,
  397. .ui.form .field.error input:not([type]),
  398. .ui.form .field.error input[type="date"],
  399. .ui.form .field.error input[type="datetime-local"],
  400. .ui.form .field.error input[type="email"],
  401. .ui.form .field.error input[type="number"],
  402. .ui.form .field.error input[type="password"],
  403. .ui.form .field.error input[type="search"],
  404. .ui.form .field.error input[type="tel"],
  405. .ui.form .field.error input[type="time"],
  406. .ui.form .field.error input[type="text"],
  407. .ui.form .field.error input[type="url"] {
  408. background: #FFF6F6;
  409. border-color: #E0B4B4;
  410. color: #9F3A38;
  411. border-radius: '';
  412. box-shadow: none;
  413. }
  414. .ui.form .field.error textarea:focus,
  415. .ui.form .field.error select:focus,
  416. .ui.form .field.error input:not([type]):focus,
  417. .ui.form .field.error input[type="date"]:focus,
  418. .ui.form .field.error input[type="datetime-local"]:focus,
  419. .ui.form .field.error input[type="email"]:focus,
  420. .ui.form .field.error input[type="number"]:focus,
  421. .ui.form .field.error input[type="password"]:focus,
  422. .ui.form .field.error input[type="search"]:focus,
  423. .ui.form .field.error input[type="tel"]:focus,
  424. .ui.form .field.error input[type="time"]:focus,
  425. .ui.form .field.error input[type="text"]:focus,
  426. .ui.form .field.error input[type="url"]:focus {
  427. background: #FFF6F6;
  428. border-color: #E0B4B4;
  429. color: #9F3A38;
  430. -webkit-appearance: none;
  431. box-shadow: none;
  432. }
  433. /* Preserve Native Select Stylings */
  434. .ui.form .field.error select {
  435. -webkit-appearance: menulist-button;
  436. }
  437. /*------------------
  438. Dropdown Error
  439. --------------------*/
  440. .ui.form .fields.error .field .ui.dropdown,
  441. .ui.form .fields.error .field .ui.dropdown .item,
  442. .ui.form .field.error .ui.dropdown,
  443. .ui.form .field.error .ui.dropdown .text,
  444. .ui.form .field.error .ui.dropdown .item {
  445. background: #FFF6F6;
  446. color: #9F3A38;
  447. }
  448. .ui.form .fields.error .field .ui.dropdown,
  449. .ui.form .field.error .ui.dropdown {
  450. border-color: #E0B4B4 !important;
  451. }
  452. .ui.form .fields.error .field .ui.dropdown:hover,
  453. .ui.form .field.error .ui.dropdown:hover {
  454. border-color: #E0B4B4 !important;
  455. }
  456. .ui.form .fields.error .field .ui.dropdown:hover .menu,
  457. .ui.form .field.error .ui.dropdown:hover .menu {
  458. border-color: #E0B4B4;
  459. }
  460. .ui.form .fields.error .field .ui.multiple.selection.dropdown > .label,
  461. .ui.form .field.error .ui.multiple.selection.dropdown > .label {
  462. background-color: #EACBCB;
  463. color: #991111;
  464. }
  465. /* Hover */
  466. .ui.form .fields.error .field .ui.dropdown .menu .item:hover,
  467. .ui.form .field.error .ui.dropdown .menu .item:hover {
  468. background-color: #FBE7E7;
  469. }
  470. /* Selected */
  471. .ui.form .fields.error .field .ui.dropdown .menu .selected.item,
  472. .ui.form .field.error .ui.dropdown .menu .selected.item {
  473. background-color: #FBE7E7;
  474. }
  475. /* Active */
  476. .ui.form .fields.error .field .ui.dropdown .menu .active.item,
  477. .ui.form .field.error .ui.dropdown .menu .active.item {
  478. background-color: #FDCFCF !important;
  479. }
  480. /*--------------------
  481. Checkbox Error
  482. ---------------------*/
  483. .ui.form .fields.error .field .checkbox:not(.toggle):not(.slider) label,
  484. .ui.form .field.error .checkbox:not(.toggle):not(.slider) label,
  485. .ui.form .fields.error .field .checkbox:not(.toggle):not(.slider) .box,
  486. .ui.form .field.error .checkbox:not(.toggle):not(.slider) .box {
  487. color: #9F3A38;
  488. }
  489. .ui.form .fields.error .field .checkbox:not(.toggle):not(.slider) label:before,
  490. .ui.form .field.error .checkbox:not(.toggle):not(.slider) label:before,
  491. .ui.form .fields.error .field .checkbox:not(.toggle):not(.slider) .box:before,
  492. .ui.form .field.error .checkbox:not(.toggle):not(.slider) .box:before {
  493. background: #FFF6F6;
  494. border-color: #E0B4B4;
  495. }
  496. .ui.form .fields.error .field .checkbox label:after,
  497. .ui.form .field.error .checkbox label:after,
  498. .ui.form .fields.error .field .checkbox .box:after,
  499. .ui.form .field.error .checkbox .box:after {
  500. color: #9F3A38;
  501. }
  502. /*--------------------
  503. Disabled
  504. ---------------------*/
  505. .ui.form .disabled.fields .field,
  506. .ui.form .disabled.field,
  507. .ui.form .field :disabled {
  508. pointer-events: none;
  509. opacity: 0.3;
  510. }
  511. .ui.form .field.disabled label {
  512. opacity: 0.3;
  513. }
  514. .ui.form .field.disabled :disabled {
  515. opacity: 1;
  516. }
  517. /*--------------
  518. Loading
  519. ---------------*/
  520. .ui.loading.form {
  521. position: relative;
  522. cursor: default;
  523. point-events: none;
  524. text-shadow: none !important;
  525. color: transparent !important;
  526. -webkit-transition: all 0s linear;
  527. transition: all 0s linear;
  528. z-index: 100;
  529. }
  530. .ui.loading.form:before {
  531. position: absolute;
  532. content: '';
  533. top: 0%;
  534. left: 0%;
  535. background: rgba(255, 255, 255, 0.8);
  536. width: 100%;
  537. height: 100%;
  538. z-index: 100;
  539. }
  540. .ui.loading.form:after {
  541. position: absolute;
  542. content: '';
  543. top: 50%;
  544. left: 50%;
  545. margin: -1.5em 0em 0em -1.5em;
  546. width: 3em;
  547. height: 3em;
  548. -webkit-animation: form-spin 0.6s linear;
  549. animation: form-spin 0.6s linear;
  550. -webkit-animation-iteration-count: infinite;
  551. animation-iteration-count: infinite;
  552. border-radius: 500rem;
  553. border-color: #767676 rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1);
  554. border-style: solid;
  555. border-width: 0.2em;
  556. box-shadow: 0px 0px 0px 1px transparent;
  557. visibility: visible;
  558. z-index: 101;
  559. }
  560. @-webkit-keyframes form-spin {
  561. from {
  562. -webkit-transform: rotate(0deg);
  563. transform: rotate(0deg);
  564. }
  565. to {
  566. -webkit-transform: rotate(360deg);
  567. transform: rotate(360deg);
  568. }
  569. }
  570. @keyframes form-spin {
  571. from {
  572. -webkit-transform: rotate(0deg);
  573. transform: rotate(0deg);
  574. }
  575. to {
  576. -webkit-transform: rotate(360deg);
  577. transform: rotate(360deg);
  578. }
  579. }
  580. /*******************************
  581. Element Types
  582. *******************************/
  583. /*--------------------
  584. Required Field
  585. ---------------------*/
  586. .ui.form .required.fields:not(.grouped) > .field > label:after,
  587. .ui.form .required.fields.grouped > label:after,
  588. .ui.form .required.field > label:after,
  589. .ui.form .required.fields:not(.grouped) > .field > .checkbox:after,
  590. .ui.form .required.field > .checkbox:after {
  591. margin: -0.2em 0em 0em 0.2em;
  592. content: '*';
  593. color: #DB2828;
  594. }
  595. .ui.form .required.fields:not(.grouped) > .field > label:after,
  596. .ui.form .required.fields.grouped > label:after,
  597. .ui.form .required.field > label:after {
  598. display: inline-block;
  599. vertical-align: top;
  600. }
  601. .ui.form .required.fields:not(.grouped) > .field > .checkbox:after,
  602. .ui.form .required.field > .checkbox:after {
  603. position: absolute;
  604. top: 0%;
  605. left: 100%;
  606. }
  607. /*******************************
  608. Variations
  609. *******************************/
  610. /*--------------------
  611. Inverted Colors
  612. ---------------------*/
  613. .ui.inverted.form label,
  614. .ui.form .inverted.segment label,
  615. .ui.form .inverted.segment .ui.checkbox label,
  616. .ui.form .inverted.segment .ui.checkbox .box,
  617. .ui.inverted.form .ui.checkbox label,
  618. .ui.inverted.form .ui.checkbox .box {
  619. color: rgba(255, 255, 255, 0.9);
  620. }
  621. /* Inverted Field */
  622. .ui.inverted.form input:not([type]),
  623. .ui.inverted.form input[type="date"],
  624. .ui.inverted.form input[type="datetime-local"],
  625. .ui.inverted.form input[type="email"],
  626. .ui.inverted.form input[type="number"],
  627. .ui.inverted.form input[type="password"],
  628. .ui.inverted.form input[type="search"],
  629. .ui.inverted.form input[type="tel"],
  630. .ui.inverted.form input[type="time"],
  631. .ui.inverted.form input[type="text"],
  632. .ui.inverted.form input[type="url"] {
  633. background: #FAFAFA;
  634. border-color: rgba(255, 255, 255, 0.1);
  635. color: rgba(0, 0, 0, 0.87);
  636. box-shadow: none;
  637. }
  638. /*--------------------
  639. Field Groups
  640. ---------------------*/
  641. /* Grouped Vertically */
  642. .ui.form .grouped.fields {
  643. display: block;
  644. margin: 0em 0em 1em;
  645. }
  646. .ui.form .grouped.fields:last-child {
  647. margin-bottom: 0em;
  648. }
  649. .ui.form .grouped.fields > label {
  650. margin: 0em 0em 6px 0em;
  651. color: rgba(0, 0, 0, 0.87);
  652. font-size: 0.92307692em;
  653. font-weight: bold;
  654. text-transform: none;
  655. }
  656. .ui.form .grouped.fields .field,
  657. .ui.form .grouped.inline.fields .field {
  658. display: block;
  659. margin: 0.5em 0em;
  660. padding: 0em;
  661. }
  662. /*--------------------
  663. Fields
  664. ---------------------*/
  665. /* Split fields */
  666. .ui.form .fields {
  667. display: -webkit-box;
  668. display: -webkit-flex;
  669. display: -ms-flexbox;
  670. display: flex;
  671. -webkit-box-orient: horizontal;
  672. -webkit-box-direction: normal;
  673. -webkit-flex-direction: row;
  674. -ms-flex-direction: row;
  675. flex-direction: row;
  676. }
  677. .ui.form .fields > .field {
  678. -webkit-box-flex: 0;
  679. -webkit-flex: 0 1 auto;
  680. -ms-flex: 0 1 auto;
  681. flex: 0 1 auto;
  682. padding-left: 0.5em;
  683. padding-right: 0.5em;
  684. }
  685. .ui.form .fields > .field:first-child {
  686. border-left: none;
  687. box-shadow: none;
  688. }
  689. /* Other Combinations */
  690. .ui.form .two.fields > .fields,
  691. .ui.form .two.fields > .field {
  692. width: 50%;
  693. }
  694. .ui.form .three.fields > .fields,
  695. .ui.form .three.fields > .field {
  696. width: 33.33333333%;
  697. }
  698. .ui.form .four.fields > .fields,
  699. .ui.form .four.fields > .field {
  700. width: 25%;
  701. }
  702. .ui.form .five.fields > .fields,
  703. .ui.form .five.fields > .field {
  704. width: 20%;
  705. }
  706. .ui.form .six.fields > .fields,
  707. .ui.form .six.fields > .field {
  708. width: 16.66666667%;
  709. }
  710. .ui.form .seven.fields > .fields,
  711. .ui.form .seven.fields > .field {
  712. width: 14.28571429%;
  713. }
  714. .ui.form .eight.fields > .fields,
  715. .ui.form .eight.fields > .field {
  716. width: 12.5%;
  717. }
  718. .ui.form .nine.fields > .fields,
  719. .ui.form .nine.fields > .field {
  720. width: 11.11111111%;
  721. }
  722. .ui.form .ten.fields > .fields,
  723. .ui.form .ten.fields > .field {
  724. width: 10%;
  725. }
  726. /* Swap to full width on mobile */
  727. @media only screen and (max-width: 687px) {
  728. .ui.form .fields {
  729. -webkit-flex-wrap: wrap;
  730. -ms-flex-wrap: wrap;
  731. flex-wrap: wrap;
  732. }
  733. .ui.form .two.fields > .fields,
  734. .ui.form .two.fields > .field,
  735. .ui.form .three.fields > .fields,
  736. .ui.form .three.fields > .field,
  737. .ui.form .four.fields > .fields,
  738. .ui.form .four.fields > .field,
  739. .ui.form .five.fields > .fields,
  740. .ui.form .five.fields > .field,
  741. .ui.form .six.fields > .fields,
  742. .ui.form .six.fields > .field,
  743. .ui.form .seven.fields > .fields,
  744. .ui.form .seven.fields > .field,
  745. .ui.form .eight.fields > .fields,
  746. .ui.form .eight.fields > .field,
  747. .ui.form .nine.fields > .fields,
  748. .ui.form .nine.fields > .field,
  749. .ui.form .ten.fields > .fields,
  750. .ui.form .ten.fields > .field {
  751. width: 100% !important;
  752. margin: 0em 0em 1em;
  753. padding-left: 0%;
  754. padding-right: 0%;
  755. }
  756. }
  757. .ui.form .fields .field:first-child {
  758. padding-left: 0%;
  759. }
  760. .ui.form .fields .field:last-child {
  761. padding-right: 0%;
  762. }
  763. /* Sizing Combinations */
  764. .ui.form .fields .wide.field {
  765. width: 6.25%;
  766. padding-left: 0.5em;
  767. padding-right: 0.5em;
  768. }
  769. .ui.form .fields .wide.field:first-child {
  770. padding-left: 0%;
  771. }
  772. .ui.form .fields .wide.field:last-child {
  773. padding-right: 0%;
  774. }
  775. .ui.form .one.wide.field {
  776. width: 6.25% !important;
  777. }
  778. .ui.form .two.wide.field {
  779. width: 12.5% !important;
  780. }
  781. .ui.form .three.wide.field {
  782. width: 18.75% !important;
  783. }
  784. .ui.form .four.wide.field {
  785. width: 25% !important;
  786. }
  787. .ui.form .five.wide.field {
  788. width: 31.25% !important;
  789. }
  790. .ui.form .six.wide.field {
  791. width: 37.5% !important;
  792. }
  793. .ui.form .seven.wide.field {
  794. width: 43.75% !important;
  795. }
  796. .ui.form .eight.wide.field {
  797. width: 50% !important;
  798. }
  799. .ui.form .nine.wide.field {
  800. width: 56.25% !important;
  801. }
  802. .ui.form .ten.wide.field {
  803. width: 62.5% !important;
  804. }
  805. .ui.form .eleven.wide.field {
  806. width: 68.75% !important;
  807. }
  808. .ui.form .twelve.wide.field {
  809. width: 75% !important;
  810. }
  811. .ui.form .thirteen.wide.field {
  812. width: 81.25% !important;
  813. }
  814. .ui.form .fourteen.wide.field {
  815. width: 87.5% !important;
  816. }
  817. .ui.form .fifteen.wide.field {
  818. width: 93.75% !important;
  819. }
  820. .ui.form .sixteen.wide.field {
  821. width: 100% !important;
  822. }
  823. /* Swap to full width on mobile */
  824. @media only screen and (max-width: 687px) {
  825. .ui.form .two.fields > .fields,
  826. .ui.form .two.fields > .field,
  827. .ui.form .three.fields > .fields,
  828. .ui.form .three.fields > .field,
  829. .ui.form .four.fields > .fields,
  830. .ui.form .four.fields > .field,
  831. .ui.form .five.fields > .fields,
  832. .ui.form .five.fields > .field,
  833. .ui.form .fields > .two.wide.field,
  834. .ui.form .fields > .three.wide.field,
  835. .ui.form .fields > .four.wide.field,
  836. .ui.form .fields > .five.wide.field,
  837. .ui.form .fields > .six.wide.field,
  838. .ui.form .fields > .seven.wide.field,
  839. .ui.form .fields > .eight.wide.field,
  840. .ui.form .fields > .nine.wide.field,
  841. .ui.form .fields > .ten.wide.field,
  842. .ui.form .fields > .eleven.wide.field,
  843. .ui.form .fields > .twelve.wide.field,
  844. .ui.form .fields > .thirteen.wide.field,
  845. .ui.form .fields > .fourteen.wide.field,
  846. .ui.form .fields > .fifteen.wide.field,
  847. .ui.form .fields > .sixteen.wide.field {
  848. width: 100% !important;
  849. margin: 0em 0em 1em;
  850. padding-left: 0%;
  851. padding-right: 0%;
  852. }
  853. }
  854. /*--------------------
  855. Equal Width
  856. ---------------------*/
  857. .ui[class*="equal width"].form .fields > .field,
  858. .ui.form [class*="equal width"].fields > .field {
  859. width: 100%;
  860. -webkit-box-flex: 1;
  861. -webkit-flex: 1 1 auto;
  862. -ms-flex: 1 1 auto;
  863. flex: 1 1 auto;
  864. }
  865. /*--------------------
  866. Inline Fields
  867. ---------------------*/
  868. .ui.form .inline.fields {
  869. margin: 0em 0em 1em;
  870. -webkit-box-align: center;
  871. -webkit-align-items: center;
  872. -ms-flex-align: center;
  873. align-items: center;
  874. }
  875. .ui.form .inline.fields .field {
  876. margin: 0em;
  877. padding: 0em 1em 0em 0em;
  878. }
  879. /* Inline Label */
  880. .ui.form .inline.fields > label,
  881. .ui.form .inline.fields .field > label,
  882. .ui.form .inline.fields .field > p,
  883. .ui.form .inline.field > label,
  884. .ui.form .inline.field > p {
  885. display: inline-block;
  886. width: auto;
  887. margin-top: 0em;
  888. margin-bottom: 0em;
  889. vertical-align: baseline;
  890. font-size: 0.92307692em;
  891. font-weight: bold;
  892. color: rgba(0, 0, 0, 0.87);
  893. text-transform: none;
  894. }
  895. /* Grouped Inline Label */
  896. .ui.form .inline.fields > label {
  897. margin: 0.035714em 1em 0em 0em;
  898. }
  899. /* Inline Input */
  900. .ui.form .inline.fields .field > input,
  901. .ui.form .inline.fields .field > select,
  902. .ui.form .inline.field > input,
  903. .ui.form .inline.field > select {
  904. display: inline-block;
  905. width: auto;
  906. margin-top: 0em;
  907. margin-bottom: 0em;
  908. vertical-align: middle;
  909. font-size: 1em;
  910. }
  911. /* Label */
  912. .ui.form .inline.fields .field > :first-child,
  913. .ui.form .inline.field > :first-child {
  914. margin: 0em 0.84615385em 0em 0em;
  915. }
  916. .ui.form .inline.fields .field > :only-child,
  917. .ui.form .inline.field > :only-child {
  918. margin: 0em;
  919. }
  920. /* Wide */
  921. .ui.form .inline.fields .wide.field {
  922. display: -webkit-box;
  923. display: -webkit-flex;
  924. display: -ms-flexbox;
  925. display: flex;
  926. -webkit-box-align: center;
  927. -webkit-align-items: center;
  928. -ms-flex-align: center;
  929. align-items: center;
  930. }
  931. .ui.form .inline.fields .wide.field > input,
  932. .ui.form .inline.fields .wide.field > select {
  933. width: 100%;
  934. }
  935. /*--------------------
  936. Sizes
  937. ---------------------*/
  938. /* Standard */
  939. .ui.small.form {
  940. font-size: 0.92307692rem;
  941. }
  942. /* Medium */
  943. .ui.form {
  944. font-size: 1rem;
  945. }
  946. /* Large */
  947. .ui.large.form {
  948. font-size: 1.15384615rem;
  949. }
  950. /* Huge */
  951. .ui.huge.form {
  952. font-size: 1.46153846rem;
  953. }
  954. /*******************************
  955. Overrides
  956. *******************************/
  957. .ui.selection.dropdown {
  958. background-color: #FAFAFA;
  959. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075) inset;
  960. border-color: #CCCCCC;
  961. }
  962. .ui.selection.dropdown:focus {
  963. box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.075) inset, 0px 0px 5px rgba(81, 167, 232, 0.5);
  964. }
  965. /*******************************
  966. Site Overrides
  967. *******************************/