Weitere Optionen
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 3: | Zeile 3: | ||
margin-block-start: 0.5em; | margin-block-start: 0.5em; | ||
} | } | ||
/* Warning-Box: orange, kompatibel mit Light & Dark Mode */ | /* Warning-Box: orange, kompatibel mit Light & Dark Mode */ | ||
.mw-message-box-warning { | .mw-message-box-warning { | ||
| Zeile 13: | Zeile 13: | ||
border-radius: 4px; | border-radius: 4px; | ||
} | } | ||
/* H2 vor dem Übersichts-Grid: Abstand nach unten reduzieren */ | /* H2 vor dem Übersichts-Grid: Abstand nach unten reduzieren */ | ||
h2.ueberschrift-zentriert { | h2.ueberschrift-zentriert { | ||
margin-bottom: 0.25em; | margin-bottom: 0.25em; | ||
} | } | ||
/* Zentrierte Überschrift */ | /* Zentrierte Überschrift */ | ||
.ueberschrift-zentriert, | .ueberschrift-zentriert, | ||
| Zeile 28: | Zeile 28: | ||
text-align: center !important; | text-align: center !important; | ||
} | } | ||
/* ═══════════════════════════════════════════════ | /* ═══════════════════════════════════════════════ | ||
Mobile-Skalierung für alle Wiki-Extensions | Mobile-Skalierung für alle Wiki-Extensions | ||
═══════════════════════════════════════════════ */ | ═══════════════════════════════════════════════ */ | ||
/* ── ExternalImage: nie breiter als Container ── */ | /* ── ExternalImage: nie breiter als Container ── */ | ||
img[style*="width:"] { | img[style*="width:"] { | ||
max-width: 100%; | max-width: 100%; | ||
} | } | ||
/* ── Übersichts-Grid (Hauptseite) ── */ | /* ── Übersichts-Grid (Hauptseite) ── */ | ||
.wiki-overview-grid { | .wiki-overview-grid { | ||
| Zeile 63: | Zeile 63: | ||
} | } | ||
} | } | ||
/* ── ExternalGallery: responsive Spalten ── */ | /* ── ExternalGallery: responsive Spalten ── */ | ||
@media screen and (max-width: 900px) { | @media screen and (max-width: 900px) { | ||
| Zeile 92: | Zeile 92: | ||
} | } | ||
} | } | ||
/* ── 2-Spalten-Grid für Collapsibles (z.B. Farmmöglichkeiten) ── */ | /* ── 2-Spalten-Grid für Collapsibles (z.B. Farmmöglichkeiten) ── */ | ||
.collapsible-grid-2 { | .collapsible-grid-2 { | ||
| Zeile 107: | Zeile 107: | ||
} | } | ||
} | } | ||
/* ── Farmmöglichkeiten: Collapsibles als Kacheln ── */ | /* ── Farmmöglichkeiten: Collapsibles als Kacheln ── */ | ||
.farm-collapsible .mw-collapsible { | .farm-collapsible .mw-collapsible { | ||
| Zeile 126: | Zeile 126: | ||
border-top: 1px solid #1573b5; | border-top: 1px solid #1573b5; | ||
} | } | ||
/* ── Abstand über Hinweis- und Warnungsboxen ── */ | /* ── Abstand über Hinweis- und Warnungsboxen ── */ | ||
.mw-message-box { | .mw-message-box { | ||
margin-top: 0.75em !important; | margin-top: 0.75em !important; | ||
} | } | ||
/* ── Wikitables: generell responsive ── */ | /* ── Wikitables: generell responsive ── */ | ||
.wikitable { | .wikitable { | ||
| Zeile 138: | Zeile 138: | ||
max-width: 100%; | max-width: 100%; | ||
} | } | ||
@media screen and (max-width: 900px) { | @media screen and (max-width: 900px) { | ||
/* Tablet: Tabellenzellen umbrechen */ | /* Tablet: Tabellenzellen umbrechen */ | ||
| Zeile 151: | Zeile 151: | ||
} | } | ||
} | } | ||
@media screen and (max-width: 500px) { | @media screen and (max-width: 500px) { | ||
/* Smartphone: eine Zelle pro Zeile */ | /* Smartphone: eine Zelle pro Zeile */ | ||
Version vom 2. Juni 2026, 17:36 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;
}
/* H2 vor dem Übersichts-Grid: Abstand nach unten reduzieren */
h2.ueberschrift-zentriert {
margin-bottom: 0.25em;
}
/* Zentrierte Überschrift */
.ueberschrift-zentriert,
h1.ueberschrift-zentriert,
h2.ueberschrift-zentriert,
h3.ueberschrift-zentriert,
h4.ueberschrift-zentriert,
h5.ueberschrift-zentriert {
text-align: center !important;
}
/* ═══════════════════════════════════════════════
Mobile-Skalierung für alle Wiki-Extensions
═══════════════════════════════════════════════ */
/* ── ExternalImage: nie breiter als Container ── */
img[style*="width:"] {
max-width: 100%;
}
/* ── Ü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;
}
}
/* ── 2-Spalten-Grid für Collapsibles (z.B. Farmmöglichkeiten) ── */
.collapsible-grid-2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px;
}
.collapsible-grid-2 .mw-collapsible {
margin: 0;
}
@media screen and (max-width: 600px) {
.collapsible-grid-2 {
grid-template-columns: 1fr;
}
}
/* ── Farmmöglichkeiten: Collapsibles als Kacheln ── */
.farm-collapsible .mw-collapsible {
border: 1px solid #1573b5;
border-radius: 8px;
overflow: hidden;
margin-bottom: 6px;
}
.farm-collapsible .mw-collapsible > *:first-child {
background: var(--color-background-secondary, #1a1a2e);
padding: 6px 10px;
font-weight: bold;
cursor: pointer;
}
.farm-collapsible .mw-collapsible-content {
padding: 6px 10px;
font-size: 14px;
border-top: 1px solid #1573b5;
}
/* ── Abstand über Hinweis- und Warnungsboxen ── */
.mw-message-box {
margin-top: 0.75em !important;
}
/* ── Wikitables: generell responsive ── */
.wikitable {
width: 100%;
max-width: 100%;
}
@media screen and (max-width: 900px) {
/* Tablet: Tabellenzellen umbrechen */
.wikitable tr {
display: flex;
flex-wrap: wrap;
}
.wikitable td,
.wikitable th {
width: 50% !important;
box-sizing: border-box;
}
}
@media screen and (max-width: 500px) {
/* Smartphone: eine Zelle pro Zeile */
.wikitable td,
.wikitable th {
width: 100% !important;
display: block;
}
}