-
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.
Show movers next to block switcher (#22673)
* Initial work on unhiding movers. * Make parent button 48x48 * Handle focus styles. * Horizontal mover polish. * Polish drag and drop. * Fix issue with just one block. * Small refactor. * Switcher + Movers draggable * Update syntax. Props @zebulandstanphill Co-authored-by: Zebulan Stanphill <[email protected]> * Move the dragging handle to the block toolbar styles. * specific block clone className * Fix centering when lonesome. * Fix tab-order test * Simplify handle positioning variables. * Remove rounding on drop target. Co-authored-by: Riad Benguella <[email protected]> Co-authored-by: Zebulan Stanphill <[email protected]> Co-authored-by: Joen Asmussen <[email protected]>
- Loading branch information
1 parent
8ac2826
commit 1f4645f
Showing
14 changed files
with
200 additions
and
180 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
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 was deleted.
Oops, something went wrong.
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
8 changes: 4 additions & 4 deletions
8
packages/block-editor/src/components/block-parent-selector/style.scss
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
.block-editor-block-parent-selector { | ||
background: $white; | ||
border: 1px solid $dark-gray-primary; | ||
border: $border-width solid $dark-gray-primary; | ||
border-radius: $radius-block-ui; | ||
padding: 8px; | ||
padding: $grid-unit-10 - $border-width; | ||
line-height: 1; | ||
|
||
.block-editor-block-parent-selector__button { | ||
width: 32px; | ||
min-width: auto; | ||
height: 32px; | ||
width: $grid-unit-40; | ||
height: $grid-unit-40; | ||
padding: 0; | ||
} | ||
} |
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
Oops, something went wrong.