From 0f618cd50f6946e8a19c318facd30e5e781164e9 Mon Sep 17 00:00:00 2001 From: Maciej Smolinski Date: Mon, 1 Aug 2016 19:38:45 +0200 Subject: [PATCH] Highlight: Apply some defaults to hljs themes (background, border radius). --- resources/public/style.css | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/resources/public/style.css b/resources/public/style.css index 7be1505..c0b9a6d 100644 --- a/resources/public/style.css +++ b/resources/public/style.css @@ -188,11 +188,8 @@ blockquote { /* Code tags and pre tags alone to be monospaced */ pre, code { font-family: monospace; -} - -/* Non-syntax highlighted code and pre tags to get default background */ -pre, code:not([class*="lang-"]) { - background: #efefef; + border-radius: 3px; + background: #fcfcfc !important; /* required to override theme defaults */ } /* Non-syntax highlighted code tag to be slightly bigger so it outstands in text */ @@ -200,9 +197,8 @@ code:not([class*="lang-"]) { font-size: 1.05em; } -/* Syntax highlighted code tag to get some padding, nice rounded corners and keep font-size */ +/* Syntax highlighted code tag to get some padding and keep font-size */ code[class*="lang-"] { - border-radius: 3px; font-size: 1em; padding: 1em; }