From 2f5303dd67b4bff3a9ddbbb8c0c078d152bf3fb0 Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Mon, 26 Oct 2015 15:17:04 +0800 Subject: [PATCH] Apply rouge highlighter background to child node --- lib/site_template/_sass/_syntax-highlighting.scss | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/site_template/_sass/_syntax-highlighting.scss b/lib/site_template/_sass/_syntax-highlighting.scss index 35a4ac80..8fac5977 100644 --- a/lib/site_template/_sass/_syntax-highlighting.scss +++ b/lib/site_template/_sass/_syntax-highlighting.scss @@ -1,11 +1,14 @@ /** * Syntax highlighting styles */ -.highlight, -.highlighter-rouge { +.highlight { background: #fff; @extend %vertical-rhythm; + .highlighter-rouge & { + background: #eef; + } + .c { color: #998; font-style: italic } // Comment .err { color: #a61717; background-color: #e3d2d2 } // Error .k { font-weight: bold } // Keyword