diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-03-04 23:16:42 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-03-04 23:16:42 +0100 |
commit | 14b8aa8c93766f98a6e0bc9ff04f14962a888f4f (patch) | |
tree | 98515c489e303b4613520f4ff84963031d611f95 /data/templates/default.s5 | |
parent | 0517cf0bc0db5e5b94c86f2dddc1fbc279632b2c (diff) | |
download | pandoc-14b8aa8c93766f98a6e0bc9ff04f14962a888f4f.tar.gz |
Regularized CSS in html/epub/html slide templates.
All templates now include `code{white-space: pre-wrap}`
and CSS for `q` if `--html-q-tags` is used.
Previously some templates had `pre` and others `pre-wrap`;
the `q` styles were only sometimes included.
See #3485.
Diffstat (limited to 'data/templates/default.s5')
-rw-r--r-- | data/templates/default.s5 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/data/templates/default.s5 b/data/templates/default.s5 index dc9dd8099..c3896af84 100644 --- a/data/templates/default.s5 +++ b/data/templates/default.s5 @@ -15,13 +15,16 @@ $if(keywords)$ <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" /> $endif$ <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title> - <style type="text/css">code{white-space: pre;} .smallcaps{font-variant: small-caps;}</style> + <style type="text/css"> + code{white-space: pre-wrap;} + .smallcaps{font-variant: small-caps;} +$if(quotes)$ + q { quotes: "“" "”" "‘" "’"; } +$endif$ + </style> <!-- configuration parameters --> <meta name="defaultView" content="slideshow" /> <meta name="controlVis" content="hidden" /> -$if(quotes)$ - <style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style> -$endif$ $if(highlighting-css)$ <style type="text/css"> $highlighting-css$ |