Skip to content

Commit ebcdebd

Browse files
committed
_content: show anchor links when hovering over article headers
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
1 parent c0b7403 commit ebcdebd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

_content/css/styles.css

+4
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,10 @@ h1 + h2.subtitle {
875875
.Article a.Article-idLink {
876876
opacity: 0;
877877
}
878+
.Article h1:hover a.Article-idLink,
879+
.Article h2:hover a.Article-idLink,
880+
.Article h3:hover a.Article-idLink,
881+
.Article h4:hover a.Article-idLink,
878882
.Article a.Article-idLink:hover {
879883
opacity: 1;
880884
padding: 0.2rem;

0 commit comments

Comments
 (0)