mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-27 10:58:47 +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) {
|
@media (min-width: 74rem) {
|
||||||
.article-layout {
|
.article-layout {
|
||||||
grid-template-columns: minmax(0, 42rem) 16rem;
|
grid-template-columns: 16rem minmax(0, 42rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.article-main {
|
||||||
|
order: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toc-inline {
|
.toc-inline {
|
||||||
@@ -147,6 +151,7 @@ const tocHeadings = headings.filter((h) => h.depth <= 3);
|
|||||||
|
|
||||||
.toc-sidebar {
|
.toc-sidebar {
|
||||||
display: block;
|
display: block;
|
||||||
|
order: 1;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: var(--space-6);
|
top: var(--space-6);
|
||||||
max-height: calc(100vh - var(--space-7));
|
max-height: calc(100vh - var(--space-7));
|
||||||
|
|||||||
@@ -185,8 +185,8 @@ pre {
|
|||||||
|
|
||||||
.toc-sidebar {
|
.toc-sidebar {
|
||||||
padding-top: var(--space-1);
|
padding-top: var(--space-1);
|
||||||
border-left: 1px solid var(--border);
|
border-right: 1px solid var(--border);
|
||||||
padding-left: var(--space-4);
|
padding-right: var(--space-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.eyebrow {
|
.eyebrow {
|
||||||
|
|||||||
Reference in New Issue
Block a user