MediaWiki:PDFCreator/TrainingBookPDF: Unterschied zwischen den Versionen

Margit Link-Rodrigue (Diskussion | Beiträge)
Update pdf template
Margit Link-Rodrigue (Diskussion | Beiträge)
Update pdf template
pdfcreator_template_styles
Zeile 156: Zeile 156:




/*Custom */
/*** CUSTOMIZINGS *** /
p,  td, th, div, ul, li, pre  {font-size: 8pt !important;}


h1 {
/* position and resize logo */
    font-size: 1.2em!important;
.pdfcreator-runningheaderfix>table .pdfcreator-runningheader-logo img {
    padding 0!important;
width: auto !important;
    margin:-0.3em 0 0.5em 0!important
height: 1cm !important;
margin-top: 0.5cm;
}
}


figure[typeof~='mw:File/Thumb'].mw-halign-center, figure[typeof~='mw:File/Frame'].mw-halign-center {border:none}
/* remove border of header */
.pdfcreator-runningheaderfix>table {
border-bottom: none !important;
}


h2 {font-size:1.2em; text-decoration:none; border:none; margin-top:14pt; margin-bottom:14pt;font-weight:600}
/*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;
}


h3 {font-size:1.1em; text-decoration:none; border:none; font-weight:600}
/* 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 {margin-bottom:10pt; margin-top:10pt}
.pdfcreator-page-content ul li {
list-style-type: none !important;
position: relative;
}


.pdfcreator-page-content li {margin-left:12pt; margin-bottom:4pt}
.pdfcreator-page-content ul li::before {
content: "\2022";
/* Unicode bullet (•) */
position: absolute;
left: -1em;
font-size: 1em;
/* fully controllable */
}


.pdfcreator-page-content .takeaway li { margin-bottom:0}
.pdfcreator-page-content .toc ul li::before {
content: "";
/* remove custom bullet from TOC */
}


.pdfcreator-page-content table caption {margin-top:0.5cm; font-size:0.8em; font-weight:normal!important; text-align:left}
/* style h1 page title */
.pdfcreator-page-content .firstHeading {
margin-bottom: -2em!important;
}


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


.pdfcreator-page-content table td ul {margin-bottom:0}
/* TOC styling */
 
.toc {
.pdfcreator-page-content td, .pdfcreator-page-content, .wikitable td {vertical-align:top}
border: none;
 
.pdfcreator-page-content p {
margin: 2pt 0!important;
padding: 0;
padding: 0;
}
margin: 1em 0;
 
}
.pdfcreator-bgcover {margin-top:4cm}


.logo {margin:1cm}
/* syntaxhighlight and preformatted text with smaller font size */
 
.mw-highlight pre,
 
pre {
/*TOC
font-size: 8.5pt !important;
/*Umrandung entfernen
line-height: 1.5em !important;
.toc {
    border:none
}
}


/*Schriftgröße und Textfarbe */
/*wikitable print color white */
.toc span.tocnumber,
.wikitable {
.toc span.toctext {
background-color: #fff
font-size: 7.5pt;
line-height:1.5em;
}
}


.mw-lingo-term {color:black}
.wikitable tr th {
 
background-color: #f1f3f9
 
img {max-width:100%}
 
.smwtable-clean tr {
    border-top: 1px solid #dddddd;
}
.smwtable-clean tbody>tr:nth-child(even) {
    background-color: #f5f5f5;
}
}


.smwtable-clean tr>th {
/*avoid orphans */
    padding: 8px !important;
h2,
    line-height: 1.42857143;
h3,
    vertical-align: top;
h4 {
    border-top: 1px solid #dddddd;
-fs-keep-with-next: always;
    border-collapse: collapse;
margin-top: 1.2em;
    border-spacing: 0;
    text-align: center;
    vertical-align: middle;
}
}


.smwtable-clean tr>td {
p {
    padding: 8px !important;
-fs-page-break-min-height: 5em;
    line-height: 1.42857143;
line-height: 1.5;
    vertical-align: top;
    border-top: 1px solid #dddddd;
    border-collapse: collapse;
    border-spacing: 0;
}
}

Version vom 29. Juli 2026, 10:57 Uhr