Converting from sass to nested vanilla css with layers (#147)

This commit is contained in:
Fredrik Jonsson 2026-03-10 14:14:55 +01:00 • committed by GitHub
commit 57244c3f33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

41
assets/css/print.css Normal file
View file

@ -0,0 +1,41 @@
/* The print stylesheet for this theme. */
@layer print {
.pager,
.mobile-nav,
aside,
nav,
footer {
display: none;
}
html {
font-size: var(--print-font-size);
}
html,
body,
.page {
background-color: white;
border-color: black;
box-shadow: none;
color: black;
}
.main {
width: 100%;
}
/* Underline all links. */
:link,
:visited {
text-decoration: underline;
}
/* Add visible title after abbreviations. */
abbr[title] {
&::after {
content: ' (' attr(title) ')';
}
}
}