Skip to content

Commit

Permalink
newer banner
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton committed Jul 20, 2023
1 parent e08aaaa commit 1b2456a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions site/assets/scss/_sidebar.scss
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion site/assets/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 8 additions & 0 deletions site/layouts/partials/docs-navbar.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<header class="sticky-top">
<nav class="navbar navbar-dark navbar-expand bg-dark supra" aria-label="Supra-navigation - Only left navbar example">
<div class="container-xxl">
<ul class="navbar-nav me-auto">
<li class="nav-item"><a href="#" class="nav-link active" aria-current="page">Personal</a></li>
<li class="nav-item"><a href="#" class="nav-link">Business</a></li>
</ul>
</div>
</nav>
<nav class="navbar navbar-dark bg-dark navbar-expand-lg" aria-label="Main navigation">
<div class="container-xxl">
<div class="navbar-brand me-auto me-lg-4">
Expand Down

0 comments on commit 1b2456a

Please sign in to comment.