Skip to content

Commit

Permalink
Cover block: Update the box-sizing attribute (#25115)
Browse files Browse the repository at this point in the history
* Cover block: Update the box-sizing

* add box-spacing to the group block
  • Loading branch information
scruffian authored Sep 24, 2020
1 parent 580f75b commit b0f6704
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/block-library/src/cover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
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 {
background-attachment: fixed;
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 b0f6704

Please sign in to comment.