Enable toc sidebar scrolling (#2874)

* Enable toc sidebar scrolling

* Refactor style rules

* Move style rules from 'navigation' to 'sidebar'

* Remove custom scrollbar styles
This commit is contained in:
Johnson 2021-07-31 03:54:49 +08:00 committed by GitHub
parent 89de4d46db
commit 0f06cb8225
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -200,8 +200,8 @@
margin-left: 0;
}
}
img{
img {
-webkit-transition: none;
transition: none;
}

View file

@ -89,6 +89,13 @@
position: sticky;
top: 2em;
float: right;
.toc {
.toc__menu {
overflow-y: auto;
max-height: calc(100vh - 7em);
}
}
}
}