From bcde2abcb20ad02a0c3f1430b9d620ee60e6cb63 Mon Sep 17 00:00:00 2001
From: dralagen <dralagen@dralagen.fr>
Date: Wed, 19 Mar 2025 04:47:35 +0000
Subject: [PATCH] fix(transformer): find last modified date form commit on submodule (#1831)
---
quartz/components/styles/toc.scss | 43 ++++++++++++++++---------------------------
1 files changed, 16 insertions(+), 27 deletions(-)
diff --git a/quartz/components/styles/toc.scss b/quartz/components/styles/toc.scss
index 512b01d..bc0c749 100644
--- a/quartz/components/styles/toc.scss
+++ b/quartz/components/styles/toc.scss
@@ -1,13 +1,24 @@
+@use "../../styles/variables.scss" as *;
+
.toc {
display: flex;
flex-direction: column;
- &.desktop-only {
- display: flex;
- max-height: 40%;
+
+ overflow-y: hidden;
+ min-height: 4rem;
+ flex: 0 1 auto;
+ &:has(button.toc-header.collapsed) {
+ flex: 0 1 1.2rem;
}
}
-button#toc {
+@media all and not ($mobile) {
+ .toc-header {
+ display: flex;
+ }
+}
+
+button.toc-header {
background-color: transparent;
border: none;
text-align: left;
@@ -34,28 +45,9 @@
}
}
-#toc-content {
+.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;
@@ -72,9 +64,6 @@
}
}
}
- > ul.overflow {
- max-height: none;
- }
@for $i from 0 through 6 {
& .depth-#{$i} {
--
Gitblit v1.10.0