MediaWiki:Common.css: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 852: | Zeile 852: | ||
margin-top: 0 !important; /* Entfernt Abstand oben beim ersten Absatz nach der Biobox */ | margin-top: 0 !important; /* Entfernt Abstand oben beim ersten Absatz nach der Biobox */ | ||
} | } | ||
/* ========== | /* ========== HAUPTSEITE: Responsive Layout (nur Mobile) ========== */ | ||
@media (max-width: 800px) { | @media (max-width: 800px) { | ||
/* News (3 Spalten) -> untereinander (nur Hauptseite) */ | |||
body.page-Hauptseite .startseite-news tr { display: block; } | |||
body.page-Hauptseite .startseite-news td { | |||
/* News (3 Spalten) -> untereinander */ | |||
body.page-Hauptseite | |||
body.page-Hauptseite | |||
display: block; | display: block; | ||
width: 100% !important; | width: 100% !important; | ||
| Zeile 875: | Zeile 863: | ||
} | } | ||
/* Box-Reihen (2er/3er/4er) -> untereinander */ | /* Box-Reihen (2er/3er/4er) -> untereinander (nur Hauptseite) */ | ||
body.page-Hauptseite .startseite-boxrow, | body.page-Hauptseite .startseite-boxrow, | ||
body.page-Hauptseite .startseite-boxrow tbody, | body.page-Hauptseite .startseite-boxrow tbody, | ||
body.page-Hauptseite .startseite-boxrow tr, | body.page-Hauptseite .startseite-boxrow tr, | ||
body.page-Hauptseite .startseite-boxrow td { | |||
body.page-Hauptseite | |||
display: block; | display: block; | ||
width: 100% !important; | width: 100% !important; | ||
| Zeile 889: | Zeile 873: | ||
} | } | ||
/* Spacer-Zellen | /* Spacer-Zellen ausblenden */ | ||
body.page-Hauptseite | body.page-Hauptseite .startseite-spacer { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* Abstand zwischen Boxen (nur | /* Abstand zwischen den Boxen (nur echte Box-Zellen) */ | ||
body.page-Hauptseite | body.page-Hauptseite .startseite-boxrow td[style*="border:1px solid #ef9a9a"] { | ||
margin-bottom: 12px; | margin-bottom: 12px; | ||
} | } | ||
body.page-Hauptseite | body.page-Hauptseite .startseite-boxrow td[style*="border:1px solid #ef9a9a"]:last-child { | ||
margin-bottom: 0; | margin-bottom: 0; | ||
} | |||
/* Optional: Bilder in Boxen auf Mobile nicht links quetschen */ | |||
body.page-Hauptseite .startseite-boxrow img { | |||
max-width: 100%; | |||
height: auto; | |||
} | } | ||
} | } | ||