globals.css 974 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. }