diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-11-01 14:29:03 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-11-01 14:29:03 -0800 |
commit | ea458373726e7e3424617160aafcb3f7eacfd4e7 (patch) | |
tree | 8460b4e3245d9a8e9842e24a98838c8649773be6 /data | |
parent | 95d8713633f659e47a3684c0c30ba216fcd3fd63 (diff) | |
download | pandoc-ea458373726e7e3424617160aafcb3f7eacfd4e7.tar.gz |
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.
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/styles.html | 10 |
1 files changed, 7 insertions, 3 deletions
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 { |