<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-vector-headanchor.css</id>
	<title>MediaWiki:Gadget-vector-headanchor.css - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-vector-headanchor.css"/>
	<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=MediaWiki:Gadget-vector-headanchor.css&amp;action=history"/>
	<updated>2026-04-26T07:51:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://compusofia.com/w/index.php?title=MediaWiki:Gadget-vector-headanchor.css&amp;diff=1912&amp;oldid=prev</id>
		<title>Majestix: 1 revision imported: Initial Setup</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=MediaWiki:Gadget-vector-headanchor.css&amp;diff=1912&amp;oldid=prev"/>
		<updated>2026-04-09T10:34:01Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: Initial Setup&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:34, 9 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wikiNonStop:diff:1.41:old-1911:rev-1912 --&gt;
&lt;/table&gt;</summary>
		<author><name>Majestix</name></author>
	</entry>
	<entry>
		<id>https://compusofia.com/w/index.php?title=MediaWiki:Gadget-vector-headanchor.css&amp;diff=1911&amp;oldid=prev</id>
		<title>en&gt;Krinkle at 23:13, 6 September 2024</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=MediaWiki:Gadget-vector-headanchor.css&amp;diff=1911&amp;oldid=prev"/>
		<updated>2024-09-06T23:13:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/*!&lt;br /&gt;
 * Vector HeadAnchors gadget&lt;br /&gt;
 *&lt;br /&gt;
 * Copyright 2013 Timo Tijhof, https://mediawiki.org/wiki/MediaWiki:Gadget-vector-headanchor.js&lt;br /&gt;
 * SPDX-License-Identifier: MIT&lt;br /&gt;
 * License: https://opensource.org/licenses/MIT&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
.tpl-vheadanchor-heading {&lt;br /&gt;
	position: relative;&lt;br /&gt;
	/*&lt;br /&gt;
	Disable Vector&amp;#039;s `overflow: hidden` because otherwise&lt;br /&gt;
	our negatively positioned anchor won&amp;#039;t be visible.&lt;br /&gt;
	   &lt;br /&gt;
	By itself, showing overflow would cause two problems:&lt;br /&gt;
&lt;br /&gt;
	1. We normally hide overflow for a reason. Namely, to ensure&lt;br /&gt;
	   that infoboxes and thumbnails retain their margins and thus&lt;br /&gt;
	   things like heading bottom borders will stay away from the&lt;br /&gt;
	   edge of these floated boxes.&lt;br /&gt;
    2. Headanchor needs `position: relative`, which affects stacking&lt;br /&gt;
       context (like z-index). If we don&amp;#039;t hide overflow, that means&lt;br /&gt;
       the heading and its border etc will render over top and&lt;br /&gt;
       strike-through any content in the thumbnail and infobox.&lt;br /&gt;
    &lt;br /&gt;
    We solve both of these by bringing back the &amp;quot;create block-formatting&lt;br /&gt;
    context&amp;quot; behaviour of `overflow: hidden` with `display: flex-root`.&lt;br /&gt;
    This isn&amp;#039;t supported in all Basic browsers, but good enough for&lt;br /&gt;
    this gadget.&lt;br /&gt;
    &lt;br /&gt;
    Thanks [[User:Tgr]]!&lt;br /&gt;
    */&lt;br /&gt;
	overflow: visible;&lt;br /&gt;
	display: flow-root;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ext-discussiontools-init-section.tpl-vheadanchor-heading {&lt;br /&gt;
	overflow: visible;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.tpl-vheadanchor {&lt;br /&gt;
	position: absolute;&lt;br /&gt;
	 /* consistent font and size, regardless of heading level */&lt;br /&gt;
	font-family: serif;&lt;br /&gt;
	font-size: 24px;&lt;br /&gt;
	font-weight: normal; /* reset any bolding from H3-H6 styles */&lt;br /&gt;
	line-height: 1.3;&lt;br /&gt;
	/* Based on Vector mw-body padding being 16px */&lt;br /&gt;
	left: -16px;&lt;br /&gt;
	/* Use padding instead of margin. Two reasons:&lt;br /&gt;
	  1. With margin, there would be a pointer gap between headline and anchor,&lt;br /&gt;
	     and thus flickering because :hover would not match in-between&lt;br /&gt;
	  2. With padding, we get a bigger tap/hover area.&lt;br /&gt;
	*/&lt;br /&gt;
	padding: 0 3px;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h3 ~ .tpl-vheadanchor {&lt;br /&gt;
	line-height: 1.1;&lt;br /&gt;
}&lt;br /&gt;
h4 ~ .tpl-vheadanchor,&lt;br /&gt;
h6 ~ .tpl-vheadanchor,&lt;br /&gt;
h6 ~ .tpl-vheadanchor {&lt;br /&gt;
	line-height: 1.0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Based on Vector wide viewport using mw-body padding of 24px */&lt;br /&gt;
@media screen and (min-width: 982px) {&lt;br /&gt;
	.skin-vector .tpl-vheadanchor {&lt;br /&gt;
		left: -24px;&lt;br /&gt;
		padding: 0 7px;&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.tpl-vheadanchor-heading:not(:hover) [id]:not(:target) ~ .tpl-vheadanchor {&lt;br /&gt;
	color: #c8ccd1;&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>en&gt;Krinkle</name></author>
	</entry>
</feed>