Jump to content

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 403: Line 403:
}
}


/* Remove unwanted top margin above Character pages */
/* Remove top margin and collapse stray VisualEditor paragraphs */
.mw-body-content > p:first-child:empty {
.mw-body-content > p:first-child {
    display: none;
     margin-top: 0 !important;
     margin: 0;
     padding-top: 0 !important;
     padding: 0;
}
}


/* Optional: tighten spacing on Character template pages */
/* 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),
     margin-top: 0;
.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;
}
}