mirror of
git://develop.git.wordpress.org/
synced 2025-04-05 04:33:18 +02:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@52726 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eb6ed4faec
commit
bb68a8b1e4
@ -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;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -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);
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user