Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions packages/edit-post/src/classic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@ html :where(.editor-styles-wrapper) {
}
}

.block-editor-block-preview__content-iframe {
.block-editor-block-list__layout.is-root-container > .wp-block {
// Prevent full-height blocks expanding height endlessly in pattern preview.
margin-top: 0;
margin-bottom: 0;

// Remove the compensating margin of full-wide blocks in pattern preview to prevent horizontal scrollbars.
&[data-align="full"] {
margin-left: 0;
margin-right: 0;
}
}
}

// 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