MediaWiki:Common.css: Difference between revisions
Dragon 12dk (talk | contribs) No edit summary |
Dragon 12dk (talk | contribs) No edit summary |
||
| (11 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
* Custom NARA CSS Start | * Custom NARA CSS Start | ||
*/ | */ | ||
/* 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 */ | /* 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 */ | /* Legacy Vector sidebar + header */ | ||
| Line 23: | Line 71: | ||
.vc-embed-mode .mw-indicators { | .vc-embed-mode .mw-indicators { | ||
display: none !important; | display: none !important; | ||
} | |||
/* Legacy Vector: remove extra top spacing after hiding header */ | |||
.vc-embed-mode #content { | |||
margin-top: 0 !important; | |||
} | } | ||