Skip to content

Commit

Permalink
Fix Apple Books bug w/overflow in source highlighting
Browse files Browse the repository at this point in the history
Fixes jgm#6242
  • Loading branch information
nateberkopec authored Apr 23, 2020
1 parent 6baacb5 commit 62c8b8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions data/epub.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ 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;}
/* Apple Books 2.4+ doesn't like overflow:auto on syntax highlighting generated by skylighting */
@media screen {
div.sourceCode { overflow: visible !important; }
p, span, pre, code, blockquote { overflow: visible !important; }
}

0 comments on commit 62c8b8a

Please sign in to comment.