Skip to content

Commit

Permalink
Enable toc sidebar scrolling (mmistakes#2874)
Browse files Browse the repository at this point in the history
* Enable toc sidebar scrolling

* Refactor style rules

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

* Remove custom scrollbar styles
  • Loading branch information
j3soon authored and chukycheese committed Sep 18, 2023
1 parent 604d00a commit 73a18a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _sass/minimal-mistakes/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@
margin-left: 0;
}
}
img{

img {
-webkit-transition: none;
transition: none;
}
Expand Down
7 changes: 7 additions & 0 deletions _sass/minimal-mistakes/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@
position: sticky;
top: 2em;
float: right;

.toc {
.toc__menu {
overflow-y: auto;
max-height: calc(100vh - 7em);
}
}
}
}

Expand Down

0 comments on commit 73a18a3

Please sign in to comment.