Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Refactor css for markdown thead background color.
PieterCKe16b8eba56a8
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex 9cec15ef59b..1166729720b 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -378,6 +378,7 @@--color-text-settings-field-hint: hsl(0deg 0% 57%);/* Markdown colors */+ --color-background-rendered-markdown-thead: hsl(0deg 0% 93%);--color-border-rendered-markdown-table: hsl(0deg 0% 80%);/* Markdown code colors */@@ -731,6 +732,9 @@--color-text-url-hover: hsl(200deg 79% 66%);--color-text-settings-field-hint: hsl(0deg 0% 52%);+ /* Markdown color */+ --color-background-rendered-markdown-thead: hsl(0deg 0% 0% / 50%);+/* Markdown code colors *//* Note that Markdown code-link colors are identicalto light theme, and so are not redeclared here. */diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.cssindex f88ebf9eb28..b6573a4f8a8 100644--- a/web/styles/dark_theme.css+++ b/web/styles/dark_theme.css@@ -509,7 +509,6 @@}.new-style .tab-switcher .ind-tab.selected,- div.message_content thead,.table-striped thead th {background-color: hsl(0deg 0% 0% / 50%);border-color: hsl(0deg 0% 0% / 90%);@@ -707,8 +706,7 @@background-color: hsl(228deg 11% 17%);}- & thead,- .drafts-container .drafts-header,+ & .drafts-container .drafts-header,.nav > li > a:focus,.nav > li > a:hover,.subscriptions-container .subscriptions-header,diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.cssindex ec4b2a5684d..31dcebde6a9 100644--- a/web/styles/rendered_markdown.css+++ b/web/styles/rendered_markdown.css@@ -117,7 +117,7 @@}& thead {- background-color: hsl(0deg 0% 93%);+ background-color: var(--color-background-rendered-markdown-thead);}& tr {