fix: theme transition error

This commit is contained in:
radishzzz 2025-02-05 16:39:28 +00:00
parent bdc2aa32e6
commit 45385fd84a
4 changed files with 13 additions and 1 deletions

View file

@ -78,10 +78,18 @@ html:not(.dark) {
z-index: 1;
}
html[data-theme-transition] [data-disable-transition-on-theme] {
view-transition-name: none !important;
}
@supports not (view-transition-name: none) {
html:not([data-restore-theme]) {
--at-apply: 'transition-colors duration-500 ease-in-out';
}
html:not([data-restore-theme]) [data-disable-transition-on-theme] {
--at-apply: 'transition-none!';
}
}
/* Snell Roundhand static Font */
@ -123,4 +131,4 @@ html:not(.dark) {
font-display: swap;
font-weight: 400 700;
unicode-range: U+91cd, U+65b0, U+7f16, U+6392, U+518d, U+73b0, U+7248, U+5f0f, U+4e4b, U+7f8e, U+6587, U+7ae0, U+6807, U+7b7e, U+5173, U+4e8e, U+6a19, U+7c64, U+95dc, U+65bc, U+8a18, U+4e8b, U+30bf, U+30b0, U+6982, U+8981;
}
}