Skip to content

Commit

Permalink
Move block tools CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Apr 29, 2021
1 parent 94ddd3d commit 9dc1992
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 58 deletions.
35 changes: 14 additions & 21 deletions packages/block-editor/src/components/block-tools/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,29 +159,23 @@
}

// Position mover arrows for both toolbars.
.block-editor-block-contextual-toolbar,
.edit-post-header-toolbar__block-toolbar,
.edit-site-header-toolbar__block-toolbar,
.edit-navigation-layout__block-toolbar,
.edit-widgets-header__block-toolbar {
.block-editor-block-mover:not(.is-horizontal) {
// Position SVGs.
.block-editor-block-mover-button {
&:focus::before {
left: 0 !important;
min-width: 0;
width: 100%;
}
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) {
// Position SVGs.
.block-editor-block-mover-button {
&:focus::before {
left: 0 !important;
min-width: 0;
width: 100%;
}
}

@include break-small() {
.block-editor-block-mover-button.is-up-button svg {
top: 5px;
}
@include break-small() {
.block-editor-block-mover-button.is-up-button svg {
top: 5px;
}

.block-editor-block-mover-button.is-down-button svg {
bottom: 5px;
}
.block-editor-block-mover-button.is-down-button svg {
bottom: 5px;
}
}
}
Expand Down Expand Up @@ -253,7 +247,6 @@
}
}


/**
* Popovers.
*/
Expand Down
28 changes: 0 additions & 28 deletions packages/edit-navigation/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,34 +64,6 @@
}
}

.edit-navigation-layout__block-toolbar {
// Make the fixed toolbar appear in a similar position to the floating toolbar.
// Take the spacing for the floating toolbar, then subtract the toolbar height and
// the gap between the content area and the toolbar.
margin-top: $navigation-editor-spacing-top - $block-toolbar-height - $grid-unit-15;

.block-editor-block-toolbar {
background: $white;
border: $border-width solid $gray-900;
border-radius: $radius-block-ui;
max-width: $navigation-editor-width;
margin: auto;
overflow-y: hidden;
}

.components-toolbar,
.components-toolbar-group {
border-right-color: $gray-900;

.components-toolbar,
.components-toolbar-group {
border-width: 0;
}
}

height: $block-toolbar-height;
}

.edit-navigation-empty-state {
max-width: $navigation-editor-width;
margin-left: auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
.edit-widgets-header {
margin-top: -16px;
border-top: 1px solid $gray-300;
}

.edit-widgets-header,
.edit-widgets-header__block-toolbar {
background: #fff;
margin-left: -12px;
margin-right: -12px;
Expand Down
5 changes: 0 additions & 5 deletions packages/edit-widgets/src/components/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@
display: flex;
}

.edit-widgets-header__block-toolbar {
border-bottom: 1px solid $gray-300;
border-top: 1px solid $gray-300;
}

.edit-widgets-header-toolbar {
border: none;

Expand Down

0 comments on commit 9dc1992

Please sign in to comment.