From 6aaafd9038e50829b73609e2c60d640dfab6e646 Mon Sep 17 00:00:00 2001 From: Giorgio Garofalo Date: Fri, 27 Sep 2024 12:59:23 +0200 Subject: [PATCH] Ignore empty paragraphs in stack layouts --- core/src/main/resources/render/theme/global.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/core/src/main/resources/render/theme/global.css b/core/src/main/resources/render/theme/global.css index d3470776..7e085177 100644 --- a/core/src/main/resources/render/theme/global.css +++ b/core/src/main/resources/render/theme/global.css @@ -242,6 +242,14 @@ code.focus-lines .hljs-ln-line:not(.focused), align-items: end; } +.stack > p, .clip > p { + margin: 0; +} + +.stack > p:empty { + display: none; +} + .stack-row { display: flex; flex-direction: row; @@ -443,10 +451,6 @@ code.focus-lines .hljs-ln-line:not(.focused), max-height: 100% !important; } -.stack > p, .clip > p { - margin: 0; -} - /* Table of contents */ nav {