MediaWiki:Vector.css: Unterschied zwischen den Versionen
Erscheinungsbild
Admin (Diskussion | Beiträge) KKeine Bearbeitungszusammenfassung Markierung: Manuelle Zurücksetzung |
Admin (Diskussion | Beiträge) KKeine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
||
| Zeile 57: | Zeile 57: | ||
top: 3.125rem; | top: 3.125rem; | ||
} | } | ||
} | |||
/* Tabellen */ | |||
.mw-parser-output table.wikitable { | |||
border-collapse: separate; | |||
border-spacing: 0; | |||
border-radius: 10px; | |||
overflow: hidden; | |||
} | |||
/* Zellen-Grundlayout (thead + tbody) */ | |||
.mw-parser-output table.wikitable > thead > tr > th, | |||
.mw-parser-output table.wikitable > thead > tr > td, | |||
.mw-parser-output table.wikitable > tbody > tr > th, | |||
.mw-parser-output table.wikitable > tbody > tr > td { | |||
vertical-align: middle; | |||
} | |||
/* letzte Spalte ohne rechten Zellrand (thead + tbody) */ | |||
.mw-parser-output table.wikitable > thead > tr > th:last-child, | |||
.mw-parser-output table.wikitable > thead > tr > td:last-child, | |||
.mw-parser-output table.wikitable > tbody > tr > th:last-child, | |||
.mw-parser-output table.wikitable > tbody > tr > td:last-child { | |||
border-right: 0; | |||
} | |||
/* Kopfzeile: thead (wenn vorhanden), sonst erste Zeile in tbody */ | |||
.mw-parser-output table.wikitable > thead > tr > th, | |||
.mw-parser-output table.wikitable > tbody > tr:first-child > th { | |||
font-weight: 700; | |||
color: #1f2937; | |||
} | |||
/* Runde Ecken oben: bevorzugt thead, sonst erste Zeile in tbody */ | |||
.mw-parser-output table.wikitable > thead > tr:first-child > *:first-child, | |||
.mw-parser-output table.wikitable > tbody > tr:first-child > *:first-child { | |||
border-top-left-radius: 10px; | |||
} | |||
.mw-parser-output table.wikitable > thead > tr:first-child > *:last-child, | |||
.mw-parser-output table.wikitable > tbody > tr:first-child > *:last-child { | |||
border-top-right-radius: 10px; | |||
} | |||
/* Sticky-Kopf: overflow muss visible sein, sonst funktioniert sticky oft nicht */ | |||
.mw-parser-output table.wikitable.tabelle-kopf-fixiert { | |||
overflow: visible; | |||
} | |||
/* Unterkante: nur äußere Ecken runden (letzte Zeile in tbody) */ | |||
.mw-parser-output table.wikitable > tbody > tr:last-child > *:first-child { | |||
border-bottom-left-radius: 10px; | |||
} | |||
.mw-parser-output table.wikitable > tbody > tr:last-child > *:last-child { | |||
border-bottom-right-radius: 10px; | |||
} | } | ||