Jump to content

MediaWiki:Common.css: Difference between revisions

From Utopia Game
No edit summary
Undo revision 857 by YBthr (talk)
Tag: Undo
 
(40 intermediate revisions by 3 users not shown)
Line 8: Line 8:
.vector-feature-page-tools-disabled .mw-page-container,
.vector-feature-page-tools-disabled .mw-page-container,
.vector-feature-page-tools-enabled .mw-page-container {
.vector-feature-page-tools-enabled .mw-page-container {
    background: linear-gradient(0deg, #001D3D 0%, #000814 40%) !important;
  background: linear-gradient(0deg, #001D3D 0%, #000814 40%) !important;
    background-attachment: fixed !important;
  background-attachment: fixed !important;
}
}


Line 15: Line 15:
.mw-page-container,
.mw-page-container,
.mw-body,
.mw-body,
#content,
.vector-body {
.vector-body {
    background: transparent !important;
  background: transparent !important;
}
}


Line 26: Line 25:
#mw-content-text,
#mw-content-text,
.vector-body {
.vector-body {
    color: #FFFFFF !important;
  color: #fff !important;
}
}


Line 35: Line 34:
.mw-page-title-main,
.mw-page-title-main,
.page-Main_Page h1 {
.page-Main_Page h1 {
    color: #FFC300 !important;
  color: #FFC300 !important;
}
}


Line 43: Line 42:
.mw-logo img,
.mw-logo img,
.mw-logo a.mw-logo-container img {
.mw-logo a.mw-logo-container img {
    height: 100px !important;
  height: 100px !important;
    width: auto !important;
  width: auto !important;
    max-height: 100px !important;
  max-height: 100px !important;
}
 
.mw-logo-icon {
    background-size: auto 100px !important;
}
}
.mw-logo-icon { background-size: auto 100px !important; }


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


Line 71: Line 64:
#mw-header-container,
#mw-header-container,
.mw-header {
.mw-header {
    background: #000814 !important;
  background: #000814 !important;
    border-bottom: 2px solid #FFC300 !important;
  border-bottom: 2px solid #FFC300 !important;
}
}


Line 78: Line 71:
.mw-logo-wordmark,
.mw-logo-wordmark,
.mw-logo-wordmark a {
.mw-logo-wordmark a {
    color: #FFC300 !important;
  color: #FFC300 !important;
    font-size: 1.8em !important;
  font-size: 1.8em !important;
    font-weight: bold !important;
  font-weight: bold !important;
    text-decoration: none !important;
  text-decoration: none !important;
}
 
.mw-logo-wordmark a:hover {
    color: #FFD60A !important;
}
}
.mw-logo-wordmark a:hover { color: #FFD60A !important; }


/* Sidebar headings */
/* Sidebar headings */
Line 92: Line 82:
.vector-main-menu-heading,
.vector-main-menu-heading,
.mw-portlet h3 {
.mw-portlet h3 {
    color: #FFC300 !important;
  color: #FFC300 !important;
}
}


Line 98: Line 88:
   PAGE CONTENT LINKS
   PAGE CONTENT LINKS
   ========================================================= */
   ========================================================= */
.mw-parser-output a { 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; }
.mw-parser-output a.new,
.mw-parser-output a.new:visited { color: #CC2200 !important; }
/* Optional: keep only if something is overriding text colors inside articles */
/* .mw-parser-output { color: #fff !important; } */


.mw-parser-output a,
/* =========================================================
.mw-parser-output a:link {
  GLOBAL TABLE THEME (ALL PAGES)
    color: #4DA3FF !important;
  ========================================================= */
.mw-parser-output .wikitable {
  width: 100%;
  border-collapse: collapse !important;
  margin: 0.75em 0;
  background: #303030 !important;
  border: 1px solid #555555 !important;
}
}


.mw-parser-output a:visited {
.mw-parser-output .wikitable caption {
    color: #9B7CFF !important;
  background: #001D3D !important;
  color: #fff !important;
  font-weight: bold;
  padding: 0.5em 0.7em !important;
  border-bottom: 1px solid #555555 !important;
}
}


.mw-parser-output a:hover {
.mw-parser-output .wikitable thead th {
    color: #6BB6FF !important;
  background: #000 !important;
    text-decoration: underline;
  color: #EAEAEA !important;
  font-weight: 700;
  border: 1px solid #666666 !important;
  padding: 0.5em 0.7em !important;
}
}


.mw-parser-output a:active {
.mw-parser-output .wikitable tbody tr:nth-child(odd) { background-color: #303030 !important; }
    color: #1F4FA3 !important;
.mw-parser-output .wikitable tbody tr:nth-child(even) { background-color: #505050 !important; }
}


/* Missing pages */
.mw-parser-output .wikitable tbody td {
.mw-parser-output a.new,
  border: 1px solid #555555 !important;
.mw-parser-output a.new:visited {
  color: #EAEAEA !important;
    color: #CC2200 !important;
  padding: 0.5em 0.7em !important;
}
}


/* =========================================================
/* =========================================================
   FORCE ARTICLE TEXT TO WHITE (EXCEPT TABLE CELLS)
   TABLE OF CONTENTS – Vector 2022
   ========================================================= */
   ========================================================= */
#vector-toc,
#toc {
  background: #001D3D !important;
  border: 1px solid #FFC300 !important;
  border-radius: 6px;
  padding: 0.75em;
}
#vector-toc .vector-pinnable-header-label,
#toc .toctitle {
  color: #FFC300 !important;
  font-weight: bold;
}
#vector-toc .vector-toc-text,
#toc a {
  color: #EAEAEA !important;
  opacity: 1 !important;
  text-decoration: none;
}
/* Active item */
#vector-toc .vector-toc-list-item-active { background: transparent !important; }
#vector-toc .vector-toc-list-item-active > a.vector-toc-link { 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 rules */
#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;
}
#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;
}
#vector-toc .vector-toc-level-1.vector-toc-list-item-expanded ul .vector-toc-text {
  color: #EAEAEA !important;
  font-weight: normal !important;
}
/* Hover */
#vector-toc .vector-toc-list-item:not(.vector-toc-list-item-active) > a.vector-toc-link:hover .vector-toc-text {
  color: #FFD60A !important;
}
#vector-toc .vector-toc-list-item-active > a.vector-toc-link:hover .vector-toc-text {
  color: #000814 !important;
}


.mw-parser-output,
/* Remove wrappers */
.mw-parser-output p,
.vector-toc-container,
.mw-parser-output li,
#vector-toc-pinned-container,
.mw-parser-output dt,
.vector-pinned-container {
.mw-parser-output dd,
  background: transparent !important;
.mw-parser-output caption {
  border: none !important;
    color: #FFFFFF !important;
  box-shadow: none !important;
}
 
/* Inline (article) TOC only */
.mw-parser-output > .toc {
  background: #001D3D !important;
  border: 1px solid #FFC300 !important;
}
}


/* =========================================================
/* =========================================================
   GLOBAL TABLE THEME (ALL PAGES)
   Draft Cost Formula
   ========================================================= */
   ========================================================= */
.formula-box {
  background: #001D3D;
  border: 1px solid #FFC300;
  border-radius: 10px;
  padding: 0.8em 1em;
  margin: 0.75em 0;
  color: #EAEAEA;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
}
.formula-box a { color: #4DA3FF !important; }
.formula-box a:visited { color: #9B7CFF !important; }
/* =========================
  Vector 2022 – RIGHT PAGE TOOLS: remove the fade/gradient
  ========================= */
.vector-page-tools::before,
.vector-page-tools::after,
.vector-page-tools-container::before,
.vector-page-tools-container::after,
.vector-page-tools-landmark::before,
.vector-page-tools-landmark::after,
.vector-sticky-pinned-container::before,
.vector-sticky-pinned-container::after,
.vector-page-tools .vector-sticky-pinned-container::before,
.vector-page-tools .vector-sticky-pinned-container::after {
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
/* 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;
}


.mw-parser-output table.wikitable,
 
.mw-parser-output .wikitable {
/* Change Navigation Icon/Link Colors */
    width: 100%;
#mw-panel .portal a,
    border-collapse: collapse !important;
#mw-panel .portal a:visited {
    margin: 0.75em 0;
    color: #FFC300 !important; /* Change to your desired color */
    background: #303030 !important;
}
    border: 1px solid #555555 !important;
 
/* ===== 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;
}
}


/* Captions */
/* Settings/hamburger menu icon */
.mw-parser-output table.wikitable caption,
.vector-main-menu-action-toggle .vector-icon,
.mw-parser-output .wikitable caption {
.vector-page-tools-landmark .vector-icon {
    background: #001D3D !important;
    filter: brightness(0) saturate(100%) invert(85%) sepia(67%) saturate(1000%) hue-rotate(0deg) brightness(103%) contrast(101%) !important;
    color: #FFFFFF !important;
    font-weight: bold;
    padding: 0.5em 0.7em !important;
    border-bottom: 1px solid #555555 !important;
}
}


/* Primary header row */
/* All navigation icons */
.mw-parser-output table.wikitable thead th,
.vector-icon,
.mw-parser-output .wikitable thead th {
.mw-ui-icon {
    background: #000000 !important;
    filter: brightness(0) saturate(100%) invert(85%) sepia(67%) saturate(1000%) hue-rotate(0deg) brightness(103%) contrast(101%) !important;
    color: #EAEAEA !important;
    font-weight: 700;
    border: 1px solid #666666 !important;
    padding: 0.5em 0.7em !important;
}
}


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


.mw-parser-output table.wikitable tbody tr:nth-child(odd),
/* ===== FOOTER LINKS - VECTOR 2022 ===== */
.mw-parser-output .wikitable tbody tr:nth-child(odd) {
/* All footer links */
    background-color: #303030 !important;
#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;
}
}


.mw-parser-output table.wikitable tbody tr:nth-child(even),
/* Footer text color */
.mw-parser-output .wikitable tbody tr:nth-child(even) {
#footer,
    background-color: #505050 !important;
#footer li,
.mw-footer,
.mw-footer li,
footer,
footer li {
    color: #FFC300 !important;
}
}


/* Table body cells */
/* Older footer selectors (keeping for compatibility) */
.mw-parser-output table.wikitable tbody td,
div#footer ul li a,  
.mw-parser-output .wikitable tbody td {
div#footer ul li a:visited {
    border: 1px solid #555555 !important;
    color: #FFC300 !important;
    color: #EAEAEA !important;
    padding: 0.5em 0.7em !important;
}
}


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


/* =========================================================
/* =========================================================
   TABLE OF CONTENTS (Vector 2022)
   VECTOR 2022 – PAGE ACTIONS / TABS COLOR CONTROL
  Applies to: Main Page | Discussion | Read | Edit | History | Tools
   ========================================================= */
   ========================================================= */


#toc,
/* Default page action links (not active) */
.vector-toc {
.vector-page-toolbar a,
    background: #001D3D !important;
.vector-page-toolbar a:link,
     border: 1px solid #FFC300 !important;
.vector-page-toolbar a:visited,
    border-radius: 6px;
.vector-page-toolbar .mw-ui-icon a {
    padding: 0.75em;
     color: #FFC300 !important;
}
}


#toc .toctitle,
/* Hover state (optional subtle brighten) */
.vector-toc .vector-toc-title {
.vector-page-toolbar a:hover {
     color: #FFC300 !important;
     color: #FFD60A !important;
    font-weight: bold;
}
}


#toc a,
/* ACTIVE / CURRENT TAB (e.g. Main Page, Edit when editing) */
.vector-toc a {
.vector-page-toolbar .selected a,
     color: #EAEAEA !important;
.vector-page-toolbar .mw-ui-button.mw-ui-progressive,
    text-decoration: none;
.vector-page-toolbar .mw-ui-button.mw-ui-progressive:visited {
     color: #FFFFFF !important;
}
}


/* 1) Reset ALL children inside an expanded level-1 group */
/* Ensure active tab background doesn't force dark text */
.vector-toc-level-1.vector-toc-list-item-expanded ul .vector-toc-text,
.vector-page-toolbar .selected a,
.vector-toc-level-1.vector-toc-list-item-expanded ul a.vector-toc-link {
.vector-page-toolbar .selected span {
     color: #EAEAEA !important;  /* normal item color */
     color: #FFFFFF !important;
    opacity: 1 !important;
    font-weight: normal !important;
}
}


/* 2) Now style ONLY the parent label (the level-1 link text) */
/* Missing page links stay red */
.vector-toc-level-1.vector-toc-list-item-expanded
.vector-page-toolbar a.new,
> a.vector-toc-link
.vector-page-toolbar a.new:visited {
.vector-toc-text {
     color: #CC2200 !important;
     color: #FFC300 !important;  /* gold parent */
    opacity: 1 !important;
    font-weight: 600 !important;
}
}




/* Hover on any TOC item (text only) */
/* ============ NAVPILLS ============ */
.vector-toc-link:hover .vector-toc-text {
/* Navpills styling */
     color: #FFD60A !important; /* bright gold on hover */
.navpills-container {
    margin: 1.5em 0;
     padding: 0;
}
}


/* Keep active item text readable (do not change on hover) */
.navpills {
.vector-toc-list-item-active .vector-toc-link:hover .vector-toc-text {
    display: flex;
     color: #000814 !important;
    flex-wrap: wrap;
    gap: 0.8em;
    list-style: none;
    margin: 0;
     padding: 0;
}
}


/* Keep expanded parent label gold even when hovered */
.navpill-item {
.vector-toc-level-1.vector-toc-list-item-expanded
     display: inline-block;
> a.vector-toc-link:hover
.vector-toc-text {
     color: #FFD60A !important;
}
}


/* Base TOC link text (pinned + inline) */
.navpill-item a {
#vector-toc .vector-toc-link .vector-toc-text,
     text-decoration: none !important;
#toc .toctext,
#toc a {
     color: #EAEAEA !important;
    opacity: 1 !important;
}
}


/* ACTIVE item: yellow background + DARK text */
.navpill-item a span {
#vector-toc .vector-toc-list-item-active > a.vector-toc-link,
    display: inline-block;
#vector-toc .vector-toc-list-item-active {
    padding: 0.7em 1.3em;
     background-color: #FFD60A !important;
    background: linear-gradient(135deg, #003566 0%, #001D3D 100%);
    color: #FFC300 !important;
    border: 2px solid #FFC300;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.05em;
     box-shadow: 0 2px 8px rgba(255, 195, 0, 0.2);
}
}


#vector-toc .vector-toc-list-item-active > a.vector-toc-link .vector-toc-text {
.navpill-item a:hover span {
    background: linear-gradient(135deg, #FFC300 0%, #FFD60A 100%);
     color: #000814 !important;
     color: #000814 !important;
     font-weight: 700 !important;
     border-color: #FFD60A;
    box-shadow: 0 4px 12px rgba(255, 195, 0, 0.4);
    transform: translateY(-2px);
}
}


/* Expanded parent label ONLY (level-1 with children) = gold */
/* Mobile responsive */
#vector-toc .vector-toc-level-1.vector-toc-list-item-expanded
@media (max-width: 768px) {
> a.vector-toc-link
    .navpills {
.vector-toc-text {
        flex-direction: column;
    color: #FFC300 !important;
    }
    font-weight: 600 !important;
   
    .navpill-item {
        width: 100%;
    }
   
    .navpill-item a span {
        display: block;
        text-align: center;
    }
}
}


/* Reset children inside expanded section so they DON'T inherit parent color */
/* ============ TABS ============ */
#vector-toc .vector-toc-level-1.vector-toc-list-item-expanded ul .vector-toc-text {
/* CSS-Only Tabs */
     color: #EAEAEA !important;
.wiki-tabs-container-css {
     font-weight: normal !important;
    margin: 2em 0;
    background: linear-gradient(180deg, #001D3D 0%, #000814 100%);
    border: 2px solid #FFC300;
    border-radius: 8px;
     overflow: hidden;
     box-shadow: 0 4px 15px rgba(255, 195, 0, 0.2);
}
}


/* Hover: bright gold text (but DO NOT override active item) */
/* Hide radio buttons */
#vector-toc .vector-toc-link:hover .vector-toc-text {
.wiki-tab-radio {
     color: #FFD60A !important;
     display: none;
}
}


#vector-toc .vector-toc-list-item-active .vector-toc-link:hover .vector-toc-text {
/* Tab Labels (Buttons) */
     color: #000814 !important;
.wiki-tab-label {
    display: inline-block;
    padding: 1em 1.5em;
    background: #001D3D;
    color: #FFC300;
    border-right: 1px solid rgba(255, 195, 0, 0.3);
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
    margin: 0;
     border-bottom: 2px solid #000814;
}
}


/* Stop highlighting the entire LI (prevents the huge yellow block) */
.wiki-tab-label:hover {
#vector-toc .vector-toc-list-item-active {
     background: #003566;
     background: transparent !important;
    color: #FFD60A;
}
}


/* Highlight ONLY the clickable row */
/* Active tab style */
#vector-toc .vector-toc-list-item-active > a.vector-toc-link {
.wiki-tab-radio:checked + .wiki-tab-label {
     background-color: #FFD60A !important;
     background: #FFC300;
    color: #000814;
    border-bottom: 3px solid #FFD60A;
}
}


/* Active row text stays dark for contrast */
/* Tab Content */
#vector-toc .vector-toc-list-item-active > a.vector-toc-link .vector-toc-text {
.wiki-tab-content {
     color: #000814 !important;
     display: none;
     font-weight: 700 !important;
    padding: 2em;
     color: #FFFFFF;
}
}


/* Active (highlighted) TOC row text */
/* Show content when tab is checked */
#vector-toc .vector-toc-list-item-active
.wiki-tab-radio:checked ~ .wiki-tab-content {
> a.vector-toc-link
     display: block;
.vector-toc-text {
     color: #000814 !important;  /* black */
    font-weight: 700 !important;
}
}


/* Prevent hover from changing active text color */
/* Mobile Responsive */
#vector-toc .vector-toc-list-item-active
@media (max-width: 768px) {
> a.vector-toc-link:hover
    .wiki-tab-label {
.vector-toc-text {
        display: block;
     color: #000814 !important;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 195, 0, 0.3);
     }
}
}


/* =========================================================
/* =========================================================
   TOC – FIX HOVER COLOR VS ACTIVE COLOR
   STICKY HEADER FIX - Keep blue background when scrolling
   ========================================================= */
   ========================================================= */


/* Hover = gold (for ALL non-active items) */
/* Sticky header container */
#vector-toc .vector-toc-list-item:not(.vector-toc-list-item-active)
.vector-sticky-header,
> a.vector-toc-link:hover
.vector-sticky-header-container {
.vector-toc-text {
    background: #000814 !important;
     color: #FFD60A !important; /* gold */
    border-bottom: 2px solid #FFC300 !important;
}
 
/* Sticky header elements */
.vector-sticky-header-start,
.vector-sticky-header-end,
.vector-sticky-header-context-bar {
    background: #000814 !important;
}
 
/* Page title in sticky header */
.vector-sticky-header-context-bar-primary,
.vector-sticky-header .mw-page-title-main {
     color: #FFC300 !important;
}
 
/* Sticky header buttons and icons */
.vector-sticky-header button,
.vector-sticky-header .vector-icon {
    filter: brightness(0) saturate(100%) invert(85%) sepia(67%) saturate(1000%) hue-rotate(0deg) brightness(103%) contrast(101%) !important;
}
}


/* Active item text stays black even on hover */
/* Sticky header links */
#vector-toc .vector-toc-list-item-active
.vector-sticky-header a {
> a.vector-toc-link:hover
    color: #FFC300 !important;
.vector-toc-text {
}
     color: #000814 !important;
 
/* Race table text override */
.racebox td {
  color: black !important;
}
 
.racebox th {
  color: white !important; /* keeps your header colors */
}
 
/* Equal-width navpills grid */
.navpills-equal-grid .navpills {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1em !important;
}
 
.navpills-equal-grid .navpill-item {
     width: 100% !important;
    display: block !important;
}
}


.navpills-equal-grid .navpill-item a span {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0.5em !important;
    box-sizing: border-box !important;
}


/* =========================================================
@media (max-width: 768px) {
  TABLE OF CONTENTS – REMOVE WHITE OUTER BACKGROUND
    .navpills-equal-grid .navpills {
  ========================================================= */
        grid-template-columns: 1fr !important;
    }
}
 
/* Race card buttons with hover animation */
.race-card {
    display: block;
    text-align: center;
    padding: 1.5em 1em;
    background: linear-gradient(135deg, #003566 0%, #001D3D 100%);
    border: 2px solid #FFC300;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 195, 0, 0.2);
    text-decoration: none;
}


/* Outer TOC container */
.race-card:hover {
.vector-toc,
    background: linear-gradient(135deg, #FFC300 0%, #FFD60A 100%);
#toc {
    border-color: #FFD60A;
     background: #001D3D !important;
    box-shadow: 0 4px 12px rgba(255, 195, 0, 0.4);
     transform: translateY(-4px);
}
}


/* Vector 2022 TOC wrapper */
.race-card img {
.vector-toc-container {
     display: block;
     background: transparent !important;
     margin: 0 auto;
     border: none !important;
     transition: transform 0.3s ease;
     box-shadow: none !important;
}
}


/* Inline TOC (non-sidebar mode) */
.race-card:hover img {
.mw-parser-output > .toc {
     transform: scale(1.05);
     background: #001D3D !important;
    border: 1px solid #FFC300 !important;
}
}


/* =========================================================
.race-card-name {
  VECTOR 2022 TOC – REMOVE WHITE PINNED CONTAINER
    margin-top: 0.8em;
  ========================================================= */
    font-size: 1.2em;
    font-weight: bold;
    color: #FFC300;
    transition: color 0.3s ease;
}


#vector-toc-pinned-container,
.race-card:hover .race-card-name {
.vector-pinned-container {
     color: #000814;
     background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
}

Latest revision as of 21:27, 16 February 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,
.vector-body {
  background: transparent !important;
}

/* ---------- Base text ---------- */
body,
.mw-body,
.mw-body-content,
#mw-content-text,
.vector-body {
  color: #fff !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 { 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; }
.mw-parser-output a.new,
.mw-parser-output a.new:visited { color: #CC2200 !important; }

/* Optional: keep only if something is overriding text colors inside articles */
/* .mw-parser-output { color: #fff !important; } */

/* =========================================================
   GLOBAL TABLE THEME (ALL PAGES)
   ========================================================= */
.mw-parser-output .wikitable {
  width: 100%;
  border-collapse: collapse !important;
  margin: 0.75em 0;
  background: #303030 !important;
  border: 1px solid #555555 !important;
}

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

.mw-parser-output .wikitable thead th {
  background: #000 !important;
  color: #EAEAEA !important;
  font-weight: 700;
  border: 1px solid #666666 !important;
  padding: 0.5em 0.7em !important;
}

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

.mw-parser-output .wikitable tbody td {
  border: 1px solid #555555 !important;
  color: #EAEAEA !important;
  padding: 0.5em 0.7em !important;
}

/* =========================================================
   TABLE OF CONTENTS – Vector 2022
   ========================================================= */
#vector-toc,
#toc {
  background: #001D3D !important;
  border: 1px solid #FFC300 !important;
  border-radius: 6px;
  padding: 0.75em;
}

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

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

/* Active item */
#vector-toc .vector-toc-list-item-active { background: transparent !important; }
#vector-toc .vector-toc-list-item-active > a.vector-toc-link { 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 rules */
#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;
}
#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;
}
#vector-toc .vector-toc-level-1.vector-toc-list-item-expanded ul .vector-toc-text {
  color: #EAEAEA !important;
  font-weight: normal !important;
}

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

/* Remove wrappers */
.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;
}

/* =========================================================
   Draft Cost Formula
   ========================================================= */
.formula-box {
  background: #001D3D;
  border: 1px solid #FFC300;
  border-radius: 10px;
  padding: 0.8em 1em;
  margin: 0.75em 0;
  color: #EAEAEA;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
}
.formula-box a { color: #4DA3FF !important; }
.formula-box a:visited { color: #9B7CFF !important; }

/* =========================
   Vector 2022 – RIGHT PAGE TOOLS: remove the fade/gradient
   ========================= */
.vector-page-tools::before,
.vector-page-tools::after,
.vector-page-tools-container::before,
.vector-page-tools-container::after,
.vector-page-tools-landmark::before,
.vector-page-tools-landmark::after,
.vector-sticky-pinned-container::before,
.vector-sticky-pinned-container::after,
.vector-page-tools .vector-sticky-pinned-container::before,
.vector-page-tools .vector-sticky-pinned-container::after {
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}


/* 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;
}

/* =========================================================
   VECTOR 2022 – PAGE ACTIONS / TABS COLOR CONTROL
   Applies to: Main Page | Discussion | Read | Edit | History | Tools
   ========================================================= */

/* Default page action links (not active) */
.vector-page-toolbar a,
.vector-page-toolbar a:link,
.vector-page-toolbar a:visited,
.vector-page-toolbar .mw-ui-icon a {
    color: #FFC300 !important;
}

/* Hover state (optional subtle brighten) */
.vector-page-toolbar a:hover {
    color: #FFD60A !important;
}

/* ACTIVE / CURRENT TAB (e.g. Main Page, Edit when editing) */
.vector-page-toolbar .selected a,
.vector-page-toolbar .mw-ui-button.mw-ui-progressive,
.vector-page-toolbar .mw-ui-button.mw-ui-progressive:visited {
    color: #FFFFFF !important;
}

/* Ensure active tab background doesn't force dark text */
.vector-page-toolbar .selected a,
.vector-page-toolbar .selected span {
    color: #FFFFFF !important;
}

/* Missing page links stay red */
.vector-page-toolbar a.new,
.vector-page-toolbar a.new:visited {
    color: #CC2200 !important;
}


/* ============ NAVPILLS ============ */
/* Navpills styling */
.navpills-container {
    margin: 1.5em 0;
    padding: 0;
}

.navpills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navpill-item {
    display: inline-block;
}

.navpill-item a {
    text-decoration: none !important;
}

.navpill-item a span {
    display: inline-block;
    padding: 0.7em 1.3em;
    background: linear-gradient(135deg, #003566 0%, #001D3D 100%);
    color: #FFC300 !important;
    border: 2px solid #FFC300;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.05em;
    box-shadow: 0 2px 8px rgba(255, 195, 0, 0.2);
}

.navpill-item a:hover span {
    background: linear-gradient(135deg, #FFC300 0%, #FFD60A 100%);
    color: #000814 !important;
    border-color: #FFD60A;
    box-shadow: 0 4px 12px rgba(255, 195, 0, 0.4);
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .navpills {
        flex-direction: column;
    }
    
    .navpill-item {
        width: 100%;
    }
    
    .navpill-item a span {
        display: block;
        text-align: center;
    }
}

/* ============ TABS ============ */
/* CSS-Only Tabs */
.wiki-tabs-container-css {
    margin: 2em 0;
    background: linear-gradient(180deg, #001D3D 0%, #000814 100%);
    border: 2px solid #FFC300;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 195, 0, 0.2);
}

/* Hide radio buttons */
.wiki-tab-radio {
    display: none;
}

/* Tab Labels (Buttons) */
.wiki-tab-label {
    display: inline-block;
    padding: 1em 1.5em;
    background: #001D3D;
    color: #FFC300;
    border-right: 1px solid rgba(255, 195, 0, 0.3);
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
    margin: 0;
    border-bottom: 2px solid #000814;
}

.wiki-tab-label:hover {
    background: #003566;
    color: #FFD60A;
}

/* Active tab style */
.wiki-tab-radio:checked + .wiki-tab-label {
    background: #FFC300;
    color: #000814;
    border-bottom: 3px solid #FFD60A;
}

/* Tab Content */
.wiki-tab-content {
    display: none;
    padding: 2em;
    color: #FFFFFF;
}

/* Show content when tab is checked */
.wiki-tab-radio:checked ~ .wiki-tab-content {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wiki-tab-label {
        display: block;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 195, 0, 0.3);
    }
}

/* =========================================================
   STICKY HEADER FIX - Keep blue background when scrolling
   ========================================================= */

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

/* Sticky header elements */
.vector-sticky-header-start,
.vector-sticky-header-end,
.vector-sticky-header-context-bar {
    background: #000814 !important;
}

/* Page title in sticky header */
.vector-sticky-header-context-bar-primary,
.vector-sticky-header .mw-page-title-main {
    color: #FFC300 !important;
}

/* Sticky header buttons and icons */
.vector-sticky-header button,
.vector-sticky-header .vector-icon {
    filter: brightness(0) saturate(100%) invert(85%) sepia(67%) saturate(1000%) hue-rotate(0deg) brightness(103%) contrast(101%) !important;
}

/* Sticky header links */
.vector-sticky-header a {
    color: #FFC300 !important;
}

/* Race table text override */
.racebox td {
  color: black !important;
}

.racebox th {
  color: white !important; /* keeps your header colors */
}

/* Equal-width navpills grid */
.navpills-equal-grid .navpills {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1em !important;
}

.navpills-equal-grid .navpill-item {
    width: 100% !important;
    display: block !important;
}

.navpills-equal-grid .navpill-item a span {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0.5em !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .navpills-equal-grid .navpills {
        grid-template-columns: 1fr !important;
    }
}

/* Race card buttons with hover animation */
.race-card {
    display: block;
    text-align: center;
    padding: 1.5em 1em;
    background: linear-gradient(135deg, #003566 0%, #001D3D 100%);
    border: 2px solid #FFC300;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 195, 0, 0.2);
    text-decoration: none;
}

.race-card:hover {
    background: linear-gradient(135deg, #FFC300 0%, #FFD60A 100%);
    border-color: #FFD60A;
    box-shadow: 0 4px 12px rgba(255, 195, 0, 0.4);
    transform: translateY(-4px);
}

.race-card img {
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.race-card:hover img {
    transform: scale(1.05);
}

.race-card-name {
    margin-top: 0.8em;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFC300;
    transition: color 0.3s ease;
}

.race-card:hover .race-card-name {
    color: #000814;
}