MediaWiki:Common.css

From Practices and Politics of Representation
Revision as of 20:08, 1 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 Dark Theme – Improved Readability & Pink Links ───────────────── */

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

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;
}

/* 2) Ensure all headings are white and Arial */
h1, h2, h3, h4, h5, h6 {
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-weight: bold !important;
  margin-top: 1em !important;
  margin-bottom: 0.5em !important;
}

/* 3) Pink links everywhere */
a, a:link, a:visited {
  color: #ff66cc !important;
  text-decoration: none !important;
}
a:hover {
  color: #ff99dd !important;
  text-decoration: underline !important;
}

/* 4) Sidebar & panels text readable */
#mw-panel, #p-navigation, #p-tb, #mw-head, .vector-menu-content, .vector-menu-tabs {
  background: #111 !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
}

/* 5) Sidebar fixed layout (optional) */
#mw-panel {
  position: fixed !important;
  top: 0; bottom: 0; left: 0;
  width: 160px;
  overflow-y: auto;
  padding-top: 20px !important;
}
.mw-body {
  margin-left: 170px !important;
}

/* 6) Tables & info boxes transparent with white text */
table, th, td, .infobox, .navbox, .metadata {
  background: transparent !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  border: none !important;
}

/* 7) Forms & buttons – dark grey, white Arial text */
input, textarea, select, button {
  background-color: #222 !important;
  color: #fff !important;
  border: none !important;
  font-family: Arial, sans-serif !important;
  padding: 6px 8px !important;
}

/* 8) CodeMirror & textarea styling */
textarea#wpTextbox1,
.CodeMirror, .ace_editor {
  background: #111 !important;
  color: #fff !important;
  font-family: Consolas, monospace !important;
}

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

/* 10) Maintain subtle separators */
hr, #toc, .mw-headline {
  border-color: #333 !important;
}