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

360 lines
6 KiB
SCSS
Raw Normal View History

2018-05-08 22:55:33 +02:00
.page {
display: flex;
2018-07-12 23:33:54 +02:00
flex: 1;
2018-05-08 22:55:33 +02:00
flex-direction: column;
height: 100%;
}
.page__header-wrap {
width: 100%;
}
.page__header {
@include center;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
color: $white;
2018-05-11 16:07:16 +02:00
padding-right: env(safe-area-inset-right);
padding-left: env(safe-area-inset-left);
2018-05-08 22:55:33 +02:00
position: relative;
2018-05-10 21:44:31 +02:00
width: 100%;
2018-05-08 22:55:33 +02:00
}
.page__header__title {
font-weight: 300;
text-shadow: 1px 1px 2px rgba($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
}
2018-05-08 22:55:33 +02:00
}
.page__content {
background-repeat: repeat;
background-size: 32px;
flex: 1;
padding-top: 2rem;
padding-bottom: 2rem;
2018-05-11 16:07:16 +02:00
padding-right: env(safe-area-inset-right);
padding-left: env(safe-area-inset-left);
2018-05-08 22:55:33 +02:00
h1 {
margin-bottom: 0.25rem;
2018-05-24 02:07:51 +02:00
@media (min-width: 901px) {
font-size: 3rem;
}
@media (max-width: 900px) {
font-size: 2rem;
}
2018-05-08 22:55:33 +02:00
+ h2 {
margin-top: 2rem;
2018-05-08 22:55:33 +02:00
}
}
2018-05-28 18:40:05 +02:00
h2:not(.__title) {
2018-05-24 02:07:51 +02:00
@media (min-width: 901px) {
font-size: 2rem;
}
@media (max-width: 900px) {
font-size: 1.5rem;
}
2018-05-17 21:09:18 +02:00
+ h3 {
margin-top: 1rem;
2018-05-17 21:09:18 +02:00
}
2018-05-08 22:55:33 +02:00
}
2018-06-28 23:40:09 +02:00
h3:not(.ecosystem__submodule__title) {
2018-05-24 02:07:51 +02:00
@media (min-width: 901px) {
font-size: 1.5rem;
}
@media (max-width: 900px) {
font-size: 1.25rem;
}
+ table {
top: 0.25rem;
}
2018-05-08 22:55:33 +02:00
}
2018-06-28 23:40:09 +02:00
h4:not(.ecosystem__submodule__description__title) {
2018-05-08 22:55:33 +02:00
letter-spacing: 0.05rem;
text-transform: uppercase;
2018-05-24 02:07:51 +02:00
@media (min-width: 901px) {
font-size: 1.25rem;
}
@media (max-width: 900px) {
font-size: 1.15rem;
}
}
h5 {
font-size: 1rem;
2018-05-08 22:55:33 +02:00
}
2018-06-14 22:01:05 +02:00
sup {
@include font-mono;
}
2018-06-13 20:49:27 +02:00
blockquote {
left: 2px;
2018-06-13 23:21:17 +02:00
line-height: 1.5;
margin-bottom: 0.5rem;
2018-06-13 20:49:27 +02:00
position: relative;
2018-06-13 23:21:17 +02:00
@media (min-width: 601px) {
margin-left: 15%; padding: 0.5rem 0 0.05rem 2rem;
font-size: 1.5rem;
width: 70%;
}
@media (max-width: 600px) {
font-size: 1.25rem;
padding: 0.5rem 0 0.05rem 0;
}
2018-06-13 20:49:27 +02:00
2018-06-13 23:21:17 +02:00
@media (min-width: 376px) and (max-width: 600px) {
margin-left: 5%;
width: 90%;
}
p {
font-size: inherit;
line-height: inherit;
}
&::before {
@include font-serif;
width: 150px; height: 100px;
top: 3rem; left: -2rem;
color: rgba($teal, 0.2);
content: "\201C";
font-size: 20rem;
line-height: 0.5;
2018-06-13 20:49:27 +02:00
position: absolute;
}
}
2018-06-29 18:09:36 +02:00
p,
ol,
ul:not(.overview__ecosystem__module),
table {
2018-05-08 22:55:33 +02:00
code {
background-color: $black;
border-radius: 3px;
color: $white;
font-size: 60%;
letter-spacing: 0.05rem;
padding: 0.3rem 0.5rem;
vertical-align: middle;
@media (max-width: 900px) {
position: relative;
top: -1px;
}
2018-05-08 22:55:33 +02:00
}
}
2018-06-29 18:09:36 +02:00
p,
ol,
2018-06-30 00:10:30 +02:00
ul:not(.feature-links):not(.overview__ecosystem__module):not(.__parents) {
2018-06-12 01:04:54 +02:00
margin-bottom: 1rem;
2018-05-10 21:44:31 +02:00
position: relative;
@media (min-width: 901px) {
font-size: 1.25rem;
line-height: 1.6;
2018-05-10 21:44:31 +02:00
}
@media (max-width: 900px) {
font-size: 1.05rem;
line-height: 1.55;
2018-05-17 21:09:18 +02:00
}
}
2018-06-29 18:09:36 +02:00
ol,
2018-08-07 00:51:32 +02:00
ul:not(.feature-links):not(.overview__ecosystem__module):not(.__parents):not(.tour__sidebar) {
2018-05-17 21:09:18 +02:00
padding-top: 0.5rem;
li {
&:not(:last-of-type) {
margin-bottom: 0.25rem;
}
}
+ h2, + h3, + h4, + h5 {
padding-top: 2rem;
2018-05-10 21:44:31 +02:00
}
}
ol {
list-style-type: lower-roman;
padding-left: 1.6rem;
}
2018-08-07 00:51:32 +02:00
ul:not(.feature-links):not(.overview__ecosystem__module):not(.__parents):not(.tour__sidebar) {
2018-05-08 22:55:33 +02:00
padding-left: 1.25rem;
}
p {
img {
float: right;
}
}
2018-07-26 00:04:21 +02:00
a:not(.__button-black):not(.button):not(.feature-link__title):not(.header-anchor):not(.newsletter-standalone__submit):not(.__plain) {
2018-06-29 18:09:36 +02:00
@include underline($teal, $white);
2018-05-11 20:01:39 +02:00
color: $teal;
2018-08-29 23:57:57 +02:00
code {
background-color: $teal;
text-shadow: none;
}
2018-05-08 22:55:33 +02:00
}
pre {
margin-bottom: 2rem; padding: 2rem;
border-radius: 3px;
font-size: 1rem;
line-height: 1.33;
2018-05-22 21:57:34 +02:00
overflow-x: auto;
overflow-y: hidden;
&:not([class]),
&.language-text {
background-color: #27283e;
2018-05-22 21:57:34 +02:00
color: $white;
}
&.language-yaml {
background-color: #27273f;
color: #ffe066;
.atrule {
color: #f083ac;
}
2018-05-23 00:28:40 +02:00
.important {
color: #ffa94d;
}
2018-05-22 21:57:34 +02:00
.punctuation {
color: $white;
}
}
2018-05-08 22:55:33 +02:00
}
table {
background-color: $white;
border: 1px solid rgba($gray, 0.3);
border-spacing: 0;
2018-05-08 22:55:33 +02:00
margin-bottom: 2rem;
2018-05-24 02:07:51 +02:00
position: relative;
width: 100%;
@media (max-width: 1030px) {
display: inline-grid;
thead {
display: none;
}
tbody, tr, td {
display: block;
}
tbody tr:last-of-type td:not(:last-of-type) {
border-bottom: 1px solid rgba($gray, 0.3);
}
}
thead {
background-color: $black;
color: $white;
cursor: default;
position: relative;
tr {
position: relative;
z-index: 1;
}
2018-05-25 18:22:24 +02:00
&:not(*:root) {
&::after {
z-index: -1;
}
}
&::after {
width: calc(100% + 2px); height: calc(100% + 2px);
top: -1px; left: -1px;
background-color: $black;
content: "";
position: absolute;
z-index: 0;
}
}
tbody {
line-height: 1.55;
}
tr:nth-of-type(even) {
background-color: rgba($black, 0.025);
}
2018-05-08 22:55:33 +02:00
th, td {
padding: 0.5rem 1rem;
2018-05-08 22:55:33 +02:00
}
th {
font-size: 0.8rem;
letter-spacing: 0.1rem;
text-transform: uppercase;
}
tbody tr:not(:last-of-type) td {
border-bottom: 1px solid rgba($gray, 0.3);
2018-05-08 22:55:33 +02:00
}
td {
font-size: 1rem;
2018-05-08 22:55:33 +02:00
}
}
}
2018-07-12 17:21:42 +02:00
.page__header {
2018-08-29 01:57:18 +02:00
// background-image: url("/assets/media/images/background-a.jpg");
background-color: $black;
2018-07-12 17:21:42 +02:00
}
.page__content {
2018-07-23 23:46:58 +02:00
background-image: url("/assets/media/images/grid.png");
2018-07-12 17:21:42 +02:00
}