lbry.tech/app/sass/pages/_page.scss

79 lines
1.3 KiB
SCSS
Raw Normal View History

2018-05-08 22:55:33 +02:00
.page {
2018-10-06 00:46:08 +02:00
height: 100%;
2018-05-08 22:55:33 +02:00
display: flex;
2018-07-12 23:33:54 +02:00
flex: 1;
2018-05-08 22:55:33 +02:00
flex-direction: column;
}
.page__header-wrap {
width: 100%;
}
.page__header {
@include center;
2018-10-06 00:46:08 +02:00
width: 100%;
2019-05-14 21:40:35 +02:00
top: 4rem;
2018-10-06 00:46:08 +02:00
2018-10-13 00:29:53 +02:00
background-color: $lbry-black;
2018-05-08 22:55:33 +02:00
background-position: center;
background-repeat: no-repeat;
background-size: cover;
2018-10-13 00:29:53 +02:00
color: $lbry-white;
2018-05-11 16:07:16 +02:00
padding-right: env(safe-area-inset-right);
padding-left: env(safe-area-inset-left);
2019-05-14 21:40:35 +02:00
z-index: 2;
2018-05-08 22:55:33 +02:00
}
.page__header__title {
font-weight: 300;
2018-10-13 00:29:53 +02:00
text-shadow: 1px 1px 2px rgba($lbry-black, 0.3);
2018-05-10 21:44:31 +02:00
@media (min-width: 901px) {
font-size: 3rem;
2018-05-22 21:57:34 +02:00
line-height: 6.5rem;
2018-05-10 21:44:31 +02:00
}
@media (max-width: 900px) {
font-size: 2rem;
2018-05-22 21:57:34 +02:00
line-height: 1;
padding-top: 1rem;
padding-bottom: 1rem;
2018-05-10 21:44:31 +02:00
}
2019-05-14 21:40:35 +02:00
@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;
}
}
}
2018-05-08 22:55:33 +02:00
}
.page__content {
flex: 1;
padding-top: 2rem;
2018-05-11 16:07:16 +02:00
padding-right: env(safe-area-inset-right);
2018-10-06 00:46:08 +02:00
padding-bottom: 2rem;
2018-05-11 16:07:16 +02:00
padding-left: env(safe-area-inset-left);
2018-05-08 22:55:33 +02:00
}
2018-07-12 17:21:42 +02:00
.page__markup {
@extend %markdown;
}