diff --git a/site/assets/scss/_sidebar.scss b/site/assets/scss/_sidebar.scss index 4ec8f9b138..f7397a1081 100644 --- a/site/assets/scss/_sidebar.scss +++ b/site/assets/scss/_sidebar.scss @@ -1,11 +1,11 @@ .bd-sidebar { @include media-breakpoint-up(lg) { position: sticky; - top: 5rem; + top: $offset-top; // Boosted mod: instead of `5rem` // Override collapse behaviors // stylelint-disable-next-line declaration-no-important display: block !important; - height: subtract(100vh, 6rem); + height: $sidebar-height; // Boosted mod: instead of `subtract(100vh, 8rem)` // Prevent focus styles to be cut off: padding-left: .25rem; margin-left: -.25rem; diff --git a/site/assets/scss/_variables.scss b/site/assets/scss/_variables.scss index ba2595a90b..a5db5e0014 100644 --- a/site/assets/scss/_variables.scss +++ b/site/assets/scss/_variables.scss @@ -38,6 +38,6 @@ $bd-callout-variants: info, warning, danger !default; // Boosted mod $zindex-skippy: 1080; $offset-top: 7rem; -$sidebar-height: subtract(100vh, $offset-top); +$sidebar-height: subtract(100vh, $offset-top + 1rem); $tac-prefix: "tarteaucitron"; // End mod diff --git a/site/layouts/partials/docs-navbar.html b/site/layouts/partials/docs-navbar.html index 8f99fb6858..7b391ab437 100644 --- a/site/layouts/partials/docs-navbar.html +++ b/site/layouts/partials/docs-navbar.html @@ -1,4 +1,12 @@
+