Twenty Twenty-One: Allow editor styles to control block margins.
This change removes some overrides that prevented site editor updates in 5.9 from controlling vertical margins via `var(--global--spacing-vertical)`. Props stacimc, Boniu91, aristath, ironprogrammer, nidhidhandhukiya. Fixes #54250. Built from https://develop.svn.wordpress.org/trunk@52726 git-svn-id: http://core.svn.wordpress.org/trunk@52315 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
21a51e9993
commit
f4a871189a
|
@ -398,19 +398,6 @@ a:hover {
|
|||
/**
|
||||
* Block Options
|
||||
*/
|
||||
[data-block].wp-block-buttons {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
[data-block].wp-block-buttons .wp-block-button:first-child {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
[data-block].wp-block-buttons .wp-block-button:last-child {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(:hover):not(:active):not(.has-text-color) {
|
||||
color: #d1e4dd;
|
||||
}
|
||||
|
|
|
@ -586,19 +586,6 @@ a:hover {
|
|||
/**
|
||||
* Block Options
|
||||
*/
|
||||
[data-block].wp-block-buttons {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
[data-block].wp-block-buttons .wp-block-button:first-child {
|
||||
margin-top: var(--global--spacing-vertical);
|
||||
}
|
||||
|
||||
[data-block].wp-block-buttons .wp-block-button:last-child {
|
||||
margin-bottom: var(--global--spacing-vertical);
|
||||
}
|
||||
|
||||
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(:hover):not(:active):not(.has-text-color) {
|
||||
color: var(--global--color-background);
|
||||
}
|
||||
|
|
|
@ -7,21 +7,6 @@
|
|||
* Block Options
|
||||
*/
|
||||
|
||||
// The parent container does not need outer margins applied.
|
||||
// The children should all have top and bottom margins.
|
||||
[data-block].wp-block-buttons {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
|
||||
.wp-block-button:first-child {
|
||||
margin-top: var(--global--spacing-vertical);
|
||||
}
|
||||
|
||||
.wp-block-button:last-child {
|
||||
margin-bottom: var(--global--spacing-vertical);
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-button {
|
||||
|
||||
// Target the default and filled button states.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.0-alpha-52725';
|
||||
$wp_version = '6.0-alpha-52726';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue