style.css 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. :root {
  2. --color-form: rgb(203, 222, 228);
  3. --color-field: rgba(255, 0, 0, 0.123);
  4. --color-label: rgba(0, 255, 42, 0.123);
  5. --color-input: rgba(0, 4, 255, 0.123);
  6. }
  7. /* Remove the code below to restore colors */
  8. :root { --color-form: transparent; --color-field: transparent; --color-label: transparent; --color-input: transparent; }
  9. body {
  10. display: flex;
  11. flex-direction: column;
  12. }
  13. .body--centered {
  14. align-items: center;
  15. }
  16. .form {
  17. display: flex;
  18. flex-direction: column;
  19. background-color: var(--color-form);
  20. }
  21. .form__submit {
  22. align-self: flex-end;
  23. }
  24. .field {
  25. display: flex;
  26. align-items: center;
  27. background-color: var(--color-field);
  28. margin: 0.2em 0px;
  29. }
  30. .field__label {
  31. flex: 1;
  32. background-color: var(--color-label);
  33. }
  34. .field__input {
  35. flex: 2;
  36. background-color: var(--color-input);
  37. }
  38. .select {
  39. }
  40. .select__option {
  41. }
  42. .radio {
  43. }
  44. /* With this setting all the options are lined horizontally */
  45. .radio--inline {
  46. display: flex;
  47. }
  48. .radio--inline .radio__option {
  49. flex: none;
  50. }
  51. .radio--inline .radio__label {
  52. flex: 1;
  53. }
  54. .radio--grid {
  55. display: grid;
  56. grid-template-columns: auto auto;
  57. justify-content: start;
  58. }
  59. .radio--grid .radio__option {
  60. grid-column: 1;
  61. }
  62. .radio--grid .radio__label {
  63. grid-column: 2;
  64. }