Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Movers: Small positioning refactor. #26353

Merged
merged 1 commit into from
Nov 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -550,18 +550,6 @@
.block-editor-block-mover:not(.is-horizontal) {
// Position SVGs.
.block-editor-block-mover-button {
&.is-up-button {
svg {
margin-top: 2px;
}
}

&.is-down-button {
svg {
margin-bottom: 3px;
}
}

&:focus::before {
left: 0 !important;
min-width: 0;
Expand Down
11 changes: 9 additions & 2 deletions packages/block-editor/src/components/block-mover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,16 @@

// Position the icons correctly.
@include break-small() {
.components-toolbar-group .block-editor-block-mover-button,
.components-toolbar .block-editor-block-mover-button {
margin: 0 auto 0 0;
}

// Up button.
.components-toolbar-group .block-editor-block-mover-button.is-up-button,
.components-toolbar .block-editor-block-mover-button.is-up-button {
svg {
margin-bottom: -$grid-unit-10;
top: 5px;
}

// Focus style.
Expand All @@ -77,10 +83,11 @@
}
}

// Down button.
.components-toolbar-group .block-editor-block-mover-button.is-down-button,
.components-toolbar .block-editor-block-mover-button.is-down-button {
svg {
margin-top: -$grid-unit-10;
bottom: 5px;
}

// Focus style.
Expand Down