1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-26 02:22:09 +00:00
seirdy.one/assets/css/print.css

33 lines
639 B
CSS
Raw Normal View History

/* Print stylesheet: hide stuff that we don't need. */
@media print {
/* Currently only used for transcripts */
article details,
/* Currently only used for in-page heading anchors,
* useless in printouts. */
span[aria-hidden],
/* You can't navigate in a printout. */
footer nav,
nav a:not([rel="home"]) span {
display: none;
}
summary {
list-style: none;
}
}
/* Print: don't orphan headings
* Commented out bc most browsers don't obey this yet. */
/* h2, */
/* h3, */
/* h4 { */
/* break-after: avoid; */
/* } */
/* Print: don't break up self-contained items. */
figure,
article article,
li {
break-inside: avoid;
}