summaryrefslogtreecommitdiff
path: root/assets/css/_markdown.scss
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-08-22 12:48:24 +0800
committerEltrac <hi@guhub.cn>2025-08-22 12:48:24 +0800
commit30fcc71a12db3be9ef756a1b6a4b8f9344bddf08 (patch)
tree4aaccfcfe05eeb4ef4619ee37d01510e6da990c6 /assets/css/_markdown.scss
parentf532ac7c345a9f0ad824906bc70bc2eeecd9d29e (diff)
feat: new link style
- wavy underline - normal text color instead of accent color - hover style
Diffstat (limited to 'assets/css/_markdown.scss')
-rw-r--r--assets/css/_markdown.scss9
1 files changed, 9 insertions, 0 deletions
diff --git a/assets/css/_markdown.scss b/assets/css/_markdown.scss
index f7c99600..242197ba 100644
--- a/assets/css/_markdown.scss
+++ b/assets/css/_markdown.scss
@@ -15,7 +15,16 @@ $em-text-color: #889E73;
// Nested styles for child elements
a {
text-decoration: underline;
+ text-decoration-style: wavy;
+ text-underline-offset: 0.25em;
+ text-decoration-color: $border-color;
color: $link-color;
+
+ transition: text-decoration-color 0.1s ease-in-out;
+ &:hover {
+ text-decoration-color: $secondary-text-color;
+ }
+
&.external-link::after {
content: '';
display: inline-block;