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; } | ||
/* | /* ===== Biobox – DESKTOP (wie klassische Infobox) ===== */ | ||
.mw-parser-output table.biobox { | .mw-parser-output table.biobox { | ||
float: right; | float: right; | ||
width: 240px; | width: 240px; | ||
margin: 0 0 1em 1em; | margin: 0 0 1em 1em; | ||
border: 1px solid #c8ccd1; | |||
background: #fff; | background: #fff; | ||
border-collapse: collapse; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
font-size: 90%; | |||
} | |||
.mw-parser-output table.biobox td, | |||
.mw-parser-output table.biobox th { | |||
border: 0; /* wie bei vielen Infoboxen */ | |||
padding: 0.2em 0.4em; | |||
vertical-align: top; | |||
} | |||
.mw-parser-output table.biobox td[colspan="2"] { | |||
padding: 0.2em 0.4em; | |||
} | } | ||
/* Bilder | /* Bilder laufen nicht über den Rahmen */ | ||
.mw-parser-output table.biobox img { | .mw-parser-output table.biobox img { | ||
max-width: 100%; | max-width: 100%; | ||
| Zeile 1.803: | Zeile 1.815: | ||
} | } | ||
/* | /* ===== Biobox – MOBIL ===== */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.mw-parser-output table.biobox { | .mw-parser-output table.biobox { | ||
float: none !important; | float: none !important; | ||
clear: both !important; | clear: both !important; | ||
display: block !important; | display: block !important; | ||
width: 100% !important; | width: 100% !important; | ||
max-width: 100% !important; | max-width: 100% !important; | ||
margin: 0 0 1em 0 !important; | margin: 0 0 1em 0 !important; | ||
} | } | ||
/* Bild über volle Zellbreite */ | |||
/* Bild über | |||
.mw-parser-output table.biobox a.image, | .mw-parser-output table.biobox a.image, | ||
.mw-parser-output table.biobox a.image img { | .mw-parser-output table.biobox a.image img { | ||
| Zeile 1.821: | Zeile 1.832: | ||
height: auto !important; | height: auto !important; | ||
} | } | ||
/* Falls direkt danach eine rechte Tabelle (Social-Icons) kommt: neutralisieren */ | |||
/* Falls direkt | |||
.mw-parser-output table.biobox + table[align="right"] { | .mw-parser-output table.biobox + table[align="right"] { | ||
float: none !important; | float: none !important; | ||
| Zeile 1.829: | Zeile 1.839: | ||
align: initial !important; | align: initial !important; | ||
} | } | ||
/* Text unter der Box starten */ | |||
/* | |||
.mw-parser-output > p:first-of-type { | .mw-parser-output > p:first-of-type { | ||
clear: both !important; | clear: both !important; | ||
} | } | ||
} | } | ||