MediaWiki:Common.css: Difference between revisions

mNo edit summary
mNo edit summary
Line 78: Line 78:
}
}


/* Remove the big gap caused by an empty <p> between stacked navboxes */
/* Kill the big gap created by stray <p> and <br> between navboxes */
.mw-parser-output .navbox.dxx-navbox + p:empty {
 
     margin: 0;
/* Any paragraph directly after a navbox: no margin */
.mw-parser-output .navbox.dxx-navbox + p {
    margin-top: 0;
     margin-bottom: 0;
}
 
/* Hide lone <br> inside that paragraph */
.mw-parser-output .navbox.dxx-navbox + p > br {
    display: none;
}
}


/* Also make the second navbox sit close to the first */
/* And if there is a second paragraph after that, kill its margin too */
.mw-parser-output .navbox.dxx-navbox + p:empty + .navbox.dxx-navbox {
.mw-parser-output .navbox.dxx-navbox + p + p {
     margin-top: 0.1em;
     margin-top: 0;
    margin-bottom: 0;
}
}