Skip to content

Commit 32ee9e6

Browse files
Merge pull request #636 from cynecx/revert-635-fix-chrome-search-highlight
Revert "Change layout to fix missing scrollbar highlighting (chromium text search)"
2 parents 5bf4321 + 817cc7c commit 32ee9e6

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

templates/style.scss

Lines changed: 9 additions & 5 deletions
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,8 +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-
}

0 commit comments

Comments
 (0)