MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
  */
  */


/* Common: keep aspect ratio, don't let max-width rules interfere */
/* Template Infobox Stuff */
table.infobox.ib-country .infobox-image img{
 
.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;
   height: auto !important;
   max-width: none !important;
   max-width: none !important;
}
}


/* Flag block (your div:nth-child(1)) */
/* Flag: td > div > div:nth-child(1) ... img */
table.infobox.ib-country .infobox-image > 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;
   width: 125px !important;
}
}


/* Coat of arms block (your div:nth-child(2)) */
/* Coat of arms: td > div > div:nth-child(2) ... img */
table.infobox.ib-country .infobox-image > 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; /* change to whatever you want */
   width: 85px !important;
}
}