frontpage/styles/Blog/ThemeSwitch.module.scss

54 lines
938 B
SCSS
Raw Permalink Normal View History

2022-10-16 15:59:08 +02:00
.switch {
position: relative;
width: 1.5em;
height: 1.5em;
cursor: pointer;
2022-10-16 15:59:08 +02:00
& > * {
position: absolute;
opacity: 0;
transform: translate(0, 100%);
}
& > .selected {
opacity: 1;
transform: translate(0, 0);
2022-10-16 15:59:08 +02:00
}
.fadeOut {
animation: fadeOut 0.2s ease-in-out;
animation-fill-mode: forwards;
}
.fadeIn {
animation: fadeIn 0.2s ease-in-out;
animation-fill-mode: forwards;
}
2022-10-18 20:03:49 +02:00
.placeHolder {
opacity: 1 !important;
transform: translate(0, 0) !important;
}
2022-10-16 15:59:08 +02:00
}
@keyframes fadeOut {
from {
opacity: 1;
transform: translate(0, 0);
}
to {
opacity: 0;
transform: translate(0, -100%);
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translate(0, 100%);
}
to {
opacity: 1;
transform: translate(0, 0);
}
}