From 0c2292b9aa609bcab55633a3445496d4d19928d1 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Wed, 12 Jun 2019 07:59:55 -0700 Subject: [PATCH] Update css to support diff syntax highlighting. (#943) This adds the rules to highlight diff lines with highlight.js. --- src/theme/ayu-highlight.css | 8 ++++++++ src/theme/highlight.css | 10 ++++++++++ src/theme/tomorrow-night.css | 8 ++++++++ 3 files changed, 26 insertions(+) diff --git a/src/theme/ayu-highlight.css b/src/theme/ayu-highlight.css index 786063fc..128e0166 100644 --- a/src/theme/ayu-highlight.css +++ b/src/theme/ayu-highlight.css @@ -69,3 +69,11 @@ Original by Dempfi (https://github.com/dempfi/ayu) .hljs-strong { font-weight: bold; } + +.hljs-addition { + color: #91b362; +} + +.hljs-deletion { + color: #d96c75; +} diff --git a/src/theme/highlight.css b/src/theme/highlight.css index c667e3a0..ab8c49c6 100644 --- a/src/theme/highlight.css +++ b/src/theme/highlight.css @@ -67,3 +67,13 @@ .hljs-strong { font-weight: bold; } + +.hljs-addition { + color: #22863a; + background-color: #f0fff4; +} + +.hljs-deletion { + color: #b31d28; + background-color: #ffeef0; +} diff --git a/src/theme/tomorrow-night.css b/src/theme/tomorrow-night.css index 9788e084..f7197925 100644 --- a/src/theme/tomorrow-night.css +++ b/src/theme/tomorrow-night.css @@ -94,3 +94,11 @@ .xml .hljs-cdata { opacity: 0.5; } + +.hljs-addition { + color: #718c00; +} + +.hljs-deletion { + color: #c82829; +}