MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
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 | ||
====================================================== */ | ====================================================== */ | ||
/* | /* ----------------------------- | ||
Global page background | |||
----------------------------- */ | |||
body { | body { | ||
background-color: #0b0b0b; | background-color: #0b0b0b; | ||
| Line 13: | Line 16: | ||
/* Main content | /* ----------------------------- | ||
Main content container | |||
----------------------------- */ | |||
.citizen-page-container { | |||
background: #0b0b0b; | |||
} | |||
/* ----------------------------- | |||
Article content | |||
----------------------------- */ | |||
.mw-parser-output { | .mw-parser-output { | ||
background | 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; | |||
} | } | ||
/* | /* ----------------------------- | ||
. | 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 { | .wikitable { | ||
background | background: #161616; | ||
border: 1px solid #333; | border: 1px solid #333; | ||
border-radius: 6px; | |||
overflow: hidden; | |||
} | } | ||
.wikitable th { | .wikitable th { | ||
background | background: #1e1e1e; | ||
color: #ffffff; | color: #ffffff; | ||
} | } | ||
.wikitable td { | .wikitable td { | ||
background | background: #161616; | ||
color: #e6e6e6; | 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 */ | /* ----------------------------- | ||
Code blocks | |||
----------------------------- */ | |||
pre, | pre, | ||
code { | code { | ||
background | 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 | /* ----------------------------- | ||
.mw- | Prevent layout overflow | ||
----------------------------- */ | |||
overflow- | |||
.mw-body-content { | |||
overflow-x: hidden; | |||
} | } | ||
/* ========================= | /* ====================================================== | ||
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; | ||
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);
}