Make TOC sticky

pull/31456/head
gaoliang 2022-01-22 02:36:08 +08:00
parent 3b28fbba1b
commit 2ba08d6cb8
1 changed files with 6 additions and 0 deletions

View File

@ -305,6 +305,12 @@ footer {
padding-top: 1.5rem !important;
top: 5rem !important;
@supports (position: sticky) {
position: sticky !important;
height: calc(100vh - 10rem);
overflow-y: auto;
}
#TableOfContents {
padding-top: 1rem;
}