MediaWiki:Common.css: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
||
| Zeile 832: | Zeile 832: | ||
.mw-parser-output > p > br:first-child + table.biobox { | .mw-parser-output > p > br:first-child + table.biobox { | ||
margin-top: -1em !important; | margin-top: -1em !important; | ||
} | |||
/* ===== Startseite: 2-Spalten-Boxen wirklich responsive ===== */ | |||
/* Tabellen mit class="start-two-col" verhalten sich: | |||
- Desktop: 2 Spalten nebeneinander | |||
- Mobil (<= 800px): Zellen untereinander, volle Breite | |||
*/ | |||
body.page-Hauptseite .mw-parser-output table.start-two-col { | |||
width: 100%; | |||
border-collapse: separate; | |||
border-spacing: 0; | |||
} | |||
/* Standard: zwei gleich breite Spalten */ | |||
body.page-Hauptseite .mw-parser-output table.start-two-col td { | |||
width: 50%; | |||
box-sizing: border-box; | |||
} | |||
/* Mobil: Tabelle „aufbrechen“, jede Zelle wird ein Block in voller Breite */ | |||
@media only screen and (max-width: 800px) { | |||
body.page-Hauptseite .mw-parser-output table.start-two-col, | |||
body.page-Hauptseite .mw-parser-output table.start-two-col tbody, | |||
body.page-Hauptseite .mw-parser-output table.start-two-col tr, | |||
body.page-Hauptseite .mw-parser-output table.start-two-col td { | |||
display: block !important; | |||
width: 100% !important; | |||
box-sizing: border-box; | |||
} | |||
} | } | ||