34 lines
699 B
CSS
34 lines
699 B
CSS
@media print {
|
|
/* Get rid of frames emulation, which breaks printing */
|
|
.with-toc {
|
|
display: block;
|
|
height: unset;
|
|
}
|
|
.with-toc > * {
|
|
grid-area: unset;
|
|
}
|
|
.with-toc > header {
|
|
display: none;
|
|
}
|
|
#toc {
|
|
display: none;
|
|
}
|
|
|
|
/* Improve layout on paper*/
|
|
h1, h2, h3, h4, h5, h6, summary {
|
|
break-after: avoid-page;
|
|
}
|
|
main > section > section {
|
|
break-before: page;
|
|
}
|
|
p {
|
|
orphans: 3;
|
|
widows: 3;
|
|
}
|
|
|
|
/* Kästen auf Papier: keine Grauflächen, Rahmen genügt */
|
|
.hl.lean.block, blockquote {
|
|
background-color: transparent;
|
|
break-inside: avoid-page;
|
|
}
|
|
} |