diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-05-18 22:58:33 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-05-18 22:58:33 -0700 |
commit | e2bc913c27d78396bbab727142065d64ceee31d0 (patch) | |
tree | 2d7d26ceb5e040109d26cba4010428cb5c9e7023 /data/epub.css | |
parent | c04800305e97a42d2d346fc6b0425817056438b7 (diff) | |
download | pandoc-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.css | 6 |
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; + } +} |