MediaWiki:Common.css: Unterschied zwischen den Versionen
Änderung 548 von Bunnyfreak (Diskussion) rückgängig gemacht. Markierung: Rückgängigmachung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1.801: | Zeile 1.801: | ||
} | } | ||
} | } | ||
/* --- Mobile Darstellung der Biobox ( | /* --- Mobile Darstellung der Biobox (zentriert und volle Breite) --- */ | ||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
.biobox { | .biobox { | ||
float: none !important; | float: none !important; | ||
display: block !important; | display: block !important; | ||
width: | width: 100% !important; /* volle Breite */ | ||
margin: 0 | max-width: none !important; | ||
margin: 0 0 1em 0 !important; /* kein Seitenabstand, nur unten */ | |||
background: #fff !important; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
border-radius: 8px; | |||
border-radius: 8px; | box-shadow: 0 2px 5px rgba(0,0,0,0.08); | ||
box-shadow: 0 2px 5px rgba(0,0,0,0.08); | |||
padding: 4px; | padding: 4px; | ||
} | } | ||
/* Biobox-Bild skalieren */ | /* Biobox in voller Breite auch bei Inhalts-Einrückung */ | ||
.mw-parser-output .biobox, | |||
.mw-body-content .biobox { | |||
margin-left: -1em !important; | |||
margin-right: -1em !important; | |||
width: calc(100% + 2em) !important; | |||
} | |||
/* Bild korrekt skalieren */ | |||
.biobox img { | .biobox img { | ||
max-width: 100% !important; | max-width: 100% !important; | ||
height: auto !important; | height: auto !important; | ||
display: block; | |||
margin: 0 auto; | |||
} | |||
/* Überschriften zentrieren (optional) */ | |||
.biobox b, | |||
.biobox td[colspan="2"] { | |||
text-align: center !important; | |||
} | } | ||
/* | /* Artikeltext erst unter der Biobox beginnen */ | ||
.mw-parser-output > p:first-of-type { | |||
.mw-parser-output > p { | |||
clear: both !important; | clear: both !important; | ||
} | } | ||
} | } | ||