From 685c06ce2e7c559b4e2cc544e300c1262c739b1c Mon Sep 17 00:00:00 2001
From: K Gopal Krishna <30401343+kayg04@users.noreply.github.com>
Date: Fri, 04 Apr 2025 17:36:29 +0000
Subject: [PATCH] fix(RecentNotes): Prevent folder pages from always appearing first (closes #1901) (#1904)
---
quartz/components/styles/toc.scss | 33 ++++++++++++++++-----------------
1 files changed, 16 insertions(+), 17 deletions(-)
diff --git a/quartz/components/styles/toc.scss b/quartz/components/styles/toc.scss
index d1feca6..d544d0e 100644
--- a/quartz/components/styles/toc.scss
+++ b/quartz/components/styles/toc.scss
@@ -5,19 +5,20 @@
flex-direction: column;
overflow-y: hidden;
+ min-height: 1.2rem;
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,23 +45,21 @@
}
}
-#toc-content {
+ul.toc-content {
list-style: none;
position: relative;
+ margin: 0.5rem 0;
+ padding: 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;
}
}
--
Gitblit v1.10.0