MediaWiki:Print.css: verschil tussen versies
Uiterlijk
Geen bewerkingssamenvatting |
Geen bewerkingssamenvatting |
||
| Regel 1: | Regel 1: | ||
/* | /* =========================== | ||
MediaWiki Print Stylesheet | |||
Save as: MediaWiki:Print.css | |||
=========================== */ | |||
/* | /* Hide elements that are not needed in print */ | ||
#mw-navigation, | |||
#footer, | |||
#siteNotice, | |||
#mw-page-base, | |||
#mw-head-base, | |||
#mw-head, | |||
#mw-panel, | |||
#toc, /* Table of contents */ | |||
.mw-editsection, | |||
.noprint { | |||
display: none !important; | |||
} | |||
/* Ensure main content takes full width */ | |||
#content, | |||
.mw-body { | |||
margin: 0; | |||
padding: 0; | |||
width: 100%; | |||
background: white !important; | |||
color: black !important; | |||
} | |||
/* Improve typography for print */ | |||
body { | |||
font-family: "Times New Roman", Times, serif; | |||
font-family: " | |||
font-size: 12pt; | font-size: 12pt; | ||
line-height: 1. | line-height: 1.5; | ||
} | |||
/* Make headings stand out */ | |||
h1, h2, h3, h4, h5, h6 { | |||
page-break-after: avoid; | |||
font-weight: bold; | |||
} | |||
/* Ensure images scale properly */ | |||
img { | |||
max-width: 100%; | |||
height: auto; | |||
} | |||
/* Links: show URL after text */ | |||
a[href]:after { | |||
content: " (" attr(href) ")"; | |||
font-size: 90%; | |||
} | |||
font-size: | |||
/* Avoid breaking tables across pages */ | |||
table { | |||
page-break-inside: avoid; | |||
border- | border-collapse: collapse; | ||
} | |||
th, td { | |||
border: 1px solid #000; | |||
padding: 4px; | |||
} | |||
/* Page break before certain sections */ | |||
h2 { | |||
page-break-before: always; | page-break-before: always; | ||
} | |||
/* Optional: watermark for printed pages */ | |||
@page { | |||
margin: 1in; | |||
margin: | |||
} | } | ||
Huidige versie van 10 dec 2025 21:52
/* ===========================
MediaWiki Print Stylesheet
Save as: MediaWiki:Print.css
=========================== */
/* Hide elements that are not needed in print */
#mw-navigation,
#footer,
#siteNotice,
#mw-page-base,
#mw-head-base,
#mw-head,
#mw-panel,
#toc, /* Table of contents */
.mw-editsection,
.noprint {
display: none !important;
}
/* Ensure main content takes full width */
#content,
.mw-body {
margin: 0;
padding: 0;
width: 100%;
background: white !important;
color: black !important;
}
/* Improve typography for print */
body {
font-family: "Times New Roman", Times, serif;
font-size: 12pt;
line-height: 1.5;
}
/* Make headings stand out */
h1, h2, h3, h4, h5, h6 {
page-break-after: avoid;
font-weight: bold;
}
/* Ensure images scale properly */
img {
max-width: 100%;
height: auto;
}
/* Links: show URL after text */
a[href]:after {
content: " (" attr(href) ")";
font-size: 90%;
}
/* Avoid breaking tables across pages */
table {
page-break-inside: avoid;
border-collapse: collapse;
}
th, td {
border: 1px solid #000;
padding: 4px;
}
/* Page break before certain sections */
h2 {
page-break-before: always;
}
/* Optional: watermark for printed pages */
@page {
margin: 1in;
}