forms.module.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. .input label {
  2. @apply font-display font-bold;
  3. }
  4. .input+.input {
  5. @apply mt-4;
  6. }
  7. .checkbox+.checkbox,
  8. .radio+.radio {
  9. @apply mt-2;
  10. }
  11. .textInput {
  12. @apply bg-grey-50 text-sm px-2 w-full text-black tracking-wide;
  13. min-height: 2.25rem;
  14. }
  15. .textInput::placeholder {
  16. @apply italic;
  17. }
  18. .textInput:focus {
  19. @apply outline-default shadow-strong-primary;
  20. }
  21. textarea.textInput {
  22. @apply pt-2;
  23. }
  24. .input.checkbox label,
  25. .input.radio label {
  26. @apply flex items-center;
  27. }
  28. .checkbox input,
  29. .radio input {
  30. @apply appearance-none h-6 w-6 border-black border-2 mr-2;
  31. }
  32. .radio input {
  33. @apply rounded-full;
  34. }
  35. .checkbox input:checked,
  36. .radio input:checked {
  37. @apply bg-primary;
  38. }
  39. .checkbox input:focus {
  40. @apply outline-default-small;
  41. }
  42. .checkbox input:focus+span,
  43. .radio input:focus+span {
  44. text-shadow: 1px 1px rgb(250, 204, 21);
  45. }
  46. .radio input:focus {
  47. @apply outline-none border-3;
  48. }
  49. .chipGroup {
  50. @apply flex flex-wrap -mx-2;
  51. }
  52. .chipGroup .chip {
  53. @apply m-2;
  54. }
  55. .chip input {
  56. @apply appearance-none;
  57. }
  58. .chip label {
  59. @apply text-xs uppercase font-semibold tracking-widest px-2 py-1.5 cursor-pointer select-none;
  60. }
  61. .chip input:focus:not(:checked)+label {
  62. @apply outline-black;
  63. }
  64. .chip.defaultColor label {
  65. @apply bg-grey-100;
  66. }
  67. .chip.primaryColor label {
  68. @apply bg-primary-100;
  69. }
  70. .chip.secondaryColor label {
  71. @apply bg-secondary-100;
  72. }
  73. .chip.defaultColor:hover label {
  74. @apply bg-grey-200;
  75. }
  76. .chip.primaryColor:hover label {
  77. @apply bg-primary-200;
  78. }
  79. .chip.secondaryColor:hover label {
  80. @apply bg-secondary-200;
  81. }
  82. .chip.defaultColor input:checked+label {
  83. @apply bg-grey-300;
  84. }
  85. .chip.primaryColor input:checked+label {
  86. @apply bg-primary-300;
  87. }
  88. .chip.secondaryColor input:checked+label {
  89. @apply bg-secondary-300 text-white;
  90. }