Jump to content
Toggle menu
  • 38 articles
  • 12 files
  • 9 users
  • 377 edits
Create Server Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

This wiki may be out of date or incorrect. If you'd like to help update it, please DM me on Discord @eszn

MediaWiki:Common.css

MediaWiki interface page
Revision as of 12:38, 31 August 2026 by Maintenance script (talk | contribs) (Rebuild articles in encyclopedic format)

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.
/* Create Server Wiki: Citizen + Catppuccin theme */

/* Frappé is used for Citizen's day option. It is a softer dark palette. */
html.skin-theme-clientpref-day,
html.skin-theme-clientpref-os {
    color-scheme: dark;
    --color-base: #c6d0f5;
    --color-base--subtle: #a5adce;
    --color-surface-0: #303446;
    --color-surface-1: #414559;
    --color-surface-2: #51576d;
    --color-surface-3: #626880;
    --color-surface-4: #737994;
    --background-color-base: #303446;
    --background-color-base-fixed: #303446;
    --background-color-interactive: #414559;
    --background-color-interactive-subtle: #292c3c;
    --background-color-interactive--hover: #51576d;
    --background-color-interactive--active: #626880;
    --border-color-base: #626880;
    --border-color-subtle: #51576d;
    --color-progressive: #8caaee;
    --color-progressive--hover: #99d1db;
    --color-progressive--active: #85c1dc;
    --color-visited: #ca9ee6;
    --color-destructive: #e78284;
    --color-warning: #e5c890;
    --color-success: #a6d189;
}

/* Macchiato is used for Citizen's night option. */
html.skin-theme-clientpref-night {
    color-scheme: dark;
    --color-base: #cad3f5;
    --color-base--subtle: #a5adcb;
    --color-surface-0: #24273a;
    --color-surface-1: #363a4f;
    --color-surface-2: #494d64;
    --color-surface-3: #5b6078;
    --color-surface-4: #6e738d;
    --background-color-base: #24273a;
    --background-color-base-fixed: #24273a;
    --background-color-interactive: #363a4f;
    --background-color-interactive-subtle: #1e2030;
    --background-color-interactive--hover: #494d64;
    --background-color-interactive--active: #5b6078;
    --border-color-base: #5b6078;
    --border-color-subtle: #494d64;
    --color-progressive: #8aadf4;
    --color-progressive--hover: #91d7e3;
    --color-progressive--active: #7dc4e4;
    --color-visited: #c6a0f6;
    --color-destructive: #ed8796;
    --color-warning: #eed49f;
    --color-success: #a6da95;
}

@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os {
        --color-base: #cad3f5;
        --color-base--subtle: #a5adcb;
        --color-surface-0: #24273a;
        --color-surface-1: #363a4f;
        --color-surface-2: #494d64;
        --color-surface-3: #5b6078;
        --color-surface-4: #6e738d;
        --background-color-base: #24273a;
        --background-color-base-fixed: #24273a;
        --background-color-interactive: #363a4f;
        --background-color-interactive-subtle: #1e2030;
        --background-color-interactive--hover: #494d64;
        --background-color-interactive--active: #5b6078;
        --border-color-base: #5b6078;
        --border-color-subtle: #494d64;
        --color-progressive: #8aadf4;
        --color-progressive--hover: #91d7e3;
        --color-progressive--active: #7dc4e4;
        --color-visited: #c6a0f6;
        --color-destructive: #ed8796;
        --color-warning: #eed49f;
        --color-success: #a6da95;
    }
}

.csw-hero {
    padding: clamp(1.5rem, 4vw, 3.5rem);
    margin: 0 0 1rem;
    border: 1px solid var(--border-color-subtle);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 85% 20%, color-mix(in srgb, #ca9ee6 24%, transparent), transparent 32%),
        radial-gradient(circle at 15% 80%, color-mix(in srgb, #8caaee 20%, transparent), transparent 38%),
        linear-gradient(135deg, var(--background-color-interactive-subtle), var(--color-surface-1));
    box-shadow: 0 18px 50px rgba(17, 17, 27, 0.22);
}

.skin-theme-clientpref-night .csw-hero {
    background:
        radial-gradient(circle at 85% 20%, color-mix(in srgb, #c6a0f6 24%, transparent), transparent 32%),
        radial-gradient(circle at 15% 80%, color-mix(in srgb, #8aadf4 20%, transparent), transparent 38%),
        linear-gradient(135deg, #1e2030, #363a4f);
}

.csw-kicker {
    color: var(--color-warning);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.csw-hero-title {
    margin: 0.2rem 0 0.45rem;
    color: var(--color-base);
    font-size: clamp(2.2rem, 7vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.csw-hero-copy {
    max-width: 54rem;
    color: var(--color-base--subtle);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.csw-quicklinks {
    margin: 0 0 1rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color-subtle);
    border-radius: 0.8rem;
    background: var(--background-color-interactive-subtle);
    text-align: center;
}

.csw-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.csw-card {
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--border-color-subtle);
    border-radius: 0.9rem;
    background: var(--background-color-interactive-subtle);
}

.csw-card-wide {
    grid-column: 1 / -1;
}

.csw-card h2 {
    margin-top: 0;
    color: var(--color-progressive);
}

/* Main Page follows a conventional community-encyclopedia portal layout. */
.csw-mp-welcome {
    margin-bottom: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color-subtle);
    background: var(--background-color-interactive-subtle);
    text-align: center;
}

.csw-mp-title {
    color: var(--color-base);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.2;
}

.csw-mp-title a {
    color: inherit;
}

.csw-mp-subtitle {
    margin-top: 0.25rem;
    color: var(--color-base--subtle);
    font-size: 1rem;
}

.csw-mp-stats {
    margin-top: 0.45rem;
    font-size: 0.9rem;
}

.csw-mp-links {
    margin-bottom: 1rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border-color-subtle);
    background: var(--color-surface-1);
    font-size: 0.9rem;
    text-align: center;
}

.csw-mp-columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
    gap: 1rem;
    align-items: start;
}

.csw-mp-box {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color-subtle);
    background: var(--background-color-interactive-subtle);
}

.csw-mp-heading {
    padding: 0.45rem 0.65rem;
    border-bottom: 1px solid var(--border-color-subtle);
    border-left: 0.3rem solid var(--color-progressive);
    background: var(--color-surface-1);
    color: var(--color-base);
    font-size: 1.05rem;
    font-weight: 700;
}

.csw-mp-heading-green { border-left-color: var(--color-success); }
.csw-mp-heading-yellow { border-left-color: var(--color-warning); }
.csw-mp-heading-purple { border-left-color: var(--color-visited); }
.csw-mp-heading-red { border-left-color: var(--color-destructive); }
.csw-mp-heading-teal { border-left-color: var(--color-progressive--hover); }

.csw-mp-body {
    padding: 0.75rem 0.85rem;
}

.csw-mp-body > :first-child { margin-top: 0; }
.csw-mp-body > :last-child { margin-bottom: 0; }

.csw-news-table,
.csw-index-table,
.csw-side-table {
    width: 100%;
    border-collapse: collapse;
}

.csw-news-table th,
.csw-news-table td,
.csw-index-table th,
.csw-index-table td,
.csw-side-table th,
.csw-side-table td {
    padding: 0.38rem 0.5rem;
    border: 1px solid var(--border-color-subtle);
    vertical-align: top;
}

.csw-news-table th,
.csw-index-table th {
    width: 7rem;
    background: var(--color-surface-1);
    text-align: left;
    white-space: nowrap;
}

.csw-mp-more {
    margin-top: 0.6rem;
    text-align: right;
}

.csw-infobox {
    width: min(100%, 22rem);
    margin: 0 0 1rem 1.5rem;
    float: right;
    border: 1px solid var(--border-color-subtle);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.8rem;
    overflow: hidden;
    background: var(--background-color-interactive-subtle);
    box-shadow: 0 8px 28px rgba(17, 17, 27, 0.16);
}

.csw-infobox > caption,
.csw-infobox > tbody > tr:first-child > th {
    background: var(--color-surface-1);
}

.csw-infobox th,
.csw-infobox td {
    padding: 0.55rem 0.7rem;
    border-color: var(--border-color-subtle);
    vertical-align: top;
}

.csw-infobox th {
    width: 35%;
    color: var(--color-base--subtle);
}

.csw-infobox-subhead {
    background: var(--color-surface-1);
    color: var(--color-base--subtle);
    font-size: 0.88rem;
    text-align: center;
}

.csw-belligerents {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
}

.csw-infobox-image {
    text-align: center;
}

.csw-infobox-caption,
.csw-shortdesc {
    color: var(--color-base--subtle);
    font-size: 0.88rem;
}

.csw-shortdesc {
    margin: -0.35rem 0 1rem;
    font-style: italic;
}

.csw-navbox {
    clear: both;
    margin-top: 2rem;
    border: 1px solid var(--border-color-subtle);
    border-radius: 0.8rem;
    overflow: hidden;
    background: var(--background-color-interactive-subtle);
    font-size: 0.9rem;
}

.csw-navbox-title {
    padding: 0.6rem 0.8rem;
    background: var(--color-surface-1);
    color: var(--color-progressive);
    font-weight: 800;
    text-align: center;
}

.csw-navbox-row {
    padding: 0.45rem 0.75rem;
    border-top: 1px solid var(--border-color-subtle);
}

.csw-navbox-row strong {
    display: inline-block;
    min-width: 6.5rem;
    color: var(--color-warning);
}

.wikitable,
.mw-parser-output table.wikitable {
    border-color: var(--border-color-subtle);
    background: var(--background-color-interactive-subtle);
}

.wikitable > tr > th,
.wikitable > * > tr > th {
    background: var(--color-surface-1);
}

.csw-timeline {
    position: relative;
    margin: 1rem 0 1.5rem;
}

.csw-timeline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 9rem;
    width: 2px;
    background: var(--border-color-base);
    content: '';
}

.csw-timeline-entry {
    position: relative;
    display: grid;
    grid-template-columns: 8.1rem 1.8rem minmax(0, 1fr);
    padding: 0 0 1rem;
}

.csw-timeline-date {
    padding: 0.15rem 0.55rem 0 0;
    color: var(--color-base--subtle);
    font-size: 0.86rem;
    font-weight: 700;
    text-align: right;
}

.csw-timeline-marker {
    z-index: 1;
    width: 0.7rem;
    height: 0.7rem;
    margin: 0.35rem auto 0;
    border: 2px solid var(--background-color-base);
    border-radius: 50%;
    background: var(--color-progressive);
    box-shadow: 0 0 0 1px var(--color-progressive);
}

.csw-timeline-body {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border-color-subtle);
    background: var(--background-color-interactive-subtle);
}

.csw-timeline-title {
    margin-bottom: 0.2rem;
    color: var(--color-base);
    font-weight: 700;
}

@media (max-width: 720px) {
    .csw-mp-columns {
        grid-template-columns: 1fr;
    }

    .csw-grid {
        grid-template-columns: 1fr;
    }

    .csw-card-wide {
        grid-column: auto;
    }

    .csw-infobox {
        width: 100%;
        margin: 0 0 1rem;
        float: none;
    }

    .csw-navbox-row strong {
        display: block;
        margin-bottom: 0.2rem;
    }

    .csw-timeline::before {
        left: 0.45rem;
    }

    .csw-timeline-entry {
        grid-template-columns: 1rem minmax(0, 1fr);
    }

    .csw-timeline-marker {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .csw-timeline-date,
    .csw-timeline-body {
        grid-column: 2;
        text-align: left;
    }

    .csw-timeline-date {
        padding: 0 0 0.25rem 0.4rem;
    }
}