From aa098f1c0632bcff0596f3f42143a630094a07f5 Mon Sep 17 00:00:00 2001 From: "louismaxime.piton" Date: Wed, 9 Feb 2022 17:01:21 +0100 Subject: [PATCH] Handle nav-under issues --- scss/_navbar.scss | 29 ++++++++++++------- .../shortcodes/orange-global-headers.html | 27 +++++++---------- 2 files changed, 30 insertions(+), 26 deletions(-) diff --git a/scss/_navbar.scss b/scss/_navbar.scss index 5f698fdbca..006fb576b9 100644 --- a/scss/_navbar.scss +++ b/scss/_navbar.scss @@ -427,16 +427,6 @@ } // Boosted mod: Offcanvas navbar is not allowed - - &.flex-sm-wrap { - .navbar-collapse { - padding: $navbar-orange-navigation-padding-bottom 0; - } - - .nav-link.active::before{ - bottom: -$navbar-orange-navigation-padding-bottom; - } - } } } } @@ -580,3 +570,22 @@ } } } + +// Boosted mod +// Handle the nav-under responsiveness +.navbar:not(.supra) + .navbar { + margin-top: -1px; + + .navbar-collapse { + padding: $navbar-orange-navigation-padding-bottom 0; + } + + .nav-link.active::before{ + bottom: -$navbar-orange-navigation-padding-bottom; + } + + @include media-breakpoint-up(lg) { + margin-top: 0; + } +} +// End mod diff --git a/site/layouts/shortcodes/orange-global-headers.html b/site/layouts/shortcodes/orange-global-headers.html index 521f01f2ba..45602eb29f 100644 --- a/site/layouts/shortcodes/orange-global-headers.html +++ b/site/layouts/shortcodes/orange-global-headers.html @@ -19,7 +19,6 @@ {{- $title_2 := .Get "title_2" -}} {{- $is_title_on_2_lines := and $title $title_2 }} {{- $mode := .Get "mode" -}} -{{- $demo := .Get "demo" | default false -}} {{- $labels := .Get "labels" | default false -}} {{- $labels_end := .Get "labels_end" | default false -}} {{- $minimized := .Get "minimized" | default false -}} @@ -31,7 +30,7 @@
{{ if $responsive_logo }} - Boosted + Boosted {{ else }} Boosted {{ end }} @@ -104,21 +103,17 @@ {{ if $labels }} - {{ if not $demo }} - - - - - {{ end }} + + + + {{ else }} - {{ if not $demo }} - - - - - {{ end }} + + + + {{ end }} {{ if $supra }} @@ -139,7 +134,7 @@
{{ if $navigation }} - + {{ end }}