Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
markdown: Remove background colors from code blocks.
Karl Stolley6d4f852dc468
diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.cssindex 5e97ca6b836..37d3d64a559 100644--- a/web/styles/rendered_markdown.css+++ b/web/styles/rendered_markdown.css@@ -822,6 +822,8 @@& pre {color: var(--color-markdown-pre-text);+ /* This is necessary to remove the background color+ set by Pygments. */background-color: var(--color-markdown-pre-background);border: 1px solid var(--color-markdown-pre-border);}diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 395b9e9125e..caed9bd1d97 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -287,10 +287,10 @@ body {--color-markdown-code-background: hsl(208deg 5% 88% / 88%);--color-markdown-code-background-mentions: hsl(0deg 0% 100%);--color-markdown-pre-text: var(--color-markdown-code-text);- --color-markdown-pre-background: hsl(208deg 5% 97% / 85%);--color-markdown-pre-border: hsl(208deg 10% 70% / 30%);+ --color-markdown-pre-background: unset;--color-markdown-pre-background-mentions: var(- --color-markdown-code-background-mentions+ --color-background-stream-message-content);--color-markdown-pre-border-mentions: hsl(208deg 10% 70% / 50%);--color-markdown-link: hsl(200deg 100% 40%);@@ -591,10 +591,10 @@ body {--color-markdown-code-background);--color-markdown-pre-text: var(--color-markdown-code-text);- --color-markdown-pre-background: var(--color-markdown-code-background);--color-markdown-pre-border: hsl(0deg 0% 100% / 15%);+ --color-markdown-pre-background: unset;--color-markdown-pre-background-mentions: var(- --color-markdown-code-background+ --color-background-stream-message-content);--color-markdown-pre-border-mentions: var(--color-markdown-pre-border);