Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
modal_buttons: Make exit button colors in to CSS variables.
Karl Stolley8bc12a4ee28c
diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.cssindex 6f28c0ed47f..171345e21bd 100644--- a/web/styles/dark_theme.css+++ b/web/styles/dark_theme.css@@ -69,12 +69,6 @@}}- .dialog_exit_button {- background-color: hsl(211deg 29% 14%);- color: hsl(0deg 0% 100%);- border: 1px solid hsl(0deg 0% 0% / 60%);- }-.modal__content.simplebar-scrollable-y + .modal__footer {border-top: 1px solid hsl(0deg 0% 100% / 20%);}diff --git a/web/styles/modal.css b/web/styles/modal.cssindex fc4ceb357f0..7bf594b7a44 100644--- a/web/styles/modal.css+++ b/web/styles/modal.css@@ -128,11 +128,12 @@}.dialog_exit_button {- background: hsl(0deg 0% 100%);- border: 1px solid hsl(300deg 2% 11% / 30%);+ color: var(--color-exit-button-text);+ background: var(--color-exit-button-background);+ border: 1px solid var(--color-exit-button-border);&:hover {- background: hsl(0deg 0% 97%);+ background: var(--color-exit-button-background-interactive);}}diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex bfd59094a95..d49359144ba 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -382,6 +382,14 @@ body {--color-fill-hover-copy-icon: hsl(200deg 100% 40%);--color-fill-user-invite-copy-icon: hsl(0deg 0% 46.7%);--icon-chevron-down: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.52977 5.52973C3.78947 5.27004 4.21053 5.27004 4.47023 5.52973L8 9.05951L11.5298 5.52973C11.7895 5.27004 12.2105 5.27004 12.4702 5.52973C12.7299 5.78943 12.7299 6.21049 12.4702 6.47019L8.47023 10.4702C8.21053 10.7299 7.78947 10.7299 7.52977 10.4702L3.52977 6.47019C3.27008 6.21049 3.27008 5.78943 3.52977 5.52973Z' fill='%23333333'/%3E%3C/svg%3E%0A");++ /* Button colors on modals and message editing. */+ /* Exit buttons are sometimes Cancel, but sometimes+ other "Nah, forget it" actions. */+ --color-exit-button-text: hsl(0deg 0% 0%);+ --color-exit-button-border: hsl(300deg 2% 11% / 30%);+ --color-exit-button-background: hsl(0deg 0% 100%);+ --color-exit-button-background-interactive: hsl(0deg 0% 97%);}%dark-theme {@@ -587,6 +595,12 @@ body {);--color-fill-user-invite-copy-icon: hsl(236deg 33% 90%);--icon-chevron-down: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.52977 5.52973C3.78947 5.27004 4.21053 5.27004 4.47023 5.52973L8 9.05951L11.5298 5.52973C11.7895 5.27004 12.2105 5.27004 12.4702 5.52973C12.7299 5.78943 12.7299 6.21049 12.4702 6.47019L8.47023 10.4702C8.21053 10.7299 7.78947 10.7299 7.52977 10.4702L3.52977 6.47019C3.27008 6.21049 3.27008 5.78943 3.52977 5.52973Z' fill='%23FFFFFFBF'/%3E%3C/svg%3E%0A");++ /* Button colors on modals and message editing. */+ --color-exit-button-text: hsl(0deg 0% 100%);+ --color-exit-button-border: hsl(0deg 0% 0% / 60%);+ --color-exit-button-background: hsl(211deg 29% 14%);+ --color-exit-button-background-interactive: hsl(211deg 29% 17%);}@media screen {