MediaWiki:Common.css: Unterschied zwischen den Versionen
Aus CMO
UweS (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
UweS (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 4: | Zeile 4: | ||
.mw-parser-output .toc { display: none; } | .mw-parser-output .toc { display: none; } | ||
/* Zwei Spalten | /* Zwei Spalten mit CSS Grid */ | ||
.mw-parser-output .zwei-spalten { | .mw-parser-output .zwei-spalten-grid { | ||
display: | display: grid; | ||
grid-template-columns: 1fr 1fr; | |||
gap: 2rem; | |||
clear:both; | clear: both; | ||
} | } | ||
/* Mobil: eine Spalte */ | |||
/* Mobil: | |||
@media (max-width: 980px) { | @media (max-width: 980px) { | ||
.mw-parser-output .zwei-spalten { | .mw-parser-output .zwei-spalten-grid { | ||
grid-template-columns: 1fr; | |||
} | |||
} | } | ||
/* | /* Kinder neutralisieren */ | ||
.mw-parser-output .zwei-spalten-grid > div { | |||
background: transparent !important; | |||
border: 0 !important; | |||
.mw-parser-output .zwei-spalten- | padding: 0 !important; | ||
box-shadow: none !important; | |||
font: inherit !important; | |||
color: inherit !important; | |||
} | } | ||
Version vom 2. September 2025, 11:55 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/*Verindert das Anzeigen des Inhaltsverzeichnisses, das Inhalrsverzeichnis existiert aber noch für barrierefreiheit */
.mw-parser-output .toc { display: none; }
/* Zwei Spalten mit CSS Grid */
.mw-parser-output .zwei-spalten-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
clear: both;
}
/* Mobil: eine Spalte */
@media (max-width: 980px) {
.mw-parser-output .zwei-spalten-grid {
grid-template-columns: 1fr;
}
}
/* Kinder neutralisieren */
.mw-parser-output .zwei-spalten-grid > div {
background: transparent !important;
border: 0 !important;
padding: 0 !important;
box-shadow: none !important;
font: inherit !important;
color: inherit !important;
}