lbry.tech/.vuepress/scss/pages/_home.scss
2018-05-08 13:39:01 -05:00

278 lines
5 KiB
SCSS

.home {
h1, h2 {
text-align: center;
}
h1 {
margin-bottom: 1rem;
text-transform: uppercase;
}
h2 {
font-weight: 400;
margin-bottom: 4rem;
}
hr {
width: 100%; height: 1px;
background-color: rgba($black, 0.1);
border: none;
margin-bottom: 4rem;
}
&.hero {
align-items: center;
background-color: $black;
background-image: url("../media/svg/text-logo--white.svg");
background-position: center;
background-repeat: no-repeat;
display: flex;
height: calc(50vh - 4rem);
justify-content: center;
h2 {
background-color: $white;
border: 1px solid rgba($black, 0.1);
box-decoration-break: clone;
display: inline;
line-height: 2;
padding: 0.4rem 1rem;
}
}
&.alert {
background-color: $yellow;
font-size: 1rem;
line-height: 1.33;
padding-top: 1rem;
padding-bottom: 1rem;
text-align: center;
a {
font-weight: 600;
}
}
&.features {
.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;
width: 50%;
}
.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 {
padding-top: 3rem;
padding-bottom: 3.5rem;
.inner-wrap {
position: relative;
}
h3 {
top: -0.85rem; left: -2rem;
color: rgba($black, 0.045);
font-size: 4rem;
letter-spacing: 0.1rem;
line-height: 1;
position: absolute;
text-transform: uppercase;
}
p {
font-size: 1.5rem;
line-height: 1.55;
margin-bottom: 1.5rem;
max-width: 1000px;
&:first-of-type {
padding-top: 0.5rem;
}
}
.cta {
@extend .__button-black;
top: 0.5rem;
}
}
&.intro,
&.docs,
&.contribute,
&.develop {
border-bottom: 1px solid rgba($black, 0.05);
}
&.community {
p {
margin-right: auto;
margin-left: auto;
text-align: center;
}
ul {
list-style-type: none;
padding-top: 1rem;
&::after {
@include clearfix;
}
li {
float: left;
font-size: 1.5rem;
padding-top: 5rem;
position: relative;
text-align: center;
width: calc(100% / 3);
&::before {
width: 100%; height: 100%;
top: 0; left: 0;
background-position: center 0;
background-repeat: no-repeat;
background-size: 5rem;
content: "";
position: absolute;
}
a {
display: block;
position: relative;
transition: color 0.2s;
&:not(:hover) {
color: inherit;
}
&:hover {
color: $teal;
}
}
&:nth-child(1)::before {
background-image: url("../media/svg/discord.svg");
}
&:nth-child(2)::before {
background-image: url("../media/svg/reddit.svg");
}
&:nth-child(3)::before {
background-image: url("../media/svg/slack.svg");
}
}
}
}
&.contribute {
p {
margin-right: auto;
margin-left: auto;
text-align: center;
}
ul {
list-style-type: none;
padding-top: 1rem;
&::after {
@include clearfix;
}
li {
float: left;
font-size: 1.5rem;
padding-top: 4rem;
position: relative;
text-align: center;
width: calc(100% / 5);
&::before {
width: 100%; height: 100%;
top: 0; left: 0;
background-position: center 0;
background-repeat: no-repeat;
background-size: 3rem;
content: "";
position: absolute;
}
a {
display: block;
position: relative;
transition: color 0.2s;
&:not(:hover) {
color: inherit;
}
&:hover {
color: $teal;
}
}
&:nth-child(1)::before {
background-image: url("../media/svg/flag.svg");
}
&:nth-child(2)::before {
background-image: url("../media/svg/keyboard.svg");
}
&:nth-child(3)::before {
background-image: url("../media/svg/anchor.svg");
}
&:nth-child(4)::before {
background-image: url("../media/svg/chat.svg");
}
&:nth-child(5)::before {
background-image: url("../media/svg/monitor.svg");
}
}
}
}
}