Skip to content

Commit

Permalink
Better defaults for spacing the post title in the post editor
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Oct 7, 2021
1 parent 3321363 commit c593abb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/edit-post/src/components/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c593abb

Please sign in to comment.