Jump to content

MediaWiki:Common.css: Difference between revisions

From Utopia Game
No edit summary
No edit summary
Line 198: Line 198:


/* =========================================================
/* =========================================================
   TABLE OF CONTENTS (Vector 2022)
   TABLE OF CONTENTS Vector 2022 (CLEAN & FINAL)
   ========================================================= */
   ========================================================= */


#toc,
/* --- TOC container --- */
.vector-toc {
#vector-toc,
#toc {
     background: #001D3D !important;
     background: #001D3D !important;
     border: 1px solid #FFC300 !important;
     border: 1px solid #FFC300 !important;
Line 209: Line 210:
}
}


#toc .toctitle,
/* TOC title */
.vector-toc .vector-toc-title {
#vector-toc .vector-pinnable-header-label,
#toc .toctitle {
     color: #FFC300 !important;
     color: #FFC300 !important;
     font-weight: bold;
     font-weight: bold;
}
}


#toc a,
/* --- Base TOC item text --- */
.vector-toc a {
#vector-toc .vector-toc-text,
    color: #EAEAEA !important;
    text-decoration: none;
}
 
/* 1) Reset ALL children inside an expanded level-1 group */
.vector-toc-level-1.vector-toc-list-item-expanded ul .vector-toc-text,
.vector-toc-level-1.vector-toc-list-item-expanded ul a.vector-toc-link {
    color: #EAEAEA !important;  /* normal item color */
    opacity: 1 !important;
    font-weight: normal !important;
}
 
/* 2) Now style ONLY the parent label (the level-1 link text) */
.vector-toc-level-1.vector-toc-list-item-expanded
> a.vector-toc-link
.vector-toc-text {
    color: #FFC300 !important;  /* gold parent */
    opacity: 1 !important;
    font-weight: 600 !important;
}
 
 
/* Hover on any TOC item (text only) */
.vector-toc-link:hover .vector-toc-text {
    color: #FFD60A !important; /* bright gold on hover */
}
 
/* Keep active item text readable (do not change on hover) */
.vector-toc-list-item-active .vector-toc-link:hover .vector-toc-text {
    color: #000814 !important;
}
 
/* Keep expanded parent label gold even when hovered */
.vector-toc-level-1.vector-toc-list-item-expanded
> a.vector-toc-link:hover
.vector-toc-text {
    color: #FFD60A !important;
}
 
/* Base TOC link text (pinned + inline) */
#vector-toc .vector-toc-link .vector-toc-text,
#toc .toctext,
#toc a {
#toc a {
     color: #EAEAEA !important;
     color: #EAEAEA !important;
     opacity: 1 !important;
     opacity: 1 !important;
    text-decoration: none;
}
}


/* ACTIVE item: yellow background + DARK text */
/* =========================================================
#vector-toc .vector-toc-list-item-active > a.vector-toc-link,
  ACTIVE ITEM (yellow row, black text)
#vector-toc .vector-toc-list-item-active {
  ========================================================= */
    background-color: #FFD60A !important;
}
 
#vector-toc .vector-toc-list-item-active > a.vector-toc-link .vector-toc-text {
    color: #000814 !important;
    font-weight: 700 !important;
}
 
/* Expanded parent label ONLY (level-1 with children) = gold */
#vector-toc .vector-toc-level-1.vector-toc-list-item-expanded
> a.vector-toc-link
.vector-toc-text {
    color: #FFC300 !important;
    font-weight: 600 !important;
}
 
/* Reset children inside expanded section so they DON'T inherit parent color */
#vector-toc .vector-toc-level-1.vector-toc-list-item-expanded ul .vector-toc-text {
    color: #EAEAEA !important;
    font-weight: normal !important;
}
 
/* Hover: bright gold text (but DO NOT override active item) */
#vector-toc .vector-toc-link:hover .vector-toc-text {
    color: #FFD60A !important;
}
 
#vector-toc .vector-toc-list-item-active .vector-toc-link:hover .vector-toc-text {
    color: #000814 !important;
}


/* Stop highlighting the entire LI (prevents the huge yellow block) */
/* Prevent parent <li> from becoming a giant block */
#vector-toc .vector-toc-list-item-active {
#vector-toc .vector-toc-list-item-active {
     background: transparent !important;
     background: transparent !important;
}
}


/* Highlight ONLY the clickable row */
/* Highlight ONLY the active row */
#vector-toc .vector-toc-list-item-active > a.vector-toc-link {
#vector-toc .vector-toc-list-item-active > a.vector-toc-link {
     background-color: #FFD60A !important;
     background-color: #FFD60A !important;
}
}


/* Active row text stays dark for contrast */
/* Active text = black */
#vector-toc .vector-toc-list-item-active > a.vector-toc-link .vector-toc-text {
    color: #000814 !important;
    font-weight: 700 !important;
}
 
/* Active (highlighted) TOC row text */
#vector-toc .vector-toc-list-item-active
#vector-toc .vector-toc-list-item-active
> a.vector-toc-link
> a.vector-toc-link
.vector-toc-text {
.vector-toc-text {
     color: #000814 !important;   /* black */
     color: #000814 !important;
     font-weight: 700 !important;
     font-weight: 700 !important;
}
}


/* Prevent hover from changing active text color */
/* =========================================================
#vector-toc .vector-toc-list-item-active
  EXPANDED PARENT (level-1 with children)
> a.vector-toc-link:hover
  ========================================================= */
 
/* Parent label = gold when expanded */
#vector-toc
.vector-toc-level-1.vector-toc-list-item-expanded
> a.vector-toc-link
.vector-toc-text {
.vector-toc-text {
     color: #000814 !important;
     color: #FFC300 !important;
    font-weight: 600 !important;
}
}


/* =========================================================
/* Parent label = black when child is active */
  TOC – PARENT LABEL BLACK WHEN CHILD IS ACTIVE
  ========================================================= */
 
/* When a level-1 parent is both expanded AND active */
#vector-toc
#vector-toc
.vector-toc-level-1.vector-toc-list-item-expanded.vector-toc-list-item-active
.vector-toc-level-1.vector-toc-list-item-expanded.vector-toc-list-item-active
> a.vector-toc-link
> a.vector-toc-link
.vector-toc-text {
.vector-toc-text {
     color: #000814 !important; /* ink black */
     color: #000814 !important;
     font-weight: 700 !important;
     font-weight: 700 !important;
}
}


/* Reset children so they NEVER inherit parent color */
#vector-toc
.vector-toc-level-1.vector-toc-list-item-expanded
ul .vector-toc-text {
    color: #EAEAEA !important;
    font-weight: normal !important;
}


/* =========================================================
/* =========================================================
   TOC – FIX HOVER COLOR VS ACTIVE COLOR
   HOVER BEHAVIOR
   ========================================================= */
   ========================================================= */


/* Hover = gold (for ALL non-active items) */
/* Hover = gold (non-active items only) */
#vector-toc .vector-toc-list-item:not(.vector-toc-list-item-active)
#vector-toc
.vector-toc-list-item:not(.vector-toc-list-item-active)
> a.vector-toc-link:hover
> a.vector-toc-link:hover
.vector-toc-text {
.vector-toc-text {
     color: #FFD60A !important; /* gold */
     color: #FFD60A !important;
}
}


/* Active item text stays black even on hover */
/* Active item stays black on hover */
#vector-toc .vector-toc-list-item-active
#vector-toc
.vector-toc-list-item-active
> a.vector-toc-link:hover
> a.vector-toc-link:hover
.vector-toc-text {
.vector-toc-text {
     color: #000814 !important;
     color: #000814 !important;
}
}


/* =========================================================
/* =========================================================
   TABLE OF CONTENTS – REMOVE WHITE OUTER BACKGROUND
   REMOVE WHITE WRAPPERS (Vector 2022)
   ========================================================= */
   ========================================================= */


/* Outer TOC container */
.vector-toc-container,
.vector-toc,
#vector-toc-pinned-container,
#toc {
.vector-pinned-container {
    background: #001D3D !important;
}
 
/* Vector 2022 TOC wrapper */
.vector-toc-container {
     background: transparent !important;
     background: transparent !important;
     border: none !important;
     border: none !important;
Line 379: Line 309:
}
}


/* Inline TOC (non-sidebar mode) */
/* Inline (article) TOC only */
.mw-parser-output > .toc {
.mw-parser-output > .toc {
     background: #001D3D !important;
     background: #001D3D !important;
     border: 1px solid #FFC300 !important;
     border: 1px solid #FFC300 !important;
}
/* =========================================================
  VECTOR 2022 TOC – REMOVE WHITE PINNED CONTAINER
  ========================================================= */
#vector-toc-pinned-container,
.vector-pinned-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
}

Revision as of 15:21, 27 January 2026

/* =========================================================
   GLOBAL THEME – MediaWiki 1.45 / Vector 2022
   ========================================================= */

/* ---------- Background ---------- */
html,
body,
.vector-feature-page-tools-disabled .mw-page-container,
.vector-feature-page-tools-enabled .mw-page-container {
    background: linear-gradient(0deg, #001D3D 0%, #000814 40%) !important;
    background-attachment: fixed !important;
}

/* Transparent content containers */
.mw-page-container,
.mw-body,
#content,
.vector-body {
    background: transparent !important;
}

/* ---------- Base text ---------- */
body,
.mw-body,
.mw-body-content,
#mw-content-text,
.vector-body {
    color: #FFFFFF !important;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6,
.mw-headline,
#firstHeading,
.mw-page-title-main,
.page-Main_Page h1 {
    color: #FFC300 !important;
}

/* ---------- Logo ---------- */
.mw-logo-icon,
.mw-logo-icon img,
.mw-logo img,
.mw-logo a.mw-logo-container img {
    height: 100px !important;
    width: auto !important;
    max-height: 100px !important;
}

.mw-logo-icon {
    background-size: auto 100px !important;
}

@media (max-width: 720px) {
    .mw-logo-icon,
    .mw-logo-icon img,
    .mw-logo img,
    .mw-logo a.mw-logo-container img {
        height: 32px !important;
        max-height: 32px !important;
    }

    .mw-logo-icon {
        background-size: auto 32px !important;
    }
}

/* ---------- Header ---------- */
.vector-header-container,
.vector-header,
#mw-header-container,
.mw-header {
    background: #000814 !important;
    border-bottom: 2px solid #FFC300 !important;
}

/* Site name */
.mw-logo-wordmark,
.mw-logo-wordmark a {
    color: #FFC300 !important;
    font-size: 1.8em !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

.mw-logo-wordmark a:hover {
    color: #FFD60A !important;
}

/* Sidebar headings */
.vector-pinnable-header-label,
.vector-main-menu-heading,
.mw-portlet h3 {
    color: #FFC300 !important;
}

/* =========================================================
   PAGE CONTENT LINKS
   ========================================================= */

.mw-parser-output a,
.mw-parser-output a:link {
    color: #4DA3FF !important;
}

.mw-parser-output a:visited {
    color: #9B7CFF !important;
}

.mw-parser-output a:hover {
    color: #6BB6FF !important;
    text-decoration: underline;
}

.mw-parser-output a:active {
    color: #1F4FA3 !important;
}

/* Missing pages */
.mw-parser-output a.new,
.mw-parser-output a.new:visited {
    color: #CC2200 !important;
}

/* =========================================================
   FORCE ARTICLE TEXT TO WHITE (EXCEPT TABLE CELLS)
   ========================================================= */

.mw-parser-output,
.mw-parser-output p,
.mw-parser-output li,
.mw-parser-output dt,
.mw-parser-output dd,
.mw-parser-output caption {
    color: #FFFFFF !important;
}

/* =========================================================
   GLOBAL TABLE THEME (ALL PAGES)
   ========================================================= */

.mw-parser-output table.wikitable,
.mw-parser-output .wikitable {
    width: 100%;
    border-collapse: collapse !important;
    margin: 0.75em 0;
    background: #303030 !important;
    border: 1px solid #555555 !important;
}

/* Captions */
.mw-parser-output table.wikitable caption,
.mw-parser-output .wikitable caption {
    background: #001D3D !important;
    color: #FFFFFF !important;
    font-weight: bold;
    padding: 0.5em 0.7em !important;
    border-bottom: 1px solid #555555 !important;
}

/* Primary header row */
.mw-parser-output table.wikitable thead th,
.mw-parser-output .wikitable thead th {
    background: #000000 !important;
    color: #EAEAEA !important;
    font-weight: 700;
    border: 1px solid #666666 !important;
    padding: 0.5em 0.7em !important;
}

/* =========================================================
   Alternating row colors (tbody only)
   ========================================================= */

.mw-parser-output table.wikitable tbody tr:nth-child(odd),
.mw-parser-output .wikitable tbody tr:nth-child(odd) {
    background-color: #303030 !important;
}

.mw-parser-output table.wikitable tbody tr:nth-child(even),
.mw-parser-output .wikitable tbody tr:nth-child(even) {
    background-color: #505050 !important;
}

/* Table body cells */
.mw-parser-output table.wikitable tbody td,
.mw-parser-output .wikitable tbody td {
    border: 1px solid #555555 !important;
    color: #EAEAEA !important;
    padding: 0.5em 0.7em !important;
}

/* Links inside table cells */
.mw-parser-output table.wikitable tbody td a,
.mw-parser-output .wikitable tbody td a {
    color: #EAEAEA !important;
}

/* =========================================================
   TABLE OF CONTENTS – Vector 2022 (CLEAN & FINAL)
   ========================================================= */

/* --- TOC container --- */
#vector-toc,
#toc {
    background: #001D3D !important;
    border: 1px solid #FFC300 !important;
    border-radius: 6px;
    padding: 0.75em;
}

/* TOC title */
#vector-toc .vector-pinnable-header-label,
#toc .toctitle {
    color: #FFC300 !important;
    font-weight: bold;
}

/* --- Base TOC item text --- */
#vector-toc .vector-toc-text,
#toc a {
    color: #EAEAEA !important;
    opacity: 1 !important;
    text-decoration: none;
}

/* =========================================================
   ACTIVE ITEM (yellow row, black text)
   ========================================================= */

/* Prevent parent <li> from becoming a giant block */
#vector-toc .vector-toc-list-item-active {
    background: transparent !important;
}

/* Highlight ONLY the active row */
#vector-toc .vector-toc-list-item-active > a.vector-toc-link {
    background-color: #FFD60A !important;
}

/* Active text = black */
#vector-toc .vector-toc-list-item-active
> a.vector-toc-link
.vector-toc-text {
    color: #000814 !important;
    font-weight: 700 !important;
}

/* =========================================================
   EXPANDED PARENT (level-1 with children)
   ========================================================= */

/* Parent label = gold when expanded */
#vector-toc
.vector-toc-level-1.vector-toc-list-item-expanded
> a.vector-toc-link
.vector-toc-text {
    color: #FFC300 !important;
    font-weight: 600 !important;
}

/* Parent label = black when child is active */
#vector-toc
.vector-toc-level-1.vector-toc-list-item-expanded.vector-toc-list-item-active
> a.vector-toc-link
.vector-toc-text {
    color: #000814 !important;
    font-weight: 700 !important;
}

/* Reset children so they NEVER inherit parent color */
#vector-toc
.vector-toc-level-1.vector-toc-list-item-expanded
ul .vector-toc-text {
    color: #EAEAEA !important;
    font-weight: normal !important;
}

/* =========================================================
   HOVER BEHAVIOR
   ========================================================= */

/* Hover = gold (non-active items only) */
#vector-toc
.vector-toc-list-item:not(.vector-toc-list-item-active)
> a.vector-toc-link:hover
.vector-toc-text {
    color: #FFD60A !important;
}

/* Active item stays black on hover */
#vector-toc
.vector-toc-list-item-active
> a.vector-toc-link:hover
.vector-toc-text {
    color: #000814 !important;
}

/* =========================================================
   REMOVE WHITE WRAPPERS (Vector 2022)
   ========================================================= */

.vector-toc-container,
#vector-toc-pinned-container,
.vector-pinned-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Inline (article) TOC only */
.mw-parser-output > .toc {
    background: #001D3D !important;
    border: 1px solid #FFC300 !important;
}