Move custom anchor CSS to our file

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-02-16 09:53:45 +05:30
parent 3325ec90ad
commit 2d992d34bf
3 changed files with 5 additions and 5 deletions

View File

@ -65,3 +65,7 @@ div.tag-container {
display: inline-block;
font-size: 16px;
}
.heading-anchor {
color: inherit;
}

View File

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

View File

@ -71,10 +71,6 @@ a {
text-decoration: none;
}
.hanchor {
color: inherit;
}
/* `:focus` is linked to `:hover` for basic accessibility */
a:hover,
a:focus {