Weitere Optionen
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 172: | Zeile 172: | ||
} | } | ||
/* Tablet: 2 Spalten */ | /* Tablet Hochformat & kleiner: 2 Spalten */ | ||
@media screen and (max-width: | @media screen and (max-width: 700px) { | ||
.tile-grid, | .tile-grid, | ||
.tile-grid tbody, | .tile-grid tbody, | ||
| Zeile 189: | Zeile 189: | ||
} | } | ||
/* Smartphone: 1 Spalte */ | /* Smartphone Hochformat: 1 Spalte */ | ||
@media screen and (max-width: | @media screen and (max-width: 420px) { | ||
.tile-grid td { | .tile-grid td { | ||
display: block; | display: block; | ||
Version vom 2. Juni 2026, 17:46 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;
}
/* ── Kachel-Tabellen: responsive (Klasse farm-grid) ── */
.farm-grid {
width: 100%;
}
.farm-grid td {
vertical-align: top;
box-sizing: border-box;
}
@media screen and (max-width: 900px) {
/* Tablet: 2 Kacheln nebeneinander */
.farm-grid tr {
display: flex;
flex-wrap: wrap;
}
.farm-grid td {
width: 50% !important;
}
}
@media screen and (max-width: 500px) {
/* Smartphone: 1 Kachel pro Zeile */
.farm-grid td {
width: 100% !important;
}
}
/* ── Kacheltabellen: responsive (tile-grid) ── */
.tile-grid {
width: 100%;
border-collapse: separate;
border-spacing: 6px;
}
/* Desktop: 3 Spalten gleichmäßig */
.tile-grid td {
width: 33%;
}
/* Tablet Hochformat & kleiner: 2 Spalten */
@media screen and (max-width: 700px) {
.tile-grid,
.tile-grid tbody,
.tile-grid tr {
display: block;
width: 100%;
}
.tile-grid td {
display: inline-block;
width: calc(50% - 10px);
box-sizing: border-box;
vertical-align: top;
margin: 3px;
}
}
/* Smartphone Hochformat: 1 Spalte */
@media screen and (max-width: 420px) {
.tile-grid td {
display: block;
width: calc(100% - 6px);
margin: 3px;
}
}