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 modal close button colors.

Karl Stolley59bc431243d8
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 64caf208896..7a7e57a70a6 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -784,6 +784,11 @@
hsl(0deg 0% 87%),
hsl(0deg 0% 100% / 20%)
);
+ --color-modal-close-button: light-dark(inherit, hsl(236deg 33% 90%));
+ --color-background-modal-close-button-hover: light-dark(
+ hsl(0deg 0% 90%),
+ hsl(0deg 0% 91% / 10%)
+ );
--color-background-pill-container-without-placeholder: light-dark(
hsl(0deg 0% 100%),
hsl(0deg 0% 0% / 20%)
diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.css
index 80c4b28a568..a3cf1d50bef 100644
--- a/web/styles/dark_theme.css
+++ b/web/styles/dark_theme.css
@@ -8,15 +8,6 @@
}
/************************* MODAL DARK THEME *******************/
- .modal__close {
- &::before {
- color: hsl(236deg 33% 90%);
- }
-
- &:hover {
- background: hsl(0deg 0% 91% / 10%);
- }
- }
#message-formatting,
#keyboard-shortcuts {
diff --git a/web/styles/modal.css b/web/styles/modal.css
index c20ac00f5ee..f78e6cfad50 100644
--- a/web/styles/modal.css
+++ b/web/styles/modal.css
@@ -105,12 +105,13 @@
.modal__close {
&::before {
content: "\2715";
+ color: var(--color-modal-close-button);
}
background: transparent;
border: 0;
&:hover {
- background: hsl(0deg 0% 90%);
+ background: var(--color-background-modal-close-button-hover);
}
}