Skip to content

Commit 3ababaf

Browse files
cynecxJoshua Nelson
authored and
Joshua Nelson
committed
Change layout to fix missing scrollbar highlighting (chromium)
1 parent e30c54b commit 3ababaf

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

templates/style.scss

+13-9
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,6 @@ div.rustdoc {
8484
}
8585
}
8686
}
87-
88-
// this is actual fix for docs.rs navigation and rustdoc sidebar
89-
position: fixed;
90-
top: $top-navbar-height;
91-
bottom: 0;
92-
left: 0;
93-
right: 0;
94-
display: block;
95-
overflow-y: auto;
9687
}
9788

9889
body {
@@ -811,3 +802,16 @@ i.dependencies.normal {
811802
visibility: hidden;
812803
display: none;
813804
}
805+
806+
// Fix position of theme-picker
807+
.theme-picker {
808+
margin-top: $top-navbar-height;
809+
}
810+
811+
// Fix for anchors, so that they are well positioned right below the sticky header
812+
.section-header::before {
813+
display: block;
814+
content: "";
815+
height: 3rem;
816+
margin-top: -3rem;
817+
}

0 commit comments

Comments
 (0)