From af14ca7c4f754b07a5f32efc5265632f539ef103 Mon Sep 17 00:00:00 2001
From: KurekMartin <79570332+KurekMartin@users.noreply.github.com>
Date: Fri, 04 Oct 2024 16:10:40 +0000
Subject: [PATCH] i18n: add Czech translation (#1477)
---
quartz/components/styles/toc.scss | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/quartz/components/styles/toc.scss b/quartz/components/styles/toc.scss
index 13d6d3f..3b2b6b3 100644
--- a/quartz/components/styles/toc.scss
+++ b/quartz/components/styles/toc.scss
@@ -1,5 +1,10 @@
.toc {
- overflow-y: auto;
+ display: flex;
+ flex-direction: column;
+ &.desktop-only {
+ display: flex;
+ max-height: 40%;
+ }
}
button#toc {
@@ -32,17 +37,19 @@
#toc-content {
list-style: none;
overflow: hidden;
- max-height: none;
+ overflow-y: auto;
+ max-height: 100%;
transition:
- max-height 0.5s ease,
+ max-height 0.35s ease,
visibility 0s linear 0s;
position: relative;
visibility: visible;
&.collapsed {
+ max-height: 0;
transition:
- max-height 0.5s ease,
- visibility 0s linear 0.5s;
+ max-height 0.35s ease,
+ visibility 0s linear 0.35s;
visibility: hidden;
}
@@ -65,6 +72,10 @@
}
}
}
+ > ul.overflow {
+ max-height: none;
+ width: 100%;
+ }
@for $i from 0 through 6 {
& .depth-#{$i} {
--
Gitblit v1.10.0