mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
Refactor
This commit is contained in:
parent
e536e499b8
commit
6641d3b35b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user