MediaWiki:Timeless.css: Unterschied zwischen den Versionen
Aus The Alchenomicon Wiki
Gk (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Gk (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 18: | Zeile 18: | ||
===================================================================== */ | ===================================================================== */ | ||
:root { | :root | ||
{ | |||
color-scheme: light; | color-scheme: light; | ||
| Zeile 77: | Zeile 78: | ||
===================================================================== */ | ===================================================================== */ | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) | ||
:root { | { | ||
:root | |||
{ | |||
color-scheme: dark; | color-scheme: dark; | ||
| Zeile 109: | Zeile 112: | ||
===================================================================== */ | ===================================================================== */ | ||
body.mediawiki { | body.mediawiki | ||
{ | |||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
| Zeile 116: | Zeile 120: | ||
} | } | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) | ||
body.mediawiki { | { | ||
body.mediawiki | |||
{ | |||
background-image: var(--bi-body) !important; | background-image: var(--bi-body) !important; | ||
background-size: cover !important; | background-size: cover !important; | ||
| Zeile 126: | Zeile 132: | ||
} | } | ||
#mw-wrapper { | #mw-wrapper | ||
{ | |||
padding-top: 0px !important; | padding-top: 0px !important; | ||
} | } | ||
| Zeile 135: | Zeile 142: | ||
===================================================================== */ | ===================================================================== */ | ||
#mw-header-container { | #mw-header-container | ||
{ | |||
position: fixed !important; | position: fixed !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
| Zeile 147: | Zeile 155: | ||
} | } | ||
#mw-header { | #mw-header | ||
{ | |||
width: 100%; | width: 100%; | ||
margin: 0 !important; | margin: 0 !important; | ||
| Zeile 157: | Zeile 166: | ||
} | } | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) | ||
#mw-header { | { | ||
#mw-header | |||
{ | |||
border-left-color: #1a1a1a !important; | border-left-color: #1a1a1a !important; | ||
border-right-color: #1a1a1a !important; | border-right-color: #1a1a1a !important; | ||
| Zeile 164: | Zeile 175: | ||
} | } | ||
#p-logo-text { | #p-logo-text | ||
{ | |||
flex: 1 !important; | flex: 1 !important; | ||
display: flex !important; | display: flex !important; | ||
| Zeile 175: | Zeile 187: | ||
} | } | ||
#p-banner { | #p-banner | ||
{ | |||
display: flex !important; | display: flex !important; | ||
align-items: center !important; | align-items: center !important; | ||
| Zeile 185: | Zeile 198: | ||
} | } | ||
#p-banner a { | #p-banner a | ||
{ | |||
color: var(--text-header) !important; | color: var(--text-header) !important; | ||
} | } | ||
#p-search { | #p-search | ||
{ | |||
flex: 4 !important; | flex: 4 !important; | ||
} | } | ||
/* Suchfeld im Header */ | /* Suchfeld im Header */ | ||
#searchInput { | #searchInput | ||
{ | |||
background: #3a2d1e !important; | background: #3a2d1e !important; | ||
color: #e8dfc8 !important; | color: #e8dfc8 !important; | ||
| Zeile 200: | Zeile 216: | ||
} | } | ||
#searchInput::placeholder { | #searchInput::placeholder | ||
{ | |||
color: #8a7a60 !important; | color: #8a7a60 !important; | ||
} | } | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) | ||
#searchInput { | { | ||
#searchInput | |||
{ | |||
background: #222 !important; | background: #222 !important; | ||
color: #ccc !important; | color: #ccc !important; | ||
border-color: #444 !important; | border-color: #444 !important; | ||
} | } | ||
#searchInput::placeholder { | #searchInput::placeholder | ||
{ | |||
color: #666 !important; | color: #666 !important; | ||
} | } | ||
} | } | ||
#user-tools { | #user-tools | ||
{ | |||
flex: 1 !important; | flex: 1 !important; | ||
display: flex !important; | display: flex !important; | ||
| Zeile 224: | Zeile 245: | ||
#user-tools a, | #user-tools a, | ||
#personal a { | #personal a | ||
{ | |||
color: #c8b89a !important; | color: #c8b89a !important; | ||
} | } | ||
| Zeile 230: | Zeile 252: | ||
/* Verstecke Timeless-Farbbalken */ | /* Verstecke Timeless-Farbbalken */ | ||
#mw-header-hack, | #mw-header-hack, | ||
#mw-header-nav-hack { | #mw-header-nav-hack | ||
{ | |||
display: none !important; | display: none !important; | ||
} | } | ||
| Zeile 239: | Zeile 262: | ||
===================================================================== */ | ===================================================================== */ | ||
#mw-content-container { | #mw-content-container | ||
{ | |||
display: flex !important; | display: flex !important; | ||
justify-content: center !important; | justify-content: center !important; | ||
| Zeile 245: | Zeile 269: | ||
} | } | ||
#mw-content-block { | #mw-content-block | ||
{ | |||
width: 80%; | width: 80%; | ||
margin: 0; | margin: 0; | ||
| Zeile 254: | Zeile 279: | ||
} | } | ||
#mw-content-wrapper { | #mw-content-wrapper | ||
{ | |||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
| Zeile 263: | Zeile 289: | ||
#mw-content, | #mw-content, | ||
#content { | #content | ||
{ | |||
background: transparent !important; | background: transparent !important; | ||
color: var(--text-primary) !important; | color: var(--text-primary) !important; | ||
| Zeile 269: | Zeile 296: | ||
/* Seitenüberschrift */ | /* Seitenüberschrift */ | ||
h1.firstHeading { | h1.firstHeading | ||
{ | |||
color: var(--text-heading) !important; | color: var(--text-heading) !important; | ||
border-bottom: 1px solid var(--border-strong) !important; | border-bottom: 1px solid var(--border-strong) !important; | ||
| Zeile 277: | Zeile 305: | ||
.mw-parser-output h2, | .mw-parser-output h2, | ||
.mw-parser-output h3, | .mw-parser-output h3, | ||
.mw-parser-output h4 { | .mw-parser-output h4 | ||
{ | |||
color: var(--text-heading) !important; | color: var(--text-heading) !important; | ||
border-bottom: 1px solid var(--border-color) !important; | border-bottom: 1px solid var(--border-color) !important; | ||
| Zeile 284: | Zeile 313: | ||
/* Fließtext Links */ | /* Fließtext Links */ | ||
.mw-parser-output a, | .mw-parser-output a, | ||
#bodyContent a { | #bodyContent a | ||
{ | |||
color: var(--text-link) !important; | color: var(--text-link) !important; | ||
} | } | ||
.mw-parser-output a:hover, | .mw-parser-output a:hover, | ||
#bodyContent a:hover { | #bodyContent a:hover | ||
{ | |||
color: var(--text-link-hover) !important; | color: var(--text-link-hover) !important; | ||
} | } | ||
| Zeile 296: | Zeile 327: | ||
.ca-nstab-main, | .ca-nstab-main, | ||
#p-views a, | #p-views a, | ||
#p-namespaces a { | #p-namespaces a | ||
{ | |||
color: var(--text-primary) !important; | color: var(--text-primary) !important; | ||
} | } | ||
/* "Aus The Alchenomicon Wiki" Unterzeile */ | /* "Aus The Alchenomicon Wiki" Unterzeile */ | ||
#siteSub { | #siteSub | ||
{ | |||
color: var(--text-muted) !important; | color: var(--text-muted) !important; | ||
} | } | ||
/* Inhaltsverzeichnis */ | /* Inhaltsverzeichnis */ | ||
#toc { | #toc | ||
{ | |||
background: var(--bg-content-alt) !important; | background: var(--bg-content-alt) !important; | ||
border: 1px solid var(--border-color) !important; | border: 1px solid var(--border-color) !important; | ||
| Zeile 312: | Zeile 346: | ||
} | } | ||
#toc a { | #toc a | ||
{ | |||
color: var(--text-link) !important; | color: var(--text-link) !important; | ||
} | } | ||
/* Tabellen im Artikel (wikitable) */ | /* Tabellen im Artikel (wikitable) */ | ||
.wikitable { | .wikitable | ||
{ | |||
background: var(--bg-content-alt) !important; | background: var(--bg-content-alt) !important; | ||
border-color: var(--border-strong) !important; | border-color: var(--border-strong) !important; | ||
| Zeile 323: | Zeile 359: | ||
} | } | ||
.wikitable th { | .wikitable th | ||
{ | |||
background: var(--bg-content-alt) !important; | background: var(--bg-content-alt) !important; | ||
color: var(--text-heading) !important; | color: var(--text-heading) !important; | ||
| Zeile 329: | Zeile 366: | ||
} | } | ||
.wikitable td { | .wikitable td | ||
{ | |||
border-color: var(--border-color) !important; | border-color: var(--border-color) !important; | ||
} | } | ||
/* Kategorie-Leiste */ | /* Kategorie-Leiste */ | ||
#catlinks { | #catlinks | ||
{ | |||
background: var(--bg-content-alt) !important; | background: var(--bg-content-alt) !important; | ||
border: 1px solid var(--border-color) !important; | border: 1px solid var(--border-color) !important; | ||
| Zeile 340: | Zeile 379: | ||
} | } | ||
#catlinks a { | #catlinks a | ||
{ | |||
color: var(--text-link) !important; | color: var(--text-link) !important; | ||
} | } | ||
/* Druckfußnote */ | /* Druckfußnote */ | ||
.printfooter { | .printfooter | ||
{ | |||
color: var(--text-muted) !important; | color: var(--text-muted) !important; | ||
border-top: 1px solid var(--border-color) !important; | border-top: 1px solid var(--border-color) !important; | ||
| Zeile 355: | Zeile 396: | ||
===================================================================== */ | ===================================================================== */ | ||
#mw-site-navigation { | #mw-site-navigation | ||
{ | |||
background: transparent !important; | background: transparent !important; | ||
} | } | ||
.sidebar-chunk { | .sidebar-chunk | ||
{ | |||
background: var(--bg-sidebar-panel) !important; | background: var(--bg-sidebar-panel) !important; | ||
border-color: var(--border-color) !important; | border-color: var(--border-color) !important; | ||
| Zeile 365: | Zeile 408: | ||
} | } | ||
.sidebar-chunk h2 { | .sidebar-chunk h2 | ||
{ | |||
color: var(--text-heading) !important; | color: var(--text-heading) !important; | ||
} | } | ||
.mw-portlet { | .mw-portlet | ||
{ | |||
background: transparent !important; | background: transparent !important; | ||
} | } | ||
#p-pagemisc-label, | #p-pagemisc-label, | ||
#p-navigation-label { | #p-navigation-label | ||
{ | |||
color: var(--text-muted) !important; | color: var(--text-muted) !important; | ||
font-family: var(--ff-header-box) !important; | font-family: var(--ff-header-box) !important; | ||
| Zeile 382: | Zeile 428: | ||
#mw-site-navigation a, | #mw-site-navigation a, | ||
#mw-related-navigation a { | #mw-related-navigation a | ||
{ | |||
color: var(--sidebar-link) !important; | color: var(--sidebar-link) !important; | ||
} | } | ||
/* Leere Sidebar-Boxen ausblenden */ | /* Leere Sidebar-Boxen ausblenden */ | ||
#site-tools .emptyPortlet { | #site-tools .emptyPortlet | ||
{ | |||
display: none !important; | display: none !important; | ||
} | } | ||
#site-tools:has(.emptyPortlet:only-child) { | #site-tools:has(.emptyPortlet:only-child) | ||
{ | |||
display: none !important; | display: none !important; | ||
} | } | ||
| Zeile 399: | Zeile 448: | ||
===================================================================== */ | ===================================================================== */ | ||
#mw-footer-container { | #mw-footer-container | ||
{ | |||
background: var(--bg-content-alt) !important; | background: var(--bg-content-alt) !important; | ||
border-top: 1px solid var(--border-strong) !important; | border-top: 1px solid var(--border-strong) !important; | ||
| Zeile 405: | Zeile 455: | ||
} | } | ||
#mw-footer a { | #mw-footer a | ||
{ | |||
color: var(--text-link) !important; | color: var(--text-link) !important; | ||
} | } | ||
| Zeile 417: | Zeile 468: | ||
/* Alle Bearbeiten-Seiten (action=edit, action=submit) */ | /* Alle Bearbeiten-Seiten (action=edit, action=submit) */ | ||
body.action-edit, | body.action-edit, | ||
body.action-submit { | body.action-submit | ||
{ | |||
background-color: var(--bg-editor) !important; | background-color: var(--bg-editor) !important; | ||
color: var(--text-editor) !important; | color: var(--text-editor) !important; | ||
| Zeile 423: | Zeile 475: | ||
body.action-edit #mw-content-wrapper, | body.action-edit #mw-content-wrapper, | ||
body.action-submit #mw-content-wrapper { | body.action-submit #mw-content-wrapper | ||
{ | |||
background: #1a1a1a !important; | background: #1a1a1a !important; | ||
color: var(--text-editor) !important; | color: var(--text-editor) !important; | ||
| Zeile 430: | Zeile 483: | ||
body.action-edit h1.firstHeading, | body.action-edit h1.firstHeading, | ||
body.action-submit h1.firstHeading { | body.action-submit h1.firstHeading | ||
{ | |||
color: #e8dfc8 !important; | color: #e8dfc8 !important; | ||
border-color: #444 !important; | border-color: #444 !important; | ||
| Zeile 441: | Zeile 495: | ||
.CodeMirror-scroll, | .CodeMirror-scroll, | ||
.ve-ce-surface, | .ve-ce-surface, | ||
.wikiEditor-ui-text textarea { | .wikiEditor-ui-text textarea | ||
{ | |||
background: #0d0d0d !important; | background: #0d0d0d !important; | ||
color: #cccccc !important; | color: #cccccc !important; | ||
| Zeile 450: | Zeile 505: | ||
/* WikiEditor Toolbar */ | /* WikiEditor Toolbar */ | ||
.wikiEditor-ui-toolbar, | .wikiEditor-ui-toolbar, | ||
.wikiEditor-ui { | .wikiEditor-ui | ||
{ | |||
background: #222 !important; | background: #222 !important; | ||
border-color: #333 !important; | border-color: #333 !important; | ||
| Zeile 456: | Zeile 512: | ||
} | } | ||
.wikiEditor-ui-toolbar .group { | .wikiEditor-ui-toolbar .group | ||
{ | |||
border-color: #444 !important; | border-color: #444 !important; | ||
} | } | ||
| Zeile 462: | Zeile 519: | ||
/* Edit-Buttons (Speichern, Vorschau etc.) */ | /* Edit-Buttons (Speichern, Vorschau etc.) */ | ||
body.action-edit .editButtons, | body.action-edit .editButtons, | ||
body.action-submit .editButtons { | body.action-submit .editButtons | ||
{ | |||
background: #1a1a1a !important; | background: #1a1a1a !important; | ||
} | } | ||
/* Edit-Zusammenfassungsfeld */ | /* Edit-Zusammenfassungsfeld */ | ||
#wpSummary { | #wpSummary | ||
{ | |||
background: #111 !important; | background: #111 !important; | ||
color: #ccc !important; | color: #ccc !important; | ||
| Zeile 475: | Zeile 534: | ||
/* Checkboxen und Labels im Edit-Formular */ | /* Checkboxen und Labels im Edit-Formular */ | ||
body.action-edit .editCheckboxes label, | body.action-edit .editCheckboxes label, | ||
body.action-submit .editCheckboxes label { | body.action-submit .editCheckboxes label | ||
{ | |||
color: #aaa !important; | color: #aaa !important; | ||
} | } | ||
/* Vorschaubereich beim Bearbeiten */ | /* Vorschaubereich beim Bearbeiten */ | ||
#wikiPreview { | #wikiPreview | ||
{ | |||
background: #1a1a1a !important; | background: #1a1a1a !important; | ||
color: #ccc !important; | color: #ccc !important; | ||
| Zeile 488: | Zeile 549: | ||
/* Edit-Seite: Links in der Sidebar ebenfalls hell */ | /* Edit-Seite: Links in der Sidebar ebenfalls hell */ | ||
body.action-edit #mw-site-navigation a, | body.action-edit #mw-site-navigation a, | ||
body.action-submit #mw-site-navigation a { | body.action-submit #mw-site-navigation a | ||
{ | |||
color: #8ab4f8 !important; | color: #8ab4f8 !important; | ||
} | } | ||
| Zeile 498: | Zeile 560: | ||
===================================================================== */ | ===================================================================== */ | ||
body.ns-special { | body.ns-special | ||
{ | |||
background-color: var(--bg-special) !important; | background-color: var(--bg-special) !important; | ||
color: var(--text-special) !important; | color: var(--text-special) !important; | ||
} | } | ||
body.ns-special #mw-content-wrapper { | body.ns-special #mw-content-wrapper | ||
{ | |||
background: var(--bg-special-panel) !important; | background: var(--bg-special-panel) !important; | ||
color: var(--text-special) !important; | color: var(--text-special) !important; | ||
| Zeile 509: | Zeile 573: | ||
} | } | ||
body.ns-special h1.firstHeading { | body.ns-special h1.firstHeading | ||
{ | |||
color: #e8dfc8 !important; | color: #e8dfc8 !important; | ||
border-color: #444 !important; | border-color: #444 !important; | ||
| Zeile 515: | Zeile 580: | ||
body.ns-special .mw-parser-output, | body.ns-special .mw-parser-output, | ||
body.ns-special #bodyContent { | body.ns-special #bodyContent | ||
{ | |||
color: var(--text-special) !important; | color: var(--text-special) !important; | ||
} | } | ||
body.ns-special a { | body.ns-special a | ||
{ | |||
color: var(--link-special) !important; | color: var(--link-special) !important; | ||
} | } | ||
body.ns-special .wikitable { | body.ns-special .wikitable | ||
{ | |||
background: #1f1f1f !important; | background: #1f1f1f !important; | ||
border-color: #444 !important; | border-color: #444 !important; | ||
| Zeile 529: | Zeile 597: | ||
} | } | ||
body.ns-special .wikitable th { | body.ns-special .wikitable th | ||
{ | |||
background: #2a2a2a !important; | background: #2a2a2a !important; | ||
color: #e8dfc8 !important; | color: #e8dfc8 !important; | ||
| Zeile 535: | Zeile 604: | ||
} | } | ||
body.ns-special .sidebar-chunk { | body.ns-special .sidebar-chunk | ||
{ | |||
background: rgba(23, 16, 31, 0.75) !important; | background: rgba(23, 16, 31, 0.75) !important; | ||
border-color: #444 !important; | border-color: #444 !important; | ||
| Zeile 542: | Zeile 612: | ||
body.ns-special #mw-site-navigation a, | body.ns-special #mw-site-navigation a, | ||
body.ns-special #mw-related-navigation a { | body.ns-special #mw-related-navigation a | ||
{ | |||
color: var(--link-special) !important; | color: var(--link-special) !important; | ||
} | } | ||
body.ns-special #catlinks { | body.ns-special #catlinks | ||
{ | |||
background: #1a1a1a !important; | background: #1a1a1a !important; | ||
border-color: #333 !important; | border-color: #333 !important; | ||
| Zeile 552: | Zeile 624: | ||
} | } | ||
body.ns-special #mw-footer-container { | body.ns-special #mw-footer-container | ||
{ | |||
background: #111 !important; | background: #111 !important; | ||
border-color: #333 !important; | border-color: #333 !important; | ||
| Zeile 571: | Zeile 644: | ||
#bodyContent div.mw-highlight, | #bodyContent div.mw-highlight, | ||
.mw-parser-output div.mw-highlight, | .mw-parser-output div.mw-highlight, | ||
.mw-highlight { | .mw-highlight | ||
{ | |||
background: #0d0d0d !important; | background: #0d0d0d !important; | ||
color: #cccccc !important; | color: #cccccc !important; | ||
border: 1px solid #333 !important; | border: 1px solid #333 !important; | ||
} | |||
/* Zeilennummern */ | |||
div.mw-highlight td.mw-linenos, | |||
div.mw-highlight .ln | |||
{ | |||
background: #1e1e1e !important; | |||
color: #606060 !important; | |||
border-right: 1px solid #333 !important; | |||
} | } | ||
| Zeile 594: | Zeile 677: | ||
/* Zeilennummern */ | /* Zeilennummern */ | ||
div.mw-highlight .ln, | div.mw-highlight .ln, | ||
div.mw-highlight td.ln { | div.mw-highlight td.ln | ||
{ | |||
color: #555 !important; | color: #555 !important; | ||
border-right: 1px solid #333 !important; | border-right: 1px solid #333 !important; | ||
| Zeile 602: | Zeile 686: | ||
/* Auch plain <pre>-Blöcke im Artikel immer dunkel */ | /* Auch plain <pre>-Blöcke im Artikel immer dunkel */ | ||
.mw-parser-output pre { | .mw-parser-output pre | ||
{ | |||
background: #0d0d0d !important; | background: #0d0d0d !important; | ||
color: #cccccc !important; | color: #cccccc !important; | ||
| Zeile 616: | Zeile 701: | ||
.bildchronik-container figure, | .bildchronik-container figure, | ||
.bildchronik-container figure a, | .bildchronik-container figure a, | ||
.bildchronik-container figure img { | .bildchronik-container figure img | ||
{ | |||
height: 100% !important; | height: 100% !important; | ||
width: auto !important; | width: auto !important; | ||
| Zeile 629: | Zeile 715: | ||
.infobox-stadt, | .infobox-stadt, | ||
.infobox-fraktion, | .infobox-fraktion, | ||
.infobox-stern { | .infobox-stern | ||
{ | |||
background: var(--bg-content-alt) !important; | background: var(--bg-content-alt) !important; | ||
border-color: var(--border-strong) !important; | border-color: var(--border-strong) !important; | ||
| Zeile 640: | Zeile 727: | ||
.infobox-stadt th, | .infobox-stadt th, | ||
.infobox-fraktion th, | .infobox-fraktion th, | ||
.infobox-stern th { | .infobox-stern th | ||
{ | |||
color: var(--text-muted) !important; | color: var(--text-muted) !important; | ||
border-color: var(--border-color) !important; | border-color: var(--border-color) !important; | ||
| Zeile 649: | Zeile 737: | ||
.infobox-stadt td, | .infobox-stadt td, | ||
.infobox-fraktion td, | .infobox-fraktion td, | ||
.infobox-stern td { | .infobox-stern td | ||
{ | |||
color: var(--text-primary) !important; | color: var(--text-primary) !important; | ||
border-color: var(--border-color) !important; | border-color: var(--border-color) !important; | ||
| Zeile 659: | Zeile 748: | ||
.infobox-stadt tr:first-child td, | .infobox-stadt tr:first-child td, | ||
.infobox-fraktion tr:first-child td, | .infobox-fraktion tr:first-child td, | ||
.infobox-stern tr:first-child td { | .infobox-stern tr:first-child td | ||
{ | |||
color: var(--text-heading) !important; | color: var(--text-heading) !important; | ||
border-color: var(--border-strong) !important; | border-color: var(--border-strong) !important; | ||
} | } | ||
Version vom 25. Mai 2026, 14:23 Uhr
/* =====================================================================
MediaWiki:Timeless.css — The Alchenomicon Wiki
Skin: Timeless
Token-System: Alle Farben als CSS Custom Properties.
Light Mode ist Standard (cremefarbenes Papier-Theme).
Dark Mode via prefers-color-scheme: dark.
color-scheme: dark im Dark Mode → Dark Reader deaktiviert sich automatisch.
Spezialseiten & Editor: Immer dunkel, unabhängig vom Theme.
===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;700&display=swap');
/* =====================================================================
TOKENS — LIGHT MODE (Standard)
===================================================================== */
:root
{
color-scheme: light;
/* Hintergrundbild */
--bi-body: url('https://thealchenomiconwiki.com/images/8/8e/BackgroundImage_Main.png?v=2');
/* Hintergründe */
--bg-body: #c8b89a; /* Hintergrundfarbe hinter dem Content (sichtbar nur außerhalb) */
--bg-content: #f5efe6; /* Cremefarbener Papier-Hintergrund Hauptinhalt */
--bg-content-alt: #ede4d8; /* Leicht dunkler: Sidebar-Panels, Infoboxen */
--bg-header: #2a1f14; /* Header: dunkel, kontraststark */
--bg-editor: #111111; /* Editor/Quelltext: immer dunkel */
/* Text */
--text-primary: #1e1a14; /* Haupttext */
--text-heading: #2e2010; /* Überschriften */
--text-muted: #6b5c47; /* Sekundärtext, Beschriftungen */
--text-link: #5a3a1a; /* Links */
--text-link-hover: #3d2208;
--text-header: #e8dfc8; /* Text im dunklen Header */
--text-editor: #cccccc; /* Text im Editor */
/* Rahmen */
--border-color: #c9b99a;
--border-strong: #a8906e;
--border-header: #4a3520;
/* Sidebar */
--bg-sidebar-panel: rgba(240, 232, 218, 0.92);
--sidebar-link: #5a3a1a;
/* Akzent */
--accent: #7a4f2a;
/* Typografie */
--ff-wiki-title: "Object Sans", serif;
--ff-header-box: "Rubik", serif;
--fw-wiki-title: 300;
--fw-sidebar-panel-header: 700;
--fs-wiki-title: clamp(0, 1.4rem);
--fs-sidebar-panel-header: 1.2rem;
--lh-wiki-title: 1;
/* Spezialseiten (immer dunkel — eigene Tokens, nie überschreiben) */
--bg-special: #111111;
--text-special: #cccccc;
--border-special: #333333;
--bg-special-panel: #1a1a1a;
--link-special: #8ab4f8;
}
/* =====================================================================
TOKENS — DARK MODE
Aktiviert via prefers-color-scheme: dark.
color-scheme: dark → Dark Reader erkennt nativen Dark Mode
und deaktiviert sich automatisch.
===================================================================== */
@media (prefers-color-scheme: dark)
{
:root
{
color-scheme: dark;
--bg-body: #0d0d0d;
--bg-content: #1a1a1a;
--bg-content-alt: #111111;
--bg-header: #1a1a1a;
--text-primary: #cccccc;
--text-heading: #e8dfc8;
--text-muted: #888888;
--text-link: #8ab4f8;
--text-link-hover: #aaccff;
--text-header: #e8dfc8;
--border-color: #444444;
--border-strong: #555555;
--border-header: #330077;
--bg-sidebar-panel: rgba(23, 16, 31, 0.75);
--sidebar-link: #8ab4f8;
--accent: #8ab4f8;
}
}
/* =====================================================================
BODY & WRAPPER
===================================================================== */
body.mediawiki
{
margin: 0 !important;
padding: 0 !important;
background-color: var(--bg-body) !important;
background-image: none !important; /* Kein Hintergrundbild im Light Mode */
}
@media (prefers-color-scheme: dark)
{
body.mediawiki
{
background-image: var(--bi-body) !important;
background-size: cover !important;
background-attachment: fixed !important;
background-position: center center !important;
background-repeat: no-repeat !important;
}
}
#mw-wrapper
{
padding-top: 0px !important;
}
/* =====================================================================
HEADER (immer dunkel — ist so gewünscht)
===================================================================== */
#mw-header-container
{
position: fixed !important;
margin: 0 !important;
padding: 0 15% !important;
z-index: 100 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
background: var(--bg-header) !important;
border-bottom: 2px solid var(--border-header) !important;
}
#mw-header
{
width: 100%;
margin: 0 !important;
padding: 0 !important;
display: flex !important;
align-items: stretch !important;
border-left: 4px solid var(--bg-content) !important;
border-right: 4px solid var(--bg-content) !important;
}
@media (prefers-color-scheme: dark)
{
#mw-header
{
border-left-color: #1a1a1a !important;
border-right-color: #1a1a1a !important;
}
}
#p-logo-text
{
flex: 1 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
padding: 0 !important;
color: var(--text-header) !important;
font-family: var(--ff-wiki-title) !important;
font-weight: var(--fw-wiki-title) !important;
}
#p-banner
{
display: flex !important;
align-items: center !important;
justify-content: center !important;
color: var(--text-header) !important;
font-size: var(--fs-wiki-title) !important;
line-height: var(--lh-wiki-title) !important;
text-align: center !important;
}
#p-banner a
{
color: var(--text-header) !important;
}
#p-search
{
flex: 4 !important;
}
/* Suchfeld im Header */
#searchInput
{
background: #3a2d1e !important;
color: #e8dfc8 !important;
border: 1px solid #5a4530 !important;
}
#searchInput::placeholder
{
color: #8a7a60 !important;
}
@media (prefers-color-scheme: dark)
{
#searchInput
{
background: #222 !important;
color: #ccc !important;
border-color: #444 !important;
}
#searchInput::placeholder
{
color: #666 !important;
}
}
#user-tools
{
flex: 1 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
color: var(--text-header) !important;
}
#user-tools a,
#personal a
{
color: #c8b89a !important;
}
/* Verstecke Timeless-Farbbalken */
#mw-header-hack,
#mw-header-nav-hack
{
display: none !important;
}
/* =====================================================================
HAUPTINHALT
===================================================================== */
#mw-content-container
{
display: flex !important;
justify-content: center !important;
background: transparent !important;
}
#mw-content-block
{
width: 80%;
margin: 0;
padding: 0;
display: flex !important;
justify-content: center !important;
background: transparent !important;
}
#mw-content-wrapper
{
margin: 0;
padding: 0;
background: var(--bg-content) !important;
border: 2px solid var(--border-color) !important;
color: var(--text-primary) !important;
}
#mw-content,
#content
{
background: transparent !important;
color: var(--text-primary) !important;
}
/* Seitenüberschrift */
h1.firstHeading
{
color: var(--text-heading) !important;
border-bottom: 1px solid var(--border-strong) !important;
}
/* Wiki-Überschriften im Artikel */
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4
{
color: var(--text-heading) !important;
border-bottom: 1px solid var(--border-color) !important;
}
/* Fließtext Links */
.mw-parser-output a,
#bodyContent a
{
color: var(--text-link) !important;
}
.mw-parser-output a:hover,
#bodyContent a:hover
{
color: var(--text-link-hover) !important;
}
/* Tabs (Lesen / Quelltext / Geschichte) */
.ca-nstab-main,
#p-views a,
#p-namespaces a
{
color: var(--text-primary) !important;
}
/* "Aus The Alchenomicon Wiki" Unterzeile */
#siteSub
{
color: var(--text-muted) !important;
}
/* Inhaltsverzeichnis */
#toc
{
background: var(--bg-content-alt) !important;
border: 1px solid var(--border-color) !important;
color: var(--text-primary) !important;
}
#toc a
{
color: var(--text-link) !important;
}
/* Tabellen im Artikel (wikitable) */
.wikitable
{
background: var(--bg-content-alt) !important;
border-color: var(--border-strong) !important;
color: var(--text-primary) !important;
}
.wikitable th
{
background: var(--bg-content-alt) !important;
color: var(--text-heading) !important;
border-color: var(--border-strong) !important;
}
.wikitable td
{
border-color: var(--border-color) !important;
}
/* Kategorie-Leiste */
#catlinks
{
background: var(--bg-content-alt) !important;
border: 1px solid var(--border-color) !important;
color: var(--text-muted) !important;
}
#catlinks a
{
color: var(--text-link) !important;
}
/* Druckfußnote */
.printfooter
{
color: var(--text-muted) !important;
border-top: 1px solid var(--border-color) !important;
}
/* =====================================================================
SIDEBAR
===================================================================== */
#mw-site-navigation
{
background: transparent !important;
}
.sidebar-chunk
{
background: var(--bg-sidebar-panel) !important;
border-color: var(--border-color) !important;
color: var(--text-primary) !important;
}
.sidebar-chunk h2
{
color: var(--text-heading) !important;
}
.mw-portlet
{
background: transparent !important;
}
#p-pagemisc-label,
#p-navigation-label
{
color: var(--text-muted) !important;
font-family: var(--ff-header-box) !important;
font-weight: var(--fw-sidebar-panel-header) !important;
font-size: var(--fs-sidebar-panel-header) !important;
}
#mw-site-navigation a,
#mw-related-navigation a
{
color: var(--sidebar-link) !important;
}
/* Leere Sidebar-Boxen ausblenden */
#site-tools .emptyPortlet
{
display: none !important;
}
#site-tools:has(.emptyPortlet:only-child)
{
display: none !important;
}
/* =====================================================================
FOOTER
===================================================================== */
#mw-footer-container
{
background: var(--bg-content-alt) !important;
border-top: 1px solid var(--border-strong) !important;
color: var(--text-muted) !important;
}
#mw-footer a
{
color: var(--text-link) !important;
}
/* =====================================================================
EDITOR & QUELLTEXT — IMMER DUNKEL
Gilt für: Bearbeiten-Seiten, Quelltext-Ansicht, WikiEditor, VisualEditor
===================================================================== */
/* Alle Bearbeiten-Seiten (action=edit, action=submit) */
body.action-edit,
body.action-submit
{
background-color: var(--bg-editor) !important;
color: var(--text-editor) !important;
}
body.action-edit #mw-content-wrapper,
body.action-submit #mw-content-wrapper
{
background: #1a1a1a !important;
color: var(--text-editor) !important;
border-color: #333 !important;
}
body.action-edit h1.firstHeading,
body.action-submit h1.firstHeading
{
color: #e8dfc8 !important;
border-color: #444 !important;
}
/* Das eigentliche Textfeld */
#wpTextbox1,
.mw-editfont-monospace,
.CodeMirror,
.CodeMirror-scroll,
.ve-ce-surface,
.wikiEditor-ui-text textarea
{
background: #0d0d0d !important;
color: #cccccc !important;
border: 1px solid #333 !important;
caret-color: #e8dfc8 !important;
}
/* WikiEditor Toolbar */
.wikiEditor-ui-toolbar,
.wikiEditor-ui
{
background: #222 !important;
border-color: #333 !important;
color: #ccc !important;
}
.wikiEditor-ui-toolbar .group
{
border-color: #444 !important;
}
/* Edit-Buttons (Speichern, Vorschau etc.) */
body.action-edit .editButtons,
body.action-submit .editButtons
{
background: #1a1a1a !important;
}
/* Edit-Zusammenfassungsfeld */
#wpSummary
{
background: #111 !important;
color: #ccc !important;
border-color: #333 !important;
}
/* Checkboxen und Labels im Edit-Formular */
body.action-edit .editCheckboxes label,
body.action-submit .editCheckboxes label
{
color: #aaa !important;
}
/* Vorschaubereich beim Bearbeiten */
#wikiPreview
{
background: #1a1a1a !important;
color: #ccc !important;
border: 1px solid #333 !important;
}
/* Edit-Seite: Links in der Sidebar ebenfalls hell */
body.action-edit #mw-site-navigation a,
body.action-submit #mw-site-navigation a
{
color: #8ab4f8 !important;
}
/* =====================================================================
SPEZIALSEITEN — IMMER DUNKEL
Gilt für alle Seiten im Special:-Namensraum
===================================================================== */
body.ns-special
{
background-color: var(--bg-special) !important;
color: var(--text-special) !important;
}
body.ns-special #mw-content-wrapper
{
background: var(--bg-special-panel) !important;
color: var(--text-special) !important;
border-color: var(--border-special) !important;
}
body.ns-special h1.firstHeading
{
color: #e8dfc8 !important;
border-color: #444 !important;
}
body.ns-special .mw-parser-output,
body.ns-special #bodyContent
{
color: var(--text-special) !important;
}
body.ns-special a
{
color: var(--link-special) !important;
}
body.ns-special .wikitable
{
background: #1f1f1f !important;
border-color: #444 !important;
color: #ccc !important;
}
body.ns-special .wikitable th
{
background: #2a2a2a !important;
color: #e8dfc8 !important;
border-color: #444 !important;
}
body.ns-special .sidebar-chunk
{
background: rgba(23, 16, 31, 0.75) !important;
border-color: #444 !important;
color: #ccc !important;
}
body.ns-special #mw-site-navigation a,
body.ns-special #mw-related-navigation a
{
color: var(--link-special) !important;
}
body.ns-special #catlinks
{
background: #1a1a1a !important;
border-color: #333 !important;
color: #888 !important;
}
body.ns-special #mw-footer-container
{
background: #111 !important;
border-color: #333 !important;
color: #666 !important;
}
/* =====================================================================
QUELLTEXT-ANZEIGE (Highlight-Ansicht auf CSS/JS/Lua-Seiten)
Betrifft: div.mw-highlight, pre — die Seite wo Code angezeigt wird
Immer dunkel, unabhängig vom Theme.
===================================================================== */
div.mw-highlight,
div.mw-highlight pre,
div.mw-code,
#content div.mw-highlight,
#bodyContent div.mw-highlight,
.mw-parser-output div.mw-highlight,
.mw-highlight
{
background: #0d0d0d !important;
color: #cccccc !important;
border: 1px solid #333 !important;
}
/* Zeilennummern */
div.mw-highlight td.mw-linenos,
div.mw-highlight .ln
{
background: #1e1e1e !important;
color: #606060 !important;
border-right: 1px solid #333 !important;
}
/* Syntax-Highlighting Farben im Dark Context erhalten */
div.mw-highlight .c,
div.mw-highlight .c1,
div.mw-highlight .cm { color: #6a9955 !important; } /* Kommentare: Grün */
div.mw-highlight .s,
div.mw-highlight .s1,
div.mw-highlight .s2 { color: #ce9178 !important; } /* Strings: Orange */
div.mw-highlight .k,
div.mw-highlight .kd { color: #569cd6 !important; } /* Keywords: Blau */
div.mw-highlight .nt { color: #4ec9b0 !important; } /* Tag names */
div.mw-highlight .na { color: #9cdcfe !important; } /* Attribute names */
div.mw-highlight .nv { color: #9cdcfe !important; } /* Variablen */
div.mw-highlight .mi { color: #b5cea8 !important; } /* Zahlen */
div.mw-highlight .err { color: #f44747 !important; } /* Fehler */
/* Zeilennummern */
div.mw-highlight .ln,
div.mw-highlight td.ln
{
color: #555 !important;
border-right: 1px solid #333 !important;
background: #111 !important;
user-select: none;
}
/* Auch plain <pre>-Blöcke im Artikel immer dunkel */
.mw-parser-output pre
{
background: #0d0d0d !important;
color: #cccccc !important;
border: 1px solid #333 !important;
}
/* =====================================================================
SONSTIGES
===================================================================== */
/* Bildchronik-Container (bestehendes Feature) */
.bildchronik-container figure,
.bildchronik-container figure a,
.bildchronik-container figure img
{
height: 100% !important;
width: auto !important;
max-width: none !important;
display: block !important;
}
/* Infoboxen: im Light Mode anpassen */
/* Die Inline-Styles in den Infobox-Templates überschreiben wir hier */
.infobox-charakter,
.infobox-staat,
.infobox-stadt,
.infobox-fraktion,
.infobox-stern
{
background: var(--bg-content-alt) !important;
border-color: var(--border-strong) !important;
color: var(--text-primary) !important;
}
/* Infobox Tabellenzellen */
.infobox-charakter th,
.infobox-staat th,
.infobox-stadt th,
.infobox-fraktion th,
.infobox-stern th
{
color: var(--text-muted) !important;
border-color: var(--border-color) !important;
}
.infobox-charakter td,
.infobox-staat td,
.infobox-stadt td,
.infobox-fraktion td,
.infobox-stern td
{
color: var(--text-primary) !important;
border-color: var(--border-color) !important;
}
/* Infobox Kopfzeile (Name) */
.infobox-charakter tr:first-child td,
.infobox-staat tr:first-child td,
.infobox-stadt tr:first-child td,
.infobox-fraktion tr:first-child td,
.infobox-stern tr:first-child td
{
color: var(--text-heading) !important;
border-color: var(--border-strong) !important;
}