MediaWiki:Common.css: Unterschied zwischen den Versionen
Aus CMO
UweS (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
UweS (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */ | /* Das folgende CSS wird für alle Benutzeroberflächen geladen. */ | ||
. | /* Zwei Spalten, responsive */ | ||
.mw-parser-output .two-col { display:flex; gap:2rem; align-items:flex-start; } | |||
.mw-parser-output .two-col > .col { flex:1; min-width:0; } | |||
} | |||
} | |||
@media (max-width: | /* Mobil: untereinander */ | ||
. | @media (max-width: 980px) { | ||
.mw-parser-output .two-col { flex-direction: column; } | |||
} | } | ||
.mw- | /* Optional: Überschriftenabstand in Spalten feintunen */ | ||
.mw-parser-output .two-col h2:first-child { margin-top: 0; } | |||
margin | |||
} | |||
/* Fallback-Variante mit float, falls nötig */ | |||
.mw-parser-output .two-col--float > .col { width:48%; float:left; margin-right:4%; } | |||
.mw-parser-output .two-col--float > .col:last-child { margin-right:0; } | |||
.mw-parser-output .two-col--float::after { content:""; display:block; clear:both; } | |||
.mw- | |||
} | |||
.mw- | |||
. | |||
} | |||
.mw- | |||
. | |||
content: ""; | |||
display: block; | |||
clear: both; | |||
} | |||
Version vom 2. September 2025, 11:11 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* Zwei Spalten, responsive */
.mw-parser-output .two-col { display:flex; gap:2rem; align-items:flex-start; }
.mw-parser-output .two-col > .col { flex:1; min-width:0; }
/* Mobil: untereinander */
@media (max-width: 980px) {
.mw-parser-output .two-col { flex-direction: column; }
}
/* Optional: Überschriftenabstand in Spalten feintunen */
.mw-parser-output .two-col h2:first-child { margin-top: 0; }
/* Fallback-Variante mit float, falls nötig */
.mw-parser-output .two-col--float > .col { width:48%; float:left; margin-right:4%; }
.mw-parser-output .two-col--float > .col:last-child { margin-right:0; }
.mw-parser-output .two-col--float::after { content:""; display:block; clear:both; }