Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Refactor theme colors for `settings`.
sanchi-t9921b116e8e6
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex 8f160643caa..c6e44896efa 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -914,6 +914,10 @@--color-kbd-text: hsl(0deg 0% 20%);--color-kbd-enter-sends: hsl(0deg 0% 40%);+ /* Settings */+ --color-realm-enable-spectator-access-link: hsl(0deg 0% 20%);+ --color-unmute-stream-hover: hsl(0deg 0% 20%);+/* Markdown colors */--color-background-rendered-markdown-thead: hsl(0deg 0% 93%);--color-border-rendered-markdown-table: hsl(0deg 0% 80%);@@ -1904,6 +1908,10 @@--color-kbd-text: hsl(236deg 33% 90%);--color-kbd-enter-sends: hsl(236deg 33% 90%);+ /* Settings */+ --color-realm-enable-spectator-access-link: hsl(236deg 33% 90%);+ --color-unmute-stream-hover: hsl(0deg 0% 100%);+/* Markdown colors */--color-background-rendered-markdown-thead: hsl(0deg 0% 0% / 50%);--color-border-rendered-markdown-table: hsl(0deg 0% 33%);diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.cssindex fe0f5164640..8310e2daec1 100644--- a/web/styles/dark_theme.css+++ b/web/styles/dark_theme.css@@ -791,20 +791,6 @@}}- /* Originally the icon inherits the color of label, but when the setting- is disabled, the color of the label is changed and thus the icon becomes- too light. So, we set the color explicitly to original color of label to- keep the color of the icon same even when the setting is disabled. */- #id_realm_enable_spectator_access_label a {- color: hsl(236deg 33% 90%);- }-- #stream-specific-notify-table .unmute_stream {- &:hover {- color: hsl(0deg 0% 100%);- }- }-#read_receipts_modal .read_receipts_list li {&:hover {background-color: hsl(0deg 0% 100% / 5%);diff --git a/web/styles/settings.css b/web/styles/settings.cssindex 141641f90e8..d76af4b3048 100644--- a/web/styles/settings.css+++ b/web/styles/settings.css@@ -283,7 +283,7 @@ h3,too light. So, we set the color explicitly to original color of label tokeep the color of the icon same even when the setting is disabled. */#id_realm_enable_spectator_access_label a {- color: hsl(0deg 0% 20%);+ color: var(--color-realm-enable-spectator-access-link);}.settings_select {@@ -468,7 +468,7 @@ input[type="checkbox"] {top: 2px;&:hover {- color: hsl(0deg 0% 20%);+ color: var(--color-unmute-stream-hover);cursor: pointer;}}