MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 135: | Line 135: | ||
border: none; | border: none; | ||
} | } | ||
p:empty, | /* Kill injected empty paragraphs inside font-scaled wrappers */ | ||
p: | .mw-parser-output > div > p:empty, | ||
.mw-parser-output p:empty { | |||
display: none !important; | display: none !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
line-height: 0 !important; | |||
} | |||
/* Also catch whitespace-only paragraphs which p:empty misses */ | |||
.mw-parser-output .adhyaya-block + p, | |||
.mw-parser-output p + .adhyaya-block { | |||
margin-top: 0 !important; | |||
} | |||
/* Prevent em-based margins from scaling inside font-size wrappers */ | |||
.mw-parser-output div[style*="font-size"] > p { | |||
margin: 0 !important; | |||
} | } | ||