_card.scss 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /**
  2. Cards
  3. */
  4. .card {
  5. display: flex;
  6. background: $color-white;
  7. border: 1px solid $color-border-light;
  8. border-radius: $border-radius-lg;
  9. color: inherit;
  10. transition: $transition-duration border-color, $transition-duration background-color;
  11. @at-root a#{&} {
  12. &:hover {
  13. color: inherit;
  14. border-color: $color-border;
  15. background-color: $color-gray-light;
  16. }
  17. }
  18. }
  19. .card-body {
  20. padding: $gap-4;
  21. flex: 1;
  22. }
  23. .card-title {
  24. font-weight: $font-weight-bold;
  25. }
  26. .card-icon {
  27. color: $color-primary;
  28. width: 1.5rem;
  29. height: 1.5rem;
  30. stroke-width: 1.5;
  31. }
  32. .cards {
  33. margin: 1.5rem 0;
  34. display: grid;
  35. gap: $gap-4;
  36. grid-template-columns: repeat( auto-fill, minmax(270px, 1fr) );
  37. }
  38. .card-chevron {
  39. padding: 0;
  40. display: flex;
  41. align-items: center;
  42. justify-content: center;
  43. color: $color-muted-light;
  44. transition: $transition-duration transform;
  45. .icon {
  46. width: 2rem;
  47. height: 2rem;
  48. stroke-width: 1;
  49. }
  50. @at-root .card:hover & {
  51. transform: translateX(.25rem);
  52. color: $color-headers;
  53. }
  54. }
  55. .card-chevron-left {
  56. @at-root .card:hover & {
  57. transform: translateX(-.25rem);
  58. }
  59. }