Twenty Twenty: Improve Separator Block rendering.

This changeset fixes inconsistent alignment behavior of the Separator Block in the editor.

Props kmadhak, sabernhardt, mukesh27, nidhidhandhukiya, kajalgohel.
Fixes #55910.

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


git-svn-id: http://core.svn.wordpress.org/trunk@53977 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2022-10-07 20:42:11 +00:00
parent b0a552657e
commit d8175f4121
3 changed files with 11 additions and 5 deletions

View File

@ -619,12 +619,15 @@ hr.wp-block-separator:not(.is-style-dots)::after {
width: 1px;
}
hr.wp-block-separator::before {
.editor-styles-wrapper hr.wp-block-separator::before {
right: calc(50% - 5px);
left: auto;
}
hr.wp-block-separator::after {
.editor-styles-wrapper hr.wp-block-separator::after {
left: calc(50% - 5px);
right: auto;
border-radius: 0;
}
/* STYLE: DOTS */

View File

@ -623,12 +623,15 @@ hr.wp-block-separator:not(.is-style-dots)::after {
width: 1px;
}
hr.wp-block-separator::before {
.editor-styles-wrapper hr.wp-block-separator::before {
left: calc(50% - 5px);
right: auto;
}
hr.wp-block-separator::after {
.editor-styles-wrapper hr.wp-block-separator::after {
right: calc(50% - 5px);
left: auto;
border-radius: 0;
}
/* STYLE: DOTS */

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.1-beta3-54417';
$wp_version = '6.1-beta3-54418';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.