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; } /* Headings Set 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 { margin-top: 10%; page-break-after: avoid; text-align: center; margin-bottom: 2em; /* 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: 0em; } h2.book-author { page-break-after: avoid; text-align: center; margin-bottom: 1em; } /* Other title page text */ p.title-page { text-align: center; } /* This paragraph style is basically the same as above but we are using it to have a specific style for imprint/publisher logos */ p.publisher-logo { margin-top: 3em; text-align: center; margin-bottom: 3em; } /* Use h2 for parts and chapters. Default style is to use the centred chapter head. */ h2.chapter-head-left { text-align: left; page-break-after: avoid; margin-top: 10%; margin-bottom: 2em; text-indent: -3em; margin-left: 3.5em; } h2.chapter-number-left { text-align: left; page-break-after: avoid; margin-top: 10%; margin-bottom: 2em; } h2.chapter-head { text-align: center; page-break-after: avoid; margin-top: 0em; margin-bottom: 2em; } h2.chapter-head1 { text-align: center; 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: 0.5em; } h2.part-head { text-align: center; page-break-after: avoid; margin-top: 10%; margin-bottom: 0.5em; } /* This is deliberately empty - it's a placeholder */ span.chapter-number { } /* Use h3 for A heads and equivalents (highest level heads in a chapter). */ h3.a-head-left { text-align: left; page-break-after: avoid; margin-bottom: 1em; } h3.a-head { text-align: center; margin-bottom: 1em; margin-top: 0em; page-break-after: avoid; } h3.a-head1 { font-size: 1.5em; text-align: center; margin-bottom: 0em; margin-top: 0em; page-break-after: avoid; color: grey; } h3.a-head2 { font-size: 1.3em; text-align: center; margin-bottom: 0em; margin-top: 0em; page-break-after: avoid; } /* Use h4 for B heads and other subheads under A heads. Default for B and C heads is flush left */ h4.b-head { text-align: left; page-break-after: avoid; margin-bottom: 1em; } h4.b-head-center { text-align: center; 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; margin-bottom: 1em; } h5.c-head-center { text-align: center; page-break-after: avoid; margin-bottom: 1em; } /* Use h6 for captions and so on. */ p.figure-caption-left { text-align: left; page-break-after: avoid; margin-bottom: 1em; } p.figure-caption { page-break-after: avoid; text-align: center; text-indent: 0; font-size: 0.9em; } h6.box-head-left { text-align: left; page-break-after: avoid; font-weight: bold; } h6.box-head { page-break-after: avoid; text-align: center; font-weight: bold; } /* Body Text. There are two main formats for the body text - flush left and indented. Because the kindle and iBooks have different defaults we don't use the default paragraph style. */ p.flush-left { text-indent: 0; margin-top: 0; margin-bottom: 0; line-height: 1.2em; /* CHECK THIS! */ } p.indented { text-indent: 1em; 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.indented-space-after { text-indent: 1em; margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ } p.indented-space-after1 { text-indent: 1em; margin-top: 0; margin-bottom: 0.5em; line-height: 1.2em; /* CHECK THIS! */ } /* Hanging indents This now works on most devices. */ p.hanging-indent-space-after { margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ text-indent: -1em; padding-left: 1em; } p.extra-hanging-indent-space-after { margin-top: 0; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ text-indent: -1em; padding-left: 2em; } p.hanging-indent { margin-top: 1em; margin-bottom: 1em; line-height: 1.2em; /* CHECK THIS! */ text-indent: 0em; padding-left: 2em; } p.extra-hanging-indent { margin-top: 0; line-height: 1.2em; /* CHECK THIS! */ text-indent: -1em; padding-left: 2em; } /* Cover page */ body.cover-page { margin: 0; padding: 0; } div.cover-image { text-align: center; margin: 0; padding: 0; } img.cover-image { max-width: 100%; height: 100%; } /* Page breaks */ div.break-before { page-break-before: always; } div.break-after { page-break-after: always; } /* 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; text-align: center; text-indent: 0; } /* 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-image1 { text-align: center; margin-bottom: 4em; } div.centered-image { text-align: center; margin-bottom: 1em; } div.image-container { page-break-inside: avoid; } /* Table of contents */ p.toc-head { font-size: 1.3em; font-weight: bold; line-height: 1.5em; /* CHECK THIS! */ text-indent: 0; margin-bottom: 1em; text-align: center; } p.toc-text { font-weight: normal; text-indent: 0; line-height: 1.2em; text-align: center; } p.toc-text1 { font-weight: normal; text-indent: 0; line-height: 1.2em; margin-bottom: 0.5em; } p.toc-text-indent { font-weight: normal; text-indent: 2em; line-height: 1.2em; } p.toc-text-indent-extra { font-weight: normal; text-indent: 2em; line-height: 1.5em; } p.toc-text-space-after { font-weight: normal; text-indent: 0; line-height: 1.5em; margin-bottom: 1em; text-align: center; } p.toc-text-indent-space-after { font-weight: normal; text-indent: 2em; line-height: 1.2em; margin-bottom: 1em; } p.toc-text-indent-extra-space-after { font-weight: normal; text-indent: 2em; line-height: 1.5em; margin-bottom: 1em; } /* About the author */ h3.author-head { text-align: center; margin-top: 1%; font-size: 1.1em; page-break-after: avoid; font-weight: normal; margin-bottom: 2em; } p.author-text { text-indent: 0; margin-top: 0; margin-bottom: 0em; line-height: 1.2em; } p.author-text1 { text-indent: 1em; margin-top: 0; margin-bottom: 0em; line-height: 1.2em; } /* Books by the same author */ h3.books-by-head { font-size: 1em; text-indent: 0em; text-align: center; margin-top: 10%; margin-bottom: 0.2em; line-height: 1.2em; } h3.books-by-head1 { font-size: 0.8em; text-indent: 0em; text-align: center; margin-top: 2%; margin-bottom: 0.2em; line-height: 1.2em; } h4.books-by-subhead { text-align: center; margin-bottom: 0.5em; line-height: 1.2em; } p.books-by-list { line-height: 1em; text-indent: 0; text-align: center; margin-bottom: 0.2em; } p.books-by-list-space-after { line-height: 1em; text-indent: 0; text-align: center; margin-bottom: 1em; } p.books-by-list-space-after1 { line-height: 1em; text-indent: 0; text-align: center; margin-bottom: 2.5em; } /* Poetry */ p.poetry-title { text-align: left; line-height: 1.2em; margin-bottom: 0.5em; } p.poetry-source { text-align: right; line-height: 1.2em; } div.verse { margin-bottom: 1em; } 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 { font-size: 0.9em; text-align: left; text-indent: 6em; 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; } /* Adding space after for default lists. */ ul, ol { margin-bottom: 1em } /* Copyright/Imprint. Simple styles here because they may change. */ p.copyright-space-after { text-indent: 0em; text-align: center; margin-bottom: 1em; line-height: 1.2em; font-size: 0.9em; } p.copyright { text-indent: 0em; text-align: center; line-height: 1.2em; font-size: 0.9em; margin-bottom: 1em; } p.copyright-logo { text-align: center; vertical-align: middle; margin-top: 20px; margin-bottom: 20px; } /* Extracts Extract styles are simpler than those in print text. We do not currently allow for as much variation as in print books. Extract styles are derived from normal body text styles */ p.extract-flush-left { font-size: 0.7em; text-indent: 0; margin-top: 0; margin-bottom: 0.5em; margin-left: 2em; 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-flush-left-space-after { text-indent: 0; margin-top: 0; margin-bottom: 1em; 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; } /* Epigraphs. Default formatting we're going for here is an italicised version of the extract. */ p.epigraph { font-size: 0.9em; text-indent: 0; margin-top: 0; text-align: center; } p.epigraph-space-after { font-size: 0.9em; text-indent: 0; margin-top: 0; text-align: center; margin-bottom: 3em; } 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; } /* Praise Only one option out of many chosen here. */ h4.praise-head { font-weight: bold; text-align: center; margin-bottom: 1em; } h5.praise-sub-head { font-weight: normal; text-align: center; margin-bottom: 1em; } p.praise { font-weight: normal; text-align: center; } p.praise-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; } p.praise-left { font-weight: normal; text-align: left; text-indent: 0em; } p.praise-left-space-after { font-weight: normal; text-align: left; margin-bottom: 1em; } p.praise-source-left { text-indent: 0em; font-weight: normal; text-align: left; margin-bottom: 1em; font-style: normal; margin-left: 3em; } span.praise-source { font-style: italic; font-weight: normal; font-size: 0.8em; } /* Drama - placeholders only. */ span.drama-speaker { } span.drama-direction { } /* Generics */ .small-caps { /* DUMMY */ } .small { /* 60% seems to give a reasonable visual difference in size on the Kindle */ font-size: 0.7em; } .small1 { /* 60% seems to give a reasonable visual difference in size on the Kindle */ font-size: 0.8em; } /* Links */ a a:visited,a:active,a:link { text-decoration:underline; } a.none { text-decoration:none; } a.none:visited { color: black } a.toc-link { text-decoration:none; } a.toc-link:visited { } @media amzn-kf8 { a a:visited, a:active, a:link { text-decoration:underline; color: #0066FF; } a.none { color: #0066FF } a.none:visited { color: #0066FF } a.toc-link { color: #0066FF } a.toc-link:visited { color: #0066FF } } p.center { font-size: 1.2em; text-align: center; text-indent: 0; padding-top: 0; margin-bottom: 0em; } p.center1 { font-size: 1.3em; text-align: center; text-indent: 0; padding-top: 5em; margin-bottom: 0em; } p.center2 { font-size: 0.9em; text-align: center; text-indent: 0; padding-top: 0; margin-bottom: 1em; } p.center3 { font-size: 0.9em; text-align: center; text-indent: 0; margin-top: 10%; margin-bottom: 1em; } img { max-width: 100%; } p.center-space-after { text-align: center; text-indent: 0; margin-top: 0; margin-bottom: 1em; } p.center-space-after-small { font-size: 0.9em; text-align: center; text-indent: 0; margin-top: 0; margin-bottom: 1em; } p.center-space-after-small1 { font-size: 0.9em; text-align: center; text-indent: 0; margin-top: 0; margin-bottom: 2em; } p.dedication { text-indent: 0; margin-top: 10%; margin-bottom: 0; line-height: 1.2em; /* CHECK THIS! */ text-align: center; } span.dropcap { float: left; font-size: 2.5em; margin-top: 0.03em; line-height: 0.8em; margin-right: 0.03em; margin-bottom:-0.19em; } span.quote { float: left; } span.grey { color: grey; }