From 8ce9bce7714bd9c6c70624ec4603c437f2bda3e4 Mon Sep 17 00:00:00 2001 From: scarletsky Date: Sat, 25 May 2019 22:49:11 +0800 Subject: feat(scss): support diff highlight (#163) --- src/css/_partial/_post/_code.scss | 4 ++-- src/css/_variables.scss | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/css/_partial/_post/_code.scss b/src/css/_partial/_post/_code.scss index 71652e6..50fcdd2 100644 --- a/src/css/_partial/_post/_code.scss +++ b/src/css/_partial/_post/_code.scss @@ -270,11 +270,11 @@ figure.highlight { /* CommentPreproc */ .cp { color: #93a1a1; font-style: italic } /* CommentPreprocFile */ .cpf { color: #93a1a1; font-style: italic } /* Generic */ .g { color: #d33682 } - /* GenericDeleted */ .gd { color: #d33682 } + /* GenericDeleted */ .gd { color: #b58900 } /* GenericEmph */ .ge { color: #d33682 } /* GenericError */ .gr { color: #d33682 } /* GenericHeading */ .gh { color: #d33682 } - /* GenericInserted */ .gi { color: #d33682 } + /* GenericInserted */ .gi { color: #859900 } /* GenericOutput */ .go { color: #d33682 } /* GenericPrompt */ .gp { color: #d33682 } /* GenericStrong */ .gs { color: #d33682 } diff --git a/src/css/_variables.scss b/src/css/_variables.scss index 135844b..8e1553b 100644 --- a/src/css/_variables.scss +++ b/src/css/_variables.scss @@ -252,7 +252,8 @@ $code-type-list: ( language-typescript: "TypeScript", language-yml: "YAML", language-yaml: "YAML", - language-toml: "TOML" + language-toml: "TOML", + language-diff: "Diff" ) !default; // Color of the code background. -- cgit v1.2.3