Skip to content

Change layout to fix missing scrollbar highlighting (chromium) Attempt 2 #637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions templates/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,6 @@ 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 @@ -811,3 +802,16 @@ 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;
}