From 58365ae8983d92838418bcf7c42aa1d871c5fac8 Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Sun, 25 Oct 2015 19:40:40 +0800 Subject: [PATCH 1/2] Add missing highlighting CSS class for Rouge --- lib/site_template/_sass/_syntax-highlighting.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/site_template/_sass/_syntax-highlighting.scss b/lib/site_template/_sass/_syntax-highlighting.scss index e36627da..35a4ac80 100644 --- a/lib/site_template/_sass/_syntax-highlighting.scss +++ b/lib/site_template/_sass/_syntax-highlighting.scss @@ -1,7 +1,8 @@ /** * Syntax highlighting styles */ -.highlight { +.highlight, +.highlighter-rouge { background: #fff; @extend %vertical-rhythm; From 2f5303dd67b4bff3a9ddbbb8c0c078d152bf3fb0 Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Mon, 26 Oct 2015 15:17:04 +0800 Subject: [PATCH 2/2] 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