MediaWiki:Mobile.css: Unterschied zwischen den Versionen
Die Seite wurde neu angelegt: „→Das CSS hier wird für die Benutzer der mobilen Website geladen.: →===== Biobox – MOBIL =====: .mw-parser-output table.biobox { float: none !important; clear: both !important; display: block !important; width: 100% !important; max-width: 100% !important; margin: 0 0 1em 0 !important; box-sizing: border-box; } →Bild responsive: .mw-parser-output table.biobox img { max-width: 100% !important; height: auto !important; disp…“ |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
/* ===== Biobox mobil reparieren ===== */ | |||
/* ===== Biobox | |||
.mw-parser-output table.biobox { | .mw-parser-output table.biobox { | ||
float: none !important; | float: none !important; | ||
| Zeile 9: | Zeile 8: | ||
margin: 0 0 1em 0 !important; | margin: 0 0 1em 0 !important; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
border: 1px solid #c8ccd1; /* sauberer Rahmen */ | |||
background: #fff; | |||
} | } | ||
/* Bild | /* Zellen & Bild responsiv */ | ||
.mw-parser-output table.biobox td, | |||
.mw-parser-output table.biobox th { | |||
padding: 0.25em 0.4em !important; | |||
vertical-align: top; | |||
border: 0; | |||
} | |||
.mw-parser-output table.biobox img { | .mw-parser-output table.biobox img { | ||
max-width: 100% !important; | max-width: 100% !important; | ||
| Zeile 18: | Zeile 25: | ||
} | } | ||
/* | /* Die direkt folgende rechte Social-Icons-Tabelle neutralisieren */ | ||
.mw-parser-output table.biobox + table[align="right"] { | .mw-parser-output table.biobox + table[align="right"] { | ||
float: none !important; | float: none !important; | ||
| Zeile 24: | Zeile 31: | ||
width: 100% !important; | width: 100% !important; | ||
margin: 0 0 1em 0 !important; | margin: 0 0 1em 0 !important; | ||
display: block !important; | |||
box-sizing: border-box; | |||
} | } | ||
/* Inhalt unter der | /* Falls Social-Icons weitere rechte Tabellen enthalten, alle neutralisieren */ | ||
.mw-parser-output > p:first-of-type { | .mw-parser-output table.biobox ~ table[align="right"] { | ||
float: none !important; | |||
width: 100% !important; | |||
margin: 0 0 1em 0 !important; | |||
} | |||
/* Textfluss: Inhalt unter der Box beginnen */ | |||
.mw-parser-output > p:first-of-type, | |||
.mw-parser-output .toc { | |||
clear: both !important; | clear: both !important; | ||
} | |||
/* Generelle Sicherheit: Tabellen brechen nicht aus dem Viewport */ | |||
.mw-parser-output table { | |||
max-width: 100%; | |||
overflow-x: auto; | |||
display: block; | |||
} | } | ||