lbry.tech/app/sass/pages/_page.scss
ポール ウェッブ 5c08cfe05c Closes #261
2019-05-14 14:40:35 -05:00

82 lines
1.4 KiB
SCSS

.page {
height: 100%;
display: flex;
flex: 1;
flex-direction: column;
}
.page__header-wrap {
width: 100%;
}
.page__header {
@include center;
width: 100%;
top: 4rem;
background-color: $lbry-black;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
color: $lbry-white;
padding-right: env(safe-area-inset-right);
padding-left: env(safe-area-inset-left);
position: sticky;
z-index: 2;
// GOOD OL' SAFARI
position: -webkit-sticky; // sass-lint:disable-line no-duplicate-properties
}
.page__header__title {
font-weight: 300;
text-shadow: 1px 1px 2px rgba($lbry-black, 0.3);
@media (min-width: 901px) {
font-size: 3rem;
line-height: 6.5rem;
}
@media (max-width: 900px) {
font-size: 2rem;
line-height: 1;
padding-top: 1rem;
padding-bottom: 1rem;
}
@media (min-width: 801px) {
button {
display: none;
}
}
@media (max-width: 800px) {
button {
margin-right: 1rem; padding-right: 1rem;
position: relative;
&::after {
width: 1px; height: 100%;
top: 0; right: 0;
background-color: $lbry-white;
content: "";
opacity: 0.3;
position: absolute;
}
}
}
}
.page__content {
flex: 1;
padding-top: 2rem;
padding-right: env(safe-area-inset-right);
padding-bottom: 2rem;
padding-left: env(safe-area-inset-left);
}
.page__markup {
@extend %markdown;
}