[CST-7119] Fixes

This commit is contained in:
Davide Negretti
2022-10-17 11:22:07 +02:00
parent c75f5f7c81
commit dd4d709d9c
2 changed files with 4 additions and 3 deletions

View File

@@ -6,13 +6,14 @@ nav.navbar {
/** Mobile menu styling **/
@media screen and (max-width: map-get($grid-breakpoints, md)-0.02) {
.navbar {
width: 100vw;
width: 100%;
background-color: var(--bs-white);
position: absolute;
overflow: hidden;
height: 0;
&.open {
height: 100vh; //doesn't matter because wrapper is sticky
height: auto;
min-height: 100vh; //doesn't matter because wrapper is sticky
}
}
}

View File

@@ -12,7 +12,7 @@ export const slide = trigger('slide', [
export const slideMobileNav = trigger('slideMobileNav', [
state('expanded', style({ height: '100vh' })),
state('expanded', style({ height: 'auto', 'min-height': '100vh' })),
state('collapsed', style({ height: 0 })),