PdfCSS:Tools shape practice shapes tools...: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
margin-right: 6mm; | margin-right: 6mm; | ||
} | } | ||
@page image{ | |||
@bottom-center{ | |||
content: unset; | |||
} | |||
} | |||
body{ | body{ | ||
font-family: serif; | font-family: serif; | ||
Line 45: | Line 51: | ||
break-before: always; | break-before: always; | ||
break-inside: avoid; | break-inside: avoid; | ||
page: image; | |||
max-width: 45mm; | max-width: 45mm; | ||
display: block; | display: block; |
Revision as of 10:59, 19 September 2025
@page{
size: A7; /* 74x105mm */
@bottom-center{
content: counter(page);
}
}
@page:left{
margin-top: 4mm;
margin-bottom: 10mm;
margin-left: 6mm;
margin-right: 8mm;
}
@page:right{
margin-top: 4mm;
margin-bottom: 10mm;
margin-left: 8mm;
margin-right: 6mm;
}
@page image{
@bottom-center{
content: unset;
}
}
body{
font-family: serif;
font-size: 10.5pt;
line-height: 1.25;
}
div#cover{
break-after: always;
}
div.section{
break-before: always;
}
div#toc ul > li.tocsection-1,
div#toc span.tocnumber{
display: none;
}
h2{
margin-top: 0;
}
a{
word-break: break-word;
}
/* images */
div.center{
}
div.thumb{
break-before: always;
break-inside: avoid;
page: image;
max-width: 45mm;
display: block;
margin: 0 auto 1em;
}
div.thumb div.thumbinner{
width: unset !important;
}
div.thumb img{
max-width: 100%;
height: auto;
}
div.thumbcaption{
font-size: small;
}