MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(14 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 13: Line 61:
.vc-embed-mode #p-personal,
.vc-embed-mode #p-personal,
.vc-embed-mode #p-search,
.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 */
/* Vector 2022 sidebar + header */