From ec00a40aefca73596ab76e3ebe3a8e1129b43688 Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 27 Jan 2026 18:27:17 +0000
Subject: [PATCH] chore(deps): bump the production-dependencies group with 4 updates (#2289)
---
quartz/components/styles/toc.scss | 83 +++++++++++++++++++++++++++--------------
1 files changed, 55 insertions(+), 28 deletions(-)
diff --git a/quartz/components/styles/toc.scss b/quartz/components/styles/toc.scss
index 3003f40..6a7723b 100644
--- a/quartz/components/styles/toc.scss
+++ b/quartz/components/styles/toc.scss
@@ -1,33 +1,60 @@
-details.toc {
- & summary {
- cursor: pointer;
+@use "../../styles/variables.scss" as *;
- list-style: none;
- &::marker, &::-webkit-details-marker {
- display: none;
- }
-
- & > * {
- display: inline-block;
- margin: 0;
- }
-
- & > h3 {
- font-size: 1rem;
- }
+.toc {
+ display: flex;
+ flex-direction: column;
+ overflow-y: hidden;
+ min-height: 1.4rem;
+ flex: 0 0.5 auto;
+ &:has(button.toc-header.collapsed) {
+ flex: 0 1 1.4rem;
}
-
- & ul {
- list-style: none;
- margin: 0.5rem 0;
- padding: 0;
- & > li > a {
- color: var(--dark);
- opacity: 0.35;
- transition: 0.5s ease opacity;
- &.in-view {
- opacity: 0.75;
- }
+}
+
+button.toc-header {
+ background-color: transparent;
+ border: none;
+ text-align: left;
+ cursor: pointer;
+ padding: 0;
+ color: var(--dark);
+ display: flex;
+ align-items: center;
+
+ & h3 {
+ font-size: 1rem;
+ display: inline-block;
+ margin: 0;
+ }
+
+ & .fold {
+ margin-left: 0.5rem;
+ transition: transform 0.3s ease;
+ opacity: 0.8;
+ }
+
+ &.collapsed .fold {
+ transform: rotateZ(-90deg);
+ }
+}
+
+ul.toc-content.overflow {
+ list-style: none;
+ position: relative;
+ margin: 0.5rem 0;
+ padding: 0;
+ max-height: calc(100% - 2rem);
+ overscroll-behavior: contain;
+ 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;
}
}
--
Gitblit v1.10.0