MediaWiki:Common.css: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1.787: | Zeile 1.787: | ||
.kat-links a:hover { background:#f8f9fa; } | .kat-links a:hover { background:#f8f9fa; } | ||
/* --- Mobile: Infobox oben, 100% | /* --- Mobile: Infobox oben, 100% breit; Bild passt sich an --- */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
/* Infobox | /* Infobox entfloaten + volle Breite */ | ||
.mw-parser-output table.infobox { | .mw-parser-output table.infobox, | ||
.mw-parser-output table.biobox { | |||
float: none !important; | float: none !important; | ||
clear: both !important; | clear: both !important; | ||
display: block !important; | display: block !important; | ||
width: 100% !important; | width: 100% !important; /* überstimmt width:240px aus dem Template */ | ||
max-width: 100% !important; | max-width: 100% !important; | ||
margin: 0 0 1em 0 !important; | margin: 0 0 1em 0 !important; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: #fff; | background: #fff; | ||
} | } | ||
/* Bild | /* Bild über die volle Zellenbreite skalieren */ | ||
.mw-parser-output table.infobox a.image, | .mw-parser-output table.infobox a.image, | ||
.mw-parser-output table. | .mw-parser-output table.biobox a.image { | ||
display: block; | display: block; | ||
} | |||
.mw-parser-output table.infobox a.image img, | |||
.mw-parser-output table.biobox a.image img { | |||
width: 100% !important; | width: 100% !important; | ||
height: auto !important; | height: auto !important; | ||
display: block; | |||
} | } | ||
/* | /* Text sicher unterhalb starten */ | ||
.mw-parser-output > p:first-of-type { | .mw-parser-output > p:first-of-type { | ||
clear: both !important; | clear: both !important; | ||
} | } | ||
/* | /* Falls direkt nach der Infobox noch eine rechts-ausgerichtete Tabelle kommt (Social-Icons), | ||
.mw-parser-output table.infobox + table[align="right"] { | neutralisieren wir die auf Mobil, damit sie nichts nach rechts schiebt. */ | ||
.mw-parser-output table.infobox + table[align="right"], | |||
.mw-parser-output table.biobox + table[align="right"] { | |||
float: none !important; | float: none !important; | ||
width: 100% !important; | width: 100% !important; | ||