website/static/src/scss/_mixins.scss

12 lines
232 B
SCSS
Raw Normal View History

@mixin dark-mode {
2022-08-20 15:55:50 +01:00
// Ensure animations aren't for the initial transition
body.dark-mode-animate & {
transition-duration: 0.5s;
transition-property: color, background-color;
}
body.dark-mode & {
@content;
}
}