MediaWiki:Common.css: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
||
Zeile 154: | Zeile 154: | ||
.mw-body dt { | .mw-body dt { | ||
margin-top: 2em; | margin-top: 2em; | ||
} | |||
/** | |||
* Auto-number headings | |||
* | |||
* @source https://www.mediawiki.org/wiki/Snippets/Auto-number_headings | |||
* @author Krinkle | |||
* @version 2021-10-03 | |||
*/ | |||
/** | |||
* Fallback for pages without a TOC. This could in principle work for all pages, | |||
* but we don't to ensure consistency between the TOC and heading numbers | |||
*/ | |||
.tpl-autonum .mw-parser-output { | |||
counter-reset: autonum-h2 autonum-h3 autonum-h4 autonum-h5 autonum-h6; | |||
} | |||
.tpl-autonum .mw-parser-output h2 { | |||
counter-reset: autonum-h3 autonum-h4 autonum-h5 autonum-h6; | |||
} | |||
.tpl-autonum .mw-parser-output h3 { | |||
counter-reset: autonum-h4 autonum-h5 autonum-h6; | |||
} | |||
.tpl-autonum .mw-parser-output h4 { | |||
counter-reset: autonum-h5 autonum-h6; | |||
} | |||
.tpl-autonum .mw-parser-output h5 { | |||
counter-reset: autonum-h6; | |||
} | |||
.tpl-autonum .mw-parser-output h2 .mw-headline:before { | |||
counter-increment: autonum-h2; | |||
content: counter(autonum-h2) " "; | |||
} | |||
.tpl-autonum .mw-parser-output h3 .mw-headline:before { | |||
counter-increment: autonum-h3; | |||
content: counter(autonum-h2) "." counter(autonum-h3) " "; | |||
} | |||
.tpl-autonum .mw-parser-output h4 .mw-headline:before { | |||
counter-increment: autonum-h4; | |||
content: counter(autonum-h2) "." counter(autonum-h3) "." counter(autonum-h4) " "; | |||
} | |||
.tpl-autonum .mw-parser-output h5 .mw-headline:before { | |||
counter-increment: autonum-h5; | |||
content: counter(autonum-h2) "." counter(autonum-h3) "." counter(autonum-h4) "." counter(autonum-h5) " "; | |||
} | |||
.tpl-autonum .mw-parser-output h6 .mw-headline:before { | |||
counter-increment: autonum-h6; | |||
content: counter(autonum-h2) "." counter(autonum-h3) "." counter(autonum-h4) "." counter(autonum-h5) "." counter(autonum-h6) " "; | |||
} | } |
Version vom 10. Dezember 2022, 22:56 Uhr
html, body {
font-family: sans-serif !important;
}
/* Ueberschriften */
.mw-body h1, .mw-body-content h1, .mw-body-content h2 {
font-family: sans-serif !important;
}
.mw-body-content h1,h2,h3,h4,h5,h6,h7,h8 {
font-weight: bold;
font-family: sans-serif !important;
}
.mw-body-content h1 {
margin-top: 3.5em;
}
.mw-body-content h2 {
margin-top: 3em;
}
.mw-body-content h3 {
margin-top: 2.5em;
}
.mw-body-content h4 {
margin-top: 2em;
}
.mw-body-content h5 {
margin-top: 1.75em;
}
.mw-body-content h6 {
margin-top: 1.5em;
}
/* Zwischenueberschriften */
div#bodyContent div#mw-content-text.mw-body-content.mw-content-ltr div.mw-parser-output dl dt {
font-size: 1.0em;
font-family: sans-serif !important;
}
/* Tabellen */
/** Zellenausrichung**/
.opt {
white-space: nowrap;
}
.wikitable th {
text-align: left !important;
}
table tr td {
vertical-align: top;
}
/** Erste Spalte **/
.wikitable table tr td:nth-child(1) {
font-weight: bold;
white-space: nowrap;
}
/** Zweite Spalte **/
table tr td:nth-child(2) {
/* white-space: nowrap; */
}
/* Vergrößerung der Zeilenhöhe durch hochgestellte Zahlen verhindern */
sup {
font-size: 91%;
vertical-align: text-top;
position: relative;
top: -0.3em;
}
/* Syntaxhighlighting */
/** do not select line numbers **/
.mw-highlight .lineno {
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
background: #EEE;
display: inline-block;
padding-left: 0.5em;
margin-right: 0.5em;
}
/* Inhaltsverzeichnis */
/** Nur Überschiften 1-3 **/
div#toc.toc li.toclevel-3 {
display:none;
}
hr {
margin: 1.5em 0 0.5em 0;
}
/* Überschriften */
/** Nummern bei 4-8 ausblenden **/
div#mw-content-text.mw-content-ltr div.mw-parser-output h4 span.mw-headline-number {
display: none;
}
div#mw-content-text.mw-content-ltr div.mw-parser-output h5 span.mw-headline-number {
display: none;
}
div#mw-content-text.mw-content-ltr div.mw-parser-output h6 span.mw-headline-number {
display: none;
}
div#mw-content-text.mw-content-ltr div.mw-parser-output h7 span.mw-headline-number {
display: none;
}
div#mw-content-text.mw-content-ltr div.mw-parser-output h8 span.mw-headline-number {
display: none;
}
/* Testfragen auf Seitenbreite vergrößern */
ul#filetoc, .toc, .toccolours, .mw-warning {
display: block;
}
.infobox {
background-color: #ffff00;
border: 2px solid #008600;
float: right;
margin: 0 0 1em 1em;
padding: 1em;
width: 400px;
}
.infobox-title {
border: 1px solid #000000;
font-size: 1.5em;
text-align: center;
background-color: #ff0000;
}
.infobox-subtitle {
font-size: 1em;
text-align: center;
background-color: #fff00;
}
.infobox-image {
text-align: center;
background-color: #ffff00;
}
pre {
font-size: 0.75em;
color:white;
background-color:#222;
}
.wikitable,.thumbcaption {
font-size: 0.8em;
}
p {
margin: 1.25em 0 0.5em 0;
}
.mw-body dt {
margin-top: 2em;
}
/**
* Auto-number headings
*
* @source https://www.mediawiki.org/wiki/Snippets/Auto-number_headings
* @author Krinkle
* @version 2021-10-03
*/
/**
* Fallback for pages without a TOC. This could in principle work for all pages,
* but we don't to ensure consistency between the TOC and heading numbers
*/
.tpl-autonum .mw-parser-output {
counter-reset: autonum-h2 autonum-h3 autonum-h4 autonum-h5 autonum-h6;
}
.tpl-autonum .mw-parser-output h2 {
counter-reset: autonum-h3 autonum-h4 autonum-h5 autonum-h6;
}
.tpl-autonum .mw-parser-output h3 {
counter-reset: autonum-h4 autonum-h5 autonum-h6;
}
.tpl-autonum .mw-parser-output h4 {
counter-reset: autonum-h5 autonum-h6;
}
.tpl-autonum .mw-parser-output h5 {
counter-reset: autonum-h6;
}
.tpl-autonum .mw-parser-output h2 .mw-headline:before {
counter-increment: autonum-h2;
content: counter(autonum-h2) " ";
}
.tpl-autonum .mw-parser-output h3 .mw-headline:before {
counter-increment: autonum-h3;
content: counter(autonum-h2) "." counter(autonum-h3) " ";
}
.tpl-autonum .mw-parser-output h4 .mw-headline:before {
counter-increment: autonum-h4;
content: counter(autonum-h2) "." counter(autonum-h3) "." counter(autonum-h4) " ";
}
.tpl-autonum .mw-parser-output h5 .mw-headline:before {
counter-increment: autonum-h5;
content: counter(autonum-h2) "." counter(autonum-h3) "." counter(autonum-h4) "." counter(autonum-h5) " ";
}
.tpl-autonum .mw-parser-output h6 .mw-headline:before {
counter-increment: autonum-h6;
content: counter(autonum-h2) "." counter(autonum-h3) "." counter(autonum-h4) "." counter(autonum-h5) "." counter(autonum-h6) " ";
}