card-background.scss 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. .card {
  2. &.card-background {
  3. align-items: $card-bg-align-items;
  4. .full-background {
  5. background-position: $card-full-bg-bg-position;
  6. background-size: $card-full-bg-bg-size;
  7. margin-bottom: $card-full-bg-mb;
  8. width: $card-full-bg-width;
  9. height: $card-full-bg-height;
  10. position: $card-full-bg-position;
  11. border-radius: $card-border-radius;
  12. }
  13. .card-body {
  14. color: $white;
  15. position: $card-bg-body-position;
  16. z-index: $card-bg-body-z-index;
  17. .content-center,
  18. .content-left {
  19. min-height: $card-bg-content-min-height;
  20. max-width: $card-bg-content-max-width;
  21. padding-top: $card-bg-content-pt;
  22. padding-bottom: $card-bg-content-pb;
  23. }
  24. .content-center {
  25. text-align: center;
  26. }
  27. &.body-left {
  28. width: $card-bg-body-left-width;
  29. }
  30. .author {
  31. .name {
  32. span,
  33. .stats {
  34. color: $white;
  35. }
  36. }
  37. }
  38. }
  39. &:after {
  40. position: $card-bg-filter-position;
  41. top: $card-bg-filter-top;
  42. bottom: $card-bg-filter-bottom;
  43. left: $card-bg-filter-left;
  44. height: $card-bg-filter-height;
  45. width: $card-bg-filter-width;
  46. z-index: $card-bg-filter-z-index;
  47. display: $card-bg-filter-display;
  48. content: $card-bg-filter-content;
  49. background: $card-bg-filter-bg;
  50. border-radius: $card-border-radius;
  51. }
  52. @each $name, $val in $theme-gradient-colors {
  53. &.card-background-mask-#{$name} {
  54. &:before {
  55. background: $card-bg-filter-mask-bg;
  56. }
  57. &:after {
  58. @include gradient-directional(nth($val, 1) 0%, nth($val, -1) 100%, $deg: 310deg);
  59. opacity: .85;
  60. }
  61. }
  62. }
  63. .card-category {
  64. font-size: $font-size-sm;
  65. font-weight: $font-weight-bold;
  66. }
  67. .card-description {
  68. margin-top: $card-bg-description-margin;
  69. margin-bottom: $card-bg-description-margin;
  70. }
  71. }
  72. }