From 0403fa70aa24cd3c16fbd9caf434cdcd277f1a14 Mon Sep 17 00:00:00 2001
From: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Date: Mon, 22 Jan 2024 04:50:00 +0000
Subject: [PATCH] fix(search): use anchor element (closes #698) (#717)
---
quartz/components/styles/toc.scss | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/quartz/components/styles/toc.scss b/quartz/components/styles/toc.scss
index 9c0a4b2..27ff62a 100644
--- a/quartz/components/styles/toc.scss
+++ b/quartz/components/styles/toc.scss
@@ -15,21 +15,22 @@
}
& .fold {
- margin-left: 0.5rem;
+ margin-left: 0.5rem;
transition: transform 0.3s ease;
opacity: 0.8;
}
&.collapsed .fold {
- transform: rotateZ(-90deg)
+ transform: rotateZ(-90deg);
}
}
-
+
#toc-content {
list-style: none;
overflow: hidden;
max-height: none;
transition: max-height 0.5s ease;
+ position: relative;
&.collapsed > .overflow::after {
opacity: 0;
@@ -42,7 +43,9 @@
& > li > a {
color: var(--dark);
opacity: 0.35;
- transition: 0.5s ease opacity, 0.3s ease color;
+ transition:
+ 0.5s ease opacity,
+ 0.3s ease color;
&.in-view {
opacity: 0.75;
}
@@ -55,4 +58,3 @@
}
}
}
-
--
Gitblit v1.10.0