EPUB default style
Version vom 28. November 2012, 19:01 Uhr von MartinSojka (Diskussion | Beiträge)
Default CSS styling for self-made EPUBs
Page setup[Bearbeiten | edit source]
body, p, div, h1, h2, h3, h4, h5, h6 {
font-family: serif;
}
body {
margin: 0;
}
p {
text-indent: 1.5em;
margin: 0.5em 0.5em;
text-align: justify;
}
p.signature {
font-style: italic;
text-align: right;
margin-right: 2em;
}
h1, h2, h3, h4, h5, h6 {
text-align:center;
page-break-after: avoid;
page-break-inside: avoid;
}
h1, h2, h3 {
font-variant: small-caps;
}
div.titlepage {
page-break-after: always;
}
div.epigraph {
font-style: italic;
page-break-after: always;
}
img {
max-width: 95%;
}
img.coverimage {
max-width:100%;
}
hr.separator {
width: 50%;
border: 1px solid black;
margin: 1.5em auto;
}
Quotation marks[Bearbeiten | edit source]
English quotation marks
q:before { content: "“"; margin-right: 2pt; }
q:after { content: "”"; margin-left: 2pt; }
q q:before { content: "‘"; margin-right: 2pt; }
q q:after { content: "’"; margin-left: 2pt; }
German quotation marks
q:before { content: "„"; margin-right: 0; }
q:after { content: "“"; margin-left: 0; }
q q:before { content: "‚"; margin-right: 0; }
q q:after { content: "‘"; margin-left: 0; }
French quotation marks
q:before { content: "«"; margin-right: 0.25em; }
q:after { content: "»"; margin-left: 0.25em; }
Polish quotation marks
q:before { content: "„"; margin-right: 0; }
q:after { content: "”"; margin-left: 0; }
q q:before { content: "«"; margin-right: 0; }
q q:after { content: "»"; margin-left: 0; }
Japanese quotation marks
q:before { content: "「"; margin-right: 0; }
q:after { content: "」"; margin-left: 0; }
q q:before { content: "『"; margin-right: 0; }
q q:after { content: "』"; margin-left: 0; }