first commit
This commit is contained in:
commit
585a6927f6
19 changed files with 432 additions and 0 deletions
73
resources/stylesheets/pdf.scss
Normal file
73
resources/stylesheets/pdf.scss
Normal file
|
@ -0,0 +1,73 @@
|
|||
:root {
|
||||
--width: 21cm;
|
||||
--margin: 1.20cm;
|
||||
--height: 29.7cm;
|
||||
--offset: calc(var(--margin) * 2);
|
||||
}
|
||||
|
||||
@page {
|
||||
size: A4;
|
||||
margin: 1.20cm;
|
||||
}
|
||||
|
||||
hr:has(+ div.md-source-file), .md-source-file {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
summary::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.front-cover {
|
||||
margin: var(--margin);
|
||||
height: calc(var(--height) - var(--offset));
|
||||
page-break-after: always;
|
||||
border: 1px solid #fff;
|
||||
position: relative;
|
||||
|
||||
img {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
image-rendering: optimizeQuality;
|
||||
}
|
||||
|
||||
> section {
|
||||
color: #fff;
|
||||
padding: 0.635cm;
|
||||
max-width: 10.25cm;
|
||||
word-wrap: break-word;
|
||||
margin-top: calc(var(--height) / 2 - var(--offset) - 2cm);
|
||||
font-size: 13pt;
|
||||
|
||||
> .title {
|
||||
font-size: 26pt;
|
||||
font-weight: 500;
|
||||
line-height: 1.1;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
h1, h2, h3 {
|
||||
string-set: chapter content();
|
||||
}
|
||||
|
||||
body {
|
||||
print-color-adjust: exact;
|
||||
text-rendering: geometricPrecision;
|
||||
}
|
||||
|
||||
.md-main .md-main__inner {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.md-content .md-content__inner {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
&::before {
|
||||
height: 0;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue