Weitere Optionen
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 17: | Zeile 17: | ||
.ueberschrift-zentriert { | .ueberschrift-zentriert { | ||
text-align: center; | text-align: center; | ||
} | |||
/* ═══════════════════════════════════════════════ | |||
Mobile-Skalierung für alle Wiki-Extensions | |||
═══════════════════════════════════════════════ */ | |||
/* ── ExternalImage: nie breiter als Container ── */ | |||
img[style*="width:"] { | |||
max-width: 100%; | |||
} | |||
img[style*="object-fit:cover"] { | |||
height: auto; | |||
} | |||
@media screen and (max-width: 768px) { | |||
img[style*="object-fit:cover"] { | |||
height: 200px !important; | |||
} | |||
} | |||
@media screen and (max-width: 480px) { | |||
img[style*="object-fit:cover"] { | |||
height: 150px !important; | |||
} | |||
} | |||
/* ── Übersichts-Grid (Hauptseite) ── */ | |||
.wiki-overview-grid { | |||
display: grid; | |||
grid-template-columns: repeat(5, 1fr); | |||
gap: 0 10px; | |||
align-items: start; | |||
} | |||
.wiki-overview-col { | |||
min-width: 0; | |||
} | |||
@media screen and (max-width: 1000px) { | |||
.wiki-overview-grid { | |||
grid-template-columns: repeat(3, 1fr); | |||
} | |||
} | |||
@media screen and (max-width: 640px) { | |||
.wiki-overview-grid { | |||
grid-template-columns: repeat(2, 1fr); | |||
} | |||
} | |||
@media screen and (max-width: 400px) { | |||
.wiki-overview-grid { | |||
grid-template-columns: 1fr; | |||
} | |||
} | |||
/* ── ExternalGallery: responsive Spalten ── */ | |||
@media screen and (max-width: 900px) { | |||
.ext-gallery { | |||
grid-template-columns: repeat(3, 1fr) !important; | |||
} | |||
.ext-gallery-item, | |||
.ext-gallery-thumb { | |||
width: 100% !important; | |||
} | |||
} | |||
@media screen and (max-width: 600px) { | |||
.ext-gallery { | |||
grid-template-columns: repeat(2, 1fr) !important; | |||
} | |||
.ext-gallery-item, | |||
.ext-gallery-thumb { | |||
width: 100% !important; | |||
} | |||
.ext-gallery-thumb img { | |||
width: 100% !important; | |||
height: 80px !important; | |||
} | |||
} | |||
@media screen and (max-width: 360px) { | |||
.ext-gallery { | |||
grid-template-columns: 1fr !important; | |||
} | |||
} | } | ||
Version vom 1. Juni 2026, 17:52 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
h2, h3 {
margin-block-start: 0.5em;
}
/* Warning-Box: orange, kompatibel mit Light & Dark Mode */
.mw-message-box-warning {
border: 1px solid #c85000;
border-left: 4px solid #c85000;
background-color: color-mix(in srgb, #c85000 12%, transparent);
color: inherit;
padding: 0.5em 1em;
border-radius: 4px;
}
/* Zentrierte Überschrift */
.ueberschrift-zentriert {
text-align: center;
}
/* ═══════════════════════════════════════════════
Mobile-Skalierung für alle Wiki-Extensions
═══════════════════════════════════════════════ */
/* ── ExternalImage: nie breiter als Container ── */
img[style*="width:"] {
max-width: 100%;
}
img[style*="object-fit:cover"] {
height: auto;
}
@media screen and (max-width: 768px) {
img[style*="object-fit:cover"] {
height: 200px !important;
}
}
@media screen and (max-width: 480px) {
img[style*="object-fit:cover"] {
height: 150px !important;
}
}
/* ── Übersichts-Grid (Hauptseite) ── */
.wiki-overview-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 0 10px;
align-items: start;
}
.wiki-overview-col {
min-width: 0;
}
@media screen and (max-width: 1000px) {
.wiki-overview-grid {
grid-template-columns: repeat(3, 1fr);
}
}
@media screen and (max-width: 640px) {
.wiki-overview-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (max-width: 400px) {
.wiki-overview-grid {
grid-template-columns: 1fr;
}
}
/* ── ExternalGallery: responsive Spalten ── */
@media screen and (max-width: 900px) {
.ext-gallery {
grid-template-columns: repeat(3, 1fr) !important;
}
.ext-gallery-item,
.ext-gallery-thumb {
width: 100% !important;
}
}
@media screen and (max-width: 600px) {
.ext-gallery {
grid-template-columns: repeat(2, 1fr) !important;
}
.ext-gallery-item,
.ext-gallery-thumb {
width: 100% !important;
}
.ext-gallery-thumb img {
width: 100% !important;
height: 80px !important;
}
}
@media screen and (max-width: 360px) {
.ext-gallery {
grid-template-columns: 1fr !important;
}
}