fix(css): remove margin from direct first & last children

This commit is contained in:
enscribe 2025-03-22 02:23:43 -07:00
parent 04a06debde
commit 12bc6711b9
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322

View file

@ -2,7 +2,8 @@
@layer components { @layer components {
.prose { .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 { p {
@apply text-foreground/80 my-5 leading-7 not-first:mt-5; @apply text-foreground/80 my-5 leading-7 not-first:mt-5;