From 77f226529a9f1e878551a8ec4650a2e202d289a0 Mon Sep 17 00:00:00 2001 From: Erin Schnabel Date: Sat, 28 Mar 2026 17:20:23 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20asymmetric=20padding=20in?= =?UTF-8?q?=20admonition=20live=20preview?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In live preview, &:first-child on .admonition-content (the content div itself) never fired for titled admonitions because the title div is always the first child. Only &:last-child fired, adding 0.8rem margin to the bottom only. Change to > :first-child / > :last-child to target elements *inside* the content div, giving symmetric 0.8rem top and bottom spacing. Fixes #336 Co-Authored-By: Claude Sonnet 4.6 --- src/assets/main.scss | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/assets/main.scss b/src/assets/main.scss index 35861ac..0a59d77 100644 --- a/src/assets/main.scss +++ b/src/assets/main.scss @@ -113,13 +113,11 @@ } } - &:first-child { - // Reduced to 0.8 and made into rem units. + > :first-child { margin-top: 0.8rem; } - &:last-child { - // Reduced to 0.8 and made into rem units. + > :last-child { margin-bottom: 0.8rem; } }