diff --git a/mu-plugins/blocks/notice/postcss/style.pcss b/mu-plugins/blocks/notice/postcss/style.pcss index 33aff04d..c8ac51df 100644 --- a/mu-plugins/blocks/notice/postcss/style.pcss +++ b/mu-plugins/blocks/notice/postcss/style.pcss @@ -31,7 +31,8 @@ display: none; } - & p:first-child { + & p:first-child, + &:has(:first-child:empty) :nth-child(2) { margin-block-start: 0; } @@ -40,7 +41,8 @@ */ & p:last-child, - &:has(.o2-data) :nth-last-child(2) { + &:has(.o2-data) :nth-last-child(2), + &:has(:last-child:empty) :nth-last-child(2) { margin-block-end: 0; }