From c5304b35c0044bd67dfed26d0ecb76811fe168e7 Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 31 Mar 2025 21:08:30 +0000
Subject: [PATCH] chore(deps): bump the production-dependencies group with 5 updates (#1894)
---
quartz/components/styles/toc.scss | 61 ++++++++++++++++++------------
1 files changed, 37 insertions(+), 24 deletions(-)
diff --git a/quartz/components/styles/toc.scss b/quartz/components/styles/toc.scss
index 9c0a4b2..d544d0e 100644
--- a/quartz/components/styles/toc.scss
+++ b/quartz/components/styles/toc.scss
@@ -1,4 +1,24 @@
-button#toc {
+@use "../../styles/variables.scss" as *;
+
+.toc {
+ display: flex;
+ flex-direction: column;
+
+ overflow-y: hidden;
+ min-height: 1.2rem;
+ flex: 0 1 auto;
+ &:has(button.toc-header.collapsed) {
+ flex: 0 1 1.2rem;
+ }
+}
+
+@media all and not ($mobile) {
+ .toc-header {
+ display: flex;
+ }
+}
+
+button.toc-header {
background-color: transparent;
border: none;
text-align: left;
@@ -15,37 +35,31 @@
}
& .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 {
+
+ul.toc-content {
list-style: none;
- overflow: hidden;
- max-height: none;
- transition: max-height 0.5s ease;
+ position: relative;
+ margin: 0.5rem 0;
+ padding: 0;
- &.collapsed > .overflow::after {
- opacity: 0;
- }
-
- & ul {
- list-style: none;
- margin: 0.5rem 0;
- padding: 0;
- & > li > a {
- color: var(--dark);
- opacity: 0.35;
- transition: 0.5s ease opacity, 0.3s ease color;
- &.in-view {
- opacity: 0.75;
- }
+ list-style: none;
+ & > li > a {
+ color: var(--dark);
+ opacity: 0.35;
+ transition:
+ 0.5s ease opacity,
+ 0.3s ease color;
+ &.in-view {
+ opacity: 0.75;
}
}
@@ -55,4 +69,3 @@
}
}
}
-
--
Gitblit v1.10.0