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.

left_sidebar: Display dark-mode condensed unreads without alpha.

Karl Stolley14ef3a5464f3
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index 68551bb1cb1..ff288f650a7 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -534,6 +534,7 @@ li.active-sub-filter {
.unread_count {
top: -6px;
right: -6px;
+ background: var(--color-background-unread-counter-no-alpha);
}
}
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index c2339a8819e..af3e7688f43 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -395,6 +395,18 @@ body {
--color-border-dropdown-menu: hsl(0deg 0% 0%);
--color-border-personal-menu-avatar: hsl(0deg 0% 100% / 20%);
--color-background-unread-counter: hsl(105deg 2% 50% / 50%);
+ /* When unreads are hovered on the condensed
+ views, they should not have an alpha.
+
+ The second color aligns with dark mode's
+ --color-background. We use the value
+ directly so that this gets compiled down to
+ an rgb() value by PostCSS Preset Env. */
+ --color-background-unread-counter-no-alpha: color-mix(
+ in srgb,
+ hsl(105deg 2% 50%) 50%,
+ hsl(0deg 0% 11%)
+ );
--color-background-unread-counter-dot: hsl(105deg 2% 50% / 90%);
--color-background-unread-counter-popover-menu: hsl(105deg 2% 50% / 50%);
--color-border-unread-counter: hsl(105deg 2% 50%);