From 60f782893a6132bc86322add41bfdead774229f2 Mon Sep 17 00:00:00 2001 From: Emile Bangma Date: Wed, 5 Nov 2025 16:28:51 +0100 Subject: [PATCH] Refactor callout-content to collapse all children simultaneously --- quartz/styles/callouts.scss | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/quartz/styles/callouts.scss b/quartz/styles/callouts.scss index 95efceb22..3f15ce734 100644 --- a/quartz/styles/callouts.scss +++ b/quartz/styles/callouts.scss @@ -123,16 +123,16 @@ transform: rotateZ(-90deg); } - .callout-content { + .callout-content > * { + transition: + height 0.1s cubic-bezier(0.02, 0.01, 0.47, 1), + margin 0.1s cubic-bezier(0.02, 0.01, 0.47, 1); + overflow-y: clip; height: 0; - & > :first-child { - transition: - height 0.1s cubic-bezier(0.02, 0.01, 0.47, 1), - margin 0.1s cubic-bezier(0.02, 0.01, 0.47, 1); - overflow-y: clip; - height: 0; - margin-top: -1rem; - } + margin-bottom: 0; + margin-top: 0; + padding-bottom: 0; + padding-top: 0; } } }