MediaWiki:Common.css: Difference between revisions
Dragon 12dk (talk | contribs) No edit summary |
Dragon 12dk (talk | contribs) No edit summary |
||
| (18 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
*/ | */ | ||
/* Template Infobox Stuff */ | |||
.ib-anthem-label{ | |||
display:block; | |||
font-weight:700; | |||
margin: 0 0 .25em 0; | |||
} | |||
.ib-anthem-media{ | |||
display:block; | |||
} | |||
/* Safety: keep aspect ratio */ | |||
table.infobox.ib-country.vcard > tbody > tr:nth-child(2) > td img { | |||
height: auto !important; | |||
max-width: none !important; | |||
} | |||
/* Flag: td > div > div:nth-child(1) ... img */ | |||
table.infobox.ib-country.vcard > tbody > tr:nth-child(2) > td > div > div:nth-child(1) img { | |||
width: 125px !important; | |||
} | |||
/* Coat of arms: td > div > div:nth-child(2) ... img */ | |||
table.infobox.ib-country.vcard > tbody > tr:nth-child(2) > td > div > div:nth-child(2) img { | |||
width: 85px !important; | |||
} | |||
/* ============================= */ | |||
/* EMBED MODE – HIDE ALL CHROME */ | |||
/* ============================= */ | |||
/* Hide edit section links in embed mode */ | |||
.vc-embed-mode .mw-editsection { | |||
display: none !important; | |||
} | |||
/* Embed mode: transparent page background */ | |||
.vc-embed-mode { | |||
background: transparent !important; | |||
} | |||
/* Remove legacy Vector body border in embed mode */ | |||
.vc-embed-mode .mw-body { | |||
border: 0 !important; | |||
box-shadow: none !important; /* just in case */ | |||
} | |||
.vc-embed-mode .mw-body { | |||
background: transparent !important; | |||
} | |||
/* Legacy Vector sidebar + header */ | |||
.vc-embed-mode #mw-panel, | |||
.vc-embed-mode #mw-navigation, | |||
.vc-embed-mode #mw-head, | |||
.vc-embed-mode #p-personal, | |||
.vc-embed-mode #p-search, | |||
/* Legacy Vector: remove the empty top scaffolding bars */ | |||
.vc-embed-mode #mw-page-base, | |||
.vc-embed-mode #mw-head-base { | |||
display: none !important; | |||
} | |||
/* Hide page indicators (lock/featured/etc.) in embed mode */ | |||
.vc-embed-mode .mw-indicators { | |||
display: none !important; | |||
} | |||
/* Legacy Vector: remove extra top spacing after hiding header */ | |||
.vc-embed-mode #content { | |||
margin-top: 0 !important; | |||
} | |||
/* Vector 2022 sidebar + header */ | |||
.vc-embed-mode .vector-sidebar, | |||
.vc-embed-mode .vector-header-container, | |||
.vc-embed-mode .vector-sticky-header, | |||
.vc-embed-mode .vector-user-links, | |||
.vc-embed-mode .vector-search-box, | |||
/* Shared elements */ | |||
.vc-embed-mode #footer, | |||
.vc-embed-mode #siteSub, | |||
.vc-embed-mode #contentSub, | |||
.vc-embed-mode #firstHeading { | |||
display: none !important; | |||
} | |||
/* ============================= */ | |||
/* EMBED MODE – FULL WIDTH */ | |||
/* ============================= */ | |||
.vc-embed-mode .mw-page-container, | |||
.vc-embed-mode .mw-content-container, | |||
.vc-embed-mode #content, | |||
.vc-embed-mode .mw-parser-output { | |||
max-width: none !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | |||
/* STAFF PAGE BELOW */ | |||
/* grid for lists of staff cards inside a role section */ | |||
.vc-card-grid { | |||
display: grid; | |||
gap: 16px; | |||
margin: 10px 0 22px 0; | |||
} | |||
/* two cards side-by-side */ | |||
.vc-card-grid--2 { | |||
grid-template-columns: 1fr 1fr; | |||
} | |||
/* keep it 1-column on small screens */ | |||
@media (max-width: 900px) { | |||
.vc-card-grid--2 { | |||
grid-template-columns: 1fr; | |||
} | |||
} | |||
/* IMPORTANT: when cards are in a grid, remove the card's bottom margin */ | |||
.vc-card-grid .vc-staff-card { | |||
margin-bottom: 0; | |||
} | |||
/* Prefer: opt out of DarkMode transforms */ | |||
html.client-darkmode .vc-staff-page.mw-no-invert, | html.client-darkmode .vc-staff-page.mw-no-invert, | ||
html.client-darkmode .vc-staff-page.mw-no-invert * { | html.client-darkmode .vc-staff-page.mw-no-invert * { | ||
filter: none !important; | filter: none !important; | ||
mix-blend-mode: normal !important; | |||
} | |||
/* Fallback: if DarkMode is inverting a parent container, cancel it */ | |||
html.client-darkmode #content .vc-staff-page.mw-no-invert { | |||
filter: invert(1) hue-rotate(180deg) !important; | |||
} | } | ||