MediaWiki:Common.css
Erscheinungsbild
Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
/* =========================
Infobox-Wrapper
========================= */
.infobox-container {
float: right !important;
clear: right !important;
width: 22em;
max-width: 100%;
margin: 0 0 1rem 1rem;
box-sizing: border-box;
}
/* =========================
Infobox-Basis
========================= */
table.infobox {
width: 100%;
background: #ffffff;
color: #111827;
border: 1px solid #d9d9e3;
border-collapse: separate;
border-spacing: 0;
border-radius: 12px;
overflow: hidden;
font-size: 90%;
line-height: 1.35;
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
}
/* =========================
Titelzeile
========================= */
table.infobox .infobox-title {
background: linear-gradient(180deg, #e9efff 0%, #dfe7ff 100%);
color: #1f2a44;
text-align: center;
font-weight: 700;
font-size: 1.05em;
padding: 0.75rem 0.9rem;
border-bottom: 1px solid #d9d9e3;
}
/* =========================
optionales Bildfeld
========================= */
table.infobox .infobox-media {
text-align: center;
padding: 0.7rem 0.9rem 0.5rem;
background: #fbfcff;
border-bottom: 1px solid #d9d9e3;
}
table.infobox .infobox-media img {
max-width: 100%;
height: auto;
border-radius: 8px;
}
/* =========================
Standardzellen
========================= */
table.infobox th,
table.infobox td {
vertical-align: top;
padding: 0.55rem 0.9rem;
border-top: 1px solid #ececf3;
}
table.infobox th {
width: 42%;
color: #6b7280;
font-weight: 600;
text-align: left;
background: #fcfcfe;
}
table.infobox td {
background: #ffffff;
word-break: break-word;
}
/* Zebra nur für Datenzeilen */
table.infobox tbody tr:nth-child(even) th,
table.infobox tbody tr:nth-child(even) td {
background: #fafafa;
}
/* Erste Inhaltszeile nicht doppelt trennen, falls direkt nach Titel/Bild */
table.infobox tr:first-child th,
table.infobox tr:first-child td {
border-top: none;
}
/* Links innerhalb der Infobox */
table.infobox a {
word-break: break-word;
}
/* =========================
Mobile Darstellung
========================= */
@media (max-width: 768px) {
.infobox-container {
float: none !important;
clear: both !important;
width: 100%;
margin: 0 0 1rem 0;
}
table.infobox th,
table.infobox td {
display: block;
width: 100%;
box-sizing: border-box;
}
table.infobox th {
padding-bottom: 0.2rem;
}
table.infobox td {
padding-top: 0.2rem;
}
}