lbry.tech/sass/pages/_home.scss

368 lines
6.7 KiB
SCSS
Raw Normal View History

2018-05-02 00:45:31 +02:00
.home {
2018-05-11 16:07:16 +02:00
padding-right: env(safe-area-inset-right);
2018-05-11 16:08:53 +02:00
padding-left: env(safe-area-inset-left);
2018-05-11 16:07:16 +02:00
2018-05-02 00:45:31 +02:00
h2 {
font-weight: normal;
2018-05-02 00:45:31 +02:00
margin-bottom: 4rem;
text-align: center;
2018-05-02 00:45:31 +02:00
2018-05-10 21:13:25 +02:00
@media (min-width: 851px) {
font-size: 1.75rem;
}
@media (max-width: 850px) {
font-size: 1.25rem;
}
2018-05-08 22:55:33 +02:00
}
2018-05-02 00:45:31 +02:00
hr {
width: 100%; height: 1px;
background-color: rgba($black, 0.1);
border: none;
margin-bottom: 4rem;
}
.hero {
2018-05-02 00:45:31 +02:00
align-items: center;
background-color: $black;
2018-07-23 23:46:58 +02:00
background-image: url("/assets/media/svg/text-logo--white.svg");
2018-05-02 00:45:31 +02:00
background-position: center;
background-repeat: no-repeat;
display: flex;
2018-05-18 07:39:36 +02:00
grid-area: header;
2018-05-11 16:07:16 +02:00
height: calc(50vh - 4rem); min-height: 300px;
2018-05-02 00:45:31 +02:00
justify-content: center;
2018-05-10 21:13:25 +02:00
@media (max-width: 850px) {
background-size: cover;
}
h1 {
2018-05-02 00:45:31 +02:00
background-color: $white;
border: 1px solid rgba($black, 0.1);
box-decoration-break: clone;
display: inline;
font-weight: normal;
2018-05-02 00:45:31 +02:00
line-height: 2;
padding: 0.4rem 1rem;
2018-08-01 00:26:12 +02:00
-webkit-box-decoration-break: clone; // Safari
@media (min-width: 851px) {
font-size: 1.75rem;
}
@media (max-width: 850px) {
font-size: 1.25rem;
}
2018-05-02 00:45:31 +02:00
}
}
.features {
2018-05-18 07:39:36 +02:00
grid-area: features;
2018-05-02 00:45:31 +02:00
.home__features {
align-content: center;
border-bottom: 1px solid rgba($black, 0.05);
display: flex;
flex-flow: row wrap;
list-style-type: none;
padding-top: 2rem;
padding-bottom: 2rem;
}
.home__feature {
position: relative;
text-align: center;
vertical-align: top;
2018-05-10 21:13:25 +02:00
@media (min-width: 651px) {
width: 50%;
}
@media (max-width: 650px) {
width: 100%;
&:first-of-type {
padding-bottom: 1rem;
}
&:last-of-type {
padding-top: 1rem;
}
}
2018-05-02 00:45:31 +02:00
}
.home__feature__title {
font-size: 2rem;
margin-bottom: 0.5rem;
}
.home__feature__description {
font-size: 1rem;
left: 10%;
margin-bottom: 1rem;
position: relative;
width: 80%;
}
.home__feature__cta {
@extend .__button-black;
display: inline-block;
font-size: 1rem;
position: relative;
}
}
.intro,
.docs,
.contribute,
.develop,
.community {
2018-05-02 00:45:31 +02:00
padding-top: 3rem;
padding-bottom: 3.5rem;
.inner-wrap {
position: relative;
}
2018-05-02 00:45:31 +02:00
h3 {
letter-spacing: 0.1rem;
line-height: 1;
text-transform: uppercase;
2018-05-10 21:13:25 +02:00
@media (min-width: 1301px) {
top: -0.85rem; left: -2rem;
color: rgba($black, 0.045);
font-size: 4rem;
position: absolute;
}
@media (max-width: 1300px) {
color: $black;
}
@media (min-width: 901px) and (max-width: 1300px) {
font-size: 3rem;
}
@media (max-width: 900px) {
font-size: 2rem;
margin-bottom: 1rem;
}
}
p {
margin-bottom: 1.5rem;
max-width: 1000px;
2018-05-10 21:13:25 +02:00
@media (min-width: 901px) {
font-size: 1.5rem;
line-height: 1.55;
}
@media (max-width: 900px) {
font-size: 1.25rem;
line-height: 1.33;
}
&:first-of-type {
padding-top: 0.5rem;
}
}
.cta {
@extend .__button-black;
top: 0.5rem;
2018-05-02 00:45:31 +02:00
}
}
.intro,
.docs,
.contribute,
.develop {
2018-05-02 00:45:31 +02:00
border-bottom: 1px solid rgba($black, 0.05);
}
.intro,
.docs {
2018-05-18 07:39:36 +02:00
@media (min-width: 1301px) {
padding-left: 10%;
}
}
.intro {
2018-05-18 07:39:36 +02:00
grid-area: intro;
}
.docs {
2018-05-18 07:39:36 +02:00
grid-area: docs;
}
.community,
.contribute {
2018-05-03 23:55:34 +02:00
p {
2018-05-10 21:13:25 +02:00
@media (min-width: 1301px) {
margin-right: auto;
margin-left: auto;
text-align: center;
}
2018-05-03 23:55:34 +02:00
}
ul {
list-style-type: none;
padding-top: 1rem;
&::after {
@include clearfix;
}
2018-05-10 21:13:25 +02:00
@media (min-width: 901px) {
font-size: 1.5rem;
}
@media (min-width: 751px) and (max-width: 900px) {
font-size: 1.25rem;
}
@media (max-width: 750px) {
font-size: 1rem;
}
2018-05-03 23:55:34 +02:00
li {
float: left;
position: relative;
text-align: center;
2018-05-10 21:13:25 +02:00
@media (max-width: 750px) {
margin-bottom: 2rem;
min-width: 8rem;
2018-05-03 23:55:34 +02:00
}
a {
display: block;
position: relative;
2018-05-10 21:13:25 +02:00
padding-top: 4rem;
2018-05-03 23:55:34 +02:00
transition: color 0.2s;
2018-05-10 21:13:25 +02:00
&::before {
width: 100%; height: 100%;
background-position: center 0;
background-repeat: no-repeat;
content: "";
left: 0;
position: absolute;
}
2018-05-03 23:55:34 +02:00
&:not(:hover) {
color: inherit;
}
&:hover {
color: $teal;
}
}
}
}
}
.contribute {
2018-05-18 07:39:36 +02:00
grid-area: contribute;
ul {
li {
@media (min-width: 701px) {
width: calc(100% / 5);
}
@media (max-width: 700px) {
width: 50%;
}
2018-05-10 21:13:25 +02:00
a::before {
@media (min-width: 901px) {
background-size: 4rem;
top: -1rem;
2018-05-03 23:55:34 +02:00
}
2018-05-10 21:13:25 +02:00
@media (max-width: 900px) {
background-size: 3rem;
top: 0;
2018-05-03 23:55:34 +02:00
}
}
2018-05-10 21:13:25 +02:00
&:nth-child(1) a::before {
2018-07-23 23:46:58 +02:00
background-image: url("/assets/media/svg/flag.svg");
}
2018-05-10 21:13:25 +02:00
&:nth-child(2) a::before {
2018-07-23 23:46:58 +02:00
background-image: url("/assets/media/svg/keyboard.svg");
}
2018-05-10 21:13:25 +02:00
&:nth-child(3) a::before {
2018-07-23 23:46:58 +02:00
background-image: url("/assets/media/svg/anchor.svg");
}
2018-05-10 21:13:25 +02:00
&:nth-child(4) a::before {
2018-07-23 23:46:58 +02:00
background-image: url("/assets/media/svg/chat.svg");
}
2018-05-10 21:13:25 +02:00
&:nth-child(5) a::before {
2018-07-23 23:46:58 +02:00
background-image: url("/assets/media/svg/monitor.svg");
}
}
}
}
2018-05-10 21:13:25 +02:00
.develop {
2018-05-18 07:39:36 +02:00
grid-area: develop;
}
.community {
2018-05-18 07:39:36 +02:00
grid-area: community;
2018-05-10 21:13:25 +02:00
ul {
li {
@media (min-width: 701px) {
2018-06-13 19:36:34 +02:00
// width: calc(100% / 3); // https://github.com/lbryio/lbry.tech/issues/104
width: 50%; //
}
@media (max-width: 700px) {
width: 50%;
}
2018-05-10 21:13:25 +02:00
a::before {
@media (min-width: 901px) {
background-size: 6rem;
top: -2rem;
}
@media (max-width: 900px) {
background-size: 4rem;
top: -0.5rem;
}
}
&:nth-child(1) a::before {
2018-07-23 23:46:58 +02:00
background-image: url("/assets/media/svg/discord.svg");
2018-05-10 21:13:25 +02:00
}
&:nth-child(2) a::before {
2018-07-23 23:46:58 +02:00
background-image: url("/assets/media/svg/reddit.svg");
2018-05-10 21:13:25 +02:00
}
&:nth-child(3) a::before {
2018-07-23 23:46:58 +02:00
background-image: url("/assets/media/svg/slack.svg");
2018-05-10 21:13:25 +02:00
}
}
}
}
2018-05-02 00:45:31 +02:00
}