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: Set color variables for plus buttons.

Karl Stolley46d4f3247302
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 7a7e57a70a6..d95ce35c215 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -1357,7 +1357,18 @@
hsl(0deg 0% 0%),
hsl(0deg 0% 100%)
);
-
+ --color-text-settings-plus-button: light-dark(
+ hsl(0deg 0% 0%),
+ hsl(0deg 0% 100%)
+ );
+ --color-background-settings-plus-button: light-dark(
+ hsl(0deg 0% 100%),
+ hsl(0deg 0% 0% / 20%)
+ );
+ --color-border-settings-plus-button: light-dark(
+ hsl(0deg 0% 80%),
+ hsl(0deg 0% 0% / 60%)
+ );
/* Link colors */
--color-text-link: light-dark(hsl(210deg 94% 42%), hsl(200deg 100% 50%));
--color-text-link-decoration: light-dark(
diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.css
index 933cf34a435..274e8772f5f 100644
--- a/web/styles/dark_theme.css
+++ b/web/styles/dark_theme.css
@@ -304,13 +304,6 @@
}
}
- .create_user_group_plus_button,
- .create_stream_plus_button {
- color: hsl(0deg 0% 100%);
- background-color: hsl(0deg 0% 0% / 20%);
- border-color: hsl(0deg 0% 0% / 60%);
- }
-
& input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.css
index 481ed0d7767..852202895e9 100644
--- a/web/styles/subscriptions.css
+++ b/web/styles/subscriptions.css
@@ -74,10 +74,10 @@
.create_stream_plus_button {
font-weight: 400;
position: relative;
- border: 1px solid hsl(0deg 0% 80%);
+ border: 1px solid var(--color-border-settings-plus-button);
border-radius: 5px;
- background-color: hsl(0deg 0% 100%);
- color: hsl(0deg 0% 0%);
+ background-color: var(--color-background-settings-plus-button);
+ color: var(--color-text-settings-plus-button);
margin: 0 0 0 5px;
height: 100%;
width: var(--settings-overlay-header-button-height);