@page { /* The following margins are recommended for epub by B&N. Use px NOT em */ margin-top: 30px; margin-bottom: 20px; } /* =========================================== Project Specific Code =========================================== */ /*Epigraph-facing, graphic image before Chapter opener*/ div.epigraph-facing { margin: 0 auto; page-break-after: always; width: 98%; height: auto; /*height: auto max-height: 100%*/ text-align: center; } /*Moved border to img*/ div.epigraph-facing div.mediaobject img { margin: 1em auto; width: auto; height: auto; text-align: center; padding: 0; border: 2px solid black; } div.epigraph-facing div.mediaobject /**image at top of chapter opener pages, if this does not work, eliminate image on ebooks*/ section.chapter div.titlepage { margin-bottom: 0; /* background-image: url('../images/ea_4810_smallscroll_ebook.jpg'); background-repeat: no-repeat; background-size: 12% auto; background-position: 50% 0;*/ text-align: center; } /*Preface Map "Xan's World"*/ section.preface[id="p02-4810_ShadowInTheDark"] div.titlepage > .title { display: none; visibility: hidden; } section.preface[id="p02-4810_ShadowInTheDark"] div.mediaobject { page-break-after: always; margin: 0 auto; text-align: center; text-indent: 0; } section.preface[id="p02-4810_ShadowInTheDark"] div.mediaobject img { margin: 0 auto; width: 100%; height: auto; } /* ============================================ General Code ============================================ */ /* Paragraphs */ p, div.colophon p, section.preface p, section.chapter p, section.appendix p, section.acknowledgments p, section.ata p { margin: 0; text-align: justify; text-indent: 0; widows: 2; orphans: 2; } p.noindent { text-indent: 0; } p + p, div.colophon p + p, section.preface p + p, section.chapter p + p, section.appendix p + p, section.acknowledgments p + p, section.ata p + p { text-indent: 1.5em; } /*Glossary*/ section.appendix[id="a03-4810_ShadowInTheDark"] p + p { margin-top: .3em; text-indent: 0; } p.signature, section.preface p.signature { text-align: right; text-indent: 0; } p.spabove, section.ata p.spabove { margin-top: .5em; text-indent: 0; } /* Epigraphs, Blockquotes, Attributions */ div.blockquote { margin: 1em; } div.epigraph { margin: -.5em 1em 1em 1em; } div.epigraph p { text-align: center; text-indent: 0; font-style: italic; } div.blockquote p { text-align: justify; text-indent: 0; font-size: .9em; widows: 2; orphans: 2; } div.blockquote p + p { text-indent: 1em; } div.epigraph p.attribution { text-align: center; text-indent: 0; font-size: .9em; font-style: normal; } div.blockquote p.attribution { text-align: right; font-size: .85em; font-style: normal; } /* Poem, Verse */ div.epigraph div.poem div.stanza + div.stanza, div.blockquote div.poem div.stanza + div.stanza { margin-top: .5em; } div.blockquote div.poem p.verse-line, div.poem p.verse-line { margin-top: 0; margin-left: 4em; text-align: left; text-indent: -4em; font-size: .9em; widows: 2; orphans: 2; } div.blockquote div.poem p.verse-line-ind1, div.poem p.verse-line-ind1 { margin-top: 0; margin-left: 4em; text-align: left; text-indent: -3em; font-size: .9em; widows: 2; orphans: 2; } div.blockquote div.poem p.verse-line-ind2, div.poem p.verse-line-ind2 { margin-top: 0; margin-left: 4em; text-align: left; text-indent: -2em; font-size: .9em; widows: 2; orphans: 2; } div.blockquote div.poem p.verse-line-ind3, div.poem p.verse-line-ind3 { margin-top: 0; margin-left: 4em; text-align: left; text-indent: -1em; font-size: .9em; widows: 2; orphans: 2; } div.epigraph div.poem p.verse-line, div.epigraph div.poem p.verse-line-ind1, div.epigraph div.poem p.verse-line-ind2, div.epigraph div.poem p.verse-line-ind3 { margin: 0; text-align: center; text-indent: 0; font-style: italic; } /* Lists */ div.orderedlist, div.itemizedlist { margin: .5em 0 .4em .5em; text-indent: 0; } div.blockquote div.orderedlist { margin-left: 0; margin-right: 0; } ol.orderedlist { text-align: left; list-style-type: decimal; list-style-position: outside; } ul.itemizedlist { text-align: left; text-indent: 0; list-style-type: disc; list-style-position: outside; } /*This adds space between bullet and text, must be pixels, padding-left: 5px;*/ li.listitem p { margin-bottom: .1em; padding-left: 5px; } /* Inlines */ em, em.citetitle, em.emphasis, em.foreignphrase { font-family: inherit; font-style: italic; font-weight: normal; } strong { font-family: inherit; font-weight: bold; } strong em, em strong, h1 em, h2 em, h3 em, h4 em, strong em.emphasis, strong em.citetitle { font-family: inherit; font-style: italic; font-weight: bold; } section.appendix[id="a03-4810_ShadowInTheDark"] strong em.emphasis, section.appendix[id="a03-4810_ShadowInTheDark"] strong em, section.appendix[id="a03-4810_ShadowInTheDark"] strong em.citetitle { font-style: italic; font-weight: bold; } a { text-decoration: none; color: #0b3059; /*Dk Blue*/ -webkit-text-fill-color: #0b3059; /*Dk Blue*/ } /* Footnote */ div.footnote { margin-bottom:.5em; } /* Spans */ span.inline-footnote-marker { font-size: .8em; vertical-align: .38em; } /*TOC chapter-part spans*/ span.toc-part-label, span.toc-chapter-label, nav ol > li { font-size: 1em; font-family: Arial, Trebuchet, Verdana, Lucida, Helvetica, sans-serif; font-weight: normal; } /*p:first-child::first-letter {} OR p:first-child:first-letter {}*/ /*p:first-line { line-height: 100%; OR line-height: 1em;}*/ span.dropcap { font-size: 2.5em; font-weight: normal; line-height: 1em; /*this closes up space after 1st line*/ /* color: #845f43;*/ /*lighter brown*/ /* -webkit-text-fill-color: blue; /\*ibooks*\/ */} span.smallcaps { font-size: .85em; } span.text-break { font-size: 3em; font-style: normal; font-weight: bold; } span.underline { text-decoration: underline; } /* Images */ /*img { width: 100%; height: auto; text-indent: 0; }*/ /* -webkit-height: 99vh; height: 100%; width: auto;*/ div[id="cover-image"] img { margin: 0 auto; text-align: center; height: 99% !important; width: auto; } /* Dingbat */ div.text-break { margin: .5em 0; text-align: center; text-indent: 0; } div.text-break img { margin: 0 auto; text-align: center; width: 6% !important; height: auto; } /* Title page */ div.book div.titlepage h1.title { margin: 1em 0 1em 0; text-align: center; text-indent: 0; font-size: 3em; font-style: normal; font-weight: normal; font-variant: small-caps; color: #0b3059; /*Dk Blue*/ -webkit-text-fill-color: #0b3059; /*Dk Blue*/ } div.book div.titlepage h2.subtitle { margin: 0 0 .5em 0; text-align: center; text-indent: 0; font-size: 1.4em; font-style: normal; font-weight: normal; font-variant: small-caps; color: #524226; /*Brown*/ -webkit-text-fill-color: #524226; } div.book div.titlepage h3.reading_line { margin: 0 0 6em 0; text-align: center; text-indent: 0; font-size: 1.2em; font-style: normal; font-weight: normal; font-variant: small-caps; color: #524226; /*Brown*/ -webkit-text-fill-color: #524226; } div.book div.titlepage h3.author { margin: 0 0 5em 0; text-align: center; text-indent: 0; font-size: 1.4em; font-style: normal; font-weight: normal; font-variant: small-caps; color: #c1ab49; /*Gold*/ -webkit-text-fill-color: #c1ab49; } div.LP-titlepage-logo { margin: 0; text-align: center; text-indent: 0; } div.LP-titlepage-logo img { margin: 0 auto; text-align: center; width: 34% !important; height: auto; } /* Dedication */ div.dedication { margin: 3em 4em; } div.dedication p { text-align: center; text-indent: 0; font-style: italic; } /* TOC */ nav ol { list-style-type: none; } nav > ol { margin-left: 0; padding-left: 0; } nav > ol > li { margin-top: .5em; text-align: left; margin-left: 1.5em; text-indent: -1.5em; } div.toc .toc-part-line, div.toc .toc-preface-line, div.toc .toc-appendix-line, div.toc .toc-bibliography-line, div.toc .toc-glossary-line { margin-top: 1em; margin-left: 0; text-align: left; text-indent: 0; } div.toc .toc-preface-line, div.toc .toc-appendix-line, div.toc .toc-bibliography-line, div.toc .toc-glossary-line { font-variant: small-caps; } .toc-part-line { font-family: Arial, Trebuchet, Verdana, Lucida, Helvetica, sans-serif; font-weight: bold; font-size: 1.1em; } div.toc .toc-chapter-line { text-align: left; } /* Headings */ h1, h2, h3, h4, h5, h6 { page-break-inside: avoid; page-break-after: avoid; display: block; text-align: center; text-indent: 0; font-family: "Times New Roman", Georgia, Palatino, Caecilia, serif; font-style: normal; font-weight: normal; /* next line should prevent head hyphenation in ibooks*/ -webkit-hyphens: none !important; /* next line should prevent head hyphenation in Nook*/ adobe-text-layout: optimizeSpeed; /* next line should prevent hyphenation in other ADE-based engines like Kobo, Safari, Chrome*/ adobe-hyphenate: none; -epub-hyphens: none; /*ePub3*/ -moz-hyphens: none; /*Mozilla, Firefox*/ hyphens: none; /*generic*/ } /* Chapters */ /* page break is added due to separate file structure, this addition makes epigraph-facing work */ /*This causes blank page before chapter openers in ibooks*/ /*section.chapter { page-break-before: always; }*/ /* Part Openers--Chapter Openers Add div.titlepage in middle if not working */ section.chapter h1.chapter-label { margin-top: 2em; padding-top: .2em; margin-bottom: .2em; font-size: 1.6em; } /* If there is a part-chapter number above part head, use margin-top: 1em; If no part number use margin-top: 2em; */ section.chapter h1.title { margin: 0 0 2em 0; font-size: 1.6em; font-style: italic; font-weight: bold; } /* Section Openers */ div.toc h3.title, div.bibliography h1.title, div.colophon h1.title, div.endnotes h1.title, section.preface h1.title, section.appendix h1.title, section.bibliography h1.title, section.acknowledgments h1.title, section.endnotes h1.title, section.ata h1.title { margin: 3em 0 2em 0; font-size: 1.6em; font-style: normal; font-weight: bold; } div.toc-title { margin-top: 0; margin-bottom: 1em; font-size: 1.6em; font-style: normal; font-weight: bold } h2.title { margin-top: 1em; margin-bottom: 0; text-align: left; text-indent: 0; font-size: 1.2em; font-weight: bold; } h3.title { margin-top: 1em; margin-bottom: 0; text-align: left; font-size: 1.1em; } h3.subtitle { margin-top: 0; margin-bottom: 1em; text-align: center; font-size: 1.1em; font-family: Arial, Trebuchet, Verdana, Lucida, Helvetica, sans-serif; font-weight: normal; } h4 { margin-top: 1em; text-align: left; font-size: 1em; font-style: italic; font-weight: normal; } /* Resources, Appendix, Bibliography, Endnotes */ div.bibliography p.bibliomixed, section.endnotes p { margin-bottom: .3em; margin-left: 2em; text-align: left; text-indent: -2em; } div.footnote-hr div.footnote p { margin-bottom: .3em; margin-left: 1.6em; text-align: left; text-indent: -1.6em; } /* Tables th, thead(header), td(cell)*/ table { page-break-inside: avoid; margin: 1.5em auto; width: 100%; border: black .5px solid; border-collapse: collapse; } th { margin: 0; text-align: left; font-size: .8em; font-weight: bold; border: black .5px solid; padding: .2em; } thead td { font-weight: bold; } td { margin: 0; text-align: left; font-size: .8em; font-weight: normal; border: black .5px solid; padding: .2em; } /* About the Author, Marketing/Sales table */ section.ata table td { border: 0; margin: .5em; width: 49%; vertical-align: top; padding-bottom: 1em; } section.ata table { page-break-before: always; margin: 1em auto; text-align: center; text-indent: 0; width: 100%; border: 0; } section.ata table img { margin: 0 auto .3em auto; text-align: center; width: 40% !important; height: auto; } section.ata table p, section.ata table td { text-align: center; text-indent: 0; } section.ata table h4 { margin: 1em 0 .5em 0; text-align: center; text-indent: 0; font-size: 1.3em; font-family: "Times New Roman", Georgia, Palatino, Caecilia, serif; font-weight: normal; } section.ata table thead td { width: 100%; } /* Copyright page */ div.copyright { margin: 0; text-align: left; text-indent: 0; } div.copyright img { margin: 0; text-align: left; width: 35% !important; height: auto; padding-top: 2em; } div.LP-address { margin-bottom: .5em; } div.legalnotice, div.copyright, div.book_ids { margin-top: .5em; text-align: left; text-indent: 0; } div.legalnotice p, div.copyright p.copyright-statement, p.copyright, p.art-credit, p.copyright-statement, div.LP-address p, div.book_ids p { margin-top: 0; text-align: left; text-indent: 0; font-size: .7em; } div.legalnotice p + p, div.copyright p + p, div.legalnotice p + p, div.book_ids p + p { margin-top: 0; } /*May need this style for multiple
s*/ /*div.legalnotice[id="id-1.1.13"] p + p { margin-top: .5em; }*/ /* Keep this body statement last */ body { /* Left & right margin specs & padding recommended for epub by B&N. Use px NOT em */ margin-left: 30px; margin-right: 30px; font-family: "Times New Roman", Georgia, Palatino, Caecilia, serif; padding: 0; /* next line should prevent head hyphenation in ibooks*/ -webkit-hyphens: none !important; /* next line should prevent head hyphenation in Nook*/ adobe-text-layout: optimizeSpeed; /* next line should prevent hyphenation in other ADE-based engines like Kobo, Safari, Chrome*/ adobe-hyphenate: none; -epub-hyphens: none; /*ePub3*/ -moz-hyphens: none; /*Mozilla, Firefox*/ hyphens: none; /*generic*/ }