MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 403: | Line 403: | ||
} | } | ||
/* Remove | /* Remove top margin and collapse stray VisualEditor paragraphs */ | ||
.mw-body-content > p:first-child | .mw-body-content > p:first-child { | ||
margin-top: 0 !important; | |||
margin: 0; | padding-top: 0 !important; | ||
padding: 0; | |||
} | } | ||
/* | /* Hide blank or whitespace-only paragraphs at the top of content */ | ||
.mw-body-content > p:first-child { | .mw-body-content > p:first-child:has(br), | ||
.mw-body-content > p:first-child:has(> span:empty), | |||
.mw-body-content > p:first-child:has(> span[style*="display:none"]), | |||
.mw-body-content > p:first-child:has(> span[contenteditable]) { | |||
display: none !important; | |||
} | } | ||