MediaWiki:Vector.css: Unterschied zwischen den Versionen
Erscheinungsbild
Admin (Diskussion | Beiträge) KKeine Bearbeitungszusammenfassung Markierungen: Manuelle Zurücksetzung Zurückgesetzt |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung Markierungen: Manuelle Zurücksetzung 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; | |||
} | } | ||
Version vom 18. März 2026, 12:59 Uhr
/* CSS an dieser Stelle wirkt sich auf den Vector-Skin aus. */
/*
* Koordinaten und diverse andere Anzeigen oben rechts, siehe
* [[:Kategorie:Vorlage:mit Seitenindikator#Textelemente]].
* Beachte, dass diese Elemente im Wikitext an beliebigen Stellen auftreten und
* deshalb allerhand Eigenschaften erben können. Das gilt insbesondere für die
* Schriftgröße.
* Der folgende Darstellungsfehler ist bekannt: Wenn die Fensterbreite kleiner
* als 982px ist und die Schriftgröße des Wurzelelements wie üblich 16px ist,
* überlappen sich die 17px hohen Icons der Gadgets „WikiMiniAtlas“ und
* „OpenStreetMap“ mit der SiteNotice.
*/
#mw-content-text :is(#coordinates, #editcount, #shortcut),
body.ns-special #mw-content-text .specialpage-helplink {
display: block;
font-size: x-small;
line-height: 1.5;
position: absolute;
right: 0;
text-align: right;
text-indent: 0;
top: -7em;
white-space: nowrap;
}
/* Korrektur Schriftart der Überschriften */
.mw-body #firstHeading,
.mw-body :is(h1, h2) {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: #262626;
}
/* tabelle-kopf-fixiert */
@media screen and (min-width: 721px) {
table.wikitable.tabelle-kopf-fixiert th,
table.wikitable.tabelle-kopf-fixiert tr.tabelle-zaehler-kopf::before {
position: sticky;
top: 0;
z-index: 12;
}
table.wikitable.tabelle-kopf-fixiert {
border-collapse: separate;
border-spacing: 0;
border-bottom-style: none;
border-left-style: none;
}
table.wikitable.tabelle-kopf-fixiert th,
table.wikitable.tabelle-kopf-fixiert td {
border-right-style: none;
border-top-style: none;
}
}
@media screen and (min-width: 1000px) {
html.client-js.vector-sticky-header-enabled table.wikitable.tabelle-kopf-fixiert th,
html.client-js.vector-sticky-header-enabled table.wikitable.tabelle-kopf-fixiert tr.tabelle-zaehler-kopf::before {
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;
}