From e47c29d2fd4eae06c511c914e2a5fcb057b44d7b Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 19 Aug 2024 21:14:29 +0000
Subject: [PATCH] chore(deps): bump rehype-katex from 7.0.0 to 7.0.1 (#1356)
---
quartz/components/styles/toc.scss | 28 ++++++++++++++++++++++------
1 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/quartz/components/styles/toc.scss b/quartz/components/styles/toc.scss
index 1f1a27b..6845812 100644
--- a/quartz/components/styles/toc.scss
+++ b/quartz/components/styles/toc.scss
@@ -15,21 +15,36 @@
}
& .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.3s ease;
+ transition:
+ max-height 0.5s ease,
+ visibility 0s linear 0s;
+ position: relative;
+ visibility: visible;
+
+ &.collapsed {
+ transition:
+ max-height 0.5s ease,
+ visibility 0s linear 0.5s;
+ visibility: hidden;
+ }
+
+ &.collapsed > .overflow::after {
+ opacity: 0;
+ }
& ul {
list-style: none;
@@ -38,7 +53,9 @@
& > li > a {
color: var(--dark);
opacity: 0.35;
- transition: 0.5s ease opacity;
+ transition:
+ 0.5s ease opacity,
+ 0.3s ease color;
&.in-view {
opacity: 0.75;
}
@@ -51,4 +68,3 @@
}
}
}
-
--
Gitblit v1.10.0