Skip to content

Commit

Permalink
Revert "Change layout to fix missing scrollbar highlighting (chromium)"
Browse files Browse the repository at this point in the history
See rust-lang#640.

This reverts commit 3ababaf.
  • Loading branch information
cynecx committed Mar 17, 2020
1 parent 3ababaf commit 08fddf0
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions templates/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ div.rustdoc {
}
}
}

// this is actual fix for docs.rs navigation and rustdoc sidebar
position: fixed;
top: $top-navbar-height;
bottom: 0;
left: 0;
right: 0;
display: block;
overflow-y: auto;
}

body {
Expand Down Expand Up @@ -802,16 +811,3 @@ i.dependencies.normal {
visibility: hidden;
display: none;
}

// Fix position of theme-picker
.theme-picker {
margin-top: $top-navbar-height;
}

// Fix for anchors, so that they are well positioned right below the sticky header
.section-header::before {
display: block;
content: "";
height: 3rem;
margin-top: -3rem;
}

0 comments on commit 08fddf0

Please sign in to comment.