Skip to content

Commit

Permalink
Movers: Small positioning refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Nov 4, 2020
1 parent 703e324 commit c955ce5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
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

0 comments on commit c955ce5

Please sign in to comment.