aboutsummaryrefslogtreecommitdiff
path: root/data/epub.css
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-05-18 22:58:33 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-05-18 22:58:33 -0700
commite2bc913c27d78396bbab727142065d64ceee31d0 (patch)
tree2d7d26ceb5e040109d26cba4010428cb5c9e7023 /data/epub.css
parentc04800305e97a42d2d346fc6b0425817056438b7 (diff)
downloadpandoc-e2bc913c27d78396bbab727142065d64ceee31d0.tar.gz
epub.css: wrap overlong lines in highlighted code blocks.
This fixes a problem in iBooks v2.4 with our earlier horizontally scrolling code blocks. The problem seems to be a bug in iBooks, not pandoc, but since iBooks is a major target we're changing pandoc's default behavior so that pandoc-produced epubs work on that platform. Closes #6242.
Diffstat (limited to 'data/epub.css')
-rw-r--r--data/epub.css6
1 files changed, 6 insertions, 0 deletions
diff --git a/data/epub.css b/data/epub.css
index e0fb3fd93..a7ec1c376 100644
--- a/data/epub.css
+++ b/data/epub.css
@@ -23,3 +23,9 @@ span.underline{ text-decoration: underline; }
q { quotes: "“" "”" "‘" "’"; }
div.column{ display: inline-block; vertical-align: top; width: 50%; }
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
+@media screen { /* Workaround for iBooks issue; see #6242 */
+ .sourceCode {
+ overflow: visible !important;
+ white-space: pre-wrap !important;
+ }
+}