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.

dark_theme: Clean up simplebar scrollbar colors.

Evy Kassirer0a6a5ecfbe0b
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index c6d68fd4e28..55eb1d45300 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -818,6 +818,14 @@
/* Colors used across the app */
--color-date: light-dark(hsl(0deg 0% 15% / 75%), hsl(0deg 0% 100% / 75%));
+ --color-background-simplebar-scrollbar: light-dark(
+ hsl(0deg 0% 0%),
+ hsl(0deg 0% 100%)
+ );
+ --color-box-shadow-simplebar-scrollbar: light-dark(
+ hsl(0deg 0% 100% / 33%),
+ hsl(0deg 0% 0% / 33%)
+ );
--color-background-private-message-header: light-dark(
hsl(46deg 35% 93%),
hsl(46deg 15% 20%)
diff --git a/web/styles/components.css b/web/styles/components.css
index 7fba1a3fbce..8e7e9cb0266 100644
--- a/web/styles/components.css
+++ b/web/styles/components.css
@@ -75,8 +75,8 @@ a.no-underline:focus {
.simplebar-track {
.simplebar-scrollbar::before {
- background-color: hsl(0deg 0% 0%);
- box-shadow: 0 0 0 1px hsl(0deg 0% 100% / 33%);
+ background-color: var(--color-background-simplebar-scrollbar);
+ box-shadow: 0 0 0 1px var(--color-box-shadow-simplebar-scrollbar);
}
&.simplebar-vertical {
diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.css
index bfc717a33da..8258bd4cdaf 100644
--- a/web/styles/dark_theme.css
+++ b/web/styles/dark_theme.css
@@ -217,11 +217,6 @@
filter: invert(100%);
}
- .simplebar-track .simplebar-scrollbar::before {
- background-color: hsl(0deg 0% 100%);
- box-shadow: 0 0 0 1px hsl(0deg 0% 0% / 33%);
- }
-
#loading_older_messages_indicator,
#recent_view_loading_messages_indicator {
& path {