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 – Refined Layout ───────────────── */
/* 1) Base reset */
* {
box-shadow: none !important;
border-radius: 0 !important;
background: none !important;
margin: 0 !important;
padding: 0 !important;
}
/* 2) Body & typography */
body, .mw-body, .mw-page-container {
background-color: #121212 !important;
color: #ffffff !important;
font-family: Arial, sans-serif !important;
font-size: 15px !important;
line-height: 1.6 !important;
padding-top: 60px !important; /* space for top tabs */
}
/* 3) Top tabs bar */
.vector-menu-tabs {
position: fixed;
top: 0; left: 0; right: 0;
background-color: #1f1f1f !important;
border-bottom: 1px solid #333 !important;
z-index: 500;
}
.vector-menu-tabs ul {
margin: 0 170px !important; /* account for sidebar */
}
.vector-menu-tabs li {
display: inline-block !important;
}
.vector-menu-tabs li a {
display: inline-block !important;
padding: 10px 15px !important;
color: #ff66cc !important; /* pink links */
text-decoration: none !important;
}
.vector-menu-tabs li a:hover {
background-color: #2a2a2a !important;
}
/* 4) Sidebar */
#mw-panel {
position: fixed !important;
top: 60px; bottom: 0; left: 0;
width: 170px;
background-color: #1f1f1f !important;
border-right: 1px solid #333 !important;
overflow-y: auto !important;
padding: 10px !important;
z-index: 400;
}
#mw-panel .portal {
margin-bottom: 20px !important;
}
#mw-panel .portal h3 {
color: #ff66cc !important;
font-size: 14px !important;
margin-bottom: 8px !important;
border-bottom: 1px solid #333 !important;
padding-bottom: 4px !important;
}
#mw-panel .portal ul {
list-style: none !important;
padding-left: 0 !important;
}
#mw-panel .portal ul li {
margin: 4px 0 !important;
}
#mw-panel .portal ul li a {
color: #ffffff !important;
text-decoration: none !important;
}
#mw-panel .portal ul li a:hover {
text-decoration: underline !important;
}
/* 5) Content area shift */
.mw-body {
margin-left: 190px !important;
margin-right: 20px !important;
padding: 20px !important;
max-width: 1000px;
}
/* 6) Headings */
h1, h2, h3, h4, h5, h6 {
color: #ffffff !important;
border-bottom: 1px solid #333 !important;
padding-bottom: 6px !important;
margin-top: 24px !important;
margin-bottom: 12px !important;
}
/* 7) Links */
a, a:link, a:visited {
color: #ff66cc !important;
text-decoration: none !important;
}
a:hover {
color: #ff99dd !important;
text-decoration: underline !important;
}
/* 8) Search box */
#p-search {
margin: 20px 0 !important;
}
#searchInput {
width: calc(100% - 50px) !important;
padding: 6px 8px !important;
background: #2a2a2a !important;
color: #fff !important;
border: 1px solid #444 !important;
}
#searchButton {
padding: 6px 12px !important;
background: #333 !important;
color: #fff !important;
border: 1px solid #444 !important;
}
/* 9) Tables & boxes */
table, th, td, .infobox, .navbox, .metadata {
background: #1f1f1f !important;
color: #fff !important;
border: 1px solid #333 !important;
}
/* 10) Forms and buttons */
input, textarea, select, button {
background-color: #1f1f1f !important;
color: #fff !important;
border: 1px solid #444 !important;
padding: 6px 8px !important;
font-family: Arial, sans-serif !important;
}
/* 11) Code editor area */
textarea#wpTextbox1,
.CodeMirror, .ace_editor {
background: #1a1a1a !important;
color: #fff !important;
font-family: Consolas, monospace !important;
}
/* 12) Footer & logos hide */
#p-logo, .mw-wiki-logo,
#footer, #footer-info, #footer-icons,
.mw-footer-logo, .printfooter,
.ccicons, .license {
display: none !important;
}