From 5eec1e98e6f6b16d4a29cdbbc69c573fb06e538d Mon Sep 17 00:00:00 2001
From: Emile Bangma <github@emilebangma.com>
Date: Wed, 25 Sep 2024 22:15:07 +0000
Subject: [PATCH] fix(layout): grid triage with backlinks (#1442)
---
quartz/components/styles/toc.scss | 28 ++++++++++++++++++++++++++--
1 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/quartz/components/styles/toc.scss b/quartz/components/styles/toc.scss
index 27ff62a..512b01d 100644
--- a/quartz/components/styles/toc.scss
+++ b/quartz/components/styles/toc.scss
@@ -1,3 +1,12 @@
+.toc {
+ display: flex;
+ flex-direction: column;
+ &.desktop-only {
+ display: flex;
+ max-height: 40%;
+ }
+}
+
button#toc {
background-color: transparent;
border: none;
@@ -28,9 +37,21 @@
#toc-content {
list-style: none;
overflow: hidden;
- max-height: none;
- transition: max-height 0.5s ease;
+ 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;
@@ -51,6 +72,9 @@
}
}
}
+ > ul.overflow {
+ max-height: none;
+ }
@for $i from 0 through 6 {
& .depth-#{$i} {
--
Gitblit v1.10.0