Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
left_sidebar: Simplify consistent opacity for muted channels, topics.
Karl Stolley6a4fd180fa56
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex 68dd95d186b..be3e9bd510e 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -344,6 +344,8 @@--opacity-sidebar-heading: 0.7;--opacity-sidebar-heading-icon: 0.5;--opacity-sidebar-heading-hover: 0.9;+ --opacity-left-sidebar-muted: 0.55;+ --opacity-left-sidebar-muted-hover: 0.75;--opacity-right-sidebar-subheading: 0.65;--opacity-right-sidebar-subheading-hover: 0.9;diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.cssindex 29b5b4158c2..0a60bbf7fc6 100644--- a/web/styles/dark_theme.css+++ b/web/styles/dark_theme.css@@ -13,24 +13,6 @@@extend .placeholder;}- & ul.dm-list,- & ul.filters {- .has-unmuted-mentions .unread_mention_info {- color: hsl(236deg 33% 90%);- }-- & li.muted_topic,- li.out_of_home_view {- color: hsl(236deg 33% 90%/50%);- }-- & li.out_of_home_view {- &:hover {- color: hsl(236deg 33% 90%/ 75%);- }- }- }-kbd {text-shadow: none;}diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.cssindex cb9e15e3b8d..4a5ff899430 100644--- a/web/styles/left_sidebar.css+++ b/web/styles/left_sidebar.css@@ -451,19 +451,29 @@ ul.filters {.has-only-muted-unreads {.unread_count {- opacity: 0.5;+ opacity: var(--opacity-left-sidebar-muted);+ }++ &:hover .unread_count {+ opacity: var(--opacity-left-sidebar-muted-hover);}}- .has-only-muted-mentions .unread_mention_info {- opacity: 0.5;+ .has-only-muted-mentions {+ .unread_mention_info {+ opacity: var(--opacity-left-sidebar-muted);+ }++ &:hover .unread_mention_info {+ opacity: var(--opacity-left-sidebar-muted-hover);+ }}/* This is a noop in the current design, because unread counts formuted streams have the same opacity, but the logic is here tobe explicit and because the design may change in the future. */.more_topic_unreads_muted_only .unread_count {- opacity: 0.5;+ opacity: var(--opacity-left-sidebar-muted);}.zulip-icon-follow {@@ -475,24 +485,41 @@ ul.filters {}}- & li.muted_topic,- li.out_of_home_view {- color: hsl(0deg 0% 20% / 50%);-- .has-unmuted-mentions .unread_mention_info {- color: hsl(0deg 0% 20%);+ & li.muted_topic {+ .sidebar-topic-check,+ .sidebar-topic-name,+ .unread_count {+ opacity: var(--opacity-left-sidebar-muted);}- .stream-privacy {- opacity: 0.5;+ &:hover {+ .sidebar-topic-check,+ .sidebar-topic-name,+ .unread_count {+ opacity: var(--opacity-left-sidebar-muted-hover);+ }}+ }- & .unread_count {- opacity: 0.5;+ & li.out_of_home_view {+ .stream-privacy,+ .stream-name,+ .channel-new-topic-button,+ .unread_count,+ .masked_unread_count,+ .sidebar-menu-icon {+ opacity: var(--opacity-left-sidebar-muted);}- & .masked_unread_count {- opacity: 0.5;+ &:hover {+ .stream-privacy,+ .stream-name,+ .channel-new-topic-button,+ .unread_count,+ .masked_unread_count,+ .sidebar-menu-icon {+ opacity: var(--opacity-left-sidebar-muted-hover);+ }}.has-unmuted-unreads {@@ -509,33 +536,6 @@ ul.filters {}}}-- & li.out_of_home_view {- &:hover {- color: hsla(0deg 0% 20% / 75%);-- .stream-privacy {- opacity: 0.75;- }-- .unread_count {- opacity: 0.75;- }-- .has-unmuted-unreads {- .unread_count {- opacity: 1;- }- }- }-- & li.muted_topic {- /* If stream is muted, this resets opacity of muted topics in muted- stream to 1; since opacity is multiplied down through child- elements, this avoids an unreadably low opacity. */- opacity: 1;- }- }}li.active-filter,