diff --git a/templates/style.scss b/templates/style.scss index 361b766aa..8501628d4 100644 --- a/templates/style.scss +++ b/templates/style.scss @@ -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 { @@ -802,8 +811,3 @@ i.dependencies.normal { visibility: hidden; display: none; } - -// Fix position of theme-picker -.theme-picker { - margin-top: $top-navbar-height; -}