Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons committed Mar 11, 2021
1 parent fc731b2 commit 3f7b4eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 0 additions & 1 deletion packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
right: $border-width;

// Everything else.
// 2px outside.
box-shadow: 0 0 0 $border-width $gray-900;
border-radius: $radius-block-ui - $border-width; // Border is outset, so subtract the width to achieve correct radius.

Expand Down
22 changes: 12 additions & 10 deletions packages/block-editor/src/components/block-navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@
color: $white;
}

&.is-branch-selected.is-selected .block-editor-block-navigation-block-contents {
border-radius: 2px 2px 0 0;
}
&.is-branch-selected:not(.is-selected) .block-editor-block-navigation-block-contents {
background: $gray-100;
border-radius: 0;
}

&.is-dragging {
display: none;
}
Expand All @@ -45,10 +53,13 @@
white-space: nowrap;

&:hover {
background: $gray-100;
box-shadow: inset 0 0 0 $border-width $gray-900;
}

&:focus {
box-shadow:
inset 0 0 0 1px $white,
0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
z-index: 1;
}

Expand Down Expand Up @@ -233,12 +244,3 @@
flex-shrink: 0;
width: 18px;
}

// EXPERIMENTAL
tr.block-editor-block-navigation-leaf {
&.is-selected .block-editor-block-navigation-block-contents {
&:focus {
box-shadow: inset 0 0 0 1px $white, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
}
}
}

0 comments on commit 3f7b4eb

Please sign in to comment.