diff options
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 { |