made left sidebar sticky and higlight current chapter
This commit is contained in:
1 parent
bdfb8e74bb
commit
353202665c
2 files changed
+6
-4
No files matched your search
+3
-2
@@ -1033,8 +1033,9 @@ footer.footer-modern a:hover {
|
||||
.toc-sidebar {
|
||||
margin-top: var(--space-xl);
|
||||
position: sticky;
|
||||
top: var(--space-lg);
|
||||
max-height: calc(100vh - var(--space-xl));
|
||||
/* 56px = fixed navbar height; extra gap so the ToC doesn't hug it */
|
||||
top: calc(56px + var(--space-sm));
|
||||
max-height: calc(100vh - 56px - var(--space-md));
|
||||
overflow-y: auto;
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user