button.module.css 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* Button Group */
  2. .buttonGroup {
  3. @apply flex -mx-2 flex-wrap;
  4. }
  5. .buttonGroup .button {
  6. @apply m-2;
  7. }
  8. /* Button */
  9. .button {
  10. @apply font-semibold tracking-wider uppercase text-base border-3 px-2 transition-box-shadow;
  11. }
  12. /* Colors */
  13. .defaultColor {
  14. @apply bg-black text-white border-black;
  15. }
  16. .primaryColor {
  17. @apply bg-primary-400 border-primary-400;
  18. }
  19. .secondaryColor {
  20. @apply text-white bg-secondary-500 border-secondary-500;
  21. }
  22. /* States */
  23. .button:hover {
  24. @apply transform -translate-y-0.5 -translate-x-0.5;
  25. }
  26. .button:focus {
  27. @apply transform -translate-x-px -translate-y-px;
  28. }
  29. .button:disabled {
  30. @apply cursor-not-allowed pointer-events-none bg-grey-300 text-black border-grey-300;
  31. }
  32. .defaultColor:hover {
  33. @apply shadow-strong-primary;
  34. }
  35. .defaultColor:focus {
  36. @apply outline-primary;
  37. }
  38. .primaryColor:hover,
  39. .secondaryColor:hover {
  40. @apply shadow-strong;
  41. }
  42. .primaryColor:focus,
  43. .secondaryColor:focus {
  44. @apply outline-default;
  45. }
  46. .outlineColor:hover {
  47. @apply shadow-strong-secondary;
  48. }
  49. .outlineColor:focus {
  50. @apply outline-secondary;
  51. }
  52. /* Sizes */
  53. .mediumSize {
  54. @apply h-8;
  55. }