MediaWiki:Common.css

From Practices and Politics of Representation
Revision as of 07:21, 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 === */
body, html,
#content, #bodyContent, .mw-body, .mw-page-container, .vector-body,
#mw-panel, #p-navigation, #p-tb,
#footer, #footer-info, #footer-icons {
  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;
}

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

/* === GALLERY IMAGES – remove background/frames === */
.thumb, .thumbinner, .gallerybox, .thumbcaption,
.mw-gallery-traditional .gallerybox {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* === REMOVE IMAGE BOX BORDERS (right) === */
table, th, td {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* === SIDEBAR === */
#mw-panel, .portal {
  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: #999 !important;
}
#footer a {
  color: #3399ff !important;
}
#footer a:hover {
  color: #66ccff !important;
}

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

/* === FLAT BLACK THEME FIXES === */

/* 1. Sidebar search box black */
#searchInput,
#searchGoButton,
#searchform input,
#searchform button {
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  box-shadow: none !important;
}

/* 2. Infobox (right-hand image box) fully black */
.infobox,
table.infobox,
table.infobox td,
table.infobox th {
  background-color: #000 !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
}

/* 3. Remove white background from image display */
.thumbinner,
.gallerybox,
.thumbcaption,
.mw-parser-output .metadata {
  background-color: #000 !important;
  border: none !important;
  box-shadow: none !important;
}

/* 4. Remove the large white bottom bar (if present) */
.printfooter,
#catlinks,
.catlinks {
  background-color: #000 !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
}

/* 5. General reset for footer and surrounding zones */
#footer,
#footer-info,
#footer-icons {
  background-color: #000 !important;
  color: #888 !important;
  border: none !important;
}

/* 6. Image caption area (below images, e.g., "AI Floor plan") fully black */
.thumbcaption {
  background-color: #000 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

/* Fix final image caption background ("AI Floor plan") */
figure,
figcaption,
.thumb,
.thumbcaption,
.thumbinner {
  background-color: #000 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

.thumb div {
  background-color: #000 !important;
  border: none !important;
}