Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
sidebars: Restyle vdots icon colors and hover states.
Karl Stolleyf73e39c63d99
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex bf41d9733f3..8787d2f9690 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -566,6 +566,7 @@--color-background-hover-narrow-filter);--color-shadow-sidebar-row-hover: hsl(0deg 0% 0% / 30%);+ --color-background-sidebar-action-hover: hsl(240deg 100% 93%);--color-navbar-bottom-border: hsl(0deg 0% 80%);--color-unread-marker: hsl(217deg 64% 59%);--color-masked-unread-marker: hsl(0deg 0% 80%);@@ -756,13 +757,10 @@--color-left-sidebar-follow-icon-hover: hsl(0deg 0% 0%);/* The gray on the filter icons is the same aswhat's set on ul.filters, but with 70% opacity. */- --color-left-sidebar-navigation-icon: hsl(0deg 0% 20% / 70%);- --color-vdots-hint: hsl(0deg 0% 0% / 30%);- --color-vdots-visible: hsl(0deg 0% 0% / 53%);- --color-vdots-hover: hsl(0deg 0% 0%);- --color-left-sidebar-header-vdots-visible: var(- --color-left-sidebar-navigation-icon- );+ --color-left-sidebar-navigation-icon: hsl(240deg 30% 40%);+ --color-vdots-hint: hsl(240deg 30% 20%);+ --color-vdots-visible: hsl(240deg 30% 40%);+ --color-vdots-hover: hsl(240deg 100% 15%);--color-tab-picker-icon: hsl(200deg 100% 40%);--color-user-circle-active: hsl(106deg 74% 44%);--color-user-circle-idle: hsl(29deg 84% 51%);@@ -1039,6 +1037,7 @@hsl(0deg 0% 11%));--color-shadow-sidebar-row-hover: hsl(0deg 0% 100% / 30%);+ --color-background-sidebar-action-hover: hsl(240deg 25% 35%);--color-navbar-bottom-border: hsl(0deg 0% 0% / 60%);--color-unread-marker: hsl(217deg 64% 59%);--color-masked-unread-marker: hsl(0deg 0% 30%);@@ -1236,10 +1235,10 @@--color-message-action-visible: hsl(217deg 41% 90% / 50%);--color-message-action-interactive: hsl(217deg 41% 90% / 100%);--color-left-sidebar-follow-icon-hover: hsl(0deg 0% 100%);- --color-left-sidebar-navigation-icon: hsl(0deg 0% 100% / 56%);- --color-vdots-hint: hsl(0deg 0% 100% / 30%);- --color-vdots-visible: hsl(236deg 33% 80%);- --color-vdots-hover: hsl(0deg 0% 100%);+ --color-left-sidebar-navigation-icon: hsl(240deg 35% 68%);+ --color-vdots-hint: hsl(240deg 35% 48%);+ --color-vdots-visible: hsl(240deg 35% 68%);+ --color-vdots-hover: hsl(240deg 100% 90%);--color-left-sidebar-header-vdots-visible: var(--color-left-sidebar-navigation-icon);diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.cssindex 85cd120996a..13cf79ea4f8 100644--- a/web/styles/left_sidebar.css+++ b/web/styles/left_sidebar.css@@ -938,7 +938,7 @@ li.top_left_scheduled_messages {.left-sidebar-navigation-menu-icon {grid-area: ending-anchor-element;/* Horizontally center vdots. */- justify-self: center;+ justify-self: stretch;/* Properly size vdots. */font-size: 17px;/* Occupy same clickable height as@@ -948,10 +948,14 @@ li.top_left_scheduled_messages {flexbox. */display: flex;align-items: center;- color: var(--color-left-sidebar-header-vdots-visible);+ justify-content: center;+ margin-right: 2px;+ border-radius: 3px;+ color: var(--color-vdots-visible);&:hover {color: var(--color-vdots-hover);+ background-color: var(--color-background-sidebar-action-hover);}}}@@ -1150,19 +1154,24 @@ li.top_left_scheduled_messages {.bottom_left_row .sidebar-menu-icon,.top_left_row .sidebar-menu-icon {display: none;- width: 100%;cursor: pointer;/* Use a flex container to handleicon centering within the grid area.:hover actually sets the `display: flex`,so it remains hidden otherwise. */justify-content: center;+ align-items: center;text-align: center;/* Ensure icons are vertically aligned, incase they appear in a grid definition,like the nav rows, that use a differentcentering regime for the row. */- align-self: center;+ align-self: stretch;+ border-radius: 3px;+ margin: 2px 2px 2px 1px;+ /* This helps horizontally align the vdots,+ given the reduced margin-left above. */+ padding-left: 1px;/* Set the icon size, which will be inheritedby .zulip-icon */font-size: 17px;@@ -1211,12 +1220,9 @@ li.top_left_scheduled_messages {display: flex;color: var(--color-vdots-visible);- /*- If you hover directly over the vdots icon,- show it in black.- */&:hover {color: var(--color-vdots-hover);+ background-color: var(--color-background-sidebar-action-hover);}}diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.cssindex 06956cc5a7e..77f667d58e3 100644--- a/web/styles/right_sidebar.css+++ b/web/styles/right_sidebar.css@@ -65,7 +65,18 @@ $user_status_emoji_width: 24px;.user-list-sidebar-menu-icon {visibility: hidden;- justify-self: center;+ justify-self: stretch;+ display: flex;+ align-items: center;+ justify-content: center;+ margin: 2px 2px 2px 1px;+ /* This helps horizontally align the vdots,+ given the reduced margin-left above.+ Vertical centering looks better with an+ extra pixel of top padding in this area,+ too. */+ padding: 1px 0 0 1px;+ border-radius: 3px;& i {font-size: 17px;@@ -99,6 +110,9 @@ $user_status_emoji_width: 24px;&:hover {color: var(--color-vdots-hover);+ background-color: var(+ --color-background-sidebar-action-hover+ );}}}