Workaround missing navbar @768px for dspace and custom templates

The treatment of the breakpoints is inconsistent. md is defined as
768px<=md<992px.
The statement
@media screen and (max-width: map-get($grid-breakpoints, md)) {}
,which is in some instances used at the moment for referencing break intervals BELOW md includes the lower md border which should be excluded.
The sass mixin
@include media-breakpoint-down($name) {}
or function
breakpoint-max($name)
for some unknown reason don't work, so this is a workaround.
This commit is contained in:
Peter Wolfersberger
2022-09-27 15:19:00 +02:00
parent 064dae2581
commit fc624a406f
2 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ nav.navbar {
}
/** 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 {
width: 100vw;
background-color: var(--bs-white);
@@ -26,7 +26,7 @@ nav.navbar {
/* TODO remove when https://github.com/twbs/bootstrap/issues/24726 is fixed */
.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 {
padding: 0 var(--bs-spacer);
}

View File

@@ -6,7 +6,7 @@ nav.navbar {
}
/** 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 {
width: 100%;
background-color: var(--bs-white);
@@ -28,7 +28,7 @@ nav.navbar {
/* TODO remove when https://github.com/twbs/bootstrap/issues/24726 is fixed */
.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 {
padding: 0 var(--bs-spacer);
a.navbar-brand {