Skip to content

Commit

Permalink
docs: add hidden release banner (#2150)
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
  • Loading branch information
louismaximepiton and julien-deramond authored Jul 20, 2023
1 parent e08aaaa commit d0a58a3
Show file tree
Hide file tree
Showing 3 changed files with 12 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, 6rem)`
// 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
9 changes: 9 additions & 0 deletions site/layouts/partials/docs-navbar.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<header class="sticky-top">
<nav class="navbar navbar-dark navbar-expand bg-dark supra d-none" aria-label="Supra-navigation - New release banner">
<div class="container-xxl d-flex justify-content-center">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="https://boosted.orange.com">There's a newer version of Boosted!</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 d0a58a3

Please sign in to comment.