MediaWiki:Common.css

From Practices and Politics of Representation
Revision as of 07:25, 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.
/* === BASE === */
html, body,
#content, #bodyContent,
.mw-body, .mw-page-container, .vector-body,
#mw-panel, #p-navigation, #p-tb, .portal,
#footer, #footer-info, #footer-icons,
#searchform, .vector-menu-tabs, #p-views {
  background-color: #000 !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  border: none !important;
  box-shadow: none !important;
}

/* === HEADINGS (no lines) === */
h1, h2, h3, h4, h5, h6 {
  color: #fff !important;
  border: none !important;
  background: none !important;
}

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

/* === SEARCH BAR === */
#searchInput, #searchButton,
input, textarea, select, button {
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  box-shadow: none !important;
}

/* === TOC & INFOBOX === */
.toc, .infobox, .mw-parser-output .infobox, .metadata {
  background-color: #000 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

/* === GALLERY / IMAGE BOXES / THUMBNAILS === */
.gallerybox, .thumb, .thumbinner, .thumbcaption,
figure, figcaption,
.mw-gallery-traditional .gallerybox,
.thumb div {
  background-color: #000 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

/* === TABLES (remove grey borders) === */
table, th, td {
  background-color: transparent !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

/* === SIDEBAR === */
#mw-panel, .portal, #p-navigation, #p-tb {
  background-color: #000 !important;
  border: none !important;
}
#mw-panel .portal h3 {
  color: #3399ff !important;
}
#mw-panel .portal ul li a {
  color: #fff !important;
}

/* === FOOTER === */
#footer, #footer-info, #footer-icons {
  background-color: #000 !important;
  color: #888 !important;
  border: none !important;
}
#footer a {
  color: #3399ff !important;
}
#footer a:hover {
  color: #66ccff !important;
}

/* === HIDE LOGOS & EXTRAS === */
#p-logo, .mw-wiki-logo,
.mw-footer-logo, .printfooter,
.ccicons, .license,
#footer-icons, .noprint {
  display: none !important;
}

/* === CATEGORY BAR, PAGE INFO, UNWANTED BACKGROUNDS === */
#catlinks, .catlinks, .printfooter,
.page-info, .mw-hidden-catlinks,
.mw-footer, .visualClear {
  background-color: #000 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

/* === OVERRIDE ANY REMAINING WHITES === */
* {
  background-color: transparent !important;
  border-color: transparent !important;
}