MediaWiki:Gadget-vector-headanchor.css

/*! * Vector HeadAnchors gadget, from  * * Copyright 2013 Timo Tijhof * @license MIT  */ /* Revision as of 2021-09-24 */

/* Use `.mw-body in the selector to apply our padding at a higher specificity than Vector's `.mw-body h2` */ .mw-body .tpl-vheadanchor-heading { position: relative; left: -17px; padding-left: 17px; }

.tpl-vheadanchor { position: absolute; left: 0; /* padding instead of margin, as otherwise there is a pointer gap between the headline and icon, and thus possible flickering due to vheadanchor:hover not matching in between. */	padding: 0 3px; line-height: inherit; }

.tpl-vheadanchor-heading:not(:hover) .mw-headline:not(:target) ~ .tpl-vheadanchor { opacity: 0; }