Notebook-stylesheet.css
From XPUB & Lens-Based wiki
@page{
size: A5;
margin: 5mm 8mm 10mm;
}
@page:first{
@bottom-center{
content: "This booklet is compiled with Notebook.sh using the wiki page(s) (https://pzwiki.wdka.nl/mediadesign/XXX), HTML, CSS and Weasyprint.";
font-size: 9px;
margin-bottom: 3em;
}
}
@font-face {
font-family: "customfont";
src: url(Compagnon-LightItalic.otf);
/* to download from: https://velvetyne.fr/download/?font=compagnon */
}
/*------------------*/
body{
font-size: 9px;
line-height: 1.5;
}
div#toc{
columns: 2 auto;
}
div#toc ul{
margin: 0;
padding: 0;
}
div#toc ul li{
margin: 0;
margin-left: 1.5em;
padding: 0;
list-style: none;
}
div#toc h2#mw-toc-heading{
display: none;
}
div#toc ul li span.tocnumber{
display: none;
}
pre{
white-space: pre-wrap;
}
div.thumb{
width: 50mm !important;
max-width: 50mm;
float: right;
margin: 0 0 1em 1em;
/* break-inside: avoid; */
}
div.thumbinner{
margin: 0;
}
img{
width: 50mm;
}
div.thumbcaption{
font-size: 8px;
width: 50mm;
}
h1, h2, h3, h4, h5, h6 {
break-after: avoid;
}
h2:first-of-type{
font-size: 400%;
border: 5px groove;
border-radius: 25px;
padding: 0.15em 0.75em 0.5em;
break-after: always;
}
h2{
font-family: "customfont";
font-size: 300%;
text-align: center;
border-top: 1px solid;
border-radius: 50%;
line-height: 1;
padding-top: 0.5em;
margin-top: 1.25em;
}
hr{
border: 0;
/* border-top: 1px solid black; */
break-after: always;
}
a{
font-family: sans-serif;
color: black;
text-decoration: none;
}