From 917d5791acd6361c691902b445bdc4f7129ba3fc Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sat, 17 Jun 2023 02:41:59 +0000
Subject: [PATCH] modern toc tweaks
---
quartz/components/styles/toc.scss | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/quartz/components/styles/toc.scss b/quartz/components/styles/toc.scss
index 33b9cca..3003f40 100644
--- a/quartz/components/styles/toc.scss
+++ b/quartz/components/styles/toc.scss
@@ -2,24 +2,36 @@
& summary {
cursor: pointer;
- &::marker {
- color: var(--dark);
+ list-style: none;
+ &::marker, &::-webkit-details-marker {
+ display: none;
}
& > * {
- padding-left: 0.25rem;
display: inline-block;
margin: 0;
}
+
+ & > h3 {
+ font-size: 1rem;
+ }
}
& ul {
list-style: none;
- margin: 0.5rem 1.25rem;
+ margin: 0.5rem 0;
padding: 0;
+ & > li > a {
+ color: var(--dark);
+ opacity: 0.35;
+ transition: 0.5s ease opacity;
+ &.in-view {
+ opacity: 0.75;
+ }
+ }
}
- @for $i from 1 through 6 {
+ @for $i from 0 through 6 {
& .depth-#{$i} {
padding-left: calc(1rem * #{$i});
}
--
Gitblit v1.10.0