Skip to content

Commit 561cb83

Browse files
authored
Merge pull request #31456 from gaoliang/main
Sticky table of contents
2 parents 6aa07e7 + 2ba08d6 commit 561cb83

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
@@ -317,6 +317,12 @@ footer {
317317
padding-top: 1.5rem !important;
318318
top: 5rem !important;
319319

320+
@supports (position: sticky) {
321+
position: sticky !important;
322+
height: calc(100vh - 10rem);
323+
overflow-y: auto;
324+
}
325+
320326
#TableOfContents {
321327
padding-top: 1rem;
322328
}

0 commit comments

Comments
 (0)