From 8478997980cd5b9d791f8ab4af441786919cef5b Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 3 May 2019 22:24:26 -0700 Subject: [PATCH] EPUB2/3 templates: Move inline styles to default epub.css. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- data/epub.css | 5 +++++ data/templates/default.epub2 | 9 --------- data/templates/default.epub3 | 9 --------- 3 files changed, 5 insertions(+), 18 deletions(-) diff --git a/data/epub.css b/data/epub.css index 742ea7895..e27f4e809 100644 --- a/data/epub.css +++ b/data/epub.css @@ -17,3 +17,8 @@ nav#landmarks ol li { list-style-type: none; margin: 0; padding: 0; } a.footnote-ref { vertical-align: super; } em, em em em, em em em em em { font-style: italic;} em em, em em em em { font-style: normal; } +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%; } diff --git a/data/templates/default.epub2 b/data/templates/default.epub2 index cca9fcf6f..afcf96a3e 100644 --- a/data/templates/default.epub2 +++ b/data/templates/default.epub2 @@ -6,15 +6,6 @@ $pagetitle$ - $if(highlighting-css)$ $if(highlighting-css)$