diff options
| author | kennytm <kennytm@gmail.com> | 2017-10-26 03:02:49 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-26 03:02:49 +0800 |
| commit | fc48893845980f4b9c1ce019dac09e3b81ba8c53 (patch) | |
| tree | 9caa2082c33cfd45a545638a47b0f511afc553b6 | |
| parent | bea6136b4a11d442d66256b6a27804348765fb22 (diff) | |
| parent | 9ce41f2544706bc3fc89f134668b607b0598e453 (diff) | |
| download | rust-fc48893845980f4b9c1ce019dac09e3b81ba8c53.tar.gz rust-fc48893845980f4b9c1ce019dac09e3b81ba8c53.zip | |
Rollup merge of #45212 - GuillaumeGomez:sidebar-fixed, r=QuietMisdreavus
Limit the sidebar height The sidebar is now fixed, which means its scrolling is independent of the main page now. r? @rust-lang/docs
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 1b98cd322e7..9978435a112 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -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 { |
