Avoid whitespace before anchors when wrapping
This commit is contained in:
parent
22c12a4d34
commit
96e7cd79af
2 changed files with 1 additions and 3 deletions
|
@ -205,7 +205,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% 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 _start_index = left | size %}
|
||||
|
|
|
@ -20,12 +20,10 @@
|
|||
%anchor {
|
||||
.anchor {
|
||||
font-size: 1rem;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.anchor {
|
||||
border-bottom: none !important;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
transition: opacity 0.25s ease-in, visibility 0s ease-in 0.25s;
|
||||
|
|
Loading…
Reference in a new issue