/*
- Pagedjs
- Fonts
- Layouts
- General styling
*/
@page {
size: 170mm 240mm;
margin: 5mm;
padding: 5mm;
margin-top: 10mm;
margin-bottom: 15mm;
}
@page layout-title {
}
@page layout1 {
margin-right: 20mm;
}
@page layout2 {
}
/*
*** PAGEDJS ***
*/
.title-image-wrap {
page: layout-title;
}
.layout-1 {
page: layout1;
}
.layout-2 {
page: layout2;
}
/*
Elements with the .hide-from-book class will be stripped completely
from the HTML by Python (not just hidden). The CSS is only here as a reminder.
*/
.pagedjs_pages .hide-from-book {
display: none;
}
/*
*** FONTS ***
*/
.font-authentic {
font-family: Authentic, sans-serif;
font-weight: regular
}
.font-le-murmure {
font-family: le-murmure, sans-serif
}
.font-notcouriersans {
font-family: Authentic, sans-serif;
font-weight: regular
}
.font-solide-mirage-etroit {
font-family: SolideMirageEtroit, sans-serif
}
.font-solide-mirage-mono {
font-family: SolideMirageMono, sans-serif
}
.font-louise-regular {
font-family: Louise-Regular, sans-serif
}
.font-sligoil-micro {
font-family: Sligoil-Micro, sans-serif
}
.font-notoserif {
font-family: NotoSerifItalic-Micro, serif
}
/*
*** LAYOUTS ***
*/
/* LAYOUT 1 */
.layout-1 p {
text-indent: 10mm;
margin: 0;
padding: 0;
}
.layout-1 img {
border-radius: 10px;
max-width: 50%;
max-height: 200px;
margin: 10px;
}
.layout-1 blockquote {
font-family: NotCourierSans, sans-serif;
font-weight: normal;
font-size: 11pt;
line-height: 13pt;
margin-top: 10mm;
margin-bottom: 10mm;
margin-left: 10mm;
}
.layout-1 h3 {
font-family: Authentic, sans-serif;
padding: 4pt 30pt 0;
border-width: 1pt;
border-radius: 30pt;
border-color: black;
border-style: solid;
text-align: center;
font-size: 30pt;
margin-bottom: 25pt; /* space for the author float */
}
.layout-1 h4 {
font-family: Authentic, sans-serif;
font-size: 18pt;
font-weight: normal;
margin: 0;
padding-top: 10px;
padding-bottom: 10px;
}
.layout-1 .author-wrap {
display: flex;
justify-content: flex-end;
}
.layout-1 .author {
font-family: Authentic, sans-serif;
border-width: 1pt;
border-radius: 30pt;
border-color: black;
border-style: solid;
text-align: center;
font-size: 18px;
padding: 10pt;
margin: 0 -20mm 0 0; /* negative margin to pull author into right page margin */
display: inline-flex;
}
.layout-1 .block {
border: 1px solid black;
padding: 3mm;
}
.layout-1 hr {
border: 0;
border-bottom: 1px solid black;
margin-left: -3mm; /* negative of the padding on .block */
margin-right: -3mm;
}
/* LAYOUT 2 */
.pagedjs_pages .layout-2 {
columns: 2;
}
p .pagedjs_pages .layout-2 {
margin-top: 0;
}
.layout-2 img {
border-radius: 10px;
max-width: 60%;
max-height: 150px;
}
.layout-2 h2,
.layout-2 h3,
.layout-2 h4 {
column-span: all;
}
.layout-2 blockquote {
font-family: NotCourierSans, sans-serif;
font-weight: normal;
font-size: 11pt;
line-height: 13pt;
margin-top: 5mm;
margin-bottom: 5mm;
margin-left: 5mm;
}
.layout-2 h3 {
font-family: Louise-Regular, sans-serif;
font-size: 44pt;
line-height: 1em;
}
.layout-2 h4 {
font-family: Authentic, sans-serif;
font-size: 18pt;
font-weight: normal;
padding-top: 10px;
padding-bottom: 10px;
}
.layout-2 .author {
font-family: Authentic, sans-serif;
border-width: 1pt;
border-radius: 30pt;
border-color: black;
border-style: solid;
text-align: center;
font-size: 18px;
padding: 10pt;
margin: 0 -20mm 0 0; /* negative margin to pull author into right page margin */
display: inline-flex;
}
/* General styling */
body .pagedjs_pages {
font-size: 9pt;
}
h2 .pagedjs_pages {
font-size: 44pt;
line-height: 1em;
}
/* Force line-breaks in code blocks */
pre {
white-space: break-spaces;
}
/* Turn images grayscale, only in book */
.pagedjs_pages img {
filter: grayscale(1);
}
.page-break {
page-break-after: always;
}
.visual-footnote {
width: 150pt;
height: auto;
float: right;
}
h2 {
font-size: 44pt;
line-height: 46pt;
}
.pagedjs_footnote_area .footnote {
font-family: Authentic,sans-serif;
font-size: 7pt;
font-weight: 90;
line-height: 8.8pt;
padding-left: 2.5cm;
}
.footnote, sup {
font-family: Authentic,sans-serif;
font-size: 8pt;
font-weight: 150;
position: relative;
top: -0.2em;
vertical-align: top;
}
.pagedjs_pages .full-spread-image-caption, .pagedjs_pages .thumbcaption {
padding: 10px;
font-family: Authentic,sans-serif;
font-size: 7pt;
font-weight: 90;
line-height: 8.8pt;
text-align: center;
}