MediaWiki:Common.css

From Practices and Politics of Representation
Revision as of 04:44, 2 July 2025 by Admin (talk | contribs)
Jump to navigation Jump to search

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 BLACK THEME FOR MEDIAWIKI – STABLE LAYOUT ─── */

/* 1) Base reset */
* {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* 2) Global background & font */
html, 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) Headings */
h1, h2, h3, h4, h5, h6 {
  color: #fff !important;
  border: none !important;
  background: none !important;
}

/* 4) Links */
a, a:link, a:visited {
  color: #3399ff !important;
  text-decoration: none !important;
}
a:hover {
  color: #66ccff !important;
  text-decoration: underline !important;
}

/* 5) Sidebar */
#mw-panel {
  background-color: #111 !important;
}
#mw-panel .portal h3 {
  color: #3399ff !important;
  border-bottom: 1px solid #222 !important;
}
#mw-panel .portal ul li a {
  color: #fff !important;
}

/* 6) Top action tabs */
.vector-menu-tabs, #p-views {
  background-color: #111 !important;
  border-bottom: 1px solid #222 !important;
}
.vector-menu-tabs li a,
#p-views li a {
  color: #3399ff !important;
  background: transparent !important;
}
.vector-menu-tabs li a:hover,
#p-views li a:hover {
  background: #222 !important;
  color: #66ccff !important;
}

/* 7) Page content */
#content, #bodyContent, .vector-body {
  background: #000 !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
}

/* 8) Tables & boxes */
table, th, td, .infobox, .navbox, .wikitable,
.gallerybox, .gallery, .thumb, .thumbinner,
table.infobox, .mw-parser-output table {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
}

/* 9) Horizontal lines */
hr {
  border: none !important;
  height: 0 !important;
}

/* 10) Forms & inputs */
input, textarea, select, button {
  background-color: #1a1a1a !important;
  color: #fff !important;
  border: 1px solid #333 !important;
  font-family: Arial, sans-serif !important;
}

/* 11) Search box */
#searchInput {
  background: #1a1a1a !important;
  color: #fff !important;
  border: 1px solid #333 !important;
}
#searchButton {
  background: #333 !important;
  color: #fff !important;
  border: 1px solid #333 !important;
}

/* 12) Footer cleanup */
#footer, #footer-info, #footer-icons {
  background: #000 !important;
  color: #888 !important;
}
#footer a {
  color: #3399ff !important;
}
#footer a:hover {
  color: #66ccff !important;
}

/* 13) Hide logos & unnecessary decorations */
#p-logo, .mw-wiki-logo,
.mw-footer-logo, .printfooter,
.ccicons, .license,
#footer-icons, .noprint {
  display: none !important;
}