card.sass 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. .card-header
  2. align-items: stretch
  3. box-shadow: 0 1px 2px rgba($black, 0.1)
  4. display: flex
  5. min-height: 40px
  6. .card-header-title
  7. align-items: flex-start
  8. color: $text-strong
  9. display: flex
  10. flex-grow: 1
  11. font-weight: bold
  12. padding: 10px
  13. .card-header-icon
  14. align-items: center
  15. cursor: pointer
  16. display: flex
  17. justify-content: center
  18. width: 40px
  19. .card-image
  20. display: block
  21. position: relative
  22. .card-content
  23. padding: 20px
  24. .title + .subtitle
  25. margin-top: -20px
  26. .card-footer
  27. border-top: 1px solid $border
  28. align-items: stretch
  29. display: flex
  30. .card-footer-item
  31. align-items: center
  32. display: flex
  33. flex-grow: 1
  34. justify-content: center
  35. padding: 10px
  36. &:not(:last-child)
  37. border-right: 1px solid $border
  38. .card
  39. background-color: $white
  40. box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1)
  41. color: $text
  42. max-width: 100%
  43. position: relative
  44. width: 300px
  45. .media:not(:last-child)
  46. margin-bottom: 10px
  47. // Modifiers
  48. &.is-fullwidth
  49. width: 100%
  50. &.is-rounded
  51. border-radius: $radius-large