MediaWiki:Common.css: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1.934: | Zeile 1.934: | ||
width: 100% !important; | width: 100% !important; | ||
height: auto !important; | height: auto !important; | ||
} | |||
} | |||
/* === Biobox: Rahmen sauber, Bild wirklich 100% Breite === */ | |||
.mw-parser-output table.biobox { | |||
border-collapse: collapse; /* verhindert Zwischenraum/„Doppelrahmen“ */ | |||
box-sizing: border-box; | |||
} | |||
/* nur die Fotozelle! */ | |||
.mw-parser-output table.biobox .biobox-photo { | |||
padding: 0 !important; | |||
border: none !important; | |||
background: transparent !important; | |||
} | |||
/* Wrapper über volle Zellenbreite */ | |||
.mw-parser-output table.biobox .biobox-photo-wrapper { | |||
width: 100%; | |||
margin: 0; | |||
padding: 0; | |||
} | |||
/* Nur das Hauptfoto skalieren – NICHT alle Bilder in der Box */ | |||
.mw-parser-output table.biobox .biobox-img { | |||
display: block; | |||
width: 100% !important; /* füllt die gesamte Biobox-Breite */ | |||
height: auto !important; /* Seitenverhältnis bewahren */ | |||
max-width: 100% !important; | |||
border: none !important; | |||
margin: 0 !important; | |||
background: transparent !important; | |||
box-shadow: none !important; | |||
} | |||
/* Mobil: Box nicht breiter als Bildschirm, kein Überstand */ | |||
@media (max-width: 768px) { | |||
.mw-parser-output table.biobox { | |||
float: none !important; | |||
clear: both !important; | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
margin: 0 0 1em 0 !important; | |||
} | |||
/* Falls direkt daneben eine rechte Social-Table kommt: neutralisieren */ | |||
.mw-parser-output table.biobox + table[align="right"] { | |||
float: none !important; | |||
width: 100% !important; | |||
margin: 0 0 1em 0 !important; | |||
align: initial !important; | |||
} | |||
/* Fließtext unter der Biobox beginnen */ | |||
.mw-parser-output > p:first-of-type { | |||
clear: both !important; | |||
} | } | ||
} | } | ||