MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 77: | Line 77: | ||
a[href*="/Category:"] { | a[href*="/Category:"] { | ||
text-decoration: none; | 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; | |||
} | } | ||
Latest revision as of 03:43, 9 October 2025
/* 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;
}