mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-30 23:22:10 +00:00
8597e50a59
- Better print stylesheet, now with a file dedicated just for print style improvements. - Hide extra stuff in print. - Bring back navbar for print because it also tells users the current section and the site name. - Dark theme: make superscripts bold instead of using a higher-contrast color.
24 lines
415 B
CSS
24 lines
415 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 {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* Print: don't orphan headings */
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
break-after: avoid;
|
|
}
|
|
|
|
figure,
|
|
article article,
|
|
div[role="doc-endnotes"] ol li {
|
|
break-inside: avoid;
|
|
}
|