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.

user_circles: Specify colors as CSS variables.

Karl Stolley9b7107ab0826
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index e772e583fcb..6f889420d83 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -357,6 +357,8 @@
--color-left-sidebar-navigation-icon
);
--color-tab-picker-icon: hsl(200deg 100% 40%);
+ --color-user-circle-active: hsl(106deg 74% 44%);
+ --color-user-circle-idle: hsl(29deg 84% 51%);
/* Reaction container colors */
--color-message-reaction-border: hsl(0deg 0% 0% / 10%);
diff --git a/web/styles/user_circles.css b/web/styles/user_circles.css
index f374d27ad74..90234782c2e 100644
--- a/web/styles/user_circles.css
+++ b/web/styles/user_circles.css
@@ -1,6 +1,3 @@
-$active_color: hsl(106deg 74% 44%);
-$idle_color: hsl(29deg 84% 51%);
-
.user_circle_green,
.user_circle_idle,
.user_circle_empty,
@@ -13,16 +10,16 @@ $idle_color: hsl(29deg 84% 51%);
}
.user_circle_green {
- background-color: $active_color;
- border-color: $active_color;
+ background-color: var(--color-user-circle-active);
+ border-color: var(--color-user-circle-active);
}
.user_circle_idle {
- border-color: $idle_color;
+ border-color: var(--color-user-circle-idle);
background: linear-gradient(
to bottom,
hsl(0deg 0% 100% / 0%) 50%,
- $idle_color 50%
+ var(--color-user-circle-idle) 50%
);
}