MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Gesamte Seite schwarz machen */
body {
background-color: #000 !important;
color: #fff !important;
border: none !important;
box-shadow: none !important;
text-decoration: none !important;
}
/* Inhaltsbereich (Artikel) */
.mw-body {
background-color: #000 !important;
color: #fff !important;
border: 0px solid #444 !important;
box-shadow: none !important;
text-decoration: none !important;
}
/* Überschriften weiß machen */
h1, h2, h3, h4, h5, h6 {
color: #fff !important;
box-shadow: none !important;
text-decoration: none !important;
}
/* Spezielle MediaWiki-Trennlinien entfernen */
.mw-headline, .firstHeading, .mw-title {
border: none !important;
box-shadow: none !important;
text-decoration: none !important;
}
/* Pseudo-Elemente, die Linien erzeugen könnten, entfernen */
h1::after, h2::after, h3::after, h4::after, h5::after, h6::after {
content: "" !important;
display: none !important;
box-shadow: none !important;
text-decoration: none !important;
}
/* Entfernt alle möglichen Linien in MediaWiki */
hr, .mw-content-ltr hr, .mw-parser-output hr {
display: none !important;
border: none !important;
height: 0 !important;
box-shadow: none !important;
text-decoration: none !important;
}
/* Kopfzeile und Navigation */
#mw-head,
#p-personal,
#mw-panel {
background-color: #000 !important;
color: #fff !important;
box-shadow: none !important;
text-decoration: none !important;
}
/* Menüleisten und Boxen */
.vector-menu-content,
.vector-menu-content ul {
background-color: #000 !important;
color: #fff !important;
box-shadow: none !important;
text-decoration: none !important;
}
/* Eingabefelder, Suchbox */
input, textarea {
background-color: #222 !important;
color: #fff !important;
border: 0px solid #444 !important;
box-shadow: none !important;
text-decoration: none !important;
}
/* Links */
a {
color: #4aa5ff !important;
}
a:visited {
color: #9c77ff !important;
}
/* Tabellen, Boxen, Panels ohne Ränder */
table, th, td, .mw-body-content, .vector-menu-content, .vector-menu-tabs {
border: none !important;
background-color: #000 !important;
box-shadow: none !important;
text-decoration: none !important;
background-image: none !important;
background: none !important;
}
/* Dropdown-Menüs */
.vector-dropdown {
background-color: #000 !important;
color: #fff !important;
box-shadow: none !important;
text-decoration: none !important;
}
/* Footer (unten) */
#footer, #footer li, #footer a {
background-color: #000 !important;
color: #fff !important;
}
/* Hauptnavigation oben */
#mw-head,
#p-personal,
#left-navigation,
#right-navigation {
background-color: #000 !important; /* Schwarzer Hintergrund */
color: #fff !important; /* Weiße Schrift */
box-shadow: none !important;
text-decoration: none !important;
}
/* Tabs ("Read", "Discussion", etc.) */
#p-views .vector-menu-content ul {
background-color: #000 !important;
box-shadow: none !important;
text-decoration: none !important;
}
/* Einzelne Tabs */
#p-views li {
background-color: #000 !important;
border: 0px solid #444 !important; /* Optional: Dunkle Ränder */
box-shadow: none !important;
text-decoration: none !important;
}
/* Ensure "Main Page" and "Discussion" links match the sidebar links */
#p-views li a,
#p-namespaces li a,
#p-variants li a {
color: #4aa5ff !important; /* Same blue as sidebar links */
text-decoration: none !important;
}
/* Hover effect */
#p-views li a:hover,
#p-namespaces li a:hover,
#p-variants li a:hover {
color: #9c77ff !important; /* Same as visited links */
}
/* Make the top navigation links match the sidebar link colors */
#p-views a,
#p-views a:visited,
#p-views a:active,
#p-views a:hover {
color: #4aa5ff !important; /* Same blue as sidebar links */
text-decoration: none !important;
}
/* If you want a hover effect */
#p-views a:hover {
color: #9c77ff !important; /* Same as visited links */
}
/* Falls noch weiß auftaucht, versuche dies für spezifische Skins */
.vector-menu-tabs li,
.vector-menu-tabs a {
background-color: #000 !important;
color: #fff !important;
box-shadow: none !important;
text-decoration: none !important;
background-image: none !important;
background: none !important;
}
/* Remove background gradients from menu tabs and headings */
#mw-head .vector-menu-dropdown .vector-menu-heading,
.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading {
background-image: none !important;
background: none !important;
}
/* Dropdown-Menüs (z. B. "Mehr") */
.vector-dropdown {
background-color: #000 !important;
}
/* Suchleiste */
#p-search input {
background-color: #222 !important;
color: #fff !important;
border: 1px solid #444 !important;
}
/* ALLE Trennlinien entfernen */
hr,
.mw-body hr,
.vector-menu-content ul,
.vector-menu-content li,
.vector-menu-tabs li,
.vector-menu-tabs a,
table, th, td,
.mw-panel,
.vector-dropdown,
#footer {
border: none !important;
box-shadow: none !important;
}
/* Tabellen ohne Linien */
table, th, td {
border: none !important;
background-color: #000 !important;
}
.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading {
background-image: none !important;
background: none !important;
}
/* Hide Tools box that Vector 2022 renders itself */
#p-tb {
display: none;
}
/* Hide "Powered by MediaWiki" */
.mw-footer .poweredby {
display: none !important;
}
/* ============================================================
ADDED 1: sidebar width lock, matched to content's margin.
Needed so Vector's own JS-measured sidebar width doesn't
miscalculate and leave a gap before the content.
============================================================ */
#column-one,
#mw-panel,
.vector-legacy-sidebar {
width: 250px !important;
}
#content {
margin-left: 250px !important;
}
/* ============================================================
ADDED 2: text sizes — content area and sidebar only, kept
separate so sidebar section headings ("Works") stay small.
============================================================ */
#content,
.mw-body,
.mw-body-content {
font-size: 26px !important;
}
#firstHeading, .firstHeading { font-size: 38px !important; }
.mw-body-content h2 { font-size: 32px !important; }
.mw-body-content h3 { font-size: 30px !important; }
.mw-body-content h4 { font-size: 28px !important; }
.vector-legacy-sidebar a,
.portlet a,
.pBody a,
#mw-panel a {
font-size: 20px !important;
line-height: 1.2 !important;
padding-left: 0 !important;
margin-left: 0 !important;
}
.portlet h3,
.portlet h5,
.vector-menu-heading,
.mw-portlet .vector-menu-heading,
.vector-pinnable-header-label {
font-size: 20px !important;
font-weight: normal !important;
line-height: 1.2 !important;
margin-left: 0 !important;
}
/* ============================================================
ADDED 3: turn off dark mode toggle, Create account, Log in
============================================================ */
#pt-darkmode,
#pt-darkmode-sticky-header,
#pt-createaccount,
#pt-login {
display: none !important;
}
/* Turn off the Discussion/Talk tab — it was wrapping/getting cut off */
#ca-talk {
display: none !important;
}
/* ============================================================
ADDED 4: close the gap above and below the page title.
#firstHeading and #content both had their own default
margin/padding stacking on top of each other.
============================================================ */
#content {
padding-top: 0.3em !important;
}
#firstHeading, .firstHeading {
margin: 0 !important;
padding: 0 !important;
line-height: 1.3 !important;
overflow: visible !important;
}
#siteSub, #contentSub, #contentSub2, .mw-indicators {
display: none !important;
margin: 0 !important;
padding: 0 !important;
}
#mw-content-text,
#mw-content-text > .mw-parser-output {
margin-top: 0 !important;
padding-top: 0 !important;
}
.mw-parser-output > p:first-of-type,
.mw-parser-output > p:first-child,
#mw-content-text p:first-of-type,
#firstHeading + p,
.firstHeading + p {
margin-top: 0 !important;
padding-top: 0 !important;
}
/* ============================================================
ADDED 5: force black text on the printable version
============================================================ */
@media print {
body, .mw-body, .mw-body-content,
p, li, td, th, dd, dt,
h1, h2, h3, h4, h5, h6, .firstHeading,
a, a:visited {
color: #000 !important;
background: #fff !important;
}
}