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 | /* --- Mobile-Layout: Infobox zuerst, volle Breite, nichts schiebt --- */ | ||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
.infobox { | |||
/* 1) Infobox nicht floaten & volle Breite (überstimmt width:240px im Template) */ | |||
.mw-parser-output table.infobox { | |||
float: none !important; | float: none !important; | ||
clear: both !important; | |||
display: block !important; | |||
width: 100% !important; | width: 100% !important; | ||
max-width: 100% !important; | |||
margin: 0 0 1em 0 !important; | |||
box-sizing: border-box; | |||
margin: 0 0 1em 0 !important; | |||
background: #fff !important; | background: #fff !important; | ||
} | } | ||
/* | /* 2) Bilder in der Infobox responsiv */ | ||
.mw-parser-output . | .mw-parser-output table.infobox img { | ||
max-width: 100% !important; | max-width: 100% !important; | ||
height: auto !important; | height: auto !important; | ||
display: block; | display: block; | ||
} | } | ||
/* | /* 3) Das zweite, rechts ausgerichtete Tabellelement (Social-Icons) neutralisieren */ | ||
. | .mw-parser-output table.infobox + table[align="right"] { | ||
float: none !important; | |||
align: initial !important; | |||
width: 100% !important; | |||
margin: 0 0 1em 0 !important; | |||
} | } | ||
/* | /* 4) Text sicher unterhalb starten */ | ||
.mw-parser-output > p:first-of-type { | .mw-parser-output > p:first-of-type { | ||
clear: both !important; | clear: both !important; | ||
} | } | ||
} | } | ||