autolink headings

This commit is contained in:
Felix Roos
2022-12-22 23:19:38 +01:00
parent 6a9e9ebc4c
commit 869a44dd04
6 changed files with 61 additions and 3 deletions
+36
View File
@@ -0,0 +1,36 @@
h1::before,
h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
display: block;
content: ' ';
margin-top: -70px;
height: 70px;
visibility: hidden;
pointer-events: none;
position: relative;
}
h1:hover .icon-link,
h2:hover .icon-link,
h3:hover .icon-link,
h4:hover .icon-link,
h5:hover .icon-link,
h6:hover .icon-link,
.icon.icon-link:hover {
visibility: visible;
}
.icon.icon-link {
background-image: url(./link.svg);
background-repeat: no-repeat;
width: 16px;
height: 16px;
display: block;
position: absolute;
visibility: hidden;
margin-left: -20px;
width: 20px;
margin-top: 8px;
}