MediaWiki:Common.css: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
Änderung 548 von Bunnyfreak (Diskussion) rückgängig gemacht. Markierung: Rückgängigmachung |
||
| Zeile 1.787: | Zeile 1.787: | ||
.kat-links a:hover { background:#f8f9fa; } | .kat-links a:hover { background:#f8f9fa; } | ||
/* --- Mobile Darstellung der Biobox ( | /* --- Mobile Darstellung der Infobox --- */ | ||
@media screen and (max-width: 768px) { | |||
.infobox { | |||
float: none !important; | |||
margin: 0 auto 1em auto !important; | |||
width: 100% !important; | |||
display: block !important; | |||
} | |||
/* Optional: Text nicht seitlich, sondern darunter */ | |||
.mw-body-content p { | |||
clear: both; | |||
} | |||
} | |||
/* --- Mobile Darstellung der Biobox (Bunnypedia) --- */ | |||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
.biobox { | .biobox { | ||
float: none !important; | float: none !important; /* nicht mehr rechtsbündig */ | ||
display: block !important; | display: block !important; | ||
width: 100% !important; | width: calc(100% - 20px) !important; /* fast volle Breite (kleine Seitenränder) */ | ||
margin: 0 auto 1em auto !important; /* zentriert + etwas Abstand unten */ | |||
margin: 0 | |||
box-sizing: border-box; | box-sizing: border-box; | ||
border-radius: 8px; | background: #fff !important; /* weißer Hintergrund */ | ||
box-shadow: 0 2px 5px rgba(0,0,0,0.08); | border-radius: 8px; /* leichte Rundung */ | ||
box-shadow: 0 2px 5px rgba(0,0,0,0.08);/* dezenter Schatten */ | |||
padding: 4px; | padding: 4px; | ||
} | } | ||
/* Biobox | /* Biobox-Bild skalieren */ | ||
.biobox img { | .biobox img { | ||
max-width: 100% !important; | max-width: 100% !important; | ||
height: auto !important; | height: auto !important; | ||
} | } | ||
/* | /* Textfluss unterhalb der Biobox erzwingen */ | ||
.mw-parser-output > p | .mw-body-content p, | ||
.mw-parser-output > p { | |||
clear: both !important; | clear: both !important; | ||
} | } | ||
} | } | ||