bavbavhaus.net/public_html/css/print.css

189 lines
2.3 KiB
CSS

/*
* css styling for bavbavhaus.net
*
* A print stylesheet for html generated by `pandoc`.
*
*/
@page {
size: 210mm 297mm;
margin: 24.75mm 26.25mm 49.50mm;
}
/* reset */
:root {
box-sizing: border-box;
text-size-adjust: none;
-moz-text-size-adjust: none;
-webkit-text-size-adjust: none;
}
*,
*::before,
*::after {
box-sizing: inherit;
margin: 0;
padding: 0;
}
/* root, * */
:root {
font: 12pt/1.25 serif;
}
*,
*::before,
*::after {
color: inherit;
font: inherit;
}
/* blocks */
h1, h2, h3, h4, h5, h6 {
text-wrap: balance;
font-weight: bold;
}
h1 {
font-size: 2rem;
text-align: center;
}
h2::before { content: "## "; }
h3::before { content: "### "; }
h4::before { content: "#### "; }
h5::before { content: "##### "; }
h6::before { content: "###### "; }
article :is(h1, h2, h3, h4, h5, h6) {
margin-top: 2rem;
}
article :is(blockquote, dl, div, figure, hr, menu, ol, p, pre, ul) {
margin-top: 1rem;
}
article :is(blockquote, div)>:is(blockquote, div, figure, hr, menu, ol, p, pre, ul):first-child {
margin-top: unset;
}
blockquote,
figcaption {
margin-left: 2rem;
margin-right: 2rem;
}
dt {
font-style: italic;
}
figure {
display: grid;
grid-template-rows: round(down, calc(min(160ch, 100vw)/2), 1rlh) auto;
}
figure img {
place-self: center;
}
hr {
color: unset;
border: unset;
text-align: center;
}
hr::after {
content: "***";
}
:is(ol, ul, menu, dd, li) :is(blockquote, div, figure, hr, menu, ol, p, pre, ul) {
margin-top: unset;
}
ol {
padding-left: 2rem;
}
ul, menu {
padding-left: 2rem;
}
li p + p {
text-indent: 4ch;
}
p {
text-align: justify;
hyphens: auto;
}
pre {
padding-left: 4ch;
}
img, svg {
max-width: 100%;
max-height: 100%;
display: block;
}
.math.diplay {
display: block;
text-align: center;
}
/* inlines */
a {
text-decoration: unset;
}
code {
font-family: monospace;
}
em {
font-style: italic;
}
mark {
text-decoration: underline solid inherit 1pt;
}
strong {
font-weight: bold;
}
sup, sub {
font-size: unset;
vertical-align: unset;
line-height: 0;
}
sup::before {
content: "^";
}
sub::before {
content: "_";
}
u {
text-decoration: underline wavy var(--red) 1pt;
}
/* layout */
main>article#recto {
display: none;
}
/* div.horizontal */
div.horizontal>*:not(:first-child) {
display: none;
}