Copy in new CSS for about page.

th-downstream
David Yip 7 years ago
parent c08c971dd3
commit 69c4127ece

@ -15,117 +15,169 @@ $small-breakpoint: 960px;
} }
} }
.show-xs, .landing-page {
.show-sm { .grid {
display: none; display: grid;
} grid-gap: 10px;
grid-template-columns: 1fr 2fr;
grid-auto-columns: 25%;
grid-auto-rows: max-content;
.column-0 {
display: none;
}
.show-m { .column-1 {
display: block; grid-column: 1;
} grid-row: 1;
}
@media screen and (max-width: $small-breakpoint) { .column-2 {
.hide-sm { grid-column: 2;
display: none !important; grid-row: 1;
} }
.show-sm { .column-3 {
display: block !important; grid-column: 3;
} grid-row: 1 / 3;
} }
@media screen and (max-width: $column-breakpoint) { .column-4 {
.hide-xs { grid-column: 1 / 3;
display: none !important; grid-row: 2;
}
} }
.show-xs { @media screen and (max-width: $small-breakpoint) {
display: block !important; .grid {
} grid-template-columns: 40% 60%;
}
.row { .column-0 {
display: flex; display: none;
flex-wrap: wrap; }
margin: 0 -5px;
@for $i from 1 through 15 { .column-1 {
.column-#{$i} { grid-column: 1;
box-sizing: border-box; grid-row: 1;
min-height: 1px;
flex: 0 0 percentage($i / 15);
max-width: percentage($i / 15);
padding: 0 5px;
@media screen and (max-width: $small-breakpoint) { &.non-preview .landing-page__forms {
&-sm { height: 100%;
box-sizing: border-box;
min-height: 1px;
flex: 0 0 percentage($i / 15);
max-width: percentage($i / 15);
padding: 0 5px;
@media screen and (max-width: $column-breakpoint) {
max-width: 100%;
flex: 0 0 100%;
margin-bottom: 10px;
&:last-child {
margin-bottom: 0;
}
}
} }
} }
@media screen and (max-width: $column-breakpoint) { .column-2 {
max-width: 100%; grid-column: 2;
flex: 0 0 100%; grid-row: 1 / 3;
margin-bottom: 10px;
&:last-child { &.non-preview {
margin-bottom: 0; grid-column: 2;
grid-row: 1;
}
}
.column-3 {
grid-column: 1;
grid-row: 2 / 4;
}
.column-4 {
grid-column: 2;
grid-row: 3;
&.non-preview {
grid-column: 1 / 3;
grid-row: 2;
} }
} }
} }
} }
}
.column-flex { @media screen and (max-width: $column-breakpoint) {
display: flex; .grid {
flex-direction: column; grid-template-columns: auto;
}
.separator-or { .column-0 {
position: relative; display: block;
margin: 40px 0; grid-column: 1;
text-align: center; grid-row: 1;
}
&::before { .column-1 {
content: ""; grid-column: 1;
display: block; grid-row: 3;
width: 100%;
height: 0; .brand {
border-bottom: 1px solid rgba($ui-base-lighter-color, .6); display: none;
position: absolute; }
top: 50%; }
left: 0;
.column-2 {
grid-column: 1;
grid-row: 2;
.landing-page__logo,
.landing-page__call-to-action {
display: none;
}
&.non-preview {
grid-column: 1;
grid-row: 2;
}
}
.column-3 {
grid-column: 1;
grid-row: 5;
}
.column-4 {
grid-column: 1;
grid-row: 4;
&.non-preview {
grid-column: 1;
grid-row: 4;
}
}
}
} }
span { .column-flex {
display: inline-block; display: flex;
background: $ui-base-color; flex-direction: column;
font-size: 12px; }
font-weight: 500;
color: $ui-primary-color; .separator-or {
text-transform: uppercase;
position: relative; position: relative;
z-index: 1; margin: 40px 0;
padding: 0 8px; text-align: center;
cursor: default;
&::before {
content: "";
display: block;
width: 100%;
height: 0;
border-bottom: 1px solid rgba($ui-base-lighter-color, .6);
position: absolute;
top: 50%;
left: 0;
}
span {
display: inline-block;
background: $ui-base-color;
font-size: 12px;
font-weight: 500;
color: $ui-primary-color;
text-transform: uppercase;
position: relative;
z-index: 1;
padding: 0 8px;
cursor: default;
}
} }
}
.landing-page {
p, p,
li { li {
font-family: 'mastodon-font-sans-serif', sans-serif; font-family: 'mastodon-font-sans-serif', sans-serif;
@ -502,7 +554,7 @@ $small-breakpoint: 960px;
display: block; display: block;
width: 80px; width: 80px;
height: 80px; height: 80px;
border-radius: $ui-avatar-border-size; border-radius: 48px;
} }
} }
@ -539,6 +591,7 @@ $small-breakpoint: 960px;
img { img {
position: static; position: static;
padding: 10px 0;
} }
@media screen and (max-width: $small-breakpoint) { @media screen and (max-width: $small-breakpoint) {
@ -558,18 +611,33 @@ $small-breakpoint: 960px;
} }
&__call-to-action { &__call-to-action {
margin-bottom: 10px;
background: darken($ui-base-color, 4%); background: darken($ui-base-color, 4%);
border-radius: 4px; border-radius: 4px;
padding: 25px 40px; padding: 25px 40px;
overflow: hidden; overflow: hidden;
.row { .row {
display: flex;
flex-direction: row-reverse;
flex-wrap: wrap;
justify-content: space-between;
align-items: center; align-items: center;
} }
.information-board__section { .row__information-board {
padding: 0; display: flex;
justify-content: flex-end;
align-items: flex-end;
.information-board__section {
flex: 1 0 auto;
padding: 0 10px;
}
}
.row__mascot {
flex: 1;
margin: 10px -50px 0 0;
} }
} }
@ -619,6 +687,8 @@ $small-breakpoint: 960px;
&__short-description { &__short-description {
.row { .row {
display: flex;
flex-wrap: wrap;
align-items: center; align-items: center;
margin-bottom: 40px; margin-bottom: 40px;
} }
@ -668,7 +738,6 @@ $small-breakpoint: 960px;
height: 100%; height: 100%;
@media screen and (max-width: $small-breakpoint) { @media screen and (max-width: $small-breakpoint) {
margin-bottom: 10px;
height: auto; height: auto;
} }
@ -717,15 +786,16 @@ $small-breakpoint: 960px;
width: 100%; width: 100%;
flex: 1 1 auto; flex: 1 1 auto;
overflow: hidden; overflow: hidden;
height: 100%;
.column-header { .column-header {
color: inherit; color: inherit;
font-family: inherit; font-family: inherit;
font-size: 16px; font-size: 16px;
padding: 15px;
line-height: inherit; line-height: inherit;
font-weight: inherit; font-weight: inherit;
margin: 0; margin: 0;
padding: 0;
} }
.column { .column {
@ -942,93 +1012,54 @@ $small-breakpoint: 960px;
} }
&.tag-page { &.tag-page {
.features { .grid {
padding: 30px 0; @media screen and (min-width: $small-breakpoint) {
grid-template-columns: 33% 67%;
.container-alt { }
max-width: 820px;
#mastodon-timeline {
margin-right: 0;
border-top-right-radius: 0;
}
.about-mastodon {
.about-hashtag {
background: darken($ui-base-color, 4%);
padding: 0 20px 20px 30px;
border-radius: 0 5px 5px 0;
.brand {
padding-top: 20px;
margin-bottom: 20px;
img {
height: 48px;
width: auto;
}
}
p {
strong {
color: $ui-secondary-color;
font-weight: 700;
}
}
.cta { .column-2 {
margin: 0; grid-column: 2;
grid-row: 1;
}
}
.button { .brand {
margin-right: 4px; text-align: unset;
} padding: 0;
}
}
.features-list { img {
margin-left: 30px; height: 48px;
margin-right: 10px; width: auto;
}
}
} }
} }
@media screen and (max-width: 675px) { .cta {
.features { margin: 0;
padding: 10px 0;
.container-alt { .button {
display: flex; margin-right: 4px;
flex-direction: column; }
}
#mastodon-timeline {
order: 2;
flex: 0 0 auto;
height: 60vh;
margin-bottom: 20px;
border-top-right-radius: 4px;
}
.about-mastodon { @media screen and (max-width: $column-breakpoint) {
order: 1; .grid {
flex: 0 0 auto; .column-1 {
max-width: 100%; grid-column: 1;
grid-row: 2;
}
.about-hashtag { .column-2 {
background: unset; grid-column: 1;
padding: 0; grid-row: 1;
border-radius: 0; }
}
.cta { .brand {
margin: 20px 0; margin: 0;
} }
}
.features-list { .landing-page__features {
display: none; display: none;
}
}
}
} }
} }
} }

Loading…
Cancel
Save