mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-18 22:55:15 +00:00
Move the TOC sidebar to the left of the article
This commit is contained in:
@@ -138,7 +138,11 @@ const tocHeadings = headings.filter((h) => h.depth <= 3);
|
||||
|
||||
@media (min-width: 74rem) {
|
||||
.article-layout {
|
||||
grid-template-columns: minmax(0, 42rem) 16rem;
|
||||
grid-template-columns: 16rem minmax(0, 42rem);
|
||||
}
|
||||
|
||||
.article-main {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.toc-inline {
|
||||
@@ -147,6 +151,7 @@ const tocHeadings = headings.filter((h) => h.depth <= 3);
|
||||
|
||||
.toc-sidebar {
|
||||
display: block;
|
||||
order: 1;
|
||||
position: sticky;
|
||||
top: var(--space-6);
|
||||
max-height: calc(100vh - var(--space-7));
|
||||
|
||||
Reference in New Issue
Block a user