Avoid mode switch button shifting

This commit is contained in:
Cotes Chung 2020-12-06 14:09:47 +08:00
parent 5d6014ecee
commit 6335991164
1 changed files with 2 additions and 6 deletions

View File

@ -17,12 +17,12 @@
@if $dark-mode { @if $dark-mode {
@include dark-scheme; @include dark-scheme;
.mode-toggle { .mode-toggle {
transform: rotate(180deg); transform: rotateY(180deg);
} }
} @else { } @else {
@include light-scheme; @include light-scheme;
.mode-toggle { .mode-toggle {
transform: rotate(360deg); transform: none;
} }
} }
} }
@ -192,10 +192,6 @@ $sidebar-display: "sidebar-display";
position: relative; position: relative;
bottom: 1px; bottom: 1px;
} }
.mode-toggle {
transition: all .5s !important;
}
} }
.icon-border { .icon-border {