e2bc913c27
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.
31 lines
1 KiB
CSS
31 lines
1 KiB
CSS
/* This defines styles and classes used in the book */
|
||
body { margin: 5%; text-align: justify; font-size: medium; }
|
||
code { font-family: monospace; }
|
||
h1 { text-align: left; }
|
||
h2 { text-align: left; }
|
||
h3 { text-align: left; }
|
||
h4 { text-align: left; }
|
||
h5 { text-align: left; }
|
||
h6 { text-align: left; }
|
||
h1.title { }
|
||
h2.author { }
|
||
h3.date { }
|
||
nav#toc ol,
|
||
nav#landmarks ol { padding: 0; margin-left: 1em; }
|
||
nav#toc ol li,
|
||
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%; }
|
||
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;
|
||
}
|
||
}
|