diff --git a/quartz/styles/callouts.scss b/quartz/styles/callouts.scss index 745defc7f..95efceb22 100644 --- a/quartz/styles/callouts.scss +++ b/quartz/styles/callouts.scss @@ -123,13 +123,16 @@ transform: rotateZ(-90deg); } - .callout-content > :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; + .callout-content { height: 0; - margin-top: -1rem; + & > :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; + } } } }