From 29638c0462560f5d5883a18d55c5d9dc39f018e5 Mon Sep 17 00:00:00 2001 From: Giorgio Garofalo Date: Sat, 31 Aug 2024 18:17:55 +0200 Subject: [PATCH] Fix box-content padding in non-slides docs --- core/src/main/resources/render/theme/global.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/main/resources/render/theme/global.css b/core/src/main/resources/render/theme/global.css index c58b91e0..7c9edc8f 100644 --- a/core/src/main/resources/render/theme/global.css +++ b/core/src/main/resources/render/theme/global.css @@ -232,8 +232,12 @@ code.focus-lines .hljs-ln-line:not(.focused), padding: 12px; } -.box > .box-content p { - margin: 8px 0; +.box > .box-content > *:first-child { + margin-top: 8px; +} + +.box > .box-content > *:last-child { + margin-bottom: 8px; } .box.error-box {