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, | /* --- Mobile: Infobox oben, 100% Breite, Bild passt sich an --- */ | ||
@media | @media (max-width: 768px) { | ||
/* Infobox | /* Infobox nicht mehr rechts floaten und 100% breit machen */ | ||
.mw-parser-output table.infobox | .mw-parser-output table.infobox { | ||
float: none !important; | float: none !important; | ||
clear: both !important; | clear: both !important; | ||
display: block !important; | display: block !important; | ||
width: 100% !important; | |||
max-width: 100% !important; | |||
width: | margin: 0 0 1em 0 !important; | ||
max-width: | |||
box-sizing: border-box; | box-sizing: border-box; | ||
background: #fff; /* falls Skin grau hinterlegt */ | |||
} | } | ||
/* | /* Bild in der Infobox responsiv über die ganze Zellenbreite */ | ||
.mw-parser-output table.infobox | .mw-parser-output table.infobox a.image, | ||
.mw-parser-output table. | .mw-parser-output table.infobox a.image img { | ||
display: block; | |||
width: 100% !important; | |||
height: auto !important; | height: auto !important; | ||
} | } | ||
/* | /* Kein seitlicher Text neben der Box */ | ||
.mw-parser-output | .mw-parser-output > p:first-of-type { | ||
clear: both !important; | |||
} | } | ||
/* | /* Nachfolgende rechts-ausgerichtete Tabelle (Social-Icons) neutralisieren */ | ||
.mw-parser-output table.infobox + table[align="right"] { | |||
.mw-parser-output table.infobox | |||
float: none !important; | float: none !important; | ||
width: 100% !important; | width: 100% !important; | ||
margin: 0 0 1em 0 !important; | margin: 0 0 1em 0 !important; | ||
align: initial !important; | |||
} | } | ||
} | } | ||