_cards.scss 721 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Cards
  2. .card {
  3. background: $bg-color-light;
  4. border: $border-width solid $border-color;
  5. border-radius: $border-radius;
  6. display: flex;
  7. flex-direction: column;
  8. .card-header,
  9. .card-body,
  10. .card-footer {
  11. padding: $layout-spacing-lg;
  12. padding-bottom: 0;
  13. &:last-child {
  14. padding-bottom: $layout-spacing-lg;
  15. }
  16. }
  17. .card-image {
  18. padding-top: $layout-spacing-lg;
  19. &:first-child {
  20. padding-top: 0;
  21. img {
  22. border-top-left-radius: $border-radius;
  23. border-top-right-radius: $border-radius;
  24. }
  25. }
  26. &:last-child {
  27. img {
  28. border-bottom-left-radius: $border-radius;
  29. border-bottom-right-radius: $border-radius;
  30. }
  31. }
  32. }
  33. }