Created
September 3, 2025 13:55
-
-
Save tonytins/c69b54bb2fd2ade25fa4e2760cae59f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @charset "utf-8"; | |
| @namespace epub "http://www.idpf.org/2007/ops"; | |
| body{ | |
| font-variant-numeric: oldstyle-nums; | |
| hyphens: auto; | |
| -epub-hyphens: auto; | |
| text-wrap: pretty; | |
| } | |
| p{ | |
| margin: 0; | |
| text-indent: 1em; | |
| } | |
| hr{ | |
| border: none; | |
| border-top: 1px solid; | |
| height: 0; | |
| margin: 1.5em auto; | |
| width: 25%; | |
| } | |
| q::before, | |
| q::after{ | |
| content: ""; | |
| } | |
| blockquote{ | |
| margin: 1em 2.5em; | |
| } | |
| h1, | |
| h2, | |
| h3, | |
| h4, | |
| h5, | |
| h6, | |
| hgroup{ | |
| break-after: avoid; | |
| break-inside: avoid; | |
| font-variant: small-caps; | |
| hyphens: none; | |
| -epub-hyphens: none; | |
| margin: 3em 0; | |
| text-align: center; | |
| } | |
| /* simulate h3 in an hgroup */ | |
| hgroup h2 + p{ | |
| font-size: 1.17em; | |
| } | |
| /* simulate h4 in an hgroup */ | |
| hgroup h2 + p + p, | |
| hgroup h3 + p{ | |
| font-size: 1em; | |
| } | |
| /* simulate h5 in an hgroup */ | |
| hgroup h2 + p + p + p, | |
| hgroup h3 + p + p, | |
| hgroup h4 + p{ | |
| font-size: .83em; | |
| } | |
| /* simulate h6 in an hgroup */ | |
| hgroup h2 + p + p + p + p, | |
| hgroup h3 + p + p + p, | |
| hgroup h4 + p + p, | |
| hgroup h5 + p{ | |
| font-size: .67em; | |
| } | |
| hgroup > *{ | |
| font-weight: normal; | |
| margin: 0; | |
| } | |
| hgroup > *:first-child{ | |
| font-weight: bold; | |
| } | |
| hgroup > p{ | |
| text-indent: 0; | |
| } | |
| p.continued, | |
| h2 + p, | |
| h3 + p, | |
| h4 + p, | |
| h5 + p, | |
| h6 + p, | |
| header + p, | |
| hr + p, | |
| hgroup + p, | |
| p:first-child{ | |
| hanging-punctuation: first last; | |
| text-indent: 0; | |
| } | |
| cite{ | |
| font-style: normal; | |
| } | |
| abbr{ | |
| border: none; | |
| white-space: nowrap; | |
| } | |
| blockquote cite{ | |
| display: block; | |
| font-style: italic; | |
| text-align: right; | |
| } | |
| blockquote cite i{ | |
| font-style: normal; | |
| } | |
| b, | |
| strong{ | |
| font-variant: small-caps; | |
| font-weight: normal; | |
| } | |
| i > i, | |
| em > i, | |
| i > em{ | |
| font-style: normal; | |
| } | |
| ol, | |
| ul{ | |
| margin-bottom: 1em; | |
| margin-top: 1em; | |
| } | |
| header{ | |
| break-after: avoid; | |
| break-inside: avoid; | |
| hyphens: none; | |
| -epub-hyphens: none; | |
| text-align: center; | |
| } | |
| header > * + p{ | |
| text-indent: 0; | |
| } | |
| article > header + *, | |
| section > header + *{ | |
| margin-top: 3em; | |
| } | |
| a[epub|type~="noteref"]{ | |
| font-size: smaller; | |
| font-style: normal !important; | |
| vertical-align: super; | |
| } | |
| section[epub|type~="endnotes"] > ol > li{ | |
| margin: 1em 0; | |
| } | |
| /* Invert images in dark mode. RMSDK requires a target media as well as a state. */ | |
| @media all and (prefers-color-scheme: dark){ | |
| img[epub|type~="se:image.color-depth.black-on-transparent"]{ | |
| filter: invert(100%); | |
| } | |
| img[epub|type~="se:image.color-depth.black-on-transparent"][epub|type~="se:image.style.realistic"]{ | |
| background: currentColor; | |
| filter: none; | |
| } | |
| } | |
| /* Cover */ | |
| .BookTitlePage img { | |
| width: auto !important; | |
| } | |
| .cover_image { | |
| text-align: center; | |
| page-break-inside: avoid; | |
| clear: both; | |
| padding: 0px; | |
| margin: 0em auto; | |
| height: 95%; | |
| } | |
| .cover_image img { | |
| page-break-inside: avoid; | |
| max-height: 100%; | |
| max-width: 100%; | |
| } | |
| .cover { | |
| max-width: 100%; | |
| margin: 0 0 0 0; | |
| text-align: center; | |
| } | |
| div.cover { | |
| max-width: 100%; | |
| margin-top: 0em; | |
| text-align: center; | |
| margin-bottom: 0em; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment