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

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
Menhirs Fate branding - Citizen skin customization v2
 
v3: Closer to EazyDocs design, high-contrast links, accessible dark mode
Line 1: Line 1:
/*
/*
  * Menhirs Fate - MediaWiki Citizen Skin Customization v2
  * Menhirs Fate Wiki - Citizen Skin Customization v3
  * Targets the actual Citizen skin class structure.
  * Closely matches EazyDocs (menhirsfate.com/wiki) design
* while retaining full Citizen functionality and accessibility.
  */
  */


@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&display=swap');
/* ─── FONT ─────────────────────────────────────────────────────────────────── */
/* Scala Sans is the EazyDocs font — use a close system fallback */


:root {
/* ─── DARK MODE (default, matches EazyDocs) ────────────────────────────────── */
    --mf-brown: #844725;
html.skin-citizen-dark,
    --mf-brown-light: #8b7355;
html[data-citizen-theme="dark"],
     --mf-brown-hover: #a0603a;
.skin-citizen {
     --mf-parchment: #e8ddc4;
    /* Surface colors - matched to EazyDocs #111111 base */
     --mf-cream: #ede2c6;
     --color-surface-0: #111111;
     --mf-dark-bg: #131417;
     --color-surface-1: #161618;
     --mf-text-light: #eaeaea;
     --color-surface-2: #1c1c1f;
}
     --color-surface-3: #242427;
     --color-surface-4: #2c303a;


html.skin-citizen-dark, html[data-citizen-theme="dark"], .skin-citizen {
     /* Text - HIGH CONTRAST for accessibility */
    --color-surface-0: #131417;
    --color-surface-1: #1a1a1e;
    --color-surface-2: #222226;
    --color-surface-3: #2a2a2e;
     --color-surface-4: #383838;
     --color-base: #eaeaea;
     --color-base: #eaeaea;
     --color-base--emphasized: #f8f8f8;
     --color-base--emphasized: #f6f6f6;
     --color-base--subtle: #b0b0b0;
     --color-base--subtle: #9daab6;
 
    /* Primary accent - brown from MF brand, used sparingly */
     --color-primary: #844725;
     --color-primary: #844725;
     --color-primary--hover: #a0603a;
     --color-primary--hover: #a0603a;
     --color-primary--active: #6b3a1f;
     --color-primary--active: #6b3a1f;
     --color-link: #8b7355;
 
     --color-link--hover: #a0603a;
    /* Links - warm gold, high contrast on dark bg */
     --color-link--active: #844725;
     --color-link: #d4b896;
     --color-link-new: #c44;
     --color-link--hover: #e8d0b0;
     --font-family-base: "Crimson Text", Georgia, "Times New Roman", serif;
     --color-link--active: #c4a070;
     --font-family-heading: "Crimson Text", Georgia, serif;
     --color-link-new: #e06060;
 
    /* Font - Scala Sans approximation */
     --font-family-base: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
     --font-family-heading: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
}


html.skin-citizen-light, html[data-citizen-theme="light"] {
/* ─── LIGHT MODE ───────────────────────────────────────────────────────────── */
html.skin-citizen-light,
html[data-citizen-theme="light"] {
     --color-surface-0: #f5f0e8;
     --color-surface-0: #f5f0e8;
     --color-surface-1: #ebe5da;
     --color-surface-1: #ebe5da;
Line 42: Line 48:
     --color-surface-3: #d4c9b0;
     --color-surface-3: #d4c9b0;
     --color-surface-4: #c8bca4;
     --color-surface-4: #c8bca4;
     --color-base: #1a1a1e;
     --color-base: #1a1a1e;
     --color-base--emphasized: #111;
     --color-base--emphasized: #111;
     --color-base--subtle: #555;
     --color-base--subtle: #555;
     --color-primary: #844725;
     --color-primary: #844725;
     --color-primary--hover: #a0603a;
     --color-primary--hover: #a0603a;
     --color-link: #844725;
 
     --color-link--hover: #6b3a1f;
     --color-link: #6b3a1f;
     --color-link--hover: #844725;
}
}


.citizen-header { background-color: var(--mf-dark-bg); }
.citizen-drawer__logo img { max-height: 65px; }


.citizen-drawer__card {
/* ─── HEADINGS (brown accent — large enough to be readable) ────────────────── */
     background-color: #111111;
 
     border-right: 1px solid #2a2a2e;
.mw-page-title-main,
.firstHeading,
#firstHeading {
     color: var(--color-base--emphasized) !important;
    font-weight: 600;
     letter-spacing: 0.3px;
}
}
.citizen-drawer__header { border-bottom: 1px solid #2a2a2e; }
 
.citizen-drawer__menu a {
.mw-heading h2,
     color: var(--mf-cream);
.mw-body-content h2,
     font-family: "Crimson Text", Georgia, serif;
#mw-content-text h2 {
     transition: color 0.2s ease;
     color: #844725 !important;
    font-weight: 600;
    font-size: 1.6em;
    border-bottom: 1px solid #844725;
     padding-bottom: 6px;
     margin-top: 1.5em;
}
}
.citizen-drawer__menu a:hover { color: var(--mf-brown-light); }
 
.citizen-drawer__sitetitle {
.mw-heading h3,
     font-family: "Crimson Text", Georgia, serif;
.mw-body-content h3,
     color: #f6f6f6;
#mw-content-text h3 {
    color: #844725 !important;
    font-weight: 600;
     font-size: 1.3em;
     margin-top: 1.3em;
}
}


.mw-page-title-main, .firstHeading, #firstHeading {
.mw-heading h4,
    font-family: "Crimson Text", Georgia, serif !important;
.mw-body-content h4 {
     color: #f8f8f8 !important;
     color: #a0603a !important;
     font-weight: 700;
     font-weight: 600;
    letter-spacing: 0.5px;
}
}


.mw-heading h2, .mw-body-content h2, #mw-content-text h2 {
 
    color: var(--mf-brown) !important;
/* ─── BODY TEXT — matches EazyDocs sizing ──────────────────────────────────── */
     font-family: "Crimson Text", Georgia, serif;
 
     border-bottom: 1px solid rgba(132, 71, 37, 0.3);
.mw-body-content p,
    padding-bottom: 6px;
.mw-body-content li,
.mw-body-content dd {
     font-size: 1.05rem;
     line-height: 1.9;
}
}


.mw-heading h3, .mw-body-content h3, #mw-content-text h3 {
 
     color: var(--mf-brown) !important;
/* ─── DRAWER (left sidebar) ────────────────────────────────────────────────── */
    font-family: "Crimson Text", Georgia, serif;
 
.citizen-drawer__card {
     background-color: #111111;
}
}


.mw-heading h4, .mw-body-content h4 {
.citizen-drawer__menu a {
     color: var(--mf-brown-light) !important;
     transition: color 0.2s ease, background-color 0.2s ease;
    font-family: "Crimson Text", Georgia, serif;
}
}


.mw-body-content p, .mw-body-content li, .mw-body-content dd {
.citizen-drawer__menu a:hover {
     line-height: 1.85;
     color: #d4b896;
}
}


.mw-body-content a:not(.cdx-button):not(.citizen-dropdown-summary),
 
#mw-content-text a:not(.cdx-button) {
/* ─── TABLE OF CONTENTS — blue-grey like EazyDocs right sidebar ────────────── */
     color: var(--mf-brown-light);
 
.citizen-toc a {
     color: #9daab6;
    font-size: 0.85rem;
     transition: color 0.2s ease;
     transition: color 0.2s ease;
}
}
.mw-body-content a:not(.cdx-button):hover,
 
#mw-content-text a:not(.cdx-button):hover {
.citizen-toc a:hover {
     color: var(--mf-brown-hover);
     color: #d4b896;
}
}
.mw-body-content a.new { color: #c44 !important; }


.citizen-toc__card { background-color: var(--color-surface-1, #1a1a1e); }
.citizen-toc a { color: var(--mf-cream); font-size: 13px; }
.citizen-toc a:hover { color: var(--mf-brown-light); }
.citizen-toc .citizen-toc__link--active {
.citizen-toc .citizen-toc__link--active {
     color: var(--mf-brown) !important;
     color: #844725 !important;
     font-weight: 600;
     font-weight: 600;
}
}
.citizen-toc__top a {
    color: #9daab6;
}
/* ─── SEARCH — pill-shaped like EazyDocs filter ────────────────────────────── */


.citizen-search__card {
.citizen-search__card {
     background-color: var(--color-surface-2, #222226);
     border-radius: 20px;
     border: 1px solid #494949;
     overflow: hidden;
}
}
.citizen-search input { color: #f1f1f1; }
 
.citizen-search input::placeholder { color: rgba(255, 255, 255, 0.5); }
.citizen-search input {
.citizen-search .citizen-typeahead-option--active,
    color: #f8f8f8;
.citizen-search .citizen-typeahead-option:hover {
}
     background-color: rgba(132, 71, 37, 0.15);
 
.citizen-search input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
 
/* Search result hover */
.citizen-typeahead-option--active,
.citizen-typeahead-option:hover {
     background-color: rgba(212, 184, 150, 0.1) !important;
}
}
/* ─── WIKITABLE — dark theme ──────────────────────────────────────────────── */


.wikitable {
.wikitable {
     background-color: #1a1a1e;
     background-color: #161618;
     color: var(--mf-text-light);
     color: #eaeaea;
     border: 1px solid #3a3a3e;
     border: 1px solid #333;
     border-collapse: collapse;
     border-collapse: collapse;
}
}
.wikitable th {
.wikitable th {
     background-color: rgba(132, 71, 37, 0.2);
     background-color: rgba(132, 71, 37, 0.2);
     color: #f8f8f8;
     color: #f6f6f6;
     border: 1px solid #3a3a3e;
     border: 1px solid #333;
     padding: 10px 12px;
     padding: 10px 12px;
     font-weight: 600;
     font-weight: 600;
}
}
.wikitable td { border: 1px solid #3a3a3e; padding: 8px 12px; }
.wikitable td {
.wikitable tr:nth-child(even) { background-color: #1e1e22; }
    border: 1px solid #333;
.wikitable tr:hover { background-color: rgba(132, 71, 37, 0.08); }
    padding: 8px 12px;
}
.wikitable tr:nth-child(even) {
    background-color: #1c1c1f;
}
.wikitable tr:hover {
    background-color: rgba(212, 184, 150, 0.06);
}
 
 
/* ─── INFOBOX ─────────────────────────────────────────────────────────────── */


.infobox {
.infobox {
     background-color: #1a1a1e;
     background-color: #161618;
     border: 1px solid var(--mf-brown);
     border: 1px solid #844725;
     border-radius: 4px;
     border-radius: 4px;
}
}
.infobox-title {
.infobox-title {
     background-color: var(--mf-brown);
     background-color: #844725;
     color: #fff;
     color: #fff;
     padding: 10px 15px;
     padding: 10px 15px;
    font-family: "Crimson Text", Georgia, serif;
     font-size: 1.15em;
     font-size: 20px;
     font-weight: 700;
     font-weight: 700;
     text-align: center;
     text-align: center;
}
}
.infobox-image img { max-width: 100%; border-radius: 2px; }
.infobox th {
.infobox th {
     background-color: rgba(132, 71, 37, 0.15);
     background-color: rgba(132, 71, 37, 0.15);
     color: var(--mf-cream);
     color: #ede2c6;
     padding: 6px 12px;
     padding: 6px 12px;
     text-align: right;
     text-align: right;
Line 168: Line 217:
     font-weight: 600;
     font-weight: 600;
}
}
.infobox td { padding: 6px 12px; color: var(--mf-text-light); }
.infobox td {
    padding: 6px 12px;
}


.mw-category-group h3 { color: var(--mf-brown); }
 
/* ─── CATEGORY TAGS ───────────────────────────────────────────────────────── */
 
.mw-category-group h3 {
    color: #844725;
}
 
 
/* ─── FOOTER ──────────────────────────────────────────────────────────────── */


.citizen-footer {
.citizen-footer {
     background-color: #111111;
     background-color: #111111;
     border-top: 1px solid #2a2a2e;
     border-top: 1px solid #242427;
}
}
.citizen-footer a { color: var(--mf-brown-light); }
.citizen-footer a {
.citizen-footer a:hover { color: var(--mf-brown-hover); }
    color: #d4b896;
.citizen-footer__sitetitle { font-family: "Crimson Text", Georgia, serif; }
}
.citizen-footer a:hover {
    color: #e8d0b0;
}
 


textarea, .mw-editfont-monospace {
/* ─── EDIT INTERFACE ──────────────────────────────────────────────────────── */
     background-color: #1a1a1e;
 
     color: var(--mf-text-light);
textarea,
     border: 1px solid #494949;
.mw-editfont-monospace {
     background-color: #1c1c1f;
     color: #eaeaea;
     border: 1px solid #333;
}
}
/* ─── BUTTONS — brown brand accent ────────────────────────────────────────── */


.cdx-button--action-progressive {
.cdx-button--action-progressive {
     --cdx-color-progressive: var(--mf-brown);
     --cdx-color-progressive: #844725;
     --cdx-color-progressive--hover: var(--mf-brown-hover);
     --cdx-color-progressive--hover: #a0603a;
     --cdx-color-progressive--active: #6b3a1f;
     --cdx-color-progressive--active: #6b3a1f;
}
}
/* ─── RED LINKS (missing pages) ───────────────────────────────────────────── */
.mw-body-content a.new {
    color: #e06060 !important;
}
/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */


@media (max-width: 768px) {
@media (max-width: 768px) {
     .mw-page-title-main, .firstHeading { font-size: 28px !important; }
     .mw-page-title-main,
     .infobox { float: none !important; width: 100% !important; margin: 1em 0 !important; }
    .firstHeading {
        font-size: 1.6em !important;
    }
     .infobox {
        float: none !important;
        width: 100% !important;
        margin: 1em 0 !important;
    }
}
}

Revision as of 23:08, 10 March 2026

/*
 * Menhirs Fate Wiki - Citizen Skin Customization v3
 * Closely matches EazyDocs (menhirsfate.com/wiki) design
 * while retaining full Citizen functionality and accessibility.
 */

/* ─── FONT ─────────────────────────────────────────────────────────────────── */
/* Scala Sans is the EazyDocs font — use a close system fallback */

/* ─── DARK MODE (default, matches EazyDocs) ────────────────────────────────── */
html.skin-citizen-dark,
html[data-citizen-theme="dark"],
.skin-citizen {
    /* Surface colors - matched to EazyDocs #111111 base */
    --color-surface-0: #111111;
    --color-surface-1: #161618;
    --color-surface-2: #1c1c1f;
    --color-surface-3: #242427;
    --color-surface-4: #2c303a;

    /* Text - HIGH CONTRAST for accessibility */
    --color-base: #eaeaea;
    --color-base--emphasized: #f6f6f6;
    --color-base--subtle: #9daab6;

    /* Primary accent - brown from MF brand, used sparingly */
    --color-primary: #844725;
    --color-primary--hover: #a0603a;
    --color-primary--active: #6b3a1f;

    /* Links - warm gold, high contrast on dark bg */
    --color-link: #d4b896;
    --color-link--hover: #e8d0b0;
    --color-link--active: #c4a070;
    --color-link-new: #e06060;

    /* Font - Scala Sans approximation */
    --font-family-base: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-heading: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ─── LIGHT MODE ───────────────────────────────────────────────────────────── */
html.skin-citizen-light,
html[data-citizen-theme="light"] {
    --color-surface-0: #f5f0e8;
    --color-surface-1: #ebe5da;
    --color-surface-2: #e0d8cc;
    --color-surface-3: #d4c9b0;
    --color-surface-4: #c8bca4;

    --color-base: #1a1a1e;
    --color-base--emphasized: #111;
    --color-base--subtle: #555;

    --color-primary: #844725;
    --color-primary--hover: #a0603a;

    --color-link: #6b3a1f;
    --color-link--hover: #844725;
}


/* ─── HEADINGS (brown accent — large enough to be readable) ────────────────── */

.mw-page-title-main,
.firstHeading,
#firstHeading {
    color: var(--color-base--emphasized) !important;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.mw-heading h2,
.mw-body-content h2,
#mw-content-text h2 {
    color: #844725 !important;
    font-weight: 600;
    font-size: 1.6em;
    border-bottom: 1px solid #844725;
    padding-bottom: 6px;
    margin-top: 1.5em;
}

.mw-heading h3,
.mw-body-content h3,
#mw-content-text h3 {
    color: #844725 !important;
    font-weight: 600;
    font-size: 1.3em;
    margin-top: 1.3em;
}

.mw-heading h4,
.mw-body-content h4 {
    color: #a0603a !important;
    font-weight: 600;
}


/* ─── BODY TEXT — matches EazyDocs sizing ──────────────────────────────────── */

.mw-body-content p,
.mw-body-content li,
.mw-body-content dd {
    font-size: 1.05rem;
    line-height: 1.9;
}


/* ─── DRAWER (left sidebar) ────────────────────────────────────────────────── */

.citizen-drawer__card {
    background-color: #111111;
}

.citizen-drawer__menu a {
    transition: color 0.2s ease, background-color 0.2s ease;
}

.citizen-drawer__menu a:hover {
    color: #d4b896;
}


/* ─── TABLE OF CONTENTS — blue-grey like EazyDocs right sidebar ────────────── */

.citizen-toc a {
    color: #9daab6;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.citizen-toc a:hover {
    color: #d4b896;
}

.citizen-toc .citizen-toc__link--active {
    color: #844725 !important;
    font-weight: 600;
}

.citizen-toc__top a {
    color: #9daab6;
}


/* ─── SEARCH — pill-shaped like EazyDocs filter ────────────────────────────── */

.citizen-search__card {
    border-radius: 20px;
    overflow: hidden;
}

.citizen-search input {
    color: #f8f8f8;
}

.citizen-search input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* Search result hover */
.citizen-typeahead-option--active,
.citizen-typeahead-option:hover {
    background-color: rgba(212, 184, 150, 0.1) !important;
}


/* ─── WIKITABLE — dark theme ──────────────────────────────────────────────── */

.wikitable {
    background-color: #161618;
    color: #eaeaea;
    border: 1px solid #333;
    border-collapse: collapse;
}
.wikitable th {
    background-color: rgba(132, 71, 37, 0.2);
    color: #f6f6f6;
    border: 1px solid #333;
    padding: 10px 12px;
    font-weight: 600;
}
.wikitable td {
    border: 1px solid #333;
    padding: 8px 12px;
}
.wikitable tr:nth-child(even) {
    background-color: #1c1c1f;
}
.wikitable tr:hover {
    background-color: rgba(212, 184, 150, 0.06);
}


/* ─── INFOBOX ─────────────────────────────────────────────────────────────── */

.infobox {
    background-color: #161618;
    border: 1px solid #844725;
    border-radius: 4px;
}
.infobox-title {
    background-color: #844725;
    color: #fff;
    padding: 10px 15px;
    font-size: 1.15em;
    font-weight: 700;
    text-align: center;
}
.infobox th {
    background-color: rgba(132, 71, 37, 0.15);
    color: #ede2c6;
    padding: 6px 12px;
    text-align: right;
    width: 40%;
    font-weight: 600;
}
.infobox td {
    padding: 6px 12px;
}


/* ─── CATEGORY TAGS ───────────────────────────────────────────────────────── */

.mw-category-group h3 {
    color: #844725;
}


/* ─── FOOTER ──────────────────────────────────────────────────────────────── */

.citizen-footer {
    background-color: #111111;
    border-top: 1px solid #242427;
}
.citizen-footer a {
    color: #d4b896;
}
.citizen-footer a:hover {
    color: #e8d0b0;
}


/* ─── EDIT INTERFACE ──────────────────────────────────────────────────────── */

textarea,
.mw-editfont-monospace {
    background-color: #1c1c1f;
    color: #eaeaea;
    border: 1px solid #333;
}


/* ─── BUTTONS — brown brand accent ────────────────────────────────────────── */

.cdx-button--action-progressive {
    --cdx-color-progressive: #844725;
    --cdx-color-progressive--hover: #a0603a;
    --cdx-color-progressive--active: #6b3a1f;
}


/* ─── RED LINKS (missing pages) ───────────────────────────────────────────── */

.mw-body-content a.new {
    color: #e06060 !important;
}


/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .mw-page-title-main,
    .firstHeading {
        font-size: 1.6em !important;
    }
    .infobox {
        float: none !important;
        width: 100% !important;
        margin: 1em 0 !important;
    }
}