body { margin-left: 3%; margin-right: 3%; margin-top: 3%; margin-bottom: 3%; color: black; } p { text-align: justify; text-indent: 1em; /* text indent one EM by default. */ margin-top: 0; margin-bottom: 0; orphans: 2; /* widow and orphan control won't do much on kindle - solves some issues on iPad */ widows: 2; } /* HeadingsSet up the defaults for h1-h6 and then modify */ h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0; font-weight: normal; } /* Use h1 for title page only */ h1.book-title { page-break-after: avoid; text-align: center; margin-bottom: 5em; /* Make sure that any subtitle is separated. */ } /* Subtitle for book is an h2 */ h2.book-subtitle { page-break-after: avoid; text-align: center; margin-bottom: 1em; } h2.book-author { margin-top: 10%; page-break-after: avoid; text-align: center; margin-bottom: 1em; } /* Other title page text */ p.title-page-text { text-align: center; } /* This paragraph style is basically the same as above but we are usingit to have a specific style for imprint/publisher logos */ p.publisher-logo { margin-top: 0em; text-align: center; margin-bottom: 3em; } /* Copyright/Imprint.Simple styles here because they may change. */ p.copyright { text-indent: 0em; text-align: center; line-height: 1.2em; } p.copyright-space-after { text-indent: 0em; text-align: center; line-height: 1.2em; margin-bottom: 1em; } p.copyright-logo { text-align: center; vertical-align: middle; margin-top: 20px; margin-bottom: 20px; } /* Books by the same author */ h3.books-by-head { text-align: center; margin-bottom: 1.5em; line-height: 1.2em; } h4.books-by-subtitle { text-align: center; margin-bottom: 0.5em; line-height: 1.2em; } p.books-by-text { line-height: 1em; font-style: italic; text-align: center; } p.books-by-text-space-after { line-height: 1em; font-style: italic; text-align: center; margin-bottom: 1em; } /* About the author */ h3.author-head { text-align: center; page-break-after: avoid; font-weight: normal; margin-bottom: 2em; } p.author-text { text-indent: 0; margin-top: 0; line-height: 1.2em; } p.author-text-space-after { text-indent: 0; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; } p.author-text-indented { text-indent: 1em; margin-top: 0; line-height: 1.2em; } p.author-text-indented-space-after { text-indent: 1em; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; } /* Dedication */ p.dedication { text-align: center; margin-top: 15%; line-height: 1.2em; } p.dedication-space-after { text-align: center; margin-top: 15%; line-height: 1.2em; margin-bottom: 1em; } /* Praise */ h4.praise-head { font-weight: bold; text-align: center; margin-bottom: 1em; } h5.praise-subtitle { font-weight: normal; text-align: center; margin-bottom: 1em; } p.praise-text { font-weight: normal; text-align: center; } p.praise-text-space-after { font-weight: normal; text-align: center; margin-bottom: 1em; } p.praise-source { font-weight: normal; text-align: center; margin-bottom: 1em; font-style: italic; } span.praise-source { font-style: italic; font-weight: normal; font-size: 80%; } /* Table of contents */ p.toc-head { font-weight: bold; line-height: 1.5em; /* CHECK THIS! */ text-indent: 0; margin-bottom: 1em; } p.toc-text { font-weight: normal; text-indent: 0; line-height: 1.5em; } p.toc-text-space-after { font-weight: normal; text-indent: 0; line-height: 1.5em; margin-bottom: 1em; } p.toc-text-indented { font-weight: normal; text-indent: 1em; line-height: 1.5em; } p.toc-text-indented-space-after { font-weight: normal; text-indent: 1em; line-height: 1.5em; margin-bottom: 1em; } p.toc-text-indented-more { font-weight: normal; text-indent: 2em; line-height: 1.5em; } p.toc-text-indented-more-space-after { font-weight: normal; text-indent: 2em; line-height: 1.5em; margin-bottom: 1em; } /* Body Text */ p.flush-left { text-indent: 0; margin-top: 0; margin-bottom: 0; line-height: 1.2em; /* CHECK THIS! */ } p.flush-left-space-after { text-indent: 0; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ } p.flush-left-opener { text-indent: 0; margin-top: 0; margin-bottom: 0; line-height: 1.2em; /* CHECK THIS! */ } p.flush-left-opener-space-after { text-indent: 0; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ } p.flush-right { text-indent: 0; text-align: right; margin-top: 0; margin-bottom: 0; line-height: 1.2em; /* CHECK THIS! */ } p.flush-right-space-after { text-indent: 0; text-align: right; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ } p.flush-left-centered { text-indent: 0; text-align: center; margin-top: 0; margin-bottom: 0; line-height: 1.2em; /* CHECK THIS! */ } p.flush-left-centered-space-after { text-indent: 0; text-align: center; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ } p.indented { text-indent: 1em; margin-top: 0; margin-bottom: 0; line-height: 1.2em; /* CHECK THIS! */ } p.indented-space-after { text-indent: 1em; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ } p.hanging-indent { text-indent: 1em; margin-top: 0; line-height: 1.2em; /* CHECK THIS! */ text-indent: -1em; padding-left: 1em; } p.hanging-indent-space-after { text-indent: 1em; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ text-indent: -1em; padding-left: 1em; } /* Headings */ h2.part-number { text-align: center; page-break-after: avoid; margin-top: 15%; margin-bottom: 2em; } h2.part-title { text-align: center; page-break-after: avoid; margin-bottom: 2em; } h2.part-subtitle { text-align: center; page-break-after: avoid; margin-bottom: 2em; } h2.chapter-head-left { text-align: left; page-break-after: avoid; margin-top: 10%; margin-bottom: 2em; } h2.chapter-number { text-align: center; page-break-after: avoid; margin-top: 10%; margin-bottom: 2em; } h2.chapter-title { text-align: center; page-break-after: avoid; margin-top: 10%; margin-bottom: 2em; } /* This is deliberately empty - it's a placeholder */ span.chapter-number { } /* Use h3 for A heads and equivalents (highest level heads in a chapter). */ p.a-head { text-align: left; page-break-after: avoid; font-size: 100%; font-style: italic; text-indent: 0em; } h3.a-head-space-after { text-align: center; margin-bottom: 1em; page-break-after: avoid; } /* Use h4 for B heads and other subheads under A heads. */ h4.b-head { text-align: left; page-break-after: avoid; } h4.b-head-space-after { text-align: left; page-break-after: avoid; margin-bottom: 1em; } /* Use h5 for C heads and other subheads under B heads. */ h5.c-head { text-align: left; page-break-after: avoid; } h5.c-head-space-after { text-align: left; page-break-after: avoid; margin-bottom: 1em; } /* Use h6 for D heads and other subheads under C heads. */ h6.d-head { text-align: left; page-break-after: avoid; } h6.d-head-space-after { page-break-after: avoid; text-align: center; margin-bottom: 1em; } /* Displayed material */ p.display { font-size: 0.8em; text-indent: 0; margin-top: 0; margin-bottom: 0; margin-left: 1.5em; margin-right: 2em; } p.display-space-after { font-size: 0.8em; text-indent: 0; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.display-indented { font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-bottom: 0; margin-left: 1.5em; margin-right: 2em; } p.display-indented-space-after { font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.display-centered { font-size: 0.8em; text-align: center; text-indent: 1em; margin-top: 0; margin-bottom: 0em; margin-left: 1.5em; margin-right: 2em; } p.display-centered-space-after { font-size: 0.8em; text-align: center; text-indent: 1em; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.display-hanging-indent { font-size: 0.8em; text-indent: 2em; margin-top: 0; margin-bottom: 0em; text-indent: -1em; padding-left: 1.5em; margin-right: 2em; } p.display-hanging-indent-space-after { font-size: 0.8em; text-indent: 2em; margin-top: 0; margin-bottom: 1em; text-indent: -1em; padding-left: 1.5em; margin-right: 2em; } p.extract { font-size: 0.8em; text-indent: 0; margin-top: 0; margin-bottom: 0; margin-left: 1.5em; margin-right: 2em; } p.extract-space-after { font-size: 0.8em; text-indent: 0; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.extract-indented { font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-bottom: 0; margin-left: 1.5em; margin-right: 2em; } p.extract-indented-space-after { font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.extract-source { font-size: 0.8em; text-align: right; margin-top: 0; margin-bottom: 0; margin-left: 50%; margin-right: 2em; } p.email-head { font-family: sans-serif; font-size: 0.8em; text-indent: 0; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.email-date { font-family: sans-serif; font-size: 0.8em; text-indent: 0; margin-top: 0; margin-bottom: 0; margin-left: 1.5em; margin-right: 2em; } p.email-date-space-after { font-family: sans-serif; font-size: 0.8em; text-indent: 0; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.email { font-family: sans-serif; font-size: 0.8em; text-indent: 0; margin-top: 0; margin-bottom: 0; margin-left: 1.5em; margin-right: 2em; } p.email-space-after { font-family: sans-serif; font-size: 0.8em; text-indent: 0; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.email-indented { font-family: sans-serif; font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-bottom: 0; margin-left: 1.5em; margin-right: 2em; } p.email-indented-space-after { font-family: sans-serif; font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.email-source { font-family: sans-serif; font-size: 0.8em; text-align: right; margin-top: 0; margin-bottom: 0; margin-left: 50%; margin-right: 2em; } p.epigraph { font-size: 0.8em; text-indent: 0; margin-top: 0; margin-left: 1.5em; margin-right: 2em; } p.epigraph-space-after { font-size: 0.8em; text-indent: 0; margin-top: 0; margin-left: 1.5em; margin-right: 2em; margin-bottom: 1em; } p.epigraph-indented { font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-left: 1.5em; margin-right: 2em; } p.epigraph-indented-space-after { font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-left: 1.5em; margin-right: 2em; margin-bottom: 1em; } p.epigraph-source { font-size: 0.8em; text-align: right; margin-top: 0; margin-bottom: 0; margin-left: 50%; margin-right: 2em; font-style: italic; margin-bottom: 1em; } span.epigraph-source { font-size: 0.8em; font-style: italic; } p.letter { font-size: 0.8em; text-indent: 0; margin-top: 0; margin-bottom: 0; margin-left: 1.5em; margin-right: 2em; } p.letter-space-after { font-size: 0.8em; text-indent: 0; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.letter-indented { font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-bottom: 0; margin-left: 1.5em; margin-right: 2em; } p.letter-indented-space-after { font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.letter-source { font-size: 0.8em; text-align: right; margin-top: 0; margin-bottom: 0; margin-left: 50%; margin-right: 2em; } p.letter-date { font-size: 0.8em; text-indent: 0; text-align: right; margin-top: 0; margin-bottom: 0; margin-left: 1.5em; margin-right: 2em; } p.letter-date-space-after { font-size: 0.8em; text-indent: 0; text-align: right; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.message { font-size: 0.8em; text-indent: 0; margin-top: 0; margin-bottom: 0; margin-left: 1.5em; margin-right: 2em; } p.message-space-after { font-size: 0.8em; text-indent: 0; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.message-indented { font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-bottom: 0; margin-left: 1.5em; margin-right: 2em; } p.message-indented-space-after { font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.message-head { font-size: 0.8em; text-indent: 0; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } /* Poetry */ div.verse { margin-bottom: 1em; } p.poetry-title { text-align: left; line-height: 1.2em; margin-bottom: 0.5em; } p.poetry-left-1 { text-align: left; text-indent: 0; line-height: 1.1em; } p.poetry-left-2 { text-align: left; text-indent: 4em; line-height: 1.1em; } p.poetry-left-3 { text-align: left; text-indent: 8em; line-height: 1.1em; } p.poetry-centred { text-align: center; text-indent: 0; line-height: 1.1em; } p.poetry-right { text-align: right; text-indent: 0; line-height: 1.1em; } p.poetry-source { text-align: right; line-height: 1.2em; font-size: 0.8em; } /* Lists. Use these for the indent levels. Currently only three levels are supported. Usenon-breaking spaces to separate the marker. */ p.list-level-1 { text-indent: 0em; text-align: left; } p.list-level-2 { text-indent: 2em; } p.list-level-3 { text-indent: 4em; } p.list-level-1-space-after { text-indent: 0em; text-align: left; margin-bottom: 1em; } p.list-level-2-space-after { text-indent: 2em; margin-bottom: 1em; } p.list-level-3-space-after { text-indent: 4em; margin-bottom: 1em; } p.numbered-list { text-indent: 0em; } p.numbered-list-space-after { text-indent: 0em; margin-bottom: 1em; } /* Adding space after for default lists. */ ul, ol { margin-bottom: 1em; } /* Misc */ p.section-symbol-break { text-indent: 0; text-align: center; margin-top: 1em; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ } p.figure-heading { text-align: left; page-break-after: avoid; } p.caption { text-align: center; page-break-after: avoid; } p.caption-space-after { text-align: center; page-break-after: avoid; margin-bottom: 1em; } p.caption-source { page-break-after: avoid; text-align: center; margin-bottom: 1em; } /* This is deliberately empty - it's a placeholder */ span.caption-source { } h6.box-head { text-align: center; page-break-after: avoid; font-weight: bold; } p.box-text-flush-left { text-indent: 0; margin-top: 0; margin-bottom: 0; margin-left: 1.0em; margin-right: 1.0em; } p.box-text-flush-left-space-after { text-indent: 0; margin-top: 0; margin-bottom: 1em; margin-left: 1.0em; margin-right: 1.0em; } p.box-text-indented { text-indent: 1em; margin-top: 0; margin-bottom: 0; margin-left: 1.0em; margin-right: 1.0em; } p.box-text-indented-space-after { text-indent: 1em; margin-top: 0; margin-bottom: 1em; margin-left: 1.0em; margin-right: 1.0em; } p.box-text-centered { text-indent: 0; text-align: center; margin-top: 0; margin-bottom: 0; margin-left: 1.0em; margin-right: 1.0em; } p.box-text-centered-space-after { text-indent: 0; text-align: center; margin-top: 0; margin-bottom: 1em; margin-left: 1.0em; margin-right: 1.0em; } /* Footnotes and endnotes */ p.footnote-flush-left { font-size: 0.8em; text-indent: 1em; margin-top: 0; line-height: 1.2em; /* CHECK THIS! */ text-indent: -1em; padding-left: 1em; } p.footnote-flush-left-space-after { font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ text-indent: -1em; padding-left: 1em; } p.footnote-indented { font-size: 0.8em; text-indent: 1em; margin-top: 0; line-height: 1.2em; /* CHECK THIS! */ padding-left: 1em; } p.footnote-indented-space-after { font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ padding-left: 1em; } p.endnote-heading { text-indent: 0em; margin-top: 0; line-height: 1.2em; /* CHECK THIS! */ } p.endnote-flush-left { text-indent: 1em; margin-top: 0; line-height: 1.2em; /* CHECK THIS! */ text-indent: -1em; padding-left: 1em; } p.endnote-flush-left-space-after { text-indent: 1em; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ text-indent: -1em; padding-left: 1em; } p.endnote-indented { text-indent: 1em; margin-top: 0; line-height: 1.2em; /* CHECK THIS! */ padding-left: 1em; } p.endnote-indented-space-after { text-indent: 1em; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ padding-left: 1em; } /* Index */ p.index-heading { font-size: 0.7em; margin-top: 0; margin-bottom: 0; } p.index-1 { font-size: 0.7em; text-indent: 1em; margin-top: 0; line-height: 1.2em; /* CHECK THIS! */ text-indent: -1em; padding-left: 1em; } p.index-1-space-after { font-size: 0.7em; text-indent: 1em; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ text-indent: -1em; padding-left: 1em; } p.index-2 { font-size: 0.7em; text-indent: 2em; margin-top: 0; line-height: 1.2em; /* CHECK THIS! */ text-indent: -1em; padding-left: 2em; } p.index-2-space-after { font-size: 0.7em; text-indent: 2em; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ text-indent: -1em; padding-left: 2em; } p.index-3 { font-size: 0.7em; text-indent: 3em; margin-top: 0; line-height: 1.2em; /* CHECK THIS! */ text-indent: -1em; padding-left: 3em; } p.index-3-space-after { font-size: 0.7em; text-indent: 3em; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ text-indent: -1em; padding-left: 3em; } /* Cover page */ body.cover-page { margin: 0; padding: 0; } div.cover-image { text-align: center; } img.cover-image { max-width: 100%; height: 100%; } /* Pages which require a larger top margin. */ body.prelims-page { margin-top: 15%; } /* Full page images */ div.full-page-image { page-break-after: always; page-break-before: always; page-break-inside: avoid; } /* Block images - these must be contained within a div element No top margin as we use bottom margins throughout. */ div.image { text-align: left; text-indent: 0; margin-bottom: 1em; } div.centered-image { text-align: center; } div.image-container { page-break-inside: avoid; } p.image-left { text-align: left; margin-top: 1em; margin-bottom: 1em; } p.image-right { text-align: right; margin-top: 1em; margin-bottom: 1em; } p.image-centered { text-align: center; margin-top: 1em; margin-bottom: 1em; } /* Shading. We have defined two sets of styles for shading - these are identical except that one uses div elements and oneuses paragraph elements. The div elements are useful when severalparagraphs must be shaded. NOTE - no padding is defined. It is necessary to use empty paras(perhaps with a single non breaking space in them) to add paddingto the background on a Kindle. */ div.shading-25, p.shading-25 { background-color: #c0c0c0; } div.shading-50, p.shading-50 { background-color: #808080; } div.shading-50-white, p.shading-50-white { background-color: #808080; color: white; } div.shading-75, p.shading-75 { background-color: #404040; color: black; } div.shading-75-white, p.shading-75-white { background-color: #404040; color: white; } div.shading-25-space-after, p.shading-25-space-after { background-color: #c0c0c0; margin-bottom: 1em; } div.shading-50-space-after, p.shading-50-space-after { background-color: #808080; margin-bottom: 1em; } div.shading-50-white-space-after, p.shading-50-white-space-after { background-color: #808080; color: white; margin-bottom: 1em; } div.shading-75-space-after, p.shading-75-space-after { background-color: #404040; color: black; margin-bottom: 1em; } div.shading-75-white-space-after, p.shading-75-white-space-after { background-color: #404040; color: white; margin-bottom: 1em; } /* Links */ a a:visited a:active a:link { text-decoration: underline; color: black; } a.toc-link { text-decoration: none; color: black; } /* Placeholders only. */ span.drama-speaker { } span.drama-direction { } span.drop-cap { } /* Generics */ .small-caps { font-variant: small-caps; font-size: 75%; }