From b0cd38e2c5a6bd735ac2238d5bce8d9383bba7f9 Mon Sep 17 00:00:00 2001 From: Lea Verou Date: Tue, 17 Dec 2024 18:02:58 -0500 Subject: [PATCH] Tweak spacing to have more reasonable spacing for callout cc @lindsaym-fa --- src/styles/applied.css | 49 ++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/src/styles/applied.css b/src/styles/applied.css index bbea860d6..71c08dc5e 100644 --- a/src/styles/applied.css +++ b/src/styles/applied.css @@ -66,27 +66,30 @@ body { } /* Content flow */ -:is( - address, - audio, - blockquote, - dd, - details, - dl, - figure, - h1, - h2, - h3, - h4, - h5, - h6, - iframe, - ol, - p, - pre, - table, - ul, - video - ):has(+ *) { - margin: 0 0 var(--wa-space-xl) 0; +address, +audio, +blockquote, +dd, +details, +dl, +figure, +h1, +h2, +h3, +h4, +h5, +h6, +iframe, +ol, +p, +pre, +table, +ul, +video, +wa-callout, +wa-code-demo, +wa-viewport-demo { + &:where(:not(.wa-off, .wa-off-deep *)):has(+ &) { + margin: 0 0 var(--wa-space-xl) 0; + } }