From 1cd8e7f0d510b97dfc2c3314c36d957383162a8f Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 09 Mar 2025 22:06:36 +0000
Subject: [PATCH] feat: support non-singleton table of contents
---
quartz/components/styles/toc.scss | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/quartz/components/styles/toc.scss b/quartz/components/styles/toc.scss
index d1feca6..42aa35c 100644
--- a/quartz/components/styles/toc.scss
+++ b/quartz/components/styles/toc.scss
@@ -6,18 +6,18 @@
overflow-y: hidden;
flex: 0 1 auto;
- &:has(button#toc.collapsed) {
+ &:has(button.toc-header.collapsed) {
flex: 0 1 1.2rem;
}
}
@media all and not ($mobile) {
- .toc {
+ .toc-header {
display: flex;
}
}
-button#toc {
+button.toc-header {
background-color: transparent;
border: none;
text-align: left;
@@ -44,7 +44,7 @@
}
}
-#toc-content {
+.toc-content {
list-style: none;
position: relative;
--
Gitblit v1.10.0