_pricing.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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: var(--#{$prefix}bg-surface);
  16. border: 1px solid $border-color;
  17. padding: 2rem;
  18. margin: 0 0 1rem;
  19. position: relative;
  20. box-shadow: $box-shadow-card;
  21. text-align: center;
  22. border-radius: $border-radius-lg;
  23. @include media-breakpoint-up(md) {
  24. margin: 1rem -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 $primary;
  36. order: -1;
  37. @include media-breakpoint-up(md) {
  38. order: unset;
  39. margin-top: 0;
  40. margin-bottom: 0;
  41. box-shadow: $box-shadow-card;
  42. border-radius: $border-radius-lg;
  43. }
  44. }
  45. }
  46. .pricing-title {
  47. font-size: $h2-font-size;
  48. line-height: $h2-line-height;
  49. }
  50. .pricing-label {
  51. position: absolute;
  52. top: 0;
  53. left: 0;
  54. transform: translateY(-50%);
  55. vertical-align: bottom;
  56. right: 0;
  57. display: flex;
  58. align-items: center;
  59. justify-content: center;
  60. }
  61. .pricing-btn {
  62. margin-top: auto;
  63. padding-top: 2rem;
  64. }
  65. .pricing-price {
  66. display: flex;
  67. justify-content: center;
  68. font-size: 2.5rem;
  69. line-height: 1;
  70. font-weight: $font-weight-black;
  71. margin: 0.75rem 0;
  72. }
  73. .pricing-price-currency {
  74. font-size: $h2-font-size;
  75. line-height: 1.5;
  76. margin-right: 0.25rem;
  77. font-weight: $font-weight-bold;
  78. }
  79. .pricing-price-description {
  80. font-size: $h4-font-size;
  81. line-height: $h4-line-height;
  82. font-weight: $font-weight-normal;
  83. color: $text-secondary;
  84. align-self: center;
  85. margin-left: 0.5rem;
  86. }
  87. .pricing-features {
  88. margin: 1rem 0 0;
  89. padding: 0;
  90. list-style: none;
  91. text-align: left;
  92. > li:not(:first-child) {
  93. margin-top: 0.25rem;
  94. }
  95. }