MediaWiki:Common.css: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1.789: | Zeile 1.789: | ||
/* --- Mobile: Infobox oben, volle Breite, bündig --- */ | /* --- Mobile: Infobox oben, volle Breite, bündig --- */ | ||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
/* Infobox | |||
.mw-parser-output table.infobox { | /* Infobox (oder Biobox) entfloaten + auf Vollbreite */ | ||
.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; | ||
/* | /* Container-Padding (≈ 1rem) ausgleichen */ | ||
width: calc(100% + 2rem) !important; | width: calc(100% + 2rem) !important; | ||
margin | margin: 0 -1rem 1em -1rem !important; | ||
max-width: none !important; /* überschreibt inline width:240px */ | |||
background: #fff !important; | background: #fff !important; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
/* Bilder responsiv */ | /* Bilder in der (Bio)Infobox responsiv */ | ||
.mw-parser-output table.infobox img { | .mw-parser-output table.infobox img, | ||
.mw-parser-output table.biobox img { | |||
max-width: 100% !important; | max-width: 100% !important; | ||
height: auto !important; | height: auto !important; | ||
| Zeile 1.815: | Zeile 1.814: | ||
} | } | ||
/* | /* Bild-Link block-level, damit er die ganze Breite füllt */ | ||
.mw-parser-output table.infobox + table[align="right"] { | .mw-parser-output table.infobox td > a.image, | ||
.mw-parser-output table.biobox td > a.image { | |||
display: block; | |||
} | |||
/* Falls du im Template eine Klasse nutzt: padding sicher entfernen */ | |||
.mw-parser-output table.infobox td.infobox-image, | |||
.mw-parser-output table.biobox td.infobox-image { | |||
padding: 0 !important; | |||
} | |||
/* Die rechts ausgerichtete Social-Icon-Tabelle neutralisieren */ | |||
.mw-parser-output table.infobox + table[align="right"], | |||
.mw-parser-output table.biobox + table[align="right"] { | |||
float: none !important; | float: none !important; | ||
align: initial !important; | align: initial !important; | ||
| Zeile 1.823: | Zeile 1.835: | ||
} | } | ||
/* Text | /* Text unter der Box beginnen */ | ||
.mw-parser-output > p:first-of-type { | .mw-parser-output > p:first-of-type { | ||
clear: both !important; | clear: both !important; | ||
} | } | ||
} | } | ||