From 5480269d38ffaff7ffd6576d9a9407430429fb2d Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 09 Mar 2025 21:58:26 +0000
Subject: [PATCH] perf(explorer): client side explorer (#1810)
---
quartz/components/styles/toc.scss | 29 ++++-------------------------
1 files changed, 4 insertions(+), 25 deletions(-)
diff --git a/quartz/components/styles/toc.scss b/quartz/components/styles/toc.scss
index 4988cd8..d1feca6 100644
--- a/quartz/components/styles/toc.scss
+++ b/quartz/components/styles/toc.scss
@@ -4,8 +4,10 @@
display: flex;
flex-direction: column;
- &.desktop-only {
- max-height: 40%;
+ overflow-y: hidden;
+ flex: 0 1 auto;
+ &:has(button#toc.collapsed) {
+ flex: 0 1 1.2rem;
}
}
@@ -44,26 +46,7 @@
#toc-content {
list-style: none;
- overflow: hidden;
- overflow-y: auto;
- max-height: 100%;
- transition:
- max-height 0.35s ease,
- visibility 0s linear 0s;
position: relative;
- visibility: visible;
-
- &.collapsed {
- max-height: 0;
- transition:
- max-height 0.35s ease,
- visibility 0s linear 0.35s;
- visibility: hidden;
- }
-
- &.collapsed > .overflow::after {
- opacity: 0;
- }
& ul {
list-style: none;
@@ -80,10 +63,6 @@
}
}
}
- > ul.overflow {
- max-height: none;
- width: 100%;
- }
@for $i from 0 through 6 {
& .depth-#{$i} {
--
Gitblit v1.10.0