Skip to content

Commit 0f06cb8

Browse files
authored
Enable toc sidebar scrolling (mmistakes#2874)
* Enable toc sidebar scrolling * Refactor style rules * Move style rules from 'navigation' to 'sidebar' * Remove custom scrollbar styles
1 parent 89de4d4 commit 0f06cb8

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

_sass/minimal-mistakes/_navigation.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@
200200
margin-left: 0;
201201
}
202202
}
203-
204-
img{
203+
204+
img {
205205
-webkit-transition: none;
206206
transition: none;
207207
}

_sass/minimal-mistakes/_sidebar.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@
8989
position: sticky;
9090
top: 2em;
9191
float: right;
92+
93+
.toc {
94+
.toc__menu {
95+
overflow-y: auto;
96+
max-height: calc(100vh - 7em);
97+
}
98+
}
9299
}
93100
}
94101

0 commit comments

Comments
 (0)