mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-14 09:42:09 +00:00
c9a1958264
Fixing the misaligned inline nav using "inline-block" also made it obvious that I can simplify compound selectors. The max number of compound selectors has dropped from 4 to 2. Update stylelint configs to reflect this. Also fix containment to reflect a prior change (webmentions are a section, not a footer.)
25 lines
425 B
CSS
25 lines
425 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;
|
|
}
|
|
}
|
|
|
|
/* Print: don't orphan headings */
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
break-after: avoid;
|
|
}
|
|
|
|
figure,
|
|
article article,
|
|
li {
|
|
break-inside: avoid;
|
|
}
|