Skip to content

Commit

Permalink
add box-spacing to the group block
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Sep 24, 2020
1 parent 1e22b06 commit b801d84
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/cover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
justify-content: center;
align-items: center;
padding: 1em;
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;

&.has-parallax {
Expand Down
4 changes: 4 additions & 0 deletions packages/block-library/src/group/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.wp-block-group {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
}
1 change: 1 addition & 0 deletions packages/block-library/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@import "./embed/style.scss";
@import "./file/style.scss";
@import "./gallery/style.scss";
@import "./group/style.scss";
@import "./heading/style.scss";
@import "./image/style.scss";
@import "./latest-comments/style.scss";
Expand Down

0 comments on commit b801d84

Please sign in to comment.