MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 331: Line 331:
}
}


/* remove Vector padding that causes gap above first floated element */
/* Hide stray empty paragraph that appears after infobox templates */
.vector-body,
.mw-parser-output > .infobox + p:empty,
#bodyContent {
.mw-parser-output > .infobox + p:has(> br:only-child) {
  padding-top: 0 !important;
    display: none !important;
}
}


.mw-body-content {
/* Tighten spacing for first paragraph after an infobox */
  margin-top: 0 !important;
.mw-parser-output > .infobox + p {
  padding-top: 0 !important;
    margin-top: 0 !important;
}
 
/* make sure the infobox stays snug under title */
.mw-body-content > .infobox {
  margin-top: 0 !important;
  float: right;
}
}