MediaWiki:PDFCreator/StandardPDF: Unterschied zwischen den Versionen

Margit Link-Rodrigue (Diskussion | Beiträge)
Update pdf template
Margit Link-Rodrigue (Diskussion | Beiträge)
Update pdf template
 
(10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
pdfcreator_template_styles
Zeile 91: Zeile 91:
@page {
@page {
size: A4 portrait;
size: A4 portrait;
margin: 2.5cm 1.75cm 1.5cm 1.75cm;
margin: 2.5cm 1.75cm 1.2cm 1.75cm;


@top-left {
@top-left {
Zeile 169: Zeile 169:
line-height: 1.3em;
line-height: 1.3em;
}
}


/*** CUSTOMIZINGS *** /
/*** CUSTOMIZINGS *** /
Zeile 191: Zeile 192:
.pdfcreator-page-content pre,
.pdfcreator-page-content pre,
.pdfcreator-page-content p {
.pdfcreator-page-content p {
font-size: 9pt;
font-size: 9.5pt;
line-height: 1.8em;
line-height: 1.8em;
}
}
Zeile 221: Zeile 222:
}
}


/* page title h1 */
/* style h1 page title */
.pdfcreator-page-content h1.firstHeading {
.pdfcreator-page-content .firstHeading {
margin: 0;
margin-bottom: -2em!important;
padding:0!important;
}
}


/* style h2 headings */
/* style h2 headings */
.pdfcreator-page-content h2 {
.pdfcreator-page-content h2 {
    font-size:1.2em;
border-bottom: none;
border-bottom: none;
margin: 1.4em 0;
margin: 2em 0;
}
}


/* TOC styling */
/* TOC styling */
Zeile 262: Zeile 262:
h4 {
h4 {
-fs-keep-with-next: always;
-fs-keep-with-next: always;
margin-top: 1em;
margin-top: 1.2em;
}
}


Zeile 270: Zeile 270:
}
}


/*export img smaller than on wiki page */
/* codeblock - correct wrapping */
 
code {
.exportsmall figure, .exportsmall figure img {
     display: inline-block;
     max-width:300px
    }
 
/*** CUSTOMIZINGS *** /
 
/* position and resize logo */
.pdfcreator-runningheaderfix>table .pdfcreator-runningheader-logo img {
width: auto !important;
height: 1cm !important;
margin-top: 0.5cm;
}
 
/* remove border of header */
.pdfcreator-runningheaderfix>table {
border-bottom: none !important;
}
 
/*smaller font sizes and larger line-height in content */
.pdfcreator-page-content th,
.pdfcreator-page-content td,
.pdfcreator-page-content div,
.pdfcreator-page-content li,
.pdfcreator-page-content pre,
.pdfcreator-page-content p {
font-size: 9.5pt;
line-height: 1.8em;
}
 
/* smaller bullet points in lists*/
.pdfcreator-page-content ul {
list-style-type: none !important;
list-style: none !important;
padding-left: 1.2em;
}
 
.pdfcreator-page-content ul li {
list-style-type: none !important;
position: relative;
}
}


.pdfcreator-page-content ul li::before {
/* codeblock and preformatted text font size */
content: "\2022";
code,
/* Unicode bullet (•) */
position: absolute;
left: -1em;
font-size: 1em;
/* fully controllable */
}
 
.pdfcreator-page-content .toc ul li::before {
content: "";
/* remove custom bullet from TOC */
}
 
/* style h2 headings */
.pdfcreator-page-content h2 {
border-bottom: none;
margin: 2em 0;
}
 
/* TOC styling */
.toc {
border: none;
padding: 0;
margin: 1em 0;
}
 
/* syntaxhighlight and preformatted text with smaller font size */
.mw-highlight pre,
pre {
pre {
font-size: 8.5pt !important;
font-size: 8pt!important;
line-height: 1.5em !important;
line-height: 1.5em!important;
}
 
/*wikitable print color white */
.wikitable {
background-color: #fff
}
 
.wikitable tr th {
background-color: #f1f3f9
}
 
/*avoid orphans */
h2,
h3,
h4 {
-fs-keep-with-next: always;
margin-top: 1.2em;
}
 
p {
-fs-page-break-min-height: 5em;
line-height: 1.5;
}
}

Aktuelle Version vom 8. September 2026, 13:28 Uhr