@charset "utf-8"; @namespace h "http://www.w3.org/1999/xhtml/"; @namespace epub "http://www.idpf.org/2007/ops"; /* Restoration of Faith by Jim Butcher, version 1.0 */ /* Accent color: #1b2794: custom blue: rgb: 27,39,148 */ /* ===CONTENTS=== 1. Base Element styles 2. Cover styles 3. Navigation styles 4. Heading styles 5. General styles 6. Back Matter styles 7. Testing */ /* BEGIN: BASE ELEMENT STYLES */ body { border: 0; font-size: 100%; font-style: normal; font-weight: normal; margin-top: 0; margin-right: 2%; margin-bottom: 0; margin-left: 2%; padding: 0; /* Orphans/Widows - optional */ orphans: 1; widows: 1; /* Justification - optional */ text-align: justify; /* Typography - optional */ font-feature-settings: "kern" 1, "liga" 1, "clig" 1, "onum" 1, "pnum" 1; -webkit-font-feature-settings: "kern" 1, "liga" 1, "clig" 1, "onum" 1, "pnum" 1; /* for Kobo KEPUB: -webkit setting enables ligatures! */ font-kerning: normal; font-variant: common-ligatures; font-variant-numeric: oldstyle-nums proportional-nums; } a { border: 0; margin: 0; padding: 0; text-decoration: underline; text-decoration-skip: ink; text-decoration-style: solid; } abbr { border: 0; display: inline; margin: 0; padding: 0; text-decoration: none; } cite,i { font-style: italic; } footer { border: 0; font-size: 0.96em; font-style: italic; margin: 0; padding: 0; /* Page Break avoidance */ break-inside: avoid; page-break-inside: avoid; } h1,h2 { border: 0; margin: 0; padding: 0; /* Page Break avoidance */ break-after: avoid; break-inside: avoid; page-break-after: avoid; page-break-inside: avoid; } h1 { font-family: sans-serif; font-size: 1.50em; font-style: normal; font-weight: bold; margin-top: 1.00em; margin-bottom: 1.00em; text-align: center; text-indent: 0; } h2 { font-family: sans-serif; font-size: 1.10em; font-style: normal; font-weight: bold; text-align: center; text-indent: 0; } hr { border: 0; color: #1b2794; /* accent color */ height: 0; margin: 0; padding: 0; width: 100%; } img { border: 0; height: auto; margin: 0; max-width: 100%; object-fit: contain; padding: 0; width: auto; /* KF8 doesn't support max-width hence "width: auto;" as fallback */ } li { border: 0; margin-top: 0.20em; margin-right: 0; margin-bottom: 0.20em; margin-left: 0; padding: 0; text-align: center; text-indent: 0; } nav { border: 0; display: block; /* for legacy reading systems */ margin: 0; padding: 0; } ol { border: 0; list-style-type: none; margin: 0; padding: 0; } p { border: 0; margin: 0; padding: 0; text-indent: 1.20em; /* Hyphenation - optional */ -ms-hyphens: auto; -moz-hyphens: auto; -epub-hyphens: auto; -webkit-hyphens: auto; adobe-hyphenate: auto; hyphens: auto; /* Hyphenation improvements - optional */ /* SOURCE: https://www.mobileread.com/forums/showthread.php?t=315374 */ -ms-hyphenate-limit-chars: 6 3 2; -moz-hyphenate-limit-chars: 6 3 2; -webkit-hyphenate-limit-after: 2; -webkit-hyphenate-limit-before: 3; hyphenate-limit-chars: 6 3 2; -ms-hyphenate-limit-lines: 3; -moz-hyphenate-limit-lines: 3; -webkit-hyphenate-limit-lines: 3; hyphenate-limit-lines: 3; -ms-hyphenate-limit-zone: 10%; -moz-hyphenate-limit-zone: 10%; -webkit-hyphenate-limit-zone: 10%; hyphenate-limit-zone: 10%; -ms-hyphenate-limit-last: always; -moz-hyphenate-limit-last: always; -webkit-hyphenate-limit-last: always; hyphenate-limit-last: always; } section { border: 0; display: block; /* for legacy reading systems */ margin: 0; padding: 0; } span { border: 0; margin: 0; padding: 0; } /* END: BASE ELEMENT STYLES */ /* BEGIN: COVER STYLES */ body.full-page-layout { border: 0; font-size: 0; /* solves a Kobo quirk where a blank page appears after cover/title pages at large font sizes. */ margin: 0; padding: 0; } section.full-page { text-align: center; text-indent: 0; height: 95%; } /* SOURCE: cover and title page image code: https://ebookflightdeck.com/handbook/coverimage */ /* NOTE: This code works in both vertical and horizontal orientations for Kobo and Kindle. Aspect ratio is retained *except* when LARGE margins are set on Kobo, which then squeezes cover *and* title images in EPUB, but only the title image for KEPUB. */ img.full-page-image { height: 95%; } /* Overrides previous setting, but only in newer systems that support CSS3 */ img.full-page-image:only-of-type { height: 95vh; } /* END: COVER STYLES */ /* BEGIN: NAVIGATION STYLES */ nav#landmarks { display: none; } li.book-matter { font-style: italic; } li.title { font-size: 1.10em; font-style: normal; font-weight: bold; margin-top: 1.50em; margin-bottom: 1.50em; } /* END: NAVIGATION STYLES */ /* BEGIN: HEADING STYLES */ h1#aboutbook-hd, h1#biblio-hd, h1#toc-hd { margin-bottom: 1.25em; } h1#story-hd { color: #1b2794; /* accent color */ margin-top: 10%; margin-bottom: 1.25em; } /* span inside h1#story-hd */ .story-title { color: inherit; display: block; font-size: 1.10em; font-style: normal; font-weight: bold; text-align: right; text-indent: 0; } /* span inside h1#story-hd */ .story-subtitle { border-color: inherit; border-style: none none dotted none; border-width: 2pt; color: inherit; display: block; font-size: 0.65em; font-style: italic; font-weight: bold; margin-top: 0.50em; margin-bottom: 0.50em; padding-bottom: 1.00em; text-align: right; text-indent: 0; width: 100%; } h2.biblio-subhd { color: #1b2794; /* accent color */ margin-top: 1.25em; margin-bottom: 0.25em; } /* END: HEADING STYLES */ /* BEGIN: GENERAL STYLES */ p.first-para { text-indent: 0; } .no-display { display: none; } /* END: GENERAL STYLES */ /* BEGIN: BACK MATTER STYLES */ section#cinderspires, section#dresdenanthologies { break-inside: avoid; page-break-inside: avoid; } p.about-para { margin-top: 1.00em; margin-bottom: 1.00em; text-indent: 0; } p.copyright { margin-top: 1.00em; margin-bottom: 1.00em; text-align: center; text-indent: 0; } p.ebook-creation { margin-top: 2.00em; margin-bottom: 1.00em; text-align: center; text-indent: 0; } /* spans inside p.ebook-creation */ .ebook-created, .ebook-date { display: block; } p.ebook-version { margin-top: 1.00em; margin-bottom: 0; text-align: center; text-indent: 0; } hr.section-separator { border-top: 2pt dotted #1b2794; /* accent color */ margin-top: 1.00em; margin-bottom: 1.00em; } hr.short-section-separator { border-top: 2pt dotted #1b2794; /* accent color */ margin-top: 1.00em; margin-right: 32%; margin-bottom: 2.00em; margin-left: 32%; width: 36%; } p.series-number { margin-top: 0.50em; margin-bottom: 1.00em; text-align: center; text-indent: 0; } p.series-position { margin-top: 1.00em; margin-bottom: 0.75em; text-indent: 0; } /* END: BACK MATTER STYLES */ /* ===TESTING=== */ /* EPUB validation: EPUBCheck version 4.2.5 */ /* CSS validation (W3C): Throws "Property doesn't exist" errors for 5 legitimate hyphenation properties, and warnings for 18 vendor extensions, otherwise valid. */ /* Accessibility: Ace by DAISY checker v1.1.5 */ /* Windows PC: Adobe Digital Editions, Calibre, and Thorium (Readium based) */ /* Android: Aldiko Next (Readium Mobile based), Google Play Books, Kindle, Kobo, Nook, and Pocketbook Reader */ /* Apple iPad: Books */ /* E-ink: Kobo and Kindle (KF8 and KFX formats) */