Proper support for heading anchors

This commit is contained in:
David Lapshin
2024-05-09 22:52:02 +03:00
parent 17a378b318
commit 1f7dab1f59
7 changed files with 35 additions and 15 deletions

View File

@ -50,6 +50,7 @@ body {
@keyframes highlight-in-out {
50% {
font-weight: bolder;
letter-spacing: 0.125rem;
}
}
@ -77,17 +78,6 @@ h6 {
line-height: normal;
font-family: var(--font-serif);
letter-spacing: -0.05em;
.zola-anchor {
display: none;
visibility: hidden;
}
&:hover .zola-anchor {
display: inline-block;
visibility: visible;
text-decoration: none;
}
}
h1 {
@ -240,10 +230,6 @@ pre {
background-color: var(--fg-muted-4);
width: 1rem;
height: 1rem;
font-style: normal;
font-variant: normal;
line-height: 1;
text-rendering: auto;
}
}
}