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 3: Line 3:


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




/* -----------------------------
/* Page background (keeps artwork visible on sides) */
  Global page background
----------------------------- */
 
body {
body {
   background-color: #0b0b0b;
   background-color: #0b0b0b;
Line 16: Line 13:




/* -----------------------------
/* Main article container */
  Main content container
----------------------------- */
 
.citizen-page-container {
  background: #0b0b0b;
}
 
 
/* -----------------------------
  Article content
----------------------------- */
 
.mw-parser-output {
.mw-parser-output {
   background: transparent;
   background: #0f1115;
   color: #e6e6e6;
   color: #e6e6e6;
   max-width: 900px;
   max-width: 950px;
   margin: auto;
   margin: auto;
   padding: 10px;
   padding: 24px;
  word-wrap: break-word;
   border-radius: 10px;
  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;
}
}




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




/* -----------------------------
/* Improve paragraph readability */
  Paragraph readability
----------------------------- */
 
.mw-parser-output p {
.mw-parser-output p {
   font-size: 1.05rem;
   font-size: 1.05rem;
Line 89: Line 40:




/* -----------------------------
/* Links */
  Responsive images
a {
----------------------------- */
  color: #7fd3ff;
}


.mw-parser-output img {
a:visited {
   max-width: 100%;
   color: #c49cff;
  height: auto;
}
}




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


.wikitable {
.wikitable {
   background: #161616;
   background: #161a22;
   border: 1px solid #333;
   border: 1px solid #2a2f38;
   border-radius: 6px;
   border-radius: 8px;
  overflow: hidden;
}
}


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


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




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


.infobox {
.infobox {
   background: #161616;
   background: #161a22;
   border: 1px solid #333;
   border: 1px solid #2a2f38;
   border-radius: 6px;
   border-radius: 8px;
}
}


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


.infobox td {
 
   background: #161616;
/* =========================
  Images
========================= */
 
.mw-parser-output img {
   max-width: 100%;
  height: auto;
}
}




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


pre,
pre,
Line 150: Line 104:
   color: #e6e6e6;
   color: #e6e6e6;
   overflow-x: auto;
   overflow-x: auto;
  max-width: 100%;
}
/* -----------------------------
  Caption styling
----------------------------- */
.thumbcaption {
  color: #bbbbbb;
  font-size: 0.9rem;
}
/* -----------------------------
  Prevent layout overflow
----------------------------- */
.mw-body-content {
  overflow-x: hidden;
}
}


Line 179: Line 113:
@media (max-width: 720px) {
@media (max-width: 720px) {


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


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


  /* Allow table text to wrap */
   .mw-parser-output table td,
   .mw-parser-output table td,
   .mw-parser-output table th {
   .mw-parser-output table th {
Line 198: Line 128:
   }
   }


  /* 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 211: Line 134:
   }
   }


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