From 6696a47d3da9af0cfdaf7192ae554aba82cc46ef Mon Sep 17 00:00:00 2001 From: Karl Stolley Date: Thu, 16 Nov 2023 16:57:13 -0600 Subject: [PATCH] pygments: Place GitHub-style red and green for diffs. --- web/styles/pygments.css | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/web/styles/pygments.css b/web/styles/pygments.css index 1b6258f32d..cb55bb7dc9 100644 --- a/web/styles/pygments.css +++ b/web/styles/pygments.css @@ -36,9 +36,22 @@ /* End non-color Zulip customizations. */ -/* Begin Quansight-Labs GitHub Styles */ +/* Begin Zulip color customizations. */ /* stylelint-disable color-no-hex, no-duplicate-selectors */ + +/* GitHub-style simple diff colors. These are + the same in light and dark modes. */ +.codehilite .gd { + color: #d44; +} /* Generic.Deleted */ +.codehilite .gi { + color: #292; +} /* Generic.Inserted */ + +/* End Zulip color customizations. */ + +/* Begin Quansight-Labs GitHub Styles */ .codehilite .hll { background-color: #0969da4a; } @@ -82,9 +95,6 @@ .codehilite .cs { color: #6e7781; } /* Comment.Special */ -.codehilite .gd { - color: #0550ae; -} /* Generic.Deleted */ .codehilite .ge { font-style: italic; } /* Generic.Emph */ @@ -299,9 +309,6 @@ .codehilite .cs { color: #8b949e; } /* Comment.Special */ - .codehilite .gd { - color: #79c0ff; - } /* Generic.Deleted */ .codehilite .ge { font-style: italic; } /* Generic.Emph */