mirror of
https://github.com/andwati/andwati.com.git
synced 2026-10-18 09:22:53 +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));
|
||||
|
||||
@@ -185,8 +185,8 @@ pre {
|
||||
|
||||
.toc-sidebar {
|
||||
padding-top: var(--space-1);
|
||||
border-left: 1px solid var(--border);
|
||||
padding-left: var(--space-4);
|
||||
border-right: 1px solid var(--border);
|
||||
padding-right: var(--space-4);
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
|
||||
Reference in New Issue
Block a user