MediaWiki:Common.css: Difference between revisions
Update templates and main page |
Update templates and main page |
||
| Line 318: | Line 318: | ||
/* ===== Remove extra spacing from pandoc span anchors ===== */ | /* ===== Remove extra spacing from pandoc span anchors ===== */ | ||
.mw-body-content span[id] { | /* Only target empty span anchors, not headline spans */ | ||
.mw-body-content > span[id]:empty, | |||
.mw-body-content p + span[id]:empty { | |||
display: block; | display: block; | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
height: 0; | line-height: 0; | ||
font-size: 0; | |||
} | } | ||