From ef6d05c7b9f29ec5f5c930e219f4fd74020dfef1 Mon Sep 17 00:00:00 2001 From: Claas Kazzer <kazzer@ub.uni-leipzig.de> Date: Wed, 4 Jan 2023 16:31:29 +0100 Subject: [PATCH] refs #22929 [finc] adds variable for bottom border of fixed headers --- themes/finc/scss/_customVariables.scss | 3 +++ themes/finc/scss/components/_header-navbar.scss | 3 +++ 2 files changed, 6 insertions(+) diff --git a/themes/finc/scss/_customVariables.scss b/themes/finc/scss/_customVariables.scss index 29aefe2da29..a70c9bb2316 100644 --- a/themes/finc/scss/_customVariables.scss +++ b/themes/finc/scss/_customVariables.scss @@ -663,6 +663,9 @@ $navbar-bg-color-xs: $navbar-default-toggle-hover-bg !default; $navbar-xs-openend-margin-bottom: 1rem !default; $navbar-fixed-bg-color: $header-bg-color !default; +// Bootstrap theme gives '.navbar-fixed-top' and '.navbar-fixed-bottom' a top or bottom border of 1px: +// set this variable in your theme according to your preferences +$navbar-fixed-top-border-bottom-width: 0 !default; // Header, navbar and breadcrumbs default margin for centered design - change here for full width $header-navbar-breadcrumbs-margin: 0 auto !default; diff --git a/themes/finc/scss/components/_header-navbar.scss b/themes/finc/scss/components/_header-navbar.scss index 2cffc9ceda3..7658f33f31e 100644 --- a/themes/finc/scss/components/_header-navbar.scss +++ b/themes/finc/scss/components/_header-navbar.scss @@ -54,6 +54,9 @@ header, // Keep navbar on left, when off-canvas is active, and give it the same appearance as ever // the '.active' class is set on body when the user hits the button to display the sidebar .navbar-fixed-top { + border-bottom: $navbar-fixed-top-border-bottom-width; + + .offcanvas.active & { margin-top: -$navbar-height-xs; position: relative; -- GitLab