improve: add fixes/suggestions from panr

This commit is contained in:
Sophia Brandt 2020-01-23 21:04:09 +01:00
parent e8fdb4e084
commit ff3aa2316b
7 changed files with 9 additions and 8 deletions

View file

@ -28,7 +28,7 @@
{{ end }}
<div class="post-content">
{{- with .Content -}}
{{- with .Content -}}
<div>
{{ . | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" ariaLabel="Anchor"> &#8983;</a> ${3}` | safeHTML }}
</div>

View file

@ -100,9 +100,10 @@
}
.hanchor {
font-size: 100%;
color: color-mod(var(--accent) alpha(90%));
text-decoration: none;
margin-left: 10px;
visibility: hidden;
color:silver;
}
h1:hover a, h2:hover a, h3:hover a, h4:hover a {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long