Use ASCII hash symbol for anchor links

This commit is contained in:
timvisee 2019-11-01 14:01:22 +01:00
parent d3cfbd5756
commit 36d6086aa7
No known key found for this signature in database
GPG Key ID: B8DB720BC383E172
3 changed files with 2 additions and 8 deletions

View File

@ -1,3 +0,0 @@
<svg id="glyphicons-halflings" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
<path id="anchor" d="M17.40717,11.03564l-3.98945.48951a.5.5,0,0,0-.29266.84985l.56439.56445L12.62891,14H11V8.66724A3.50462,3.50462,0,1,0,8,8.6333V14H6.37109L5.31055,12.93945l.56439-.56445a.5.5,0,0,0-.29266-.84985l-3.98945-.48951a.5.5,0,0,0-.55719.55713l.48963,3.98951a.5.5,0,0,0,.84979.2926l.81439-.81433,1.5,1.5A1.49977,1.49977,0,0,0,5.75,17H7.81818l1.27746,1.75647a.5.5,0,0,0,.80872,0L11.18182,17H13.25a1.49977,1.49977,0,0,0,1.06055-.43945l1.5-1.5.81439.81433a.5.5,0,0,0,.84979-.2926l.48963-3.98951A.5.5,0,0,0,17.40717,11.03564ZM9.53125,7a1.5,1.5,0,1,1,1.5-1.5A1.50168,1.50168,0,0,1,9.53125,7Z"/>
</svg>

Before

Width:  |  Height:  |  Size: 695 B

View File

@ -178,9 +178,6 @@ sidebar .tag {
.anchor {
transition: opacity 0.2s ease;
opacity: 0;
font-size: 1rem;
position: absolute;
margin: 0.5rem 0.5rem 0;
}
*:hover > .anchor,

View File

@ -1,9 +1,9 @@
{% if id %}
<a class="anchor" href="#{{ id }}" aria-label="Anchor link for: {{ id }}">
{{ load_data(path="static/icons/glyphicons-halflings-138-anchor.svg") | safe }}
#
</a>
{% else %}
<a class="anchor" href="#" aria-label="Anchor link">
{{ load_data(path="static/icons/glyphicons-halflings-138-anchor.svg") | safe }}
#
</a>
{% endif %}