css: add basic print styles

This commit is contained in:
Val Packett 2024-09-18 03:11:17 -03:00
parent cfb837fb45
commit ab353e2166

11
x/s.css
View file

@ -170,6 +170,17 @@ a.ᵇᵈᵍ { display: inline-flex; align-items: center; width: 80px; height: 15
.ᵇᵈᵍ.ᵃᶦ { border: 1px solid #999; background: #fefefe; color: #444; }
.ᵇᵈᵍ.ᵃᶦ span:first-of-type { background: #999; color: #fefefe; padding: 0 0.75em; margin: 0 2px 0 1px; }
@media print {
#𝖍𝖊𝖆𝖉𝖊𝖗, #𝖋𝖔𝖔𝖙𝖊𝖗 { display: none; }
main:before { display: block; content: "val.packett.cool"; text-align: center; --fnt-casl: .8; font-size: 1em; font-weight: 900; }
*, *:before, *:after { box-shadow: none !important; text-shadow: none !important; }
a[href^="http"]:after { content: " (" attr(href) ")"; }
abbr[title]:after { content: " (" attr(title) ")"; }
a.showcase-spread:after { content: ""; }
h1, h2, h3 { page-break-after: avoid; }
tr, img { page-break-inside: avoid; }
p, h2, h3, h4 { orphans: 3; widows: 3; }
}
/*!
Theme: Rebecca