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.
/* ─── Flat Dark Theme – Complete Rewrite ───────────────── */
/* 1) Global reset */
* {
margin: 0 !important;
padding: 0 !important;
box-shadow: none !important;
border: none !important;
border-radius: 0 !important;
background: none !important;
}
/* 2) Base body & typography */
body, .mw-body, .mw-page-container {
background-color: #000 !important;
color: #fff !important;
font-family: Arial, sans-serif !important;
font-size: 15px !important;
line-height: 1.6 !important;
}
/* 3) Top tab bar */
.vector-menu-tabs {
position: fixed;
top: 0; left: 0; right: 0;
background-color: #111 !important;
border-bottom: 1px solid #222 !important;
z-index: 1000;
}
.vector-menu-tabs ul {
margin: 0 180px !important; /* reserve space for sidebar */
}
.vector-menu-tabs li {
display: inline-block !important;
}
.vector-menu-tabs li a {
padding: 10px 12px !important;
color: #ff66cc !important;
text-decoration: none !important;
background: none !important;
}
.vector-menu-tabs li a:hover {
background-color: #222 !important;
}
/* 4) Sidebar */
#mw-panel {
position: fixed !important;
top: 40px; bottom: 0; left: 0;
width: 180px;
background-color: #111 !important;
overflow-y: auto !important;
padding: 10px !important;
z-index: 900;
}
.mw-body {
margin-left: 190px !important;
}
#mw-panel .portal h3 {
color: #ff66cc !important;
margin-bottom: 8px !important;
font-weight: 600 !important;
font-size: 14px !important;
border-bottom: 1px solid #222 !important;
padding-bottom: 4px !important;
}
#mw-panel .portal ul {
list-style: none !important;
padding-left: 0 !important;
}
#mw-panel .portal ul li a {
display: block !important;
padding: 4px 0 !important;
color: #fff !important;
text-decoration: none !important;
}
#mw-panel .portal ul li a:hover {
text-decoration: underline !important;
}
/* 5) Main content area */
#content, #bodyContent, .mw-page-container {
background: transparent !important;
border: none !important;
padding: 60px 20px 20px 20px !important; /* top for tabs */
}
/* 6) Headings without borders */
h1, h2, h3, h4, h5, h6 {
color: #fff !important;
background: none !important;
border-bottom: none !important;
margin: 1em 0 0.5em 0 !important;
padding: 0 !important;
}
/* 7) Links – pink & underlines on hover */
a, a:link, a:visited {
color: #ff66cc !important;
text-decoration: none !important;
}
a:hover {
color: #ff99dd !important;
text-decoration: underline !important;
}
/* 8) Tables, infoboxes & navboxes transparent */
table, th, td, .infobox, .navbox, .wikitable {
background: transparent !important;
border: none !important;
color: #fff !important;
}
/* 9) Forms & buttons */
input, textarea, select, button {
background-color: #111 !important;
color: #fff !important;
border: 1px solid #222 !important;
padding: 6px 8px !important;
font-family: Arial, sans-serif !important;
}
/* 10) Search box styling */
#p-search { margin: 10px 0 !important; }
#searchInput {
width: calc(100% - 60px) !important;
background: #222 !important;
color: #fff !important;
padding: 6px 8px !important;
border: 1px solid #222 !important;
}
#searchButton {
background: #333 !important;
color: #fff !important;
border: 1px solid #222 !important;
padding: 6px 12px !important;
}
/* 11) Code editor & textarea */
textarea#wpTextbox1, .CodeMirror, .ace_editor {
background: #111 !important;
color: #fff !important;
font-family: Consolas, monospace !important;
}
/* 12) Hide logos & footer icons */
#p-logo, .mw-wiki-logo,
#footer, #footer-info, #footer-icons,
.mw-footer-logo, .printfooter,
.ccicons, .license {
display: none !important;
}