Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Anders Kaseorg13066e64062d
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 39ad580e13e..d9add62d161 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -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;
}
}