mirror of
https://github.com/tomfran/typo.git
synced 2025-04-25 21:19:55 +03:00
fix disappearing header links
This commit is contained in:
parent
14b7bb7afe
commit
11606533c9
2 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ h6 {
|
|||
}
|
||||
|
||||
.heading {
|
||||
a {
|
||||
.anchor {
|
||||
text-decoration: none;
|
||||
font-weight: normal;
|
||||
color: var(--content-secondary);
|
||||
|
@ -47,7 +47,7 @@ h6 {
|
|||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
&:hover a {
|
||||
&:hover .anchor {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
@ -576,4 +576,4 @@ blockquote {
|
|||
blockquote p {
|
||||
margin-left: 1rem;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<h{{ .Level }} class="heading" id="{{ .Anchor }}">
|
||||
{{ .Text }}
|
||||
<a href="#{{ .Anchor }}">#</a>
|
||||
<a class="anchor" href="#{{ .Anchor }}">#</a>
|
||||
</h{{ .Level }}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue