git.iko.soy/typeable/pandoc
on master help sign in
EPUB2/3 templates: Move inline styles to default epub.css.

Those who use a custom CSS stylesheet with EPUB should add these lines: ```css code{ white-space: pre-wrap; } span.smallcaps{ font-variant: small-caps; } span.underline{ text-decoration: underline; } q { quotes: "“" "”" "‘" "’"; } div.column{ display: inline-block; vertical-align: top; width: 50%; } ``` See #5466.

commit8478997980cd5b9d791f8ab4af441786919cef5b authorJohn MacFarlane <jgm@berkeley.edu> dateFri 3 May 2019, 22:24 (8 years ago) parent63254ae
3 files changed+5−18
data/epub.css+5 data/templates/default.epub2−9 data/templates/default.epub3−9
data/epub.css+5
@@ -17,3 +17,8 @@ nav#landmarks ol li { list-style-type: none; margin: 0; padding: 0; }
1717a.footnote-ref { vertical-align: super; }
1818em, em em em, em em em em em { font-style: italic;}
1919em em, em em em em { font-style: normal; }
20+code{ white-space: pre-wrap; }
21+span.smallcaps{ font-variant: small-caps; }
22+span.underline{ text-decoration: underline; }
23+q { quotes: "“" "”" "‘" "’"; }
24+div.column{ display: inline-block; vertical-align: top; width: 50%; }
data/templates/default.epub2−9
@@ -6,15 +6,6 @@
66 <meta http-equiv="Content-Style-Type" content="text/css" />
77 <meta name="generator" content="pandoc" />
88 <title>$pagetitle$</title>
9− <style type="text/css">
10− code{white-space: pre-wrap;}
11− span.smallcaps{font-variant: small-caps;}
12− span.underline{text-decoration: underline;}
13− div.column{display: inline-block; vertical-align: top; width: 50%;}
14−$if(quotes)$
15− q { quotes: "“" "”" "‘" "’"; }
16−$endif$
17− </style>
189$if(highlighting-css)$
1910 <style type="text/css">
2011$highlighting-css$
data/templates/default.epub3−9
@@ -5,15 +5,6 @@
55 <meta charset="utf-8" />
66 <meta name="generator" content="pandoc" />
77 <title>$pagetitle$</title>
8− <style>
9− code{white-space: pre-wrap;}
10− span.smallcaps{font-variant: small-caps;}
11− span.underline{text-decoration: underline;}
12− div.column{display: inline-block; vertical-align: top; width: 50%;}
13−$if(quotes)$
14− q { quotes: "“" "”" "‘" "’"; }
15−$endif$
16− </style>
178$if(highlighting-css)$
189 <style>
1910$highlighting-css$