Added link tags

This commit is contained in:
rasmus-kirk
2024-02-26 13:34:15 +01:00
parent f2e12924a4
commit 621e838f8c
5 changed files with 47 additions and 3 deletions
+24
View File
@@ -411,3 +411,27 @@ table td {
page-break-after: avoid;
}
}
/* show the anchor links in headings if one hovers over the heading. */
.anchor::before {
content: url("/docs/pandoc/link.svg");
display: inline-block;
font-size: 1em;
left: -1.5em;
line-height: 1.5;
opacity: 0.15;
position: relative;
width: 0em;
}
.anchor:hover {
text-decoration: none;
}
h1:hover > .anchor::before,
h2:hover > .anchor::before,
h3:hover > .anchor::before,
h4:hover > .anchor::before,
h5:hover > .anchor::before,
h6:hover > .anchor::before {
opacity: 1;
}
/* end: heading anchor links */