Skip to content

Commit

Permalink
Add top margin also.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joen Asmussen authored and jasmussen committed Apr 12, 2019
1 parent 2361a77 commit 8d3cea6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/block-library/src/columns/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

// Zero out margins.
> [data-block] {
margin-top: 0;
margin-bottom: 0;
}

Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@
// Provide every block with a default base margin. This margin provides a consistent spacing
// between blocks in the editor.
[data-block] {
margin-top: $default-block-margin;
margin-bottom: $default-block-margin;
}
2 changes: 1 addition & 1 deletion packages/edit-post/src/components/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
margin-right: auto;

// Apply default block margin below the post title.
// This ensures the first block on the page is almost in a good position.
// This ensures the first block on the page is in a good position.
// This rule can be retired once the title becomes an actual block.
margin-bottom: ($block-padding * 2) + $block-spacing; // This matches 2em in the vanilla style.

Expand Down

0 comments on commit 8d3cea6

Please sign in to comment.