MediaWiki:Print.css: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
Keine Bearbeitungszusammenfassung Markierung: Manuelle Zurücksetzung |
||
Zeile 147: | Zeile 147: | ||
} | } | ||
ul, ol | ul, ol { | ||
page-break-before: avoid; | page-break-before: avoid; | ||
page-break-inside: auto; | page-break-inside: auto; |
Version vom 16. April 2023, 12:30 Uhr
/* Das folgende CSS wird in der Druckausgabe geladen. */
/* Do not print:
1: When in mainspace: Article message boxes,
navboxes, sister project boxes, disambig links,
and items marked as metadata.
2: section edit links.
3: navbar links.
4: Show/hide toggles for collapsible items.
*/
.ns--1 .ambox,
.ns-0 .ambox,
.ns--1 .navbox,
.ns-0 .navbox,
/* high specificity because Minerva */
.mediawiki.ns--1 .mw-parser-output .sidebar,
.mediawiki.ns-0 .mw-parser-output .sidebar,
.ns--1 .sisterproject,
.ns-0 .sisterproject,
.ns--1 .hatnote,
.ns-0 .hatnote,
.ns--1 .metadata,
.ns-0 .metadata,
.sistersitebox,
.editlink,
.navbar,
span.mw-collapsible-toggle,
th .sortkey,
td .sortkey,
#mw-revision-nav,
/* Add formatting to make sure that "external references" from templates
like [[Template:Ref]] do not get URL expansion, not even when printed.
The anchor itself has class "external autonumber" and the url expansion
is inserted when printing (see the common printing style sheet at
http://en.wikipedia.org/w/skins/common/commonPrint.css) using the
":after" pseudo-element of CSS.
*/
.nourlexpansion a.external.text:after,
.nourlexpansion a.external.autonumber:after {
display: none !important;
}
/* Uncollapse collapsible things */
.mw-parser-output .mw-collapsed .mw-collapsible-content {
display: block !important;
}
table.collapsible tr,
.mw-parser-output table.mw-collapsed > * > tr {
display: table-row !important;
}
.mw-parser-output ol.mw-collapsed > li,
.mw-parser-output ul.mw-collapsed > li {
display: list-item !important;
}
/* On websites with siteSub visible, the margin on the firstHeading is not needed. */
#firstHeading {
margin: 0;
}
/* We don't want very long URLs (that are added to the content in print) to widen the canvas */
#content a.external.text:after,
#content a.external.autonumber:after {
word-wrap: break-word;
}
/*
- Basic infobox styling
- Remove background colors, they are hard to print
*/
.infobox {
border: solid 1px #aaa;
background-color: #fff;
border-spacing: 0;
border-collapse: collapse;
width: 180pt !important; /*T174957*/
}
.infobox > * > tr > td,
.infobox > * > tr > th {
padding: 2px 5px;
border-bottom: 1px solid #EAECF0;
}
/* Reduce noise for print medium - labels may be links */
.infobox a,
/* reset last border (set above) of infobox */
.infobox > * > tr:last-child > th,
.infobox > * > tr:last-child > td {
border: 0;
}
/* References */
.refbegin a,
.references a,
.reference a {
color: black !important;
}
.reference a {
border-bottom: 0;
}
ol.references,
div.reflist,
div.refbegin,
cite * {
/* Override any editor added inline styles that play with font-size */
font-size: inherit !important;
}
.refbegin li,
.references li {
color: #666;
line-height: 14pt;
}
.printfooter {
clear: both;
}
/* page-breaks */
h1 {
page-break-before: always;
page-break-inside: avoid;
page-break-after: avoid;
}
h2, h3, h4, h5, dl {
page-break-before: auto;
page-break-inside: avoid;
page-break-after: avoid;
}
dt {
page-break-before: auto;
page-break-inside: avoid;
page-break-after: avoid;
}
dl {
page-break-before: auto;
page-break-inside: avoid;
page-break-after: avoid;
}
ul, ol {
page-break-before: avoid;
page-break-inside: auto;
page-break-after: auto;
}
div#toc, div#toctitle {
page-break-inside: auto;
page-break-before: avoid;
page-break-after: auto;
}
h1#firstHeading {
page-break-before: avoid;
}
/* page-breaks
h1 {
page-break-before: always;
page-break-inside: avoid;
page-break-after: avoid;
}
h2, h3, h4, h5 {
page-break-after: avoid;
page-break-inside: avoid;
}
pre, blockquote {
page-break-inside: avoid;
page-break-before: avoid;
}
h1#firstHeading {
page-break-before: avoid;
}
div.content-table-wrapper {
page-break-before: avoid;
}
dl {
page-break-before: auto;
page-break-inside: avoid;
page-break-after: auto;
}
dt {
page-break-inside: avoid;
page-break-before: avoid;
page-break-after: avoid;
}
dd {
page-break-inside: avoid;
page-break-before: auto;
page-break-after: auto;
}
ul, ol {
page-break-inside: avoid;
page-break-before: avoid;
page-break-after: avoid;
}
*/
table {
width: 100%;
}