Jump to content

MediaWiki:Common.css: Difference between revisions

From Utopia Game
No edit summary
Tag: Reverted
m Reverted edits by Sonja says (talk) to last revision by YBthr
Tag: Rollback
Line 1: Line 1:
/* =========================================================
/* CSS placed here will be applied to all skins */
  GLOBAL THEME – MediaWiki 1.45 / Vector 2022
  Paste into MediaWiki:Common.css
  ========================================================= */


/* ---------- Background ---------- */
/* Vector 2022 background gradient */
html,
html,
body,
body,
Line 13: Line 10:
}
}


/* Make core content containers transparent */
/* Make content areas transparent to show gradient */
.mw-page-container,
.mw-page-container,
.mw-body,
.mw-body,
Line 21: Line 18:
}
}


/* ---------- Base text ---------- */
 
/* Default text color white */
body,
body,
.mw-body,
.mw-body,
Line 30: Line 28:
}
}


/* ---------- Headings ---------- */
/* Headings and page titles gold color */
h1, h2, h3, h4, h5, h6,
h1, h2, h3, h4, h5, h6,
.mw-headline,
.mw-headline,
Line 39: Line 37:
}
}


/* ---------- Logo ---------- */
/* Logo sizing (Vector 2022) */
.mw-logo-icon,
.mw-logo-icon,
.mw-logo-icon img,
.mw-logo-icon img,
Line 51: Line 49:
/* If the logo is applied as a background image */
/* If the logo is applied as a background image */
.mw-logo-icon {
.mw-logo-icon {
     background-size: auto 100px !important;
     background-size: auto 56px !important;
}
}


@media (max-width: 720px) {
@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 {
     .mw-logo-icon {
         background-size: auto 32px !important;
         height: 32px;
     }
     }
}
}


/* ---------- Header ---------- */
/* Full navigation bar background - Multiple selectors for Vector 2022 */
.vector-header-container,
.vector-header-container,
.vector-header,
.vector-header,
Line 77: Line 67:
}
}


/* Site name */
 
/* Site name styling in top navigation bar (Vector 2022) */
.mw-logo-wordmark,
.mw-logo-wordmark,
.mw-logo-wordmark a {
.mw-logo-wordmark a {
Line 86: Line 77:
}
}


/* Site name hover effect */
.mw-logo-wordmark a:hover {
.mw-logo-wordmark a:hover {
     color: #FFD60A !important;
     color: #FFD60A !important;
}
}


/* Sidebar headings */
/* Alternative: If the site name is in a different element */
.vector-pinnable-header-label {
    color: #FFC300 !important;
    font-size: 1.5em !important;
}
 
 
/* Sidebar "Main Menu" title - make it black */
.vector-pinnable-header-label,
.vector-pinnable-header-label,
.vector-main-menu-heading,
.vector-main-menu-heading,
Line 97: Line 96:
}
}


/* =========================================================
.ns-0 a {
  PAGE CONTENT LINK COLORS (BLUE / PURPLE / RED)
  Applies ONLY to article content (not nav/header/footer)
  ========================================================= */
 
.mw-parser-output a,
.mw-parser-output a:link {
     color: #4DA3FF !important;
     color: #4DA3FF !important;
    text-decoration: none;
}
}


/* Visited links: light purple */
.mw-parser-output a:visited {
    color: #9B7CFF !important;
}


.mw-parser-output a:hover {
/* Change color of all working internal links */
     color: #6BB6FF !important;
#content a:link {
    text-decoration: underline;
     color: #FFD60A !important;
}
}


.mw-parser-output a:active {
/* Change color of visited working internal links */
    color: #1F4FA3 !important;
#content a:visited {
}
     color: #FFC300 !important;
 
/* Missing pages (redlinks) */
.mw-parser-output a.new,
.mw-parser-output a.new:visited {
     color: #CC2200 !important;
}
}


/* =========================================================
/* Ensure missing pages (redlinks) stay red or default */
  FORCE ARTICLE TEXT TO WHITE (fixes black captions/th/dt/dd)
#content a.new,  
  ========================================================= */
#content a.new:visited {
 
     color: #CC2200 !important; /* Or remove this line to use default red */
.mw-parser-output,
.mw-parser-output p,
.mw-parser-output li,
.mw-parser-output dt,
.mw-parser-output dd,
.mw-parser-output td,
.mw-parser-output th,
.mw-parser-output caption,
.mw-parser-output .mw-headline,
.mw-parser-output .mw-parser-output {
     color: #FFFFFF !important;
}
}


/* Code blocks / preformatted */
.mw-parser-output pre,
.mw-parser-output code,
.mw-parser-output tt {
    color: #FFFFFF !important;
    background: rgba(0, 8, 20, 0.6) !important;
    border: 1px solid rgba(255, 195, 0, 0.35) !important;
    border-radius: 8px;
}


/* Blockquotes */
/* Change Navigation Icon/Link Colors */
.mw-parser-output blockquote {
#mw-panel .portal a,
     color: #FFFFFF !important;
#mw-panel .portal a:visited {
    background: rgba(0, 8, 20, 0.35) !important;
     color: #FFC300 !important; /* Change to your desired color */
    border-left: 4px solid #FFC300 !important;
    padding: 0.6em 1em;
    border-radius: 8px;
}
}


/* =========================================================
  TABLE STYLING (dark theme + gold headers + striping)
  ========================================================= */


/* General tables in content */
/* Change Footer Link Colors */
.mw-parser-output table {
div#footer ul li a,
     color: #FFFFFF !important;
div#footer ul li a:visited {
     color: #FFC300 !important; /* Change to your desired color */
}
}


/* Wikitable style (most common) */
.mw-parser-output table.wikitable,
.mw-parser-output .wikitable {
    background: rgba(0, 8, 20, 0.35) !important;
    border: 1px solid rgba(255, 195, 0, 0.65) !important;
    border-collapse: collapse !important;
}


/* Table captions */
/* Change Footer Text and Icons */
.mw-parser-output table.wikitable caption,
div#footer ul li {
.mw-parser-output .wikitable caption {
     color: #FFC300 !important;
     color: #FFC300 !important;
    font-weight: bold;
    padding: 0.4em 0.6em;
}
}


/* Table header cells */
.mw-parser-output table.wikitable th,
.mw-parser-output .wikitable th {
    background: rgba(0, 29, 61, 0.75) !important;
    color: #FFC300 !important;
    border: 1px solid rgba(255, 195, 0, 0.65) !important;
    padding: 0.5em 0.6em;
}


/* Table data cells */
/* Change Navigation Icon/Link Colors */
.mw-parser-output table.wikitable td,
#mw-panel .portal a,  
.mw-parser-output .wikitable td {
#mw-panel .portal a:visited {
    background: rgba(0, 8, 20, 0.20) !important;
     color: #FFC300 !important; /* Change to your desired color */
     color: #FFFFFF !important;
    border: 1px solid rgba(255, 195, 0, 0.35) !important;
    padding: 0.45em 0.6em;
}
}


/* Row striping */
/* ===== NAVIGATION ICONS - VECTOR 2022 ===== */
.mw-parser-output table.wikitable tr:nth-child(even) td,
/* User menu icon (person icon) */
.mw-parser-output .wikitable tr:nth-child(even) td {
.vector-user-links .vector-icon,
     background: rgba(0, 8, 20, 0.35) !important;
.vector-user-menu-login .vector-icon,
.vector-user-menu-create-account .vector-icon {
     filter: brightness(0) saturate(100%) invert(85%) sepia(67%) saturate(1000%) hue-rotate(0deg) brightness(103%) contrast(101%) !important;
}
}


/* =========================================================
/* Settings/hamburger menu icon */
  TOC (Table of Contents) – classic + Vector 2022
.vector-main-menu-action-toggle .vector-icon,
  ========================================================= */
.vector-page-tools-landmark .vector-icon {
 
     filter: brightness(0) saturate(100%) invert(85%) sepia(67%) saturate(1000%) hue-rotate(0deg) brightness(103%) contrast(101%) !important;
/* Classic TOC box */
.mw-parser-output .toc {
     background: rgba(0, 8, 20, 0.45) !important;
    border: 1px solid rgba(255, 195, 0, 0.65) !important;
    border-radius: 10px;
    padding: 0.75em 0.9em;
}
}


.mw-parser-output .toc .toctitle,
/* All navigation icons */
.mw-parser-output .toc #toctitle,
.vector-icon,
.mw-parser-output .toc .toctitle h2 {
.mw-ui-icon {
     color: #FFC300 !important;
     filter: brightness(0) saturate(100%) invert(85%) sepia(67%) saturate(1000%) hue-rotate(0deg) brightness(103%) contrast(101%) !important;
}
}


.mw-parser-output .toc a,
/* User menu links (username) */
.mw-parser-output .toc a:link {
.vector-user-links a,
    color: #4DA3FF !important;
.vector-user-menu-logged-in .vector-user-links-main a {
}
 
.mw-parser-output .toc a:visited {
    color: #9B7CFF !important;
}
 
/* Vector 2022 TOC (right-side / collapsible) */
.vector-toc,
.vector-toc .vector-toc-contents {
    background: rgba(0, 8, 20, 0.45) !important;
    border: 1px solid rgba(255, 195, 0, 0.65) !important;
    border-radius: 10px;
}
 
.vector-toc .vector-toc-text {
    color: #FFFFFF !important;
}
 
.vector-toc .vector-toc-level-1 > a,
.vector-toc .vector-toc-level-2 > a,
.vector-toc .vector-toc-level-3 > a {
    color: #4DA3FF !important;
}
 
.vector-toc a:visited {
    color: #9B7CFF !important;
}
 
.vector-toc a:hover {
    color: #6BB6FF !important;
}
 
/* =========================================================
  INFOBOX + TEMPLATE BOXES (prevents black text)
  ========================================================= */
 
/* Standard infoboxes */
.mw-parser-output .infobox,
.mw-parser-output table.infobox {
    background: rgba(0, 8, 20, 0.45) !important;
    border: 1px solid rgba(255, 195, 0, 0.65) !important;
    border-radius: 10px;
    color: #FFFFFF !important;
}
 
.mw-parser-output .infobox caption {
     color: #FFC300 !important;
     color: #FFC300 !important;
    font-weight: bold;
}
.mw-parser-output .infobox th {
    background: rgba(0, 29, 61, 0.75) !important;
    color: #FFC300 !important;
    border: 1px solid rgba(255, 195, 0, 0.35) !important;
}
.mw-parser-output .infobox td {
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 195, 0, 0.20) !important;
}
/* PortableInfobox (some templates use this) */
.mw-parser-output .portable-infobox,
.mw-parser-output .pi-border-color {
    background: rgba(0, 8, 20, 0.45) !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 195, 0, 0.65) !important;
}
}


/* Message boxes (ambox/tmbox/ombox/fmbox) */
/* ===== FOOTER LINKS - VECTOR 2022 ===== */
.mw-parser-output .ambox,
/* All footer links */
.mw-parser-output .tmbox,
.mw-parser-output .ombox,
.mw-parser-output .fmbox {
    background: rgba(0, 8, 20, 0.35) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 195, 0, 0.55) !important;
    border-left: 6px solid #FFC300 !important;
    border-radius: 10px;
}
 
/* =========================================================
  NAV / HEADER / FOOTER LINKS (GOLD)
  ========================================================= */
 
.vector-menu-content a,
#mw-panel a,
.vector-header a,
#footer a,
#footer a,
.mw-footer a {
#footer a:link,
#footer a:visited,
.mw-footer a,
.mw-footer a:link,
.mw-footer a:visited,
footer a,
footer a:link,
footer a:visited {
     color: #FFC300 !important;
     color: #FFC300 !important;
}
.vector-menu-content a:hover,
#mw-panel a:hover,
.vector-header a:hover,
#footer a:hover,
.mw-footer a:hover {
    color: #FFD60A !important;
}
}


Line 339: Line 188:
#footer li,
#footer li,
.mw-footer,
.mw-footer,
.mw-footer li {
.mw-footer li,
footer,
footer li {
     color: #FFC300 !important;
     color: #FFC300 !important;
}
}


/* =========================================================
/* Older footer selectors (keeping for compatibility) */
  VECTOR ICONS (GOLD)
div#footer ul li a,  
  ========================================================= */
div#footer ul li a:visited {
 
.vector-icon,
.mw-ui-icon {
    filter: brightness(0) saturate(100%) invert(85%) sepia(67%) saturate(1000%)
            hue-rotate(0deg) brightness(103%) contrast(101%) !important;
}
 
/* =========================================================
  GLOBAL TABLE THEME (ALL PAGES)
  Targets:
  - tables with class="wikitable"
  - common MediaWiki content tables
  ========================================================= */
 
/* Base for all wikitables everywhere */
.mw-parser-output table.wikitable,
.mw-parser-output .wikitable {
    width: 100%;
    border-collapse: collapse !important;
    border-radius: 10px;
    overflow: hidden;
    margin: 0.75em 0;
    background: rgba(0, 8, 20, 0.35) !important;
    border: 1px solid rgba(255, 195, 0, 0.55) !important;
}
 
/* Captions */
.mw-parser-output table.wikitable caption,
.mw-parser-output .wikitable caption {
    padding: 0.5em 0.75em;
    font-weight: 700;
     color: #FFC300 !important;
     color: #FFC300 !important;
    background: rgba(0, 8, 20, 0.50) !important;
    border-bottom: 1px solid rgba(255, 195, 0, 0.35) !important;
}
}


/* Header cells */
div#footer ul li {
.mw-parser-output table.wikitable th,
.mw-parser-output .wikitable th {
    background: rgba(0, 29, 61, 0.85) !important;
     color: #FFC300 !important;
     color: #FFC300 !important;
    font-weight: 700;
    border: 1px solid rgba(255, 195, 0, 0.40) !important;
    padding: 0.55em 0.65em;
}
/* Data cells */
.mw-parser-output table.wikitable td,
.mw-parser-output .wikitable td {
    background: rgba(0, 8, 20, 0.18) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 195, 0, 0.22) !important;
    padding: 0.5em 0.65em;
}
/* Zebra striping */
.mw-parser-output table.wikitable tr:nth-child(even) td,
.mw-parser-output .wikitable tr:nth-child(even) td {
    background: rgba(0, 8, 20, 0.30) !important;
}
/* Links inside tables follow your content link scheme */
.mw-parser-output table.wikitable a,
.mw-parser-output .wikitable a {
    color: #4DA3FF !important;
}
.mw-parser-output table.wikitable a:visited,
.mw-parser-output .wikitable a:visited {
    color: #9B7CFF !important;
}
.mw-parser-output table.wikitable a.new,
.mw-parser-output .wikitable a.new {
    color: #CC2200 !important;
}
/* =========================================================
  ALSO STYLE "PLAIN" CONTENT TABLES (no wikitable class)
  This catches many hand-made tables across pages.
  ========================================================= */
/* =========================================================
  GLOBAL TABLE THEME (ALL PAGES)
  Black headers, dark-gray subheaders, gray striping
  ========================================================= */
/* Base table */
.mw-parser-output table.wikitable,
.mw-parser-output .wikitable {
    width: 100%;
    border-collapse: collapse !important;
    margin: 0.75em 0;
    background: #1A1A1A !important;
    border: 1px solid #555555 !important;
}
/* Table caption */
.mw-parser-output table.wikitable caption,
.mw-parser-output .wikitable caption {
    background: #000000 !important;
    color: #FFFFFF !important;
    font-weight: bold;
    padding: 0.5em 0.7em;
    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: #FFFFFF !important;
    font-weight: 700;
    border: 1px solid #666666 !important;
    padding: 0.55em 0.7em;
}
/* SECONDARY HEADERS (th used inside tbody) */
.mw-parser-output table.wikitable tbody th,
.mw-parser-output .wikitable tbody th {
    background: #2B2B2B !important; /* dark gray */
    color: #FFFFFF !important;
    font-weight: 600;
    border: 1px solid #666666 !important;
    padding: 0.5em 0.65em;
}
/* DATA CELLS */
.mw-parser-output table.wikitable td,
.mw-parser-output .wikitable td {
    color: #FFFFFF !important;
    border: 1px solid #555555 !important;
    padding: 0.5em 0.65em;
}
/* ROW STRIPING */
.mw-parser-output table.wikitable tr:nth-child(odd) td,
.mw-parser-output .wikitable tr:nth-child(odd) td {
    background: #1F1F1F !important;
}
.mw-parser-output table.wikitable tr:nth-child(even) td,
.mw-parser-output .wikitable tr:nth-child(even) td {
    background: #2A2A2A !important;
}
/* LINKS INSIDE TABLES */
.mw-parser-output table.wikitable a,
.mw-parser-output .wikitable a {
    color: #4DA3FF !important;
}
.mw-parser-output table.wikitable a:visited,
.mw-parser-output .wikitable a:visited {
    color: #9B7CFF !important;
}
.mw-parser-output table.wikitable a.new,
.mw-parser-output .wikitable a.new {
    color: #CC2200 !important;
}
}

Revision as of 16:19, 26 January 2026

/* CSS placed here will be applied to all skins */

/* Vector 2022 background gradient */
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;
}

/* Make content areas transparent to show gradient */
.mw-page-container,
.mw-body,
#content,
.vector-body {
    background: transparent !important;
}


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

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

/* Logo sizing (Vector 2022) */
.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;
}

/* If the logo is applied as a background image */
.mw-logo-icon {
    background-size: auto 56px !important;
}

@media (max-width: 720px) {
    .mw-logo-icon {
        height: 32px;
    }
}

/* Full navigation bar background - Multiple selectors for Vector 2022 */
.vector-header-container,
.vector-header,
#mw-header-container,
.mw-header {
    background: #000814 !important;
    border-bottom: 2px solid #FFC300 !important;
}


/* Site name styling in top navigation bar (Vector 2022) */
.mw-logo-wordmark,
.mw-logo-wordmark a {
    color: #FFC300 !important;
    font-size: 1.8em !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

/* Site name hover effect */
.mw-logo-wordmark a:hover {
    color: #FFD60A !important;
}

/* Alternative: If the site name is in a different element */
.vector-pinnable-header-label {
    color: #FFC300 !important;
    font-size: 1.5em !important;
}


/* Sidebar "Main Menu" title - make it black */
.vector-pinnable-header-label,
.vector-main-menu-heading,
.mw-portlet h3 {
    color: #001D3D !important;
}

.ns-0 a {
    color: #4DA3FF !important;
}


/* Change color of all working internal links */
#content a:link {
    color: #FFD60A !important;
}

/* Change color of visited working internal links */
#content a:visited {
    color: #FFC300 !important;
}

/* Ensure missing pages (redlinks) stay red or default */
#content a.new, 
#content a.new:visited {
    color: #CC2200 !important; /* Or remove this line to use default red */
}


/* Change Navigation Icon/Link Colors */
#mw-panel .portal a, 
#mw-panel .portal a:visited {
    color: #FFC300 !important; /* Change to your desired color */
}


/* Change Footer Link Colors */
div#footer ul li a, 
div#footer ul li a:visited {
    color: #FFC300 !important; /* Change to your desired color */
}


/* Change Footer Text and Icons */
div#footer ul li {
    color: #FFC300 !important;
}


/* Change Navigation Icon/Link Colors */
#mw-panel .portal a, 
#mw-panel .portal a:visited {
    color: #FFC300 !important; /* Change to your desired color */
}

/* ===== NAVIGATION ICONS - VECTOR 2022 ===== */
/* User menu icon (person icon) */
.vector-user-links .vector-icon,
.vector-user-menu-login .vector-icon,
.vector-user-menu-create-account .vector-icon {
    filter: brightness(0) saturate(100%) invert(85%) sepia(67%) saturate(1000%) hue-rotate(0deg) brightness(103%) contrast(101%) !important;
}

/* Settings/hamburger menu icon */
.vector-main-menu-action-toggle .vector-icon,
.vector-page-tools-landmark .vector-icon {
    filter: brightness(0) saturate(100%) invert(85%) sepia(67%) saturate(1000%) hue-rotate(0deg) brightness(103%) contrast(101%) !important;
}

/* All navigation icons */
.vector-icon,
.mw-ui-icon {
    filter: brightness(0) saturate(100%) invert(85%) sepia(67%) saturate(1000%) hue-rotate(0deg) brightness(103%) contrast(101%) !important;
}

/* User menu links (username) */
.vector-user-links a,
.vector-user-menu-logged-in .vector-user-links-main a {
    color: #FFC300 !important;
}

/* ===== FOOTER LINKS - VECTOR 2022 ===== */
/* All footer links */
#footer a,
#footer a:link,
#footer a:visited,
.mw-footer a,
.mw-footer a:link,
.mw-footer a:visited,
footer a,
footer a:link,
footer a:visited {
    color: #FFC300 !important;
}

/* Footer text color */
#footer,
#footer li,
.mw-footer,
.mw-footer li,
footer,
footer li {
    color: #FFC300 !important;
}

/* Older footer selectors (keeping for compatibility) */
div#footer ul li a, 
div#footer ul li a:visited {
    color: #FFC300 !important;
}

div#footer ul li {
    color: #FFC300 !important;
}