Skip to content

Commit b575546

Browse files
committed
Adjust table of content scrollable area height
1 parent fcb515f commit b575546

File tree

1 file changed

+12
-0
lines changed
  • lib/rdoc/generator/template/aliki/css

1 file changed

+12
-0
lines changed

lib/rdoc/generator/template/aliki/css/rdoc.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,18 @@ aside.table-of-contents * {
12261226
outline: none !important;
12271227
}
12281228

1229+
aside.table-of-contents .toc-sticky {
1230+
display: flex;
1231+
flex-direction: column;
1232+
1233+
/* Exclude header height and top/bottom padding of aside.table-of-contents */
1234+
height: calc(100vh - var(--layout-header-height) - var(--space-8) * 2);
1235+
}
1236+
1237+
aside.table-of-contents .toc-sticky nav {
1238+
height: auto;
1239+
}
1240+
12291241
/* Hide TOC on mobile/tablet */
12301242
@media (max-width: 1279px) {
12311243
aside.table-of-contents {

0 commit comments

Comments
 (0)