globals.css 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. @tailwind base;
  2. @tailwind components;
  3. @tailwind utilities;
  4. @layer base {
  5. html,
  6. body {
  7. @apply text-prisma-900 p-0 m-0;
  8. font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
  9. Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  10. }
  11. a {
  12. color: inherit;
  13. text-decoration: none;
  14. }
  15. * {
  16. box-sizing: border-box;
  17. }
  18. }
  19. @layer components {
  20. .form {
  21. @apply w-full max-w-screen-xs mx-auto flex flex-col xs:grid xs:grid-cols-form xs:items-center gap-4;
  22. }
  23. .form-group {
  24. @apply xs:contents;
  25. }
  26. .form-label {
  27. @apply font-bold flex-1 xs:text-right;
  28. }
  29. .form-input {
  30. @apply bg-prisma-50 w-full rounded py-2 px-3 text-sm;
  31. }
  32. .form-button {
  33. @apply col-start-2 w-max py-2 px-4 bg-prisma-900 text-white font-bold rounded text-sm hover:bg-prisma-800 active:bg-prisma-700;
  34. }
  35. .form-alert-msg {
  36. @apply col-span-2 bg-red-200 p-4 text-center rounded font-bold text-red-900;
  37. }
  38. .form-success-msg {
  39. @apply col-span-2 bg-green-200 p-4 text-center rounded font-bold text-green-900;
  40. }
  41. }