Merge pull request #1861 from the-library-code/PRs/FixedHeader768px

Workaround missing navbar @768px for dspace and custom templates
This commit is contained in:
Tim Donohue
2022-09-29 08:24:01 -05:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ nav.navbar {
} }
/** Mobile menu styling **/ /** Mobile menu styling **/
@media screen and (max-width: map-get($grid-breakpoints, md)) { @media screen and (max-width: map-get($grid-breakpoints, md)-0.02) {
.navbar { .navbar {
width: 100vw; width: 100vw;
background-color: var(--bs-white); background-color: var(--bs-white);
@@ -26,7 +26,7 @@ nav.navbar {
/* TODO remove when https://github.com/twbs/bootstrap/issues/24726 is fixed */ /* TODO remove when https://github.com/twbs/bootstrap/issues/24726 is fixed */
.navbar-expand-md.navbar-container { .navbar-expand-md.navbar-container {
@media screen and (max-width: map-get($grid-breakpoints, md)) { @media screen and (max-width: map-get($grid-breakpoints, md)-0.02) {
> .container { > .container {
padding: 0 var(--bs-spacer); padding: 0 var(--bs-spacer);
} }

View File

@@ -6,7 +6,7 @@ nav.navbar {
} }
/** Mobile menu styling **/ /** Mobile menu styling **/
@media screen and (max-width: map-get($grid-breakpoints, md)) { @media screen and (max-width: map-get($grid-breakpoints, md)-0.02) {
.navbar { .navbar {
width: 100%; width: 100%;
background-color: var(--bs-white); background-color: var(--bs-white);
@@ -28,7 +28,7 @@ nav.navbar {
/* TODO remove when https://github.com/twbs/bootstrap/issues/24726 is fixed */ /* TODO remove when https://github.com/twbs/bootstrap/issues/24726 is fixed */
.navbar-expand-md.navbar-container { .navbar-expand-md.navbar-container {
@media screen and (max-width: map-get($grid-breakpoints, md)) { @media screen and (max-width: map-get($grid-breakpoints, md)-0.02) {
> .container { > .container {
padding: 0 var(--bs-spacer); padding: 0 var(--bs-spacer);
a.navbar-brand { a.navbar-brand {