Skip to content

Commit

Permalink
Rollup merge of rust-lang#45212 - GuillaumeGomez:sidebar-fixed, r=Qui…
Browse files Browse the repository at this point in the history
…etMisdreavus

Limit the sidebar height

The sidebar is now fixed, which means its scrolling is independent of the main page now.

r? @rust-lang/docs
  • Loading branch information
kennytm authored Oct 25, 2017
2 parents bea6136 + 9ce41f2 commit fc48893
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,11 @@ nav.sub {

.sidebar {
width: 200px;
position: absolute;
position: fixed;
left: 0;
top: 0;
min-height: 100%;
height: 100vh;
overflow: auto;
}

.sidebar .current {
Expand Down

0 comments on commit fc48893

Please sign in to comment.