style: specify dark mode selector

This commit is contained in:
ZhenShuo Leo
2025-11-29 15:18:19 +08:00
parent 2d3642c62b
commit c5b51e3491
2 changed files with 7 additions and 0 deletions

View File

@@ -3552,6 +3552,9 @@ body.zen-mode-enable {
.dark .ios-toggle::after { .dark .ios-toggle::after {
background: #f5f5f5; background: #f5f5f5;
} }
html.dark {
color-scheme: dark;
}
body a, body button { body a, body button {
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to; transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function)); transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));

View File

@@ -7,6 +7,10 @@
@import "./components/zen-mode.css"; @import "./components/zen-mode.css";
@import "./components/a11y.css"; @import "./components/a11y.css";
html.dark {
color-scheme: dark;
}
body a, body a,
body button { body button {
@apply transition-colors; @apply transition-colors;