TelegramPWA/src/components/main/premium/PremiumFeatureModal.module.scss
2022-08-31 15:00:45 +02:00

144 lines
2.3 KiB
SCSS

.root {
padding: 1rem;
}
.button {
font-weight: 600;
font-size: 1rem;
height: 3rem;
}
.button-content {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.back-button {
margin: -0.5rem;
position: absolute;
z-index: 2;
}
.white-back-button {
color: white !important;
}
.content {
margin: 0 -1rem;
margin-top: -1rem;
overflow-x: scroll;
display: flex;
scroll-snap-type: x mandatory;
width: calc(100% + 2rem);
}
.frame {
aspect-ratio: 1;
@supports not (aspect-ratio: 1) {
height: 0;
padding-bottom: 100%;
}
}
.slide {
width: 100%;
flex: none;
position: relative;
scroll-snap-align: center;
scroll-snap-stop: always;
margin-bottom: 7.5rem;
}
.limits {
background: var(--color-background);
}
.limits-content {
overflow: auto;
padding: 1rem;
margin-top: 3.6875rem;
height: calc(var(--vh) * 55 + 41px);
}
.header {
padding-left: 4rem;
font-size: 1.25rem;
font-weight: 500;
padding-top: 0.875rem;
padding-bottom: 0.875rem;
border-bottom: 0.0625rem solid var(--color-borders);
position: absolute;
background: var(--color-background);
width: 100%;
transition: 0.1s ease-out border-bottom-color;
}
.no-header-border {
border-bottom-color: transparent;
}
.preview {
position: absolute;
margin: 0 -1rem;
margin-top: -1rem;
background: var(--premium-feature-background);
aspect-ratio: 1;
width: 100%;
border-top-right-radius: var(--border-radius-default);
border-top-left-radius: var(--border-radius-default);
@supports not (aspect-ratio: 1) {
height: 0;
padding-bottom: 100%;
}
}
.title {
font-size: 1.25rem;
font-weight: 500;
text-align: center;
color: var(--color-text);
margin-top: 1rem;
}
.description {
font-size: 1rem;
font-weight: 400;
line-height: 1.375rem;
text-align: center;
color: var(--color-text-secondary);
padding: 0 5%;
}
.footer {
border-top: 0.0625rem solid var(--color-borders);
position: absolute;
bottom: 0;
left: 0;
padding: 0 1rem 1rem 1rem;
width: 100%;
background: var(--color-background);
transition: 0.1s ease-out border-top-color;
}
.no-footer-border {
border-top-color: transparent;
}
@media (max-width: 600px) {
.preview {
border-radius: 0;
}
.description {
padding: 0 2rem;
}
.limits-content {
height: calc(var(--vh) * 100 - 193px);
}
}