index.css 969 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. @tailwind components;
  2. @layer components {
  3. .action-btn {
  4. @apply inline-flex justify-center items-center cursor-pointer text-text-tertiary
  5. hover:text-text-secondary
  6. hover:bg-state-base-hover
  7. }
  8. .action-btn-disabled {
  9. @apply cursor-not-allowed
  10. }
  11. .action-btn-xl {
  12. @apply p-2 w-9 h-9 rounded-lg
  13. }
  14. .action-btn-l {
  15. @apply p-1.5 w-8 h-8 rounded-lg
  16. }
  17. /* m is for the regular button */
  18. .action-btn-m {
  19. @apply p-0.5 w-6 h-6 rounded-lg
  20. }
  21. .action-btn-xs {
  22. @apply p-0 w-4 h-4 rounded
  23. }
  24. .action-btn.action-btn-active {
  25. @apply
  26. text-text-accent
  27. bg-state-accent-active
  28. hover:bg-state-accent-active-alt
  29. }
  30. .action-btn.action-btn-disabled {
  31. @apply
  32. text-text-disabled
  33. }
  34. .action-btn.action-btn-destructive {
  35. @apply
  36. text-text-destructive
  37. bg-state-destructive-hover
  38. }
  39. }