Skip to content

Commit 4e98970

Browse files
cynecxJoshua Nelson
authored and
Joshua Nelson
committed
Revert "Change layout to fix missing scrollbar highlighting (chromium)"
See #640. This reverts commit 3ababaf.
1 parent 3ababaf commit 4e98970

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

templates/style.scss

+9-13
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,15 @@ 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;
8796
}
8897

8998
body {
@@ -802,16 +811,3 @@ i.dependencies.normal {
802811
visibility: hidden;
803812
display: none;
804813
}
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)