MediaWiki:Common.css

Revision as of 03:43, 9 October 2025 by AidanCKY (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */

.header-container.header-chrome {
    background-color: #204a62;
    min-height: 80px;
}

.minerva-header .branding-box a span {
color: #FFF;
}

.minerva__tab-container {
display: none;
}

.minerva-header {
padding-top: 10px;
}

/* Force Minerva logo to show on all screen sizes */
.minerva-header .branding-box {
    background: url("/resources/assets/RailDBLogo-Small-White.png") no-repeat left center !important;
    background-size: contain !important;
    text-indent: -9999px;   /* hide the text */
    width: 160px;           /* match your logo width */
    height: 53px;           /* match your logo height */
    display: inline-block;
}

/* Ensure the clickable area covers the logo */
.minerva-header .branding-box a {
    display: block;
    width: 160px;
    height: 53px;
}

/* Remove dark overlay / force true logo colors */
.minerva-header {
    background-color: transparent !important; /* optional if you want a clean header */
}

.minerva-header .branding-box {
    filter: none !important;    /* remove brightness or dark filter */
    opacity: 1 !important;      /* make logo fully opaque */
}

.minerva-header .branding-box a {
    color: inherit !important;  /* prevents text color override */
}

/* --- Hide "Category:" prefix on MinervaNeue titles --- */
.page-heading .ns-category,
.minerva-header .ns-category,
.mw-page-title-namespace {
    display: none !important;
}

/* Hide "Category:" prefix in category page headings */
.mw-category-header .mw-page-title-namespace {
    display: none !important;
}

/* Hide "Category:" prefix in breadcrumbs (if enabled) */
.minerva-breadcrumbs .ns-category {
    display: none !important;
}

/* Clean up spacing after hiding prefixes */
.mw-page-title-main::before,
.mw-page-title-namespace::after {
    content: none !important;
}

a[href*="/Category:"]::before {
    content: "";
}
a[href*="/Category:"] {
    text-decoration: none;
}

/* Hide Category prefix in page titles, tooltips, and dropdowns */
.ns-category, 
.mw-page-title-namespace, 
.page-heading .ns-category, 
a[href*="/Category:"]::before {
    display: none !important;
}