-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Buttons block]: Add gap and vertical margin support (#34546)
* Add gap support to Buttons * Use css var and remove additional top and bottom margin * Remove unneeded CSS and account for gap in width calculations * Support center alignment for legacy buttons * Fix 100% width for center-aligned vertical buttons * Do not factor in gap when calculating width for vertical buttons * Clean up margin-based width calculations now that we're using gap * Interpolate vars and remove unneeded selector * Add top/bottom margin support to Buttons * Override block editor margins in non-blocks themes * Implement row gap with margins for backwards compatibility * Go back to using gap instead of margins * Override margins for the block appender as well as the button * Further increase specificity to fix TT1 editor styles
- Loading branch information
Showing
5 changed files
with
34 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,6 @@ | |
.is-selected & { | ||
height: auto; | ||
overflow: visible; | ||
margin-top: $grid-unit-20; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters