Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css

MediaWiki interface page
Revision as of 10:41, 8 March 2026 by QTPi (talk | contribs)

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.
/* All CSS here will be loaded for users of the Citizen skin */


/* ======================================================
   TREEVERSE DARK THEME + MOBILE FIXES
   ====================================================== */


/* -----------------------------
   Global page background
----------------------------- */

body {
  background-color: #0b0b0b;
}


/* -----------------------------
   Main content container
----------------------------- */

.citizen-page-container {
  background: #0b0b0b;
}


/* -----------------------------
   Article content
----------------------------- */

.mw-parser-output {
  background: transparent;
  color: #e6e6e6;
  max-width: 900px;
  margin: auto;
  padding: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


/* -----------------------------
   Remove light panels
----------------------------- */

.citizen-card,
.citizen-page-container-inner,
.citizen-content-container {
  background: transparent;
  border: none;
}


/* -----------------------------
   Links
----------------------------- */

a {
  color: #6ecbff;
}

a:visited {
  color: #b18cff;
}


/* -----------------------------
   Headings
----------------------------- */

.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4 {
  color: #ffffff;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}


/* -----------------------------
   Paragraph readability
----------------------------- */

.mw-parser-output p {
  font-size: 1.05rem;
  line-height: 1.6;
}


/* -----------------------------
   Responsive images
----------------------------- */

.mw-parser-output img {
  max-width: 100%;
  height: auto;
}


/* -----------------------------
   Tables
----------------------------- */

.wikitable {
  background: #161616;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
}

.wikitable th {
  background: #1e1e1e;
  color: #ffffff;
}

.wikitable td {
  background: #161616;
  color: #e6e6e6;
}


/* -----------------------------
   Infobox
----------------------------- */

.infobox {
  background: #161616;
  border: 1px solid #333;
  border-radius: 6px;
}

.infobox th {
  background: #1e1e1e;
  color: #ffffff;
}

.infobox td {
  background: #161616;
}


/* -----------------------------
   Code blocks
----------------------------- */

pre,
code {
  background: #111;
  color: #e6e6e6;
  overflow-x: auto;
  max-width: 100%;
}


/* -----------------------------
   Caption styling
----------------------------- */

.thumbcaption {
  color: #bbbbbb;
  font-size: 0.9rem;
}


/* -----------------------------
   Prevent layout overflow
----------------------------- */

.mw-body-content {
  overflow-x: hidden;
}


/* ======================================================
   MOBILE FIXES
   ====================================================== */

@media (max-width: 720px) {

  /* Better mobile padding */
  .mw-parser-output {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Allow tables to scroll without squishing columns */
  .mw-parser-output table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }

  /* Allow table text to wrap */
  .mw-parser-output table td,
  .mw-parser-output table th {
    white-space: normal;
  }

  /* Images inside tables scale properly */
  .mw-parser-output table img {
    max-width: 100%;
    height: auto;
  }

  /* Infobox stacks nicely on mobile */
  .infobox {
    float: none;
    width: 100%;
    margin: 1em auto;
  }

}


/* -----------------------------
   Darken header overlay slightly
----------------------------- */

.citizen-page-header::before {
  background: rgba(0,0,0,0.35);
}