From ea458373726e7e3424617160aafcb3f7eacfd4e7 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 1 Nov 2020 14:29:03 -0800 Subject: Default CSS: avoid padding and color if monobackgroundcolor not given. This makes the default more austere, while putting the padded, colored code elements within easy reach. --- data/templates/styles.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'data') diff --git a/data/templates/styles.html b/data/templates/styles.html index f70797f70..cd0354fdc 100644 --- a/data/templates/styles.html +++ b/data/templates/styles.html @@ -74,16 +74,20 @@ blockquote { } code { font-family: $if(monofont)$$monofont$$else$Menlo, Monaco, 'Lucida Console', Consolas, monospace$endif$; - background-color: $if(monobackgroundcolor)$$monobackgroundcolor$$else$#f0f0f0$endif$; +$if(monobackgroundcolor)$ + background-color: $monobackgroundcolor$; + padding: .2em .4em; +$endif$ font-size: 85%; margin: 0; - padding: .2em .4em; } pre { margin: 1.7em 0; line-height: 1.5em; +$if(monobackgroundcolor)$ + background-color: $monobackgroundcolor$; padding: 1em; - background-color: $if(monobackgroundcolor)$$monobackgroundcolor$$else$#f0f0f0$endif$; +$endif$ overflow: auto; } pre code { -- cgit v1.2.3