lbry.tech/.vuepress/scss/pages/_overview.scss

217 lines
3.2 KiB
SCSS
Raw Normal View History

2018-05-25 22:02:50 +02:00
.overview {
}
.overview__ecosystem {
2018-05-25 23:55:03 +02:00
margin-bottom: 2rem; padding-top: 1rem;
2018-05-25 22:02:50 +02:00
font-size: 1rem;
2018-05-25 23:55:03 +02:00
2018-05-28 18:40:05 +02:00
@media (min-width: 701px) {
justify-content: space-evenly;
}
@media (max-width: 700px) {
justify-content: space-between;
}
@media (min-width: 551px) {
display: flex;
2018-05-25 23:55:03 +02:00
}
2018-05-25 22:02:50 +02:00
}
.overview__ecosystem__module {
2018-05-28 18:40:05 +02:00
> * {
z-index: 1;
}
2018-05-25 22:02:50 +02:00
2018-05-28 18:40:05 +02:00
@media (max-width: 550px) {
&:not(:last-of-type) {
margin-bottom: 2rem;
2018-05-25 22:02:50 +02:00
}
}
2018-05-28 18:40:05 +02:00
&.lbrycard,
&.lbry,
&.applications {
position: relative;
2018-05-25 22:02:50 +02:00
2018-05-28 18:40:05 +02:00
&::after {
top: 0; left: 0;
2018-05-25 22:02:50 +02:00
2018-05-28 18:40:05 +02:00
content: "";
position: absolute;
transition: all 0.2s;
z-index: -1;
2018-05-25 23:55:03 +02:00
}
2018-05-28 18:40:05 +02:00
&:not(.active) {
height: 144px;
2018-05-25 22:02:50 +02:00
2018-05-28 18:40:05 +02:00
@media (min-width: 551px) {
@include center;
min-width: 144px;
}
2018-05-25 22:02:50 +02:00
2018-05-28 18:40:05 +02:00
@media (max-width: 550px) {
align-items: center;
display: flex;
justify-content: center;
margin-right: auto;
margin-left: auto;
width: 144px;
}
2018-05-25 22:02:50 +02:00
2018-05-28 18:40:05 +02:00
h2 {
font-size: 1rem;
2018-05-25 23:55:03 +02:00
}
2018-05-25 22:02:50 +02:00
2018-05-28 18:40:05 +02:00
.overview__ecosystem__module__details {
display: none;
}
2018-05-25 22:02:50 +02:00
}
2018-05-28 18:40:05 +02:00
&.active {
padding: 2rem;
2018-05-25 22:02:50 +02:00
2018-05-28 18:40:05 +02:00
h2 {
font-size: 3rem;
margin-bottom: 1rem;
}
2018-05-25 22:02:50 +02:00
}
}
2018-05-28 18:40:05 +02:00
&.lbrycard {
color: $white;
2018-05-25 23:55:03 +02:00
2018-05-28 18:40:05 +02:00
&::after {
width: 100%; height: 100%;
background-color: $black;
2018-05-25 23:55:03 +02:00
}
2018-05-25 22:02:50 +02:00
}
&.lbry {
2018-05-28 18:40:05 +02:00
&::after {
width: 100%; height: 100%;
background-color: $teal;
2018-05-25 23:55:03 +02:00
}
2018-05-28 18:40:05 +02:00
&:not(.active)::after {
border-radius: 50%;
2018-05-25 23:55:03 +02:00
}
2018-05-28 18:40:05 +02:00
}
2018-05-25 23:55:03 +02:00
2018-05-28 18:40:05 +02:00
&.applications {
&::after {
width: 100%; height: 100%;
background-color: $yellow;
2018-05-25 23:55:03 +02:00
}
2018-05-28 18:40:05 +02:00
&:not(.active)::after {
border-top-right-radius: 20%;
border-bottom-left-radius: 20%;
2018-05-25 23:55:03 +02:00
}
2018-05-25 22:02:50 +02:00
2018-05-28 18:40:05 +02:00
/*
2018-05-25 23:55:03 +02:00
@media (min-width: 1081px) {
grid-column: 4;
grid-row: 1/3;
}
2018-05-25 22:02:50 +02:00
2018-05-25 23:55:03 +02:00
@media (max-width: 1080px) {
padding-top: 1rem;
padding-bottom: 2rem;
2018-05-25 22:02:50 +02:00
}
2018-05-25 23:55:03 +02:00
@media (min-width: 501px) and (max-width: 1080px) {
grid-row: 4;
grid-column: 1/3;
}
2018-05-25 22:02:50 +02:00
2018-05-25 23:55:03 +02:00
@media (max-width: 500px) {
grid-row: 5;
}
2018-05-25 22:02:50 +02:00
2018-05-25 23:55:03 +02:00
> div {
width: 100%;
2018-05-25 22:02:50 +02:00
2018-05-25 23:55:03 +02:00
> .__title {
color: $white;
display: block;
margin-bottom: 1rem;
}
}
2018-05-28 18:40:05 +02:00
*/
2018-05-25 22:02:50 +02:00
}
2018-05-28 18:40:05 +02:00
/*
2018-05-25 22:02:50 +02:00
&.lighthouse {
background-color: $pink;
border-radius: 50%;
2018-05-25 23:55:03 +02:00
@media (min-width: 1081px) {
grid-column: 5;
grid-row: 1;
}
@media (max-width: 1080px) {
margin-right: auto;
margin-left: auto;
width: 144px;
}
@media (min-width: 501px) and (max-width: 1080px) {
grid-column: 1;
grid-row: 5;
}
@media (max-width: 500px) {
grid-row: 6;
}
2018-05-25 22:02:50 +02:00
}
&.chainquery {
background-color: $orange;
border-radius: 50%;
2018-05-25 23:55:03 +02:00
@media (min-width: 1081px) {
grid-column: 5;
grid-row: 2;
}
@media (max-width: 1080px) {
margin-right: auto;
margin-left: auto;
width: 144px;
}
@media (min-width: 501px) and (max-width: 1080px) {
grid-column: 2;
grid-row: 5;
}
@media (max-width: 500px) {
grid-row: 7;
}
2018-05-25 22:02:50 +02:00
}
2018-05-28 18:40:05 +02:00
*/
2018-05-25 22:02:50 +02:00
}
2018-05-25 23:55:03 +02:00
2018-05-25 22:02:50 +02:00
.overview__ecosystem__module__piece {
background-color: $white;
left: 10%;
line-height: 2;
position: relative;
width: 80%;
&:not(:last-of-type) {
margin-bottom: 0.5rem;
}
}