lbry.tech/app/sass/partials/_ecosystem.scss

445 lines
6.8 KiB
SCSS
Raw Permalink Normal View History

2018-07-12 17:21:42 +02:00
.ecosystem {
font-size: 1rem;
2018-10-06 00:46:08 +02:00
margin-bottom: 2rem;
padding-top: 1rem;
2018-07-12 17:21:42 +02:00
2019-02-15 23:45:25 +01:00
@media (min-width: 951px) {
display: grid;
grid-gap: 1rem;
}
2018-07-12 17:21:42 +02:00
&:not(.expand-left):not(.expand-right) {
2019-02-15 23:45:25 +01:00
@media (min-width: 951px) {
grid-template-columns: 144px auto 144px;
2018-07-12 17:21:42 +02:00
2019-02-15 23:45:25 +01:00
.ecosystem__submodules {
padding-top: 2.5rem;
}
}
@media (max-width: 950px) {
.ecosystem__submodules {
display: flex;
justify-content: space-between;
}
2018-07-12 17:21:42 +02:00
}
}
&.expand-left {
grid-template-columns: 50% auto;
.ecosystem__submodules:last-of-type,
.ecosystem__submodule:not(.active) {
display: none;
}
}
&.expand-right {
grid-template-columns: auto 50%;
.ecosystem__submodules:first-of-type,
.ecosystem__submodule:not(.active) {
display: none;
}
2019-02-15 23:45:25 +01:00
}
}
2018-07-20 18:23:48 +02:00
2019-02-15 23:45:25 +01:00
.ecosystem__modules {
@media (max-width: 950px) {
padding-top: 1rem;
padding-bottom: 1rem;
2018-07-12 17:21:42 +02:00
}
}
.ecosystem__module {
width: 100%;
2018-10-06 00:46:08 +02:00
position: relative;
2018-07-12 17:21:42 +02:00
> * {
z-index: 1;
}
h2 {
width: 100%;
2018-10-06 00:46:08 +02:00
position: relative;
2018-07-12 17:21:42 +02:00
> div {
font-size: 1rem;
padding-top: 1.95rem;
position: relative;
2019-02-15 23:45:25 +01:00
@media (min-width: 951px) {
float: right;
padding-right: 3rem;
text-align: right;
}
2018-07-12 17:21:42 +02:00
&::before {
@include font-serif;
2018-10-06 00:46:08 +02:00
width: 100%;
2019-02-15 23:45:25 +01:00
top: 0.9rem;
2018-07-12 17:21:42 +02:00
2019-01-17 22:50:06 +01:00
content: "key repositories";
2018-07-12 17:21:42 +02:00
font-size: 80%;
font-style: italic;
opacity: 0.3;
position: absolute;
2019-02-15 23:45:25 +01:00
@media (min-width: 951px) {
right: 3rem;
text-align: right;
}
@media (max-width: 950px) {
left: 0;
}
2018-07-12 17:21:42 +02:00
}
span {
cursor: pointer;
display: inline-block;
position: relative;
&:not(:last-of-type) {
margin-right: 1rem;
&::after {
top: 0; right: -0.7rem;
2018-10-13 00:29:53 +02:00
color: $lbry-gray-1;
2018-07-12 17:21:42 +02:00
content: "/";
font-style: italic;
position: absolute;
}
}
}
}
}
h3 {
position: relative;
}
&::before {
width: 100%; height: 100%;
top: 0; left: 0;
content: "";
position: absolute;
z-index: 0;
}
&:not(.active) {
@include center;
h2 {
font-size: 1.5rem;
text-align: center;
> span {
2018-10-06 00:46:08 +02:00
padding: 1.9rem 2rem;
2018-07-12 17:21:42 +02:00
cursor: pointer;
display: block;
em {
display: block;
font-size: 70%;
font-weight: normal;
}
}
> div {
display: none;
}
}
.ecosystem__module__details {
display: none;
}
.__close {
2019-02-15 23:45:25 +01:00
transform: translateY(-0.25rem) rotate(45deg);
2018-07-12 17:21:42 +02:00
z-index: 0;
2019-02-15 23:45:25 +01:00
@media (max-width: 950px) {
display: none;
}
2018-07-12 17:21:42 +02:00
}
}
&.active {
2019-02-15 23:45:25 +01:00
padding: 2rem;
2018-07-12 17:21:42 +02:00
h2 {
margin-bottom: 1rem;
2019-02-15 23:45:25 +01:00
@media (min-width: 951px) {
font-size: 3rem;
}
@media (max-width: 950px) {
font-size: 1.5rem;
}
2018-07-12 17:21:42 +02:00
> span {
cursor: default;
em {
display: none;
}
}
}
&::before {
2018-10-13 00:29:53 +02:00
background-color: $lbry-white;
2018-07-12 17:21:42 +02:00
}
.__close {
2019-02-15 23:45:25 +01:00
transform: translateY(-0.25rem);
2018-07-12 17:21:42 +02:00
z-index: 3;
}
}
&.lbrycrd,
&.lbry {
margin-bottom: 1rem;
}
2019-01-17 22:50:06 +01:00
&.lbrycrd,
2018-07-12 17:21:42 +02:00
&.lbry,
&.applications {
&:not(.active) {
h2 {
margin-bottom: 0.5rem;
&::after {
2018-10-06 00:46:08 +02:00
width: 100%;
2018-07-12 17:21:42 +02:00
bottom: 1rem; left: 0;
font-size: 0.5rem;
letter-spacing: 0.1rem;
position: absolute;
z-index: -1;
}
}
}
}
&.lbrycrd {
2019-01-17 22:50:06 +01:00
&:not(.active) {
&::before {
background-color: $lbry-red-3;
}
h2::after {
content: "◼︎";
}
2018-07-12 17:21:42 +02:00
}
&.active::before {
2018-10-13 00:29:53 +02:00
border: 2px solid $lbry-red-3;
2018-07-12 17:21:42 +02:00
}
}
&.lbry {
&:not(.active) {
&::before {
2018-10-13 00:29:53 +02:00
background-color: $lbry-blue-3;
2018-07-12 17:21:42 +02:00
}
h2::after {
content: "◼︎◼︎";
}
}
&.active::before {
2018-10-13 00:29:53 +02:00
border: 2px solid $lbry-blue-3;
2018-07-12 17:21:42 +02:00
}
}
&.applications {
&:not(.active) {
&::before {
2018-10-13 00:29:53 +02:00
background-color: $lbry-green-3;
2018-07-12 17:21:42 +02:00
}
h2::after {
2019-01-17 22:50:06 +01:00
content: "◼︎◼︎◼︎︎";
2018-07-12 17:21:42 +02:00
}
}
&.active::before {
2018-10-13 00:29:53 +02:00
border: 2px solid $lbry-green-3;
2018-07-12 17:21:42 +02:00
}
}
}
2018-10-06 00:46:08 +02:00
.ecosystem__module__details,
.ecosystem__submodule__markdown {
@extend %markdown;
}
2018-07-12 17:21:42 +02:00
.ecosystem__module__piece {
2018-10-06 00:46:08 +02:00
width: 80%; left: 10%;
2018-10-13 00:29:53 +02:00
background-color: $lbry-white;
2018-07-12 17:21:42 +02:00
line-height: 2;
position: relative;
&:not(:last-of-type) {
margin-bottom: 0.5rem;
}
}
.ecosystem__submodule {
border-width: 2px;
cursor: default;
position: relative;
transition: border-color 0.2s;
z-index: 2;
&:not(:last-of-type) {
2019-02-15 23:45:25 +01:00
@media (min-width: 951px) {
margin-bottom: 1rem;
}
2018-07-12 17:21:42 +02:00
}
&:not(.on):not(.active) {
2018-10-13 00:29:53 +02:00
color: $lbry-gray-1;
2018-07-12 17:21:42 +02:00
}
&:not(.active) {
@include center;
width: 144px; height: 144px;
border-radius: 50%;
border-style: dashed;
.ecosystem__submodule__title {
width: 100%; height: 100%;
line-height: 140px;
text-align: center;
}
.ecosystem__submodule__description {
display: none;
}
}
&.active {
2018-07-20 18:23:48 +02:00
width: 100%; height: 100%;
2018-10-06 00:46:08 +02:00
padding: 2rem;
2018-07-12 17:21:42 +02:00
border-style: solid;
overflow-y: auto;
.ecosystem__submodule__title {
line-height: 1.33;
margin-bottom: 1rem;
}
}
&:not(.blue):not(.green):not(.red) {
2018-10-13 00:29:53 +02:00
border-color: $lbry-gray-1;
2018-07-12 17:21:42 +02:00
}
&.blue,
&.green,
&.red {
&:not(.active) {
cursor: pointer;
}
}
&.blue {
2018-10-13 00:29:53 +02:00
background-color: rgba($lbry-blue-1, 0.05);
border-color: $lbry-blue-3;
2018-07-12 17:21:42 +02:00
}
&.green {
2018-10-13 00:29:53 +02:00
background-color: rgba($lbry-green-1, 0.05);
border-color: $lbry-green-3;
2018-07-12 17:21:42 +02:00
}
&.red {
2018-10-13 00:29:53 +02:00
background-color: rgba($lbry-red-1, 0.05);
border-color: $lbry-red-3;
2018-07-12 17:21:42 +02:00
}
}
.ecosystem__submodule__title {
font-size: 1.15rem;
}
.ecosystem__submodule__description {
margin-bottom: 2rem;
.__close {
2019-01-26 00:04:50 +01:00
width: 1.3rem;
top: -0.7rem; left: 0;
2018-07-12 17:21:42 +02:00
}
}
.__parents {
font-size: 1.15rem;
line-height: 1.33;
list-style-type: none;
2019-01-26 00:04:50 +01:00
padding-left: 6.5rem;
position: relative;
2018-07-12 17:21:42 +02:00
z-index: 1;
&::before,
&::after {
position: absolute;
}
&::before {
@include font-serif;
2019-01-26 00:04:50 +01:00
top: 0.3rem; left: 3rem;
2018-07-12 17:21:42 +02:00
2018-10-13 00:29:53 +02:00
color: $lbry-gray-4;
2018-07-12 17:21:42 +02:00
content: "back to";
font-size: 0.8rem;
font-style: italic;
font-weight: 700;
}
&::after {
width: 2px; height: 100%;
2019-01-26 00:04:50 +01:00
top: 0; left: 2rem;
2018-07-12 17:21:42 +02:00
2018-10-13 00:29:53 +02:00
background-color: $lbry-gray-1;
2018-07-12 17:21:42 +02:00
content: "";
}
2019-01-26 00:04:50 +01:00
.single & {
&::before,
&::after {
display: none;
}
}
2018-07-12 17:21:42 +02:00
}
.__parent {
font-weight: 700;
&:not(.active) {
display: none;
}
&.active {
cursor: pointer;
}
}
.__close {
2018-10-06 00:46:08 +02:00
right: 2rem;
2018-07-12 17:21:42 +02:00
cursor: pointer;
font-size: 2rem;
position: absolute;
transition: all 0.2s;
}