MediaWiki:Common.css: Difference between revisions
Center story figures and galleries |
Collapse empty paragraphs beside soldier infobox (remove top gap) |
||
| Line 150: | Line 150: | ||
.mw-parser-output > .hatnote.source-confidence-cue { | .mw-parser-output > .hatnote.source-confidence-cue { | ||
display: none; | display: none; | ||
} | |||
/* | |||
* Blank lines after {{Soldier}} / between hatnotes become <p><br></p> and sit | |||
* beside the floated infobox as a tall empty column. Collapse them so the lead | |||
* starts at the top next to the infobox. | |||
*/ | |||
.mw-parser-output:has(> table.soldier-infobox) > p:has(> br:only-child), | |||
.mw-parser-output:has(> table.infobox.soldier-infobox) > p:has(> br:only-child), | |||
.mw-parser-output:has(> table.soldier-infobox) > p:empty, | |||
.mw-parser-output:has(> table.infobox.soldier-infobox) > p:empty { | |||
display: none; | |||
margin: 0; | |||
padding: 0; | |||
height: 0; | |||
line-height: 0; | |||
overflow: hidden; | |||
} | |||
.mw-parser-output:has(> table.soldier-infobox) > .soldier-lead, | |||
.mw-parser-output:has(> table.infobox.soldier-infobox) > .soldier-lead { | |||
margin-top: 0; | |||
} | } | ||