MediaWiki:Common.css: Unterschied zwischen den Versionen
MediaWiki-Schnittstellenseite
Weitere Optionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
/* ========================================================================== | /* ========================================================================== | ||
1. SCHRIFTEN & GLOBALE ÜBERSCHRIFTEN ( | 1. SCHRIFTEN & GLOBALE ÜBERSCHRIFTEN (Systemweit) | ||
========================================================================== */ | ========================================================================== */ | ||
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400&family=Open+Sans&display=swap'); | @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400&family=Open+Sans&display=swap'); | ||
| Zeile 12: | Zeile 12: | ||
font-family: 'Montserrat', sans-serif !important; | font-family: 'Montserrat', sans-serif !important; | ||
font-weight: 200 !important; | font-weight: 200 !important; | ||
text-transform: uppercase !important; | text-transform: uppercase !important; | ||
letter-spacing: 1.5px; | letter-spacing: 1.5px; | ||
position: relative; | position: relative; | ||
| Zeile 22: | Zeile 22: | ||
/* ========================================================================== | /* ========================================================================== | ||
2. STANDARD / HELL ( | 2. STANDARD / HELL LAYOUT (Edles Off-White & Augenfreundliches Tiefblau) | ||
========================================================================== */ | ========================================================================== */ | ||
:root, body, .mw-body, #content { | :root, body, .mw-body, #content, .citizen-page-container { | ||
background-color: # | background-color: #f8fafc !important; /* Edles, sehr dezentes Off-White */ | ||
background-image: none !important; | background-image: none !important; | ||
color: #001b4c !important; /* Augenfreundliches Tiefblau statt Hartschwarz */ | color: #001b4c !important; /* Augenfreundliches Tiefblau statt Hartschwarz */ | ||
| Zeile 31: | Zeile 31: | ||
/* Textfarben im hellen Layout */ | /* Textfarben im hellen Layout */ | ||
p, li, dd, span, td, th { | p, li, dd, span, td, th, h1, h2, h3 { | ||
color: #001b4c !important; | color: #001b4c !important; | ||
} | } | ||
| Zeile 56: | Zeile 52: | ||
/* ========================================================================== | /* ========================================================================== | ||
3. | 3. SEITEN-NAVIGATION & STICKY-HEADER (Aufräumen & Tabs) | ||
========================================================================== */ | ========================================================================== */ | ||
/* Diskussion-Button systemweit komplett entfernen */ | |||
#ca-talk, | |||
.citizen-action-talk, | |||
#ca-namespaces-talk, | |||
.mw-portlet-namespaces #ca-talk, | |||
.mw-ui-icon-speechBubbles, | |||
.citizen-ui-icon-speechBubbles, | |||
.citizen-sticky-header .mw-ui-icon-wikimedia-speechBubbles { | |||
display: none !important; | |||
} | |||
/* Menüpunkt/Button im Sticky-Header restlos komprimieren */ | |||
.citizen-sticky-header-actions [href*="Diskussion:"], | |||
.citizen-sticky-header-actions [href*="talk"], | |||
} | .citizen-sticky-header-actions button[title*="Diskussion"], | ||
.citizen-sticky-header-actions .citizen-action-talk { | |||
display: none !important; | |||
width: 0 !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | |||
/* Tabs optisch beruhigen (Keine harten Rahmen, schlankes Design) */ | |||
.citizen-action-tabs a, | |||
#p-views li a, | |||
#p-cactions li a { | |||
border: none !important; | |||
background: transparent !important; | |||
font-size: 0.85em !important; | |||
text-transform: uppercase !important; | |||
letter-spacing: 1px !important; | |||
padding: 8px 12px !important; | |||
transition: color 0.2s ease !important; | |||
color: #001b4c !important; /* Standardfarbe Hell */ | |||
} | |||
/* Hover-Effekt: Tabs leuchten im Kontrastblau */ | |||
.citizen-action-tabs a:hover, | |||
#p-views li a:hover, | |||
.citizen-action-tabs .selected a { | |||
color: #0dcaf0 !important; | |||
} | |||
/* Logo-Wortmarke im ausklappbaren Seitenmenü durch Grafik ersetzen */ | |||
.citizen-drawer .mw-logo-wordmark { | |||
font-size: 0 !important; | |||
color: transparent !important; | |||
display: inline-block !important; | |||
background-image: url('/resources/assets/GOMedicalWiki-word.png') !important; | |||
background-size: contain !important; | |||
background-position: left center !important; | |||
background-repeat: no-repeat !important; | |||
width: 180px !important; | |||
height: 35px !important; | |||
vertical-align: middle !important; | |||
margin-left: 10px !important; | |||
} | } | ||
/* ========================================================================== | /* ========================================================================== | ||
4. PERMANENTER FUSSTEXT-BEREICH ( | 4. PERMANENTER FUSSTEXT-BEREICH (Fixes Anthrazit #171717) | ||
========================================================================== */ | ========================================================================== */ | ||
.citizen-footer { | .citizen-footer { | ||
background-color: #171717 !important; | background-color: #171717 !important; | ||
| Zeile 109: | Zeile 123: | ||
} | } | ||
/* - | /* Überflüssige Standard-Elemente im Footer ausblenden */ | ||
.citizen-footer__sitetitle .mw-logo-wordmark, | |||
#footer-icons, | |||
.citizen-footer__sitetitle .mw-logo- | .citizen-footer__bottom, | ||
.citizen-footer__sitetitle .mw-logo-icon { | |||
display: none !important; | display: none !important; | ||
visibility: hidden !important; | visibility: hidden !important; | ||
width: 0 !important; | width: 0 !important; | ||
| Zeile 131: | Zeile 135: | ||
} | } | ||
/* | /* Container für das große Kombi-Logo im Footer nutzen */ | ||
.citizen-footer__sitetitle { | .citizen-footer__sitetitle { | ||
display: block !important; | display: block !important; | ||
width: 260px !important; | width: 260px !important; | ||
height: 100px !important; | height: 100px !important; | ||
background-image: url('/resources/assets/GOMedicalWiki-gross.png') !important; | background-image: url('/resources/assets/GOMedicalWiki-gross.png') !important; | ||
background-size: contain !important; | background-size: contain !important; | ||
| Zeile 142: | Zeile 146: | ||
} | } | ||
/* Links im Footer untereinander anordnen & farblich anpassen */ | |||
/* Links im Footer | |||
#footer-places ul { | #footer-places ul { | ||
display: flex !important; | display: flex !important; | ||
flex-direction: column !important; | flex-direction: column !important; | ||
gap: 4px !important; | gap: 4px !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
list-style: none !important; | list-style: none !important; | ||
} | } | ||
| Zeile 165: | Zeile 160: | ||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
#footer-places li a { | |||
color: #94a3b8 !important; | |||
# | |||
} | } | ||
#footer-places li a:hover { | |||
color: #0dcaf0 !important; | |||
color: #0dcaf0 | |||
} | } | ||
/* ========================================================================== | /* ========================================================================== | ||
5. EDITOR & TEXTFELDER ALS SCHWEBENDE KARTEN (Cards View) | |||
========================================================================== */ | ========================================================================== */ | ||
/* Globale Wrapper-Hintergründe im Editor | /* Globale Wrapper-Hintergründe im Editor für den Schwebeeffekt säubern */ | ||
.wikiEditor-ui, | .wikiEditor-ui, | ||
.wikiEditor-ui-view, | .wikiEditor-ui-view, | ||
| Zeile 272: | Zeile 185: | ||
} | } | ||
/* | /* Schwebende Karten für CodeMirror, Standard-Textareas und Inputs */ | ||
.CodeMirror, | .CodeMirror, | ||
#wpTextbox1, | #wpTextbox1, | ||
.oo-ui-textInputWidget .oo-ui-inputWidget-input { | .oo-ui-textInputWidget .oo-ui-inputWidget-input { | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
color: #001b4c !important; | color: #001b4c !important; | ||
border: 1px solid #e2e8f0 !important; | border: 1px solid #e2e8f0 !important; | ||
border-radius: 8px !important; | border-radius: 8px !important; | ||
box-shadow: 0 10px 25px -5px rgba(0, 27, 76, 0.08), | box-shadow: 0 10px 25px -5px rgba(0, 27, 76, 0.08), | ||
0 8px 10px -6px rgba(0, 27, 76, 0.08) !important; | 0 8px 10px -6px rgba(0, 27, 76, 0.08) !important; | ||
padding: 15px !important; | padding: 15px !important; | ||
transition: border-color 0.2s ease, box-shadow 0.2s ease !important; | transition: border-color 0.2s ease, box-shadow 0.2s ease !important; | ||
} | } | ||
/* | /* Zeilennummern im CodeMirror rein weiß hinterlegen */ | ||
.CodeMirror-gutters { | .CodeMirror-gutters { | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
| Zeile 295: | Zeile 205: | ||
} | } | ||
/* Fokus-Zustand | /* Fokus-Zustand bei aktivem Editieren */ | ||
.CodeMirror-focused, | .CodeMirror-focused, | ||
#wpTextbox1:focus, | #wpTextbox1:focus, | ||
.oo-ui-textInputWidget-focused .oo-ui-inputWidget-input { | .oo-ui-textInputWidget-focused .oo-ui-inputWidget-input { | ||
border-color: #0dcaf0 !important; | border-color: #0dcaf0 !important; | ||
box-shadow: 0 20px 25px -5px rgba(0, 27, 76, 0.12), | box-shadow: 0 20px 25px -5px rgba(0, 27, 76, 0.12), | ||
0 10px 10px -5px rgba(0, 27, 76, 0.06) !important; | 0 10px 10px -5px rgba(0, 27, 76, 0.06) !important; | ||
} | } | ||
/* ========================================================================== | /* ========================================================================== | ||
6. DARK DESIGN MEDIA QUERY (Umfassender Schutz für alle Elemente) | |||
========================================================================== */ | ========================================================================== */ | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
/* | /* Hintergrund & Text */ | ||
:root, body, .mw-body, #content, .citizen-page-container { | :root, body, .mw-body, #content, .citizen-page-container { | ||
background-color: #1a222d !important; | background-color: #1a222d !important; | ||
color: #cbd5e1 !important; | |||
} | |||
p, li, dd, span, td, th { | |||
color: #cbd5e1 !important; | |||
} | |||
.mw-header, .citizen-sidebar, .citizen-drawer, .mw-portlet { | |||
background-color: #131a22 !important; | |||
border-color: #2e3c4e !important; | |||
} | |||
h1, h2, h3 { | |||
color: #ffffff !important; | |||
} | |||
/* Links & Überschriften-Linien */ | |||
a, a.external { | |||
color: #0dcaf0 !important; | |||
} | |||
h1::after, h2::after, h3::after { | |||
background: linear-gradient(to right, #0dcaf0 0%, #0dcaf0 60%, #2e3c4e 60%, #2e3c4e 100%) !important; | |||
} | |||
/* Suchfeld & Navigation-Tabs */ | |||
.mw-search-form-wrapper, .oo-ui-textInputWidget-type-search input { | |||
background-color: #131a22 !important; | |||
color: #cbd5e1 !important; | |||
border-color: #2e3c4e !important; | |||
} | |||
.citizen-action-tabs a, #p-views li a { | |||
color: #cbd5e1 !important; | |||
} | } | ||
/* | .citizen-action-tabs a:hover, #p-views li a:hover { | ||
color: #0dcaf0 !important; | |||
} | |||
/* Editor-Karten im Dark Mode */ | |||
.CodeMirror, | .CodeMirror, | ||
.CodeMirror-gutters, | .CodeMirror-gutters, | ||
| Zeile 323: | Zeile 271: | ||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important; | box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important; | ||
} | } | ||
.CodeMirror-focused, | .CodeMirror-focused, | ||
#wpTextbox1:focus, | #wpTextbox1:focus, | ||
Version vom 31. Mai 2026, 18:12 Uhr
/* ==========================================================================
1. SCHRIFTEN & GLOBALE ÜBERSCHRIFTEN (Systemweit)
========================================================================== */
@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;
}
/* Überschriften: Montserrat, sehr schlank und in ALL CAPS */
h1, h2, h3 {
font-family: 'Montserrat', sans-serif !important;
font-weight: 200 !important;
text-transform: uppercase !important;
letter-spacing: 1.5px;
position: relative;
display: table; /* Korrekte Längenberechnung für die Unterstreichung */
margin-bottom: 25px;
padding-bottom: 8px;
border-bottom: none !important; /* MediaWiki-Standard entfernen */
}
/* ==========================================================================
2. STANDARD / HELL LAYOUT (Edles Off-White & Augenfreundliches Tiefblau)
========================================================================== */
:root, body, .mw-body, #content, .citizen-page-container {
background-color: #f8fafc !important; /* Edles, sehr dezentes Off-White */
background-image: none !important;
color: #001b4c !important; /* Augenfreundliches Tiefblau statt Hartschwarz */
}
/* Textfarben im hellen Layout */
p, li, dd, span, td, th, h1, h2, h3 {
color: #001b4c !important;
}
/* Hyperlinks im hellen Layout (Verwendung des Kontrastblaus #0dcaf0) */
a, a.external {
color: #0dcaf0 !important;
}
/* Unterstreichung im hellen Layout */
h1::after, h2::after, h3::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
height: 2px;
width: 120%; /* 20% Überhang */
background: linear-gradient(to right, #0dcaf0 0%, #0dcaf0 60%, #e5e5e5 60%, #e5e5e5 100%);
}
/* ==========================================================================
3. SEITEN-NAVIGATION & STICKY-HEADER (Aufräumen & Tabs)
========================================================================== */
/* Diskussion-Button systemweit komplett entfernen */
#ca-talk,
.citizen-action-talk,
#ca-namespaces-talk,
.mw-portlet-namespaces #ca-talk,
.mw-ui-icon-speechBubbles,
.citizen-ui-icon-speechBubbles,
.citizen-sticky-header .mw-ui-icon-wikimedia-speechBubbles {
display: none !important;
}
/* Menüpunkt/Button im Sticky-Header restlos komprimieren */
.citizen-sticky-header-actions [href*="Diskussion:"],
.citizen-sticky-header-actions [href*="talk"],
.citizen-sticky-header-actions button[title*="Diskussion"],
.citizen-sticky-header-actions .citizen-action-talk {
display: none !important;
width: 0 !important;
margin: 0 !important;
padding: 0 !important;
}
/* Tabs optisch beruhigen (Keine harten Rahmen, schlankes Design) */
.citizen-action-tabs a,
#p-views li a,
#p-cactions li a {
border: none !important;
background: transparent !important;
font-size: 0.85em !important;
text-transform: uppercase !important;
letter-spacing: 1px !important;
padding: 8px 12px !important;
transition: color 0.2s ease !important;
color: #001b4c !important; /* Standardfarbe Hell */
}
/* Hover-Effekt: Tabs leuchten im Kontrastblau */
.citizen-action-tabs a:hover,
#p-views li a:hover,
.citizen-action-tabs .selected a {
color: #0dcaf0 !important;
}
/* Logo-Wortmarke im ausklappbaren Seitenmenü durch Grafik ersetzen */
.citizen-drawer .mw-logo-wordmark {
font-size: 0 !important;
color: transparent !important;
display: inline-block !important;
background-image: url('/resources/assets/GOMedicalWiki-word.png') !important;
background-size: contain !important;
background-position: left center !important;
background-repeat: no-repeat !important;
width: 180px !important;
height: 35px !important;
vertical-align: middle !important;
margin-left: 10px !important;
}
/* ==========================================================================
4. PERMANENTER FUSSTEXT-BEREICH (Fixes Anthrazit #171717)
========================================================================== */
.citizen-footer {
background-color: #171717 !important;
background-image: none !important;
border-top: 1px solid #2b2b2b !important;
padding: 30px 20px !important;
}
/* Überflüssige Standard-Elemente im Footer ausblenden */
.citizen-footer__sitetitle .mw-logo-wordmark,
#footer-icons,
.citizen-footer__bottom,
.citizen-footer__sitetitle .mw-logo-icon {
display: none !important;
visibility: hidden !important;
width: 0 !important;
height: 0 !important;
padding: 0 !important;
}
/* Container für das große Kombi-Logo im Footer nutzen */
.citizen-footer__sitetitle {
display: block !important;
width: 260px !important;
height: 100px !important;
background-image: url('/resources/assets/GOMedicalWiki-gross.png') !important;
background-size: contain !important;
background-position: left center !important;
background-repeat: no-repeat !important;
}
/* Links im Footer untereinander anordnen & farblich anpassen */
#footer-places ul {
display: flex !important;
flex-direction: column !important;
gap: 4px !important;
padding: 0 !important;
margin: 0 !important;
list-style: none !important;
}
#footer-places li {
display: block !important;
margin: 0 !important;
}
#footer-places li a {
color: #94a3b8 !important;
}
#footer-places li a:hover {
color: #0dcaf0 !important;
}
/* ==========================================================================
5. EDITOR & TEXTFELDER ALS SCHWEBENDE KARTEN (Cards View)
========================================================================== */
/* Globale Wrapper-Hintergründe im Editor für den Schwebeeffekt säubern */
.wikiEditor-ui,
.wikiEditor-ui-view,
.wikiEditor-ui-left,
.wikiEditor-ui-top,
.mw-editform,
#editform {
background: transparent !important;
background-color: transparent !important;
border: none !important;
}
/* Schwebende Karten für CodeMirror, Standard-Textareas und Inputs */
.CodeMirror,
#wpTextbox1,
.oo-ui-textInputWidget .oo-ui-inputWidget-input {
background-color: #ffffff !important;
color: #001b4c !important;
border: 1px solid #e2e8f0 !important;
border-radius: 8px !important;
box-shadow: 0 10px 25px -5px rgba(0, 27, 76, 0.08),
0 8px 10px -6px rgba(0, 27, 76, 0.08) !important;
padding: 15px !important;
transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
/* Zeilennummern im CodeMirror rein weiß hinterlegen */
.CodeMirror-gutters {
background-color: #ffffff !important;
border-right: 1px solid #e2e8f0 !important;
}
/* Fokus-Zustand bei aktivem Editieren */
.CodeMirror-focused,
#wpTextbox1:focus,
.oo-ui-textInputWidget-focused .oo-ui-inputWidget-input {
border-color: #0dcaf0 !important;
box-shadow: 0 20px 25px -5px rgba(0, 27, 76, 0.12),
0 10px 10px -5px rgba(0, 27, 76, 0.06) !important;
}
/* ==========================================================================
6. DARK DESIGN MEDIA QUERY (Umfassender Schutz für alle Elemente)
========================================================================== */
@media (prefers-color-scheme: dark) {
/* Hintergrund & Text */
:root, body, .mw-body, #content, .citizen-page-container {
background-color: #1a222d !important;
color: #cbd5e1 !important;
}
p, li, dd, span, td, th {
color: #cbd5e1 !important;
}
.mw-header, .citizen-sidebar, .citizen-drawer, .mw-portlet {
background-color: #131a22 !important;
border-color: #2e3c4e !important;
}
h1, h2, h3 {
color: #ffffff !important;
}
/* Links & Überschriften-Linien */
a, a.external {
color: #0dcaf0 !important;
}
h1::after, h2::after, h3::after {
background: linear-gradient(to right, #0dcaf0 0%, #0dcaf0 60%, #2e3c4e 60%, #2e3c4e 100%) !important;
}
/* Suchfeld & Navigation-Tabs */
.mw-search-form-wrapper, .oo-ui-textInputWidget-type-search input {
background-color: #131a22 !important;
color: #cbd5e1 !important;
border-color: #2e3c4e !important;
}
.citizen-action-tabs a, #p-views li a {
color: #cbd5e1 !important;
}
.citizen-action-tabs a:hover, #p-views li a:hover {
color: #0dcaf0 !important;
}
/* Editor-Karten im Dark Mode */
.CodeMirror,
.CodeMirror-gutters,
#wpTextbox1,
.oo-ui-textInputWidget .oo-ui-inputWidget-input {
background-color: #131a22 !important;
color: #cbd5e1 !important;
border-color: #2e3c4e !important;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}
.CodeMirror-focused,
#wpTextbox1:focus,
.oo-ui-textInputWidget-focused .oo-ui-inputWidget-input {
border-color: #0dcaf0 !important;
}
}