css: nav left-to-right: use transform instead of width for transition (#43419)

This commit is contained in:
Thomas Jund 2020-05-28 14:36:39 +02:00
parent cbdff4a0dd
commit c3334d27b9
1 changed files with 4 additions and 3 deletions

View File

@ -276,9 +276,10 @@ div.menucell {
border-top: 2px solid $nav-border-color;
margin-top: 0;
} @else if $responsive-menu == left-to-right {
transition: width 0.25s ease;
transition: transform 0.25s ease;
height: 100%;
width: 0px;
width: 15em;
transform: translateX(-100%);
position: fixed;
top: 0px;
left: 0;
@ -336,7 +337,7 @@ div.menucell {
@if $responsive-menu == top-to-bottom {
height: auto;
} @else if $responsive-menu == left-to-right {
width: 15em;
transform: translateX(0);
}
}
& + ul li {