Skip to content

Commit 25eff3c

Browse files
ToC sticky
Signed-off-by: Kamil Szewczyk <[email protected]>
1 parent f6286f0 commit 25eff3c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scaladoc/resources/dotty_res/styles/theme/components/table-of-content.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#toc-container {
99
width: 232px;
10+
position: sticky;
11+
top: calc(18 * var(--base-spacing))
1012
}
1113

1214
#toc ul {
@@ -37,10 +39,6 @@
3739
@media (max-width: 1467px) {
3840
#toc {
3941
margin-left: calc(8.5 * var(--base-spacing));
40-
margin-right: calc(8.5 * var(--base-spacing));
41-
}
42-
#toc-container {
43-
margin-right: calc(8.5 * var(--base-spacing));
4442
}
4543
}
4644

0 commit comments

Comments
 (0)