Skip to content

Commit

Permalink
Improve alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Jun 10, 2020
1 parent 4d8ee16 commit a5de001
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/block-editor/src/components/block-navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ $tree-item-height: 36px;
width: calc(100% - 0.8em);
height: auto;
padding: $grid-unit-15 6px;
margin-top: auto;
margin-bottom: auto;
text-align: left;
color: $dark-gray-600;
border-radius: 2px;
Expand Down Expand Up @@ -86,6 +88,10 @@ $tree-item-height: 36px;
}
}

.block-editor-block-navigation-block__menu-cell {
padding-top: $grid-unit-10;
}

.block-editor-block-navigation-block__mover-cell-alignment-wrapper {
display: flex;
height: 100%;
Expand Down Expand Up @@ -159,7 +165,7 @@ $tree-item-height: 36px;
background: $dark-gray-primary;
color: $white;
height: $grid-unit-30;
margin: 6px 6px 6px 0.8em;
margin: 6px 6px 6px 1px;
min-width: $grid-unit-30;

&:active {
Expand All @@ -181,6 +187,10 @@ $tree-item-height: 36px;
display: flex;
}

.block-editor-block-navigation-block__contents-container {
min-height: 56px;
}

.block-editor-block-navigator-descender-line {
position: relative;
flex-shrink: 0;
Expand All @@ -199,7 +209,7 @@ $tree-item-height: 36px;
content: "";
display: block;
position: absolute;
top: -1px;
top: 1px;
bottom: -2px;
right: -1px;
border-right: 2px solid $light-gray-900;
Expand Down

0 comments on commit a5de001

Please sign in to comment.