styles: Fix dark-theme mixin in zulip.css.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-03-05 18:45:31 -08:00 committed by Tim Abbott
parent ecde9066d7
commit 13066e6406
1 changed files with 6 additions and 2 deletions

View File

@ -58,14 +58,18 @@ body,
--right-sidebar-width: 250px;
}
:root.dark-theme {
%dark-theme {
--color-default-text: hsl(0, 0%, 100%);
--color-date: hsl(0, 0%, 100%, 0.75);
}
:root.dark-theme {
@extend %dark-theme;
}
@media (prefers-color-scheme: dark) {
:root.color-scheme-automatic {
@extend :root.dark-theme;
@extend %dark-theme;
}
}