From db5eb0a18a75a8e6ce6de25cd5d51f3115f23f0e Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 27 May 2020 01:53:09 +0800 Subject: [PATCH] Beautified syntax highlight for language `diff`. --- assets/css/_colors/dark-syntax.scss | 4 ++-- assets/css/_colors/light-syntax.scss | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/css/_colors/dark-syntax.scss b/assets/css/_colors/dark-syntax.scss index 1fa6d06..dfc8c1f 100644 --- a/assets/css/_colors/dark-syntax.scss +++ b/assets/css/_colors/dark-syntax.scss @@ -71,8 +71,8 @@ .highlight .gh { } /* Generic Heading & Diff Header */ .highlight .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */ - .highlight .gd { color: #f92672; } /* Generic.Deleted & Diff Deleted */ - .highlight .gi { color: #a6e22e; } /* Generic.Inserted & Diff Inserted */ + .highlight .gd { color: #f92672; background-color: #561c08 } /* Generic.Deleted & Diff Deleted */ + .highlight .gi { color: #a6e22e; background-color: #0b5858 } /* Generic.Inserted & Diff Inserted */ /*----- My styles ------*/ diff --git a/assets/css/_colors/light-syntax.scss b/assets/css/_colors/light-syntax.scss index 9458da2..2c65e70 100644 --- a/assets/css/_colors/light-syntax.scss +++ b/assets/css/_colors/light-syntax.scss @@ -17,11 +17,11 @@ .highlight .cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */ .highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ .highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ - .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ + .highlight .gd { color: #d01040; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { color: #000000; font-style: italic } /* Generic.Emph */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #999999 } /* Generic.Heading */ - .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ + .highlight .gi { color: #008080; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */