css: nav hamburger: don't wait nav is open to apply nav layout (#43414)

This commit is contained in:
Thomas Jund 2020-05-28 12:34:57 +02:00
parent c3334d27b9
commit 761c30e79d
1 changed files with 6 additions and 12 deletions

View File

@ -270,6 +270,7 @@ div.menucell {
}
& + ul {
display: block;
overflow: hidden;
@if $responsive-menu == top-to-bottom {
height: 0px;
@ -285,14 +286,15 @@ div.menucell {
left: 0;
z-index: 100;
padding-top: 20px+$nav-menu-side;
& li {
display: block;
float: none;
}
}
& li {
display: block;
float: none;
}
background: $nav-mobile-menu-background;
& a {
width: 100%;
color: $nav-mobile-menu-item-color;
border-radius: 0;
}
@ -333,20 +335,12 @@ div.menucell {
}
& + ul {
display: block;
@if $responsive-menu == top-to-bottom {
height: auto;
} @else if $responsive-menu == left-to-right {
transform: translateX(0);
}
}
& + ul li {
float: none;
display: block;
}
& + ul li a {
width: 100%;
}
}
}
}