Skip to content

Commit

Permalink
Restore canvas padding for classic themes (#37741)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Jan 6, 2022
1 parent 489acbf commit 7a8d9fa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/edit-post/src/classic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
margin-right: auto;
}

// Add a default 8px padding for classic themes around the canvas.
// Themes with theme.json can control this themselves.
// For full-wide blocks, we compensate for the base padding.
// These margins should match the padding value above.
html :where(.editor-styles-wrapper) {
padding: 8px;
.block-editor-block-list__layout.is-root-container > .wp-block[data-align="full"] {
margin-left: -8px;
margin-right: -8px;
}
}

// Deprecated style needed for the block widths and alignments.
// for themes that don't support the new layout (theme.json).
html :where(.wp-block) {
Expand Down

0 comments on commit 7a8d9fa

Please sign in to comment.