Twenty Nineteen: avoid columns set to full width to extend beyond editor bounds.

This changeset applies `max-width` and `margin` CSS rules when `block-editor-writing-flow` and `editor-styles-wrapper` classes are on the same element.

Props charleyparkerdesign, sabernhardt, smit08, sclayf1.
Fixes #54169.

Built from https://develop.svn.wordpress.org/trunk@52925


git-svn-id: http://core.svn.wordpress.org/trunk@52514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2022-03-12 19:13:05 +00:00
parent 3172eac11b
commit 2594c68d9f
3 changed files with 3 additions and 1 deletions

View File

@ -605,6 +605,7 @@ body .wp-block.aligncenter {
}
@media only screen and (min-width: 768px) {
body.block-editor-writing-flow,
body .block-editor-writing-flow {
max-width: 80%;
margin: 0 10%;

View File

@ -36,6 +36,7 @@ body {
@include media(tablet) {
&.block-editor-writing-flow,
.block-editor-writing-flow {
max-width: 80%;
margin: 0 10%;

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.0-alpha-52924';
$wp_version = '6.0-alpha-52925';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.