A few more layout fixes.

- Improve primary layout to deal with edge cases better.

- Make FAQ landing page use a masonry layout.
This commit is contained in:
mtail 2019-02-11 06:56:10 -08:00
parent e2aec3458e
commit a84091c02c
16 changed files with 31 additions and 25 deletions

View File

@ -1,15 +1,17 @@
.faq-landing {
display: grid;
grid-template-columns: [card] 1fr;
grid-gap: 2rem;
column-count: 1;
column-gap: 2rem;
@media (min-width: $bp-sm) {
grid-template-columns: [card] 1fr [card] 1fr;
column-count: 2
}
.panel {
display: inline-block;
border: 1px solid $boxBorderColor;
border-radius: 4px;
width: 100%;
margin-bottom: 2rem;
.header {
color: $textBrandColor;

View File

@ -23,7 +23,7 @@
padding-right: .5rem;
@media screen AND (min-width: $bp-md) {
grid-template-columns: [sidebar] 20% [article] calc(80% - 1rem);
grid-template-columns: [sidebar] 16% [article] calc(84% - 1rem);
padding-left: 1rem;
padding-right: 1rem;
}
@ -34,6 +34,18 @@
.toc-container {
display: block;
}
.toc {
.directory {
max-width: min(25em, 16%);
}
}
.sidebar {
.directory {
max-width: min(25em, 16%);
}
}
}
&.notoc {

View File

@ -40,10 +40,6 @@
max-height: calc(100vh - 9rem);
}
@media (min-width: $bp-xl) {
max-width: 25em;
}
@media (min-width: $bp-md) {
@supports ((position:-webkit-sticky) or (position:sticky)) {
max-height: calc(100vh - 9rem);

View File

@ -16,10 +16,6 @@
max-height: calc(100vh - 9rem);
}
@media (min-width: $bp-xl) {
max-width: 25em;
}
@media (min-width: $bp-md) {
@supports ((position:-webkit-sticky) or (position:sticky)) {
max-height: calc(100vh - 9rem);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long