Commit bff93966 authored by Leon Byford's avatar Leon Byford

hide anchor links, show on hover

parent 82fb5fca
......@@ -7,4 +7,4 @@ document.querySelectorAll(".future").forEach(
&& post.classList.remove("future");}
);
document.querySelectorAll("h3, h4, h5, h6").forEach(
h => {h.innerHTML += ' <a href="#' + h.id + '">#</a>';});
h => {h.innerHTML += ' <a href="#' + h.id + '" class="anchor-link">#</a>';});
......@@ -318,6 +318,17 @@ a#skip-nav:focus {
padding: 1em;
}
a.anchor-link {
display: none;
}
h3:hover a.anchor-link,
h4:hover a.anchor-link,
h5:hover a.anchor-link,
h6:hover a.anchor-link {
display: inline;
}
/*** / ***/
a#archive-link {
background-color: $ldjbDarkerBlue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment