Last active
March 6, 2024 10:10
-
-
Save Pageboy/731b9b7ad8e42c324dc75528f159ad98 to your computer and use it in GitHub Desktop.
A CSS file to add when exporting from InDesign to reflow able eBook
This file contains 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
/* select this CSS file when first exporting to the re-flowable ePub from InDesign */ | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
body, | |
div, | |
dl, | |
dt, | |
dd, | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6, | |
p, | |
pre, | |
code, | |
blockquote { | |
margin: 0; | |
padding: 0; | |
border-width: 0; | |
} | |
body { | |
-epub-hyphens: auto; | |
} | |
@page { | |
margin: 0px 0px 0px 0px; | |
} | |
a._idGenColorInherit { | |
color: inherit; | |
} | |
div.Basic-Text-Frame { | |
border-style: solid; | |
} | |
section { | |
border: none !important; | |
} | |
.dramatis. .play, .introduction { | |
border-style: none; | |
padding: 0; | |
} | |
figure.sceneImage { | |
border-style: none; | |
width: 100% !important; | |
padding: 0; | |
margin: 0; | |
page-break-inside: avoid; | |
} | |
img { | |
width: 100% !important; | |
margin: 0; | |
} | |
p.Blockquote---Paragraph { | |
} | |
p.FirstParagraph { | |
} | |
p.Footnote---Paragraph { | |
} | |
p.Header1 { | |
} | |
p.Header2 { | |
} | |
p.Basic-Paragraph { | |
} | |
p.Paragraph { | |
} | |
h1.act { | |
/* because we split the book at the act and scenes we don't want the page break as well */ | |
page-break-before: auto; | |
} | |
p.caption { | |
} | |
p.character { | |
} | |
p.character_listing { | |
} | |
p.charactername { | |
} | |
h1.dramatishead { | |
/* because we split the book at the act and scenes we don't want the page break as well */ | |
page-break-before: auto; | |
} | |
h2.firstscene { | |
/* because we split the book at the act and scenes we don't want the page break as well */ | |
page-break-before: auto; | |
} | |
p.imprint { | |
} | |
h2.location { | |
} | |
p.play_location { | |
} | |
/* note that you only need this margin if you have put the character on the same line as the first line of the speech */ | |
p.prose { | |
margin-left: 70px; | |
text-indent: 0; | |
} | |
p.verseline { | |
margin-left: 70px; | |
text-indent: 0; | |
} | |
h2.scene { | |
/* because we split the book at the act and scenes we don't want the page break as well */ | |
page-break-before: auto; | |
} | |
p.song { | |
} | |
h2.stagedirection { | |
} | |
p.sub-title { | |
} | |
span.Bold { | |
} | |
span.Italic { | |
} | |
span.character_role { | |
} | |
span.pagenumsTOC { | |
} | |
span.reference { | |
} | |
span.character_beforespeech { | |
display: block; | |
position: relative; | |
left: -70px; | |
top: 1.2em; | |
padding: 0; | |
margin: 0; | |
font-weight: bold; | |
/* font-size: 0.9em; */ | |
} | |
span.stage_directions_inline { | |
color: #009fe3; | |
font-variant: normal; | |
text-transform: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment