Avoid whitespace before anchors when wrapping

This commit is contained in:
Cotes Chung 2022-01-12 22:32:25 +08:00
parent 22c12a4d34
commit 96e7cd79af
2 changed files with 1 additions and 3 deletions

View file

@ -205,7 +205,7 @@
{% endif %} {% endif %}
{% assign id = snippet | split: '"' | first %} {% assign id = snippet | split: '"' | first %}
{% capture anchor %}<a href="#{{ id }}" class="anchor"><i class="fas fa-hashtag"></i></a>{% endcapture %} {% capture anchor %} <a href="#{{ id }}" class="anchor"><i class="fas fa-hashtag"></i></a>{% endcapture %}
{% assign left = snippet | split: mark_end | first %} {% assign left = snippet | split: mark_end | first %}
{% assign _start_index = left | size %} {% assign _start_index = left | size %}

View file

@ -20,12 +20,10 @@
%anchor { %anchor {
.anchor { .anchor {
font-size: 1rem; font-size: 1rem;
margin-left: 0.5rem;
} }
@media (hover: hover) { @media (hover: hover) {
.anchor { .anchor {
border-bottom: none !important;
visibility: hidden; visibility: hidden;
opacity: 0; opacity: 0;
transition: opacity 0.25s ease-in, visibility 0s ease-in 0.25s; transition: opacity 0.25s ease-in, visibility 0s ease-in 0.25s;