Skip to content
Snippets Groups Projects
Unverified Commit 467f6850 authored by syuilo's avatar syuilo
Browse files

Refactor

parent d95b0dee
No related branches found
No related tags found
No related merge requests found
......@@ -43,10 +43,10 @@ export const builtinThemes = [
];
export function applyTheme(theme: Theme, persisted = true) {
document.documentElement.classList.add('change-theme');
document.documentElement.classList.add('changing-theme');
setTimeout(() => {
document.documentElement.classList.remove('change-theme');
document.documentElement.classList.remove('changing-theme');
}, 500);
// Deep copy
......
......@@ -20,7 +20,7 @@ html, body
text-size-adjust 100%
font-family sans-serif
html.change-theme
html.changing-theme
&, *
transition-property all
transition-duration 0.5s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment