MediaWiki:Common.css: Unterschied zwischen den Versionen
Änderung 583 von Bunnyfreak (Diskussion) rückgängig gemacht. Markierung: Rückgängigmachung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1.815: | Zeile 1.815: | ||
} | } | ||
/* ==== Biobox | /* ==== Biobox Reset: Desktop stabil, Mobile korrekt ==== */ | ||
/* Biobox | /* Desktop: klassisch rechts floatend, feste Infoboxbreite */ | ||
.mw-parser-output table.biobox { | |||
float: right; | |||
clear: right; | |||
width: 22em; /* ~352px wie Standard-Infoboxen */ | |||
margin: 0.5em 0 1em 1em; /* Abstand zum Fließtext */ | |||
border: 1px solid #c8ccd1; | |||
background: #fff; | |||
border-collapse: collapse; | |||
box-sizing: border-box; /* verhindert Überlauf durch Padding/Borders */ | |||
font-size: 90%; | |||
line-height: 1.5; | |||
} | |||
.mw-parser-output table.biobox td, | |||
.mw-parser-output table.biobox th { | |||
border: 0; | |||
padding: 0.2em 0.4em; | |||
vertical-align: top; | |||
text-align: left; | |||
} | |||
.mw-parser-output table.biobox td[colspan="2"] { | |||
text-align: center; | |||
} | |||
/* Nur das Hauptbild der Biobox – NICHT alle Bilder! */ | |||
.mw-parser-output table.biobox .biobox-img img { | |||
display: block; | |||
width: 240px; /* Desktop stabil */ | |||
height: auto; | |||
margin: 0 auto; /* mittig in der Zelle */ | |||
} | |||
/* Vorherige „alles-in-der-Biobox-breit“-Regel unbedingt neutralisieren */ | |||
.mw-parser-output table.biobox img { | |||
max-width: none; | |||
height: auto; | |||
} | |||
/* Mobile: volle Inhaltsbreite, kein Überstand, Text darunter */ | |||
@media (max-width: 768px) { | |||
.mw-parser-output table.biobox { | .mw-parser-output table.biobox { | ||
float: none !important; | float: none !important; | ||
clear: both !important; | clear: both !important; | ||
width: auto !important; | |||
width: | max-width: 100% !important; | ||
max-width: | margin: 0 0 1em 0 !important; | ||
margin: 0 | |||
} | } | ||
/* Hauptbild mobil auf volle Boxbreite skalieren */ | |||
.mw-parser-output table.biobox .biobox-img img { | |||
/* Hauptbild | |||
.mw-parser-output table.biobox | |||
width: 100% !important; | width: 100% !important; | ||
height: auto !important; | height: auto !important; | ||
} | } | ||
/* Falls direkt danach eine „Social“-Tabelle mit align=right kommt: entkoppeln */ | |||
/* | .mw-parser-output table.biobox + table[align="right"] { | ||
.mw-parser-output table.biobox | float: none !important; | ||
width: auto !important; | |||
margin: 0 0 1em 0 !important; | |||
align: initial !important; | |||
} | } | ||
/* Ersten Absatz sicher unter der Box starten */ | |||
/* | |||
.mw-parser-output > p:first-of-type { | .mw-parser-output > p:first-of-type { | ||
clear: both !important; | clear: both !important; | ||
} | } | ||
} | } | ||