MediaWiki:Common.css: Difference between revisions
CaptainChris (talk | contribs) No edit summary |
CaptainChris (talk | contribs) No edit summary |
||
| Line 342: | Line 342: | ||
} | } | ||
/* | /* Make infobox cells hug the text tightly */ | ||
.infobox th, | .infobox th, | ||
.infobox td { | .infobox td { | ||
| Line 348: | Line 348: | ||
line-height: 1.1em !important; | line-height: 1.1em !important; | ||
vertical-align: middle; | vertical-align: middle; | ||
border: none; | |||
} | } | ||
/* | /* remove default div/p margins in cells */ | ||
.infobox tr | .infobox td > div, | ||
.infobox td > p { | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
display: inline !important; | |||
} | |||
/* fix any row background spacing weirdness */ | |||
.infobox tr { | |||
height: auto !important; | |||
} | } | ||
/* | /* overall structure */ | ||
.infobox { | .infobox { | ||
border-collapse: collapse !important; | border-collapse: collapse !important; | ||
width: 300px; | width: 300px; | ||
font-size: 90%; | font-size: 90%; | ||
} | } | ||