MediaWiki:Common.css: Difference between revisions
CaptainChris (talk | contribs) No edit summary |
CaptainChris (talk | contribs) No edit summary Tag: Reverted |
||
| Line 325: | Line 325: | ||
font-style: italic; | font-style: italic; | ||
} | } | ||
/* --- compact row height fix --- */ | |||
.infobox-rows tr { | |||
height: auto !important; /* no forced row height */ | |||
} | |||
.infobox-rows th, | |||
.infobox-rows td { | |||
padding: 3px 6px !important; /* compact padding */ | |||
line-height: 1.2em !important; /* keeps height snug to text */ | |||
vertical-align: top !important; /* aligns text nicely */ | |||
height: auto !important; /* let content define height */ | |||
word-break: break-word; /* prevent overflow for long strings */ | |||
} | |||
/* make the whole infobox shrink to fit contents if shorter than default width */ | |||
.infobox { | |||
width: auto; | |||
max-width: 300px; | |||
display: inline-block; | |||
vertical-align: top; | |||
} | |||
/* hide debug JSON */ | /* hide debug JSON */ | ||