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.

sidebars: Update colors, opacity for side bar titles and toggles.

Karl Stolley61221ddc74b6
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 8e26f3d5b86..55caa160f0f 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -701,7 +701,8 @@
--color-text-item: hsl(0deg 0% 40%);
--color-text-personal-menu-no-status: hsl(0deg 0% 50%);
--color-text-personal-menu-some-status: hsl(0deg 0% 40%);
- --color-text-sidebar-heading: hsl(0deg 0% 43%);
+ --color-text-sidebar-heading: hsl(216deg 65% 20%);
+ --color-text-sidebar-action-heading: hsl(240deg 30% 40%);
--color-text-sidebar-popover-menu: hsl(0deg 0% 20%);
--color-text-user-card-secondary: var(--grey-550);
--color-text-url: hsl(200deg 100% 40%);
@@ -1163,15 +1164,8 @@
--color-text-personal-menu-some-status: hsl(0deg 0% 100% 50%);
--color-text-sidebar-popover-menu: hsl(236deg 33% 90%);
--color-text-user-card-secondary: var(--grey-400);
- /* 75% opacity of --color-text-default against --color-background.
- We use color-mix here to avoid defining a separate, compounding
- `opacity` property, and also to preserve a record of the
- relationship of the color of sidebar headings to other colors. */
- --color-text-sidebar-heading: color-mix(
- in srgb,
- hsl(0deg 0% 75%) 75%,
- hsl(0deg 0% 11%)
- );
+ --color-text-sidebar-heading: hsl(216deg 50% 75%);
+ --color-text-sidebar-action-heading: hsl(240deg 35% 68%);
--color-text-url-hover: hsl(200deg 79% 66%);
--color-text-settings-field-hint: hsl(0deg 0% 52%);
diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.css
index 44cb8d2d505..c6503f8b5b1 100644
--- a/web/styles/dark_theme.css
+++ b/web/styles/dark_theme.css
@@ -38,10 +38,6 @@
& ul.filters {
color: hsl(0deg 0% 100% / 80%);
- & a:hover {
- color: inherit;
- }
-
.has-unmuted-mentions .unread_mention_info {
color: hsl(236deg 33% 90%);
}
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index 2666aa58917..e01b4974815 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -11,6 +11,7 @@
.left-sidebar-title {
color: var(--color-text-sidebar-heading);
+ opacity: var(--opacity-sidebar-heading);
font-size: inherit;
font-weight: var(--font-weight-sidebar-heading);
letter-spacing: var(--letter-spacing-sidebar-heading);
@@ -74,7 +75,7 @@
}
& li {
- & a:hover {
+ & .sidebar-topic-name:hover {
text-decoration: none;
}
@@ -236,6 +237,7 @@
}
& li#show-more-direct-messages {
+ color: var(--color-text-sidebar-action-heading);
font-size: var(--font-size-sidebar-action-heading);
font-weight: var(--font-weight-sidebar-action-heading);
letter-spacing: var(--letter-spacing-sidebar-action-heading);
@@ -256,7 +258,8 @@
#toggle-direct-messages-section-icon,
#toggle-top-left-navigation-area-icon {
- opacity: 0.7;
+ color: var(--color-text-sidebar-heading);
+ opacity: var(--opacity-sidebar-heading);
&.fa-caret-right {
position: relative;
@@ -364,9 +367,15 @@ ul.filters {
/* Streams take a standard row height. */
line-height: var(--line-height-sidebar-row);
- & a {
+ .sidebar-topic-name,
+ .left-sidebar-navigation-label-container {
color: inherit;
+ &:hover {
+ /* Push back against a:hover color in dark_theme.css */
+ color: inherit !important;
+ }
+
&:focus {
text-decoration: none;
}
@@ -966,7 +975,8 @@ li.top_left_scheduled_messages {
display: none;
}
-.sidebar-topic-name {
+.sidebar-topic-name,
+.sidebar-topic-action-heading {
cursor: pointer;
grid-area: row-content;
padding: 0 var(--left-sidebar-before-unread-count-padding) 0 0;
@@ -987,14 +997,30 @@ li.top_left_scheduled_messages {
span.sidebar-topic-name-inner {
white-space: pre;
}
+
+ &:hover {
+ color: inherit;
+ }
+
+ &:focus {
+ text-decoration: none;
+ }
}
.sidebar-topic-action-heading {
+ color: var(--color-text-sidebar-action-heading);
font-size: var(--font-size-sidebar-action-heading);
font-weight: var(--font-weight-sidebar-action-heading);
font-variant: var(--font-variant-sidebar-action-heading);
font-feature-settings: var(--font-feature-settings-sidebar-action-heading);
text-transform: var(--text-transform-sidebar-action-heading);
+
+ &:hover {
+ text-decoration: none;
+ /* Push back against a:hover color in dark_theme.css
+ Eventually this will take redesigned hover colors. */
+ color: var(--color-text-sidebar-action-heading) !important;
+ }
}
.topic-list-filter {
@@ -1300,7 +1326,7 @@ li.topic-list-item {
font-weight: var(--font-weight-sidebar-action-heading);
font-variant: var(--font-variant-sidebar-action-heading);
text-transform: var(--text-transform-sidebar-action-heading);
- color: inherit;
+ color: var(--color-text-sidebar-action-heading);
text-decoration: none;
}
@@ -1557,6 +1583,7 @@ li.topic-list-item {
color: inherit;
.hide-more-direct-messages-text {
+ color: var(--color-text-sidebar-action-heading);
font-size: var(--font-size-sidebar-action-heading);
font-weight: var(--font-weight-sidebar-action-heading);
font-variant: var(--font-variant-sidebar-action-heading);
diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.css
index 8dd437a132f..f393a304de6 100644
--- a/web/styles/right_sidebar.css
+++ b/web/styles/right_sidebar.css
@@ -14,6 +14,7 @@ $user_status_emoji_width: 24px;
.right-sidebar-title {
color: var(--color-text-sidebar-heading);
+ opacity: var(--opacity-sidebar-heading);
font-size: inherit;
font-weight: var(--font-weight-sidebar-heading);
letter-spacing: var(--letter-spacing-sidebar-heading);
diff --git a/web/templates/more_topics.hbs b/web/templates/more_topics.hbs
index a83690570dd..4674f40d748 100644
--- a/web/templates/more_topics.hbs
+++ b/web/templates/more_topics.hbs
@@ -2,7 +2,7 @@
{{#unless more_topics_unreads}}zero-topic-unreads{{/unless}}
{{#if more_topics_unread_count_muted}}more_topic_unreads_muted_only{{/if}}">
<div class="topic-box">
- <a class="sidebar-topic-action-heading sidebar-topic-name" tabindex="0">{{t "Show all topics" }}</a>
+ <a class="sidebar-topic-action-heading" tabindex="0">{{t "Show all topics" }}</a>
<div class="topic-markers-and-controls">
{{#if more_topics_have_unread_mention_messages}}
<span class="unread_mention_info">