simplified transform

This commit is contained in:
Max Kotlan 2021-12-14 14:21:14 -05:00 committed by Thomas Zarebczan
parent 202cbd4499
commit e3394bf8b2

View file

@ -55,7 +55,7 @@
} }
.navigation--push-back { .navigation--push-back {
transform: translateX(calc(-1 * (var(--side-nav-width) - var(--side-nav-width--micro)))); transform: translateX(calc(var(--side-nav-width--micro) - var(--side-nav-width)));
} }
.navigation--push { .navigation--push {
@ -72,7 +72,8 @@
.navigation--micro { .navigation--micro {
@extend .navigation; @extend .navigation;
transform: translateX(calc(-1 * (var(--side-nav-width) - var(--side-nav-width--micro))));
transform: translateX(calc(var(--side-nav-width--micro) - var(--side-nav-width)));
@media (max-width: $breakpoint-small) { @media (max-width: $breakpoint-small) {
display: none; display: none;