MediaWiki:Common.css: Difference between revisions
No edit summary Tag: Manual revert |
No edit summary |
||
| Line 141: | Line 141: | ||
text-decoration: underline; | text-decoration: underline; | ||
text-underline-offset: 2px; | text-underline-offset: 2px; | ||
} | |||
/* ── INFOBOX — suppress phantom leading paragraphs ── */ | |||
/* MediaWiki generates <p><br></p> nodes from template newlines */ | |||
#mw-content-text > .mw-parser-output > p:empty, | |||
#mw-content-text > .mw-parser-output > p:has(> br:only-child) { | |||
display: none; | |||
margin: 0; | |||
padding: 0; | |||
} | |||
/* hide leading breaks generated by template newlines */ | |||
#mw-content-text > .mw-parser-output > br:first-child, | |||
#mw-content-text > .mw-parser-output > p:first-child > br:only-child { | |||
display: none; | |||
} | } | ||