Skip to content

Commit 53ab36a

Browse files
committed
Update sidebar CSS selector.
This corrects a bug where the CSS selcetor to reposition the top of the rustdoc sidebar was no longer applied to the element. It also updates the magic number to be less magic. Fixes #1121
1 parent 480cdcc commit 53ab36a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/style/rustdoc.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ div.rustdoc {
5050
&.mobile {
5151
top: $top-navbar-height;
5252

53-
.sidebar-elems .show-it {
54-
top: 77px;
53+
.sidebar-elems.show-it {
54+
top: 45px + $top-navbar-height;
5555
}
5656

5757
#sidebar-filler {

0 commit comments

Comments
 (0)