From 12bc6711b9dba626d0594d37a82be193ae41633a Mon Sep 17 00:00:00 2001 From: enscribe Date: Sat, 22 Mar 2025 02:23:43 -0700 Subject: [PATCH] fix(css): remove margin from direct first & last children --- src/styles/typography.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/styles/typography.css b/src/styles/typography.css index 6b3f191..1d4be95 100644 --- a/src/styles/typography.css +++ b/src/styles/typography.css @@ -2,7 +2,8 @@ @layer components { .prose { - @apply text-foreground text-base leading-8 [&>section:first-child>*]:mt-0 [&>section:last-child>*]:mb-0; + @apply text-foreground text-base leading-8; + @apply [&>*]:first:mt-0 [&>*]:last:mb-0 [&>section:first-child>*]:mt-0 [&>section:last-child>*]:mb-0; p { @apply text-foreground/80 my-5 leading-7 not-first:mt-5;