From 96e7cd79af32155bf8ab7d6e19ba4b203bf77537 Mon Sep 17 00:00:00 2001
From: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
Date: Wed, 12 Jan 2022 22:32:25 +0800
Subject: [PATCH] Avoid whitespace before anchors when wrapping
---
_includes/refactor-content.html | 2 +-
_sass/addon/module.scss | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/_includes/refactor-content.html b/_includes/refactor-content.html
index bd87864..49f1ddc 100644
--- a/_includes/refactor-content.html
+++ b/_includes/refactor-content.html
@@ -205,7 +205,7 @@
{% endif %}
{% assign id = snippet | split: '"' | first %}
- {% capture anchor %}{% endcapture %}
+ {% capture anchor %} {% endcapture %}
{% assign left = snippet | split: mark_end | first %}
{% assign _start_index = left | size %}
diff --git a/_sass/addon/module.scss b/_sass/addon/module.scss
index c8f9057..6afbcd4 100644
--- a/_sass/addon/module.scss
+++ b/_sass/addon/module.scss
@@ -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;