1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-17 22:32:10 +00:00
seirdy.one/assets/css/print.css
Rohan Kumar abc7b57e95
Improve print stylesheets
- Don't pad nav on print
- Link underlines in the TOC are not necessary in print
- Show home link on print
2022-05-02 15:42:57 -07:00

31 lines
520 B
CSS

/* Print stylesheet: hide stuff that we don't need. */
@media print {
/* Currently only used for transcripts */
details,
/* Currently only used for anchors */
span[aria-hidden],
/* You can't navigate in a printout. */
footer nav,
header nav a:not([rel="home"]) span {
display: none;
}
/* unerlines in TOC get in the way. */
nav[role="doc-toc"] a {
text-decoration: none;
}
}
/* Print: don't orphan headings */
h2,
h3,
h4 {
break-after: avoid;
}
figure,
article article,
li {
break-inside: avoid;
}