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: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 1: Line 1:
/* All CSS here will be loaded for users of the Citizen skin */
/* All CSS here will be loaded for users of the Citizen skin */


/* ======================================================
/* ======================================================
   TREEVERSE DARK THEME
   TREEVERSE DARK THEME + MOBILE FIXES
  Forces dark backgrounds for better readability
   ====================================================== */
   ====================================================== */




/* Page background */
/* -----------------------------
  Global page background
----------------------------- */
 
body {
body {
   background-color: #0b0b0b;
   background-color: #0b0b0b;
Line 13: Line 16:




/* Main content area */
/* -----------------------------
  Main content container
----------------------------- */
 
.citizen-page-container {
  background: #0b0b0b;
}
 
 
/* -----------------------------
  Article content
----------------------------- */
 
.mw-parser-output {
.mw-parser-output {
   background-color: #111;
   background: transparent;
   color: #e6e6e6;
   color: #e6e6e6;
   max-width: 900px;
   max-width: 900px;
   margin: auto;
   margin: auto;
   padding: 10px;
   padding: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
}




/* Links */
/* -----------------------------
  Remove light panels
----------------------------- */
 
.citizen-card,
.citizen-page-container-inner,
.citizen-content-container {
  background: transparent;
  border: none;
}
 
 
/* -----------------------------
  Links
----------------------------- */
 
a {
a {
   color: #6ecbff;
   color: #6ecbff;
Line 33: Line 65:




/* Headings */
/* -----------------------------
  Headings
----------------------------- */
 
.mw-parser-output h1,
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h2,
Line 39: Line 74:
.mw-parser-output h4 {
.mw-parser-output h4 {
   color: #ffffff;
   color: #ffffff;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
}




/* Infobox styling */
/* -----------------------------
.infobox {
  Paragraph readability
   background-color: #161616;
----------------------------- */
  border: 1px solid #333;
 
   border-radius: 6px;
.mw-parser-output p {
   font-size: 1.05rem;
   line-height: 1.6;
}
}


.infobox th {
 
   background-color: #1e1e1e;
/* -----------------------------
   color: #ffffff;
  Responsive images
----------------------------- */
 
.mw-parser-output img {
   max-width: 100%;
   height: auto;
}
}


.infobox td {
  background-color: #161616;
}


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


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


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


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




/* Images stay responsive */
/* -----------------------------
.mw-parser-output img {
  Infobox
   max-width: 100%;
----------------------------- */
   height: auto;
 
.infobox {
  background: #161616;
  border: 1px solid #333;
  border-radius: 6px;
}
 
.infobox th {
   background: #1e1e1e;
  color: #ffffff;
}
 
.infobox td {
   background: #161616;
}
}




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




/* Caption styling */
/* -----------------------------
  Caption styling
----------------------------- */
 
.thumbcaption {
.thumbcaption {
   color: #bbbbbb;
   color: #bbbbbb;
  font-size: 0.9rem;
}
}




/* Prevent long text overflow */
/* -----------------------------
.mw-parser-output {
  Prevent layout overflow
  word-wrap: break-word;
----------------------------- */
   overflow-wrap: break-word;
 
.mw-body-content {
   overflow-x: hidden;
}
}




/* =========================
/* ======================================================
   Mobile layout fixes
   MOBILE FIXES
   ========================= */
   ====================================================== */


@media (max-width: 720px) {
@media (max-width: 720px) {


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


  /* Allow tables to scroll without squishing columns */
   .mw-parser-output table {
   .mw-parser-output table {
     display: block;
     display: block;
     overflow-x: auto;
     overflow-x: auto;
     white-space: nowrap;
     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 {
   .infobox {
     float: none;
     float: none;
Line 128: Line 211:
   }
   }


}
/* -----------------------------
  Darken header overlay slightly
----------------------------- */
.citizen-page-header::before {
  background: rgba(0,0,0,0.35);
}
}

Revision as of 10:41, 8 March 2026

/* 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);
}