MediaWiki:Common.css: Unterschied zwischen den Versionen
MediaWiki-Schnittstellenseite
Weitere Optionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
/* ========================================================================== | /* ========================================================================== | ||
1. SCHRIFTEN & GLOBALE ÜBERSCHRIFTEN (Gilt für Hell UND Dunkel) | |||
========================================================================== */ | |||
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400&family=Open+Sans&display=swap'); | |||
body { | |||
font-family: 'Open Sans', sans-serif !important; | |||
} | |||
h1, h2, h3 { | |||
font-family: 'Montserrat', sans-serif !important; | |||
font-weight: 200 !important; | |||
position: relative; | |||
display: table; /* Wichtig für die korrekte Längenberechnung der Joomla-Linie */ | |||
margin-bottom: 25px; | |||
padding-bottom: 8px; | |||
border-bottom: none !important; /* MediaWiki-Standard entfernen */ | |||
} | |||
/* ========================================================================== | |||
2. STANDARD / HELL (Elegantes Weiß) | |||
========================================================================== */ | |||
:root, body, .mw-body, #content { | |||
background-color: #ffffff !important; | |||
background-image: none !important; | |||
color: #333333; | |||
} | |||
h1, h2, h3 { color: #333333; } | |||
/* Linie im Hellen */ | |||
h1::after, h2::after, h3::after { | |||
content: ""; | |||
position: absolute; | |||
left: 0; | |||
bottom: 0; | |||
height: 2px; | |||
width: 120%; /* 20% Überhang */ | |||
background: linear-gradient(to right, #00adef 0%, #00adef 60%, #e5e5e5 60%, #e5e5e5 100%); | |||
} | |||
/* ========================================================================== | |||
3. AUTOMATISCH ODER ERZWUNGEN DUNKTEL (Go-Medical Dark Schema) | |||
========================================================================== */ | ========================================================================== */ | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
:root, body, .mw-body, #content, .citizen-page-container { | :root, body, .mw-body, #content, .citizen-page-container { | ||
background-color: #1a222d !important; | background-color: #1a222d !important; | ||
background-image: none !important; | background-image: none !important; | ||
color: #f1f5f9 !important; | color: #f1f5f9 !important; | ||
} | } | ||
.mw-header, .citizen-sidebar, .citizen-drawer, .mw-portlet { | .mw-header, .citizen-sidebar, .citizen-drawer, .mw-portlet { | ||
background-color: #131a22 !important; | background-color: #131a22 !important; | ||
border-color: #2e3c4e !important; | border-color: #2e3c4e !important; | ||
} | } | ||
h1, h2, h3 { color: #ffffff !important; } | |||
h1, h2, h3 { | |||
/* | /* Linie im Dunklen wechselt im rechten Part zu Blau-Grau */ | ||
h1::after, h2::after, h3::after { | h1::after, h2::after, h3::after { | ||
background: linear-gradient(to right, | background: linear-gradient(to right, #00adef 0%, #00adef 60%, #2e3c4e 60%, #2e3c4e 100%) !important; | ||
} | } | ||
a, a.external { color: #38bdf8 !important; } | |||
a, a.external { | } | ||
/* ========================================================================== | |||
4. WIKIPEDIA-ICON (Aus Schritt 1) | |||
========================================================================== */ | |||
.wp-icon-link a.external { | |||
background-image: url(https://upload.wikimedia.org/wikipedia/commons/7/77/Wikipedia_svg_logo.svg) !important; | |||
padding-left: 20px !important; | |||
background-size: 16px 16px !important; | |||
background-position: center left !important; | |||
background-repeat: no-repeat !important; | |||
} | } | ||
Version vom 31. Mai 2026, 15:58 Uhr
/* ==========================================================================
1. SCHRIFTEN & GLOBALE ÜBERSCHRIFTEN (Gilt für Hell UND Dunkel)
========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400&family=Open+Sans&display=swap');
body {
font-family: 'Open Sans', sans-serif !important;
}
h1, h2, h3 {
font-family: 'Montserrat', sans-serif !important;
font-weight: 200 !important;
position: relative;
display: table; /* Wichtig für die korrekte Längenberechnung der Joomla-Linie */
margin-bottom: 25px;
padding-bottom: 8px;
border-bottom: none !important; /* MediaWiki-Standard entfernen */
}
/* ==========================================================================
2. STANDARD / HELL (Elegantes Weiß)
========================================================================== */
:root, body, .mw-body, #content {
background-color: #ffffff !important;
background-image: none !important;
color: #333333;
}
h1, h2, h3 { color: #333333; }
/* Linie im Hellen */
h1::after, h2::after, h3::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
height: 2px;
width: 120%; /* 20% Überhang */
background: linear-gradient(to right, #00adef 0%, #00adef 60%, #e5e5e5 60%, #e5e5e5 100%);
}
/* ==========================================================================
3. AUTOMATISCH ODER ERZWUNGEN DUNKTEL (Go-Medical Dark Schema)
========================================================================== */
@media (prefers-color-scheme: dark) {
:root, body, .mw-body, #content, .citizen-page-container {
background-color: #1a222d !important;
background-image: none !important;
color: #f1f5f9 !important;
}
.mw-header, .citizen-sidebar, .citizen-drawer, .mw-portlet {
background-color: #131a22 !important;
border-color: #2e3c4e !important;
}
h1, h2, h3 { color: #ffffff !important; }
/* Linie im Dunklen wechselt im rechten Part zu Blau-Grau */
h1::after, h2::after, h3::after {
background: linear-gradient(to right, #00adef 0%, #00adef 60%, #2e3c4e 60%, #2e3c4e 100%) !important;
}
a, a.external { color: #38bdf8 !important; }
}
/* ==========================================================================
4. WIKIPEDIA-ICON (Aus Schritt 1)
========================================================================== */
.wp-icon-link a.external {
background-image: url(https://upload.wikimedia.org/wikipedia/commons/7/77/Wikipedia_svg_logo.svg) !important;
padding-left: 20px !important;
background-size: 16px 16px !important;
background-position: center left !important;
background-repeat: no-repeat !important;
}