mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
114 lines
2.1 KiB
SCSS
114 lines
2.1 KiB
SCSS
@use '../config' as *;
|
|
|
|
$pricing-card-width: 22rem;
|
|
|
|
.pricing {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
margin: 0 auto;
|
|
|
|
@include media-breakpoint-up(md) {
|
|
flex-direction: row;
|
|
}
|
|
}
|
|
|
|
.pricing-card {
|
|
position: relative;
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
padding: 2rem;
|
|
margin: 0 0 1rem;
|
|
text-align: center;
|
|
background: var(--bg-surface);
|
|
border: var(--border-width) solid var(--border-color);
|
|
box-shadow: var(--shadow-card);
|
|
@include border-radius($border-radius-lg);
|
|
|
|
@include media-breakpoint-up(md) {
|
|
max-width: $pricing-card-width;
|
|
margin: 1rem -1px;
|
|
|
|
&:first-child {
|
|
@include border-radius($border-radius-lg 0 0 $border-radius-lg);
|
|
}
|
|
|
|
&:last-child {
|
|
@include border-radius(0 $border-radius-lg $border-radius-lg 0);
|
|
}
|
|
}
|
|
|
|
&.featured {
|
|
z-index: 1;
|
|
order: -1;
|
|
border: 2px solid var(--primary);
|
|
|
|
@include media-breakpoint-up(md) {
|
|
order: unset;
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
box-shadow: var(--shadow-card);
|
|
@include border-radius($border-radius-lg);
|
|
}
|
|
}
|
|
}
|
|
|
|
.pricing-title {
|
|
font-size: $h2-font-size;
|
|
line-height: $h2-line-height;
|
|
}
|
|
|
|
.pricing-label {
|
|
position: absolute;
|
|
inset-inline-start: 0;
|
|
inset-inline-end: 0;
|
|
top: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
vertical-align: bottom;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.pricing-btn {
|
|
padding-top: 2rem;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.pricing-price {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin: 0.75rem 0;
|
|
font-size: 2.5rem;
|
|
font-weight: $font-weight-semibold;
|
|
line-height: 1;
|
|
}
|
|
|
|
.pricing-price-currency {
|
|
margin-inline-end: 0.25rem;
|
|
font-size: $h2-font-size;
|
|
font-weight: $font-weight-semibold;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.pricing-price-description {
|
|
align-self: center;
|
|
margin-inline-start: 0.5rem;
|
|
font-size: $h4-font-size;
|
|
font-weight: $font-weight-normal;
|
|
line-height: $h4-line-height;
|
|
color: $text-secondary;
|
|
}
|
|
|
|
.pricing-features {
|
|
padding: 0;
|
|
margin: 1rem 0 0;
|
|
text-align: start;
|
|
list-style: none;
|
|
|
|
> li:not(:first-child) {
|
|
margin-top: 0.25rem;
|
|
}
|
|
}
|