Files
astral/md2pdf/pdfstyle.css
Tomas Kracmar 17d745bdac Sync from dev @ 252c1cf
Source: main (252c1cf)
Excluded: live tenant exports, generated artifacts, and dev-only tooling.
2026-04-17 15:57:35 +02:00

180 lines
2.5 KiB
CSS

* {
box-sizing: border-box;
}
@page {
margin: 18mm 14mm 18mm 14mm;
}
html {
font-size: 100%;
}
body {
font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
line-height: 1.6;
font-size: 0.6875em; /* 11 pt */
color: #111;
margin: 0;
orphans: 3;
widows: 3;
}
body > :first-child {
padding-top: 0;
margin-top: 0;
}
body > :last-child {
margin-bottom: 0;
padding-bottom: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
padding: 0.5em 0 0.25em;
text-transform: uppercase;
page-break-after: avoid;
break-after: avoid-page;
page-break-inside: avoid;
break-inside: avoid-page;
}
h5,
h6 {
padding: 0;
}
h5 {
font-size: 1em;
}
h6 {
font-size: 0.875em;
}
p {
margin: 0.25em 0 1em;
}
blockquote {
margin: 0.5em 0 1em;
padding-left: 0.5em;
padding-right: 1em;
border-left: 4px solid gainsboro;
font-style: italic;
page-break-inside: avoid;
break-inside: avoid-page;
}
ul,
ol {
margin: 0;
margin-left: 1em;
padding: 0 1.5em 0.5em;
page-break-inside: avoid;
break-inside: avoid-page;
}
li {
page-break-inside: avoid;
break-inside: avoid-page;
}
pre {
white-space: pre-wrap;
page-break-inside: avoid;
break-inside: avoid-page;
}
h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code,
p code,
li code,
pre code {
background-color: #f8f8f8;
padding: 0.1em 0.375em;
border: 1px solid #f8f8f8;
border-radius: 0.25em;
font-family: monospace;
font-size: 1.2em;
}
pre code {
display: block;
padding: 0.5em;
}
.page-break {
page-break-after: always;
}
img {
max-width: 100%;
margin: 0.5em 0 1em;
page-break-inside: avoid;
break-inside: avoid-page;
}
img[alt="ASTRAL logo"] {
max-width: 62%;
margin: 0 0 0.75em;
}
table {
border-spacing: 0;
border-collapse: collapse;
margin: 0 0 1em;
width: 100%;
overflow: auto;
table-layout: auto;
width: 100%;
page-break-inside: avoid;
break-inside: avoid-page;
}
table th,
table td {
padding: 0.5em 1em;
border: 1px solid gainsboro;
vertical-align: top;
}
table th {
font-weight: 600;
text-transform: uppercase;
}
table tr {
background-color: white;
border-top: 1px solid gainsboro;
page-break-inside: avoid;
break-inside: avoid-page;
}
table tr:nth-child(2n) {
background-color: whitesmoke;
}
hr,
svg,
figure {
page-break-inside: avoid;
break-inside: avoid-page;
}
section {
margin: 0 auto;
font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif !important;
font-size: 9px;
}