_pricing.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. $pricing-card-width: 22rem;
  2. .pricing {
  3. display: flex;
  4. flex-direction: column;
  5. margin: 0 auto;
  6. justify-content: center;
  7. @include media-breakpoint-up(md) {
  8. flex-direction: row;
  9. }
  10. }
  11. .pricing-card {
  12. flex: 1;
  13. display: flex;
  14. flex-direction: column;
  15. background: $color-white;
  16. border: 1px solid $color-border;
  17. padding: $gap-5;
  18. margin: 0 0 $gap-4;
  19. position: relative;
  20. box-shadow: $shadow-card;
  21. text-align: center;
  22. border-radius: $border-radius-lg;
  23. @include media-breakpoint-up(md) {
  24. margin: $gap-4 -1px;
  25. max-width: $pricing-card-width;
  26. &:first-child {
  27. border-radius: $border-radius-lg 0 0 $border-radius-lg;
  28. }
  29. &:last-child {
  30. border-radius: 0 $border-radius-lg $border-radius-lg 0;
  31. }
  32. }
  33. &.featured {
  34. z-index: 1;
  35. border: 2px solid $color-primary;
  36. order: -1;
  37. @include media-breakpoint-up(md) {
  38. order: unset;
  39. margin-top: 0;
  40. margin-bottom: 0;
  41. box-shadow: $shadow-card-lg;
  42. border-radius: $border-radius-lg;
  43. }
  44. }
  45. }
  46. .pricing-title {
  47. font-size: $font-size-h3;
  48. line-height: $line-height-h3;
  49. }
  50. .pricing-label {
  51. height: $gap-4;
  52. margin-top: -$gap-3;
  53. margin-bottom: $gap-3;
  54. display: flex;
  55. align-items: center;
  56. justify-content: center;
  57. }
  58. .pricing-btn {
  59. margin-top: auto;
  60. padding-top: $gap-4;
  61. }
  62. .pricing-price {
  63. display: flex;
  64. justify-content: center;
  65. font-size: $font-size-h0;
  66. line-height: 1;
  67. font-weight: $font-weight-black;
  68. margin: $gap-3 0;
  69. }
  70. .pricing-price-currency {
  71. font-size: $font-size-h2;
  72. line-height: 1.5;
  73. margin-right: $gap-1;
  74. font-weight: $font-weight-bold;
  75. }
  76. .pricing-price-description {
  77. font-size: $font-size-h5;
  78. line-height: $line-height-h5;
  79. font-weight: $font-weight-normal;
  80. color: $color-muted;
  81. align-self: center;
  82. margin-left: $gap-2;
  83. }
  84. .pricing-features {
  85. margin: $gap-4 0 0;
  86. padding: 0;
  87. list-style: none;
  88. text-align: left;
  89. >li:not(:first-child) {
  90. margin-top: $gap-1;
  91. }
  92. }
  93. .pricing-banner {
  94. background: $color-gray;
  95. margin: 0 auto;
  96. padding: $gap-4;
  97. border-radius: $border-radius-lg;
  98. }