From ebcdebd4c209d8cf6c99d47c95a0e587e850551b Mon Sep 17 00:00:00 2001 From: Tzu-Chien Yu Date: Tue, 8 Apr 2025 16:55:14 +0000 Subject: [PATCH] _content: show anchor links when hovering over article headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, users had to hover directly over the ΒΆ symbol to reveal the anchor link, making it difficult to discover its existence. This change updates the CSS to also display the anchor link when hovering over the entire header text, improving usability. Fixes golang/go#70827 --- _content/css/styles.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_content/css/styles.css b/_content/css/styles.css index 254337c7d8..673a8abcb1 100644 --- a/_content/css/styles.css +++ b/_content/css/styles.css @@ -875,6 +875,10 @@ h1 + h2.subtitle { .Article a.Article-idLink { opacity: 0; } +.Article h1:hover a.Article-idLink, +.Article h2:hover a.Article-idLink, +.Article h3:hover a.Article-idLink, +.Article h4:hover a.Article-idLink, .Article a.Article-idLink:hover { opacity: 1; padding: 0.2rem;