From b8a660e208333ea8ef4998c2f815411f12ce7067 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sat, 30 Apr 2022 20:10:12 +0000
Subject: [PATCH] feat: copyable header anchors (fixes #86)
---
assets/styles/base.scss | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/assets/styles/base.scss b/assets/styles/base.scss
index 0c7d957..3b2801b 100644
--- a/assets/styles/base.scss
+++ b/assets/styles/base.scss
@@ -12,6 +12,19 @@
font-weight: revert;
margin: revert;
padding: revert;
+
+ &:hover > .hanchor {
+ opacity: 1;
+ }
+}
+
+.hanchor {
+ font-family: Inter;
+ margin-left: -1em;
+ opacity: 0.3;
+ transition: opacity 0.3s ease;
+ color: var(--secondary);
+
}
p, ul, text {
@@ -329,6 +342,12 @@
& #graph-container {
border: var(--outlinegray) 1px solid;
border-radius: 5px;
+ box-sizing: border-box;
+
+ & > svg {
+ margin-bottom: -5px;
+
+ }
}
}
--
Gitblit v1.10.0