Skip to content

Commit

Permalink
Twenty Twenty-One: Allow editor styles to control block margins.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
audrasjb committed Feb 14, 2022
1 parent eb6ed4f commit bb68a8b
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 43 deletions.
13 changes: 0 additions & 13 deletions src/wp-content/themes/twentytwentyone/assets/css/ie-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bb68a8b

Please sign in to comment.