From c593abbc39b058fe52cff2ec3f6a6cd7e6febfab Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Thu, 7 Oct 2021 14:39:02 +0100 Subject: [PATCH] Better defaults for spacing the post title in the post editor --- .../edit-post/src/components/visual-editor/style.scss | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/edit-post/src/components/visual-editor/style.scss b/packages/edit-post/src/components/visual-editor/style.scss index b93af3ee80c715..6e364e5d51e28d 100644 --- a/packages/edit-post/src/components/visual-editor/style.scss +++ b/packages/edit-post/src/components/visual-editor/style.scss @@ -42,12 +42,10 @@ // Center. margin-left: auto; margin-right: auto; - - // Margins between the title and the first block, or appender, do not collapse. - // However in that support block gap, the first items in post content do not have a top margin. - // By leveraging the gap variable, with a fallback of zero, we handle both cases. - margin-bottom: var(--wp--style--block-gap, 0); } + + margin-top: var(--wp--style--block-gap); + margin-bottom: var(--wp--style--block-gap); } .edit-post-visual-editor__exit-template-mode {