Skip to content

Commit 2ba08d6

Browse files
committed
Make TOC sticky
1 parent 3b28fbb commit 2ba08d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

assets/scss/_custom.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,12 @@ footer {
305305
padding-top: 1.5rem !important;
306306
top: 5rem !important;
307307

308+
@supports (position: sticky) {
309+
position: sticky !important;
310+
height: calc(100vh - 10rem);
311+
overflow-y: auto;
312+
}
313+
308314
#TableOfContents {
309315
padding-top: 1rem;
310316
}

0 commit comments

Comments
 (0)