_card.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. .card-md > & {
  23. padding: 2.5rem;
  24. }
  25. }
  26. .card-title {
  27. font-weight: $font-weight-bold;
  28. }
  29. .card-icon {
  30. color: $color-primary;
  31. width: 1.5rem;
  32. height: 1.5rem;
  33. stroke-width: 1.5;
  34. }
  35. .cards {
  36. margin: 1.5rem 0;
  37. display: grid;
  38. gap: $gap-4;
  39. grid-template-columns: repeat( auto-fill, minmax(270px, 1fr) );
  40. }
  41. .card-chevron {
  42. padding: 0;
  43. display: flex;
  44. align-items: center;
  45. justify-content: center;
  46. color: $color-muted-light;
  47. transition: $transition-duration transform;
  48. .icon {
  49. width: 2rem;
  50. height: 2rem;
  51. stroke-width: 1;
  52. }
  53. @at-root .card:hover & {
  54. transform: translateX(.25rem);
  55. color: $color-headers;
  56. }
  57. }
  58. .card-chevron-left {
  59. @at-root .card:hover & {
  60. transform: translateX(-.25rem);
  61. }
  62. }