From a31b2a8b74ad894ac3026da60a51d10c27bc8250 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 12 Feb 2022 14:15:25 +0100 Subject: [PATCH] Fix footer display following last rustdoc changes on the sidebar --- templates/style/rustdoc-2021-12-05.scss | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/templates/style/rustdoc-2021-12-05.scss b/templates/style/rustdoc-2021-12-05.scss index d4e5610c4..c2f77d65e 100644 --- a/templates/style/rustdoc-2021-12-05.scss +++ b/templates/style/rustdoc-2021-12-05.scss @@ -10,9 +10,13 @@ .sidebar { margin-top: 0; top: $top-navbar-height; + height: calc(100vh - $top-navbar-height); + /* Since we use `overflow-wrap: anywhere;`, we never have the need for a X scrollbar... */ + overflow-x: hidden; .sidebar-menu { top: $top-navbar-height; + margin-bottom: $footer-height; } } @@ -25,12 +29,7 @@ div.container-rustdoc { > .docs-rs-footer { bottom: 0; right: 0; - } -} - -div.container-rustdoc:not(.source) { - > .docs-rs-footer { - left: 200px; + left: 0; } }