Skip to content

Commit

Permalink
Fix: More resilient appender CSS.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Feb 22, 2021
1 parent 56f2d41 commit bb73b51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
list-style: none;

// Add a little left margin when used horizontally.
margin: 0 0 0 $grid-unit-10;
// The right margin should be set to auto, so as to not shift layout in flex containers.
margin: 0 auto 0 $grid-unit-10;

// ... unless it's the only child.
&:first-child {
Expand Down
7 changes: 4 additions & 3 deletions packages/block-library/src/navigation-link/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@
}

.block-list-appender {
margin: $grid-unit-10 * 2;
margin-left: $grid-unit-10 * 1.25;
margin-top: $grid-unit-10 * 1.25;
margin-top: $grid-unit-20;
// The right margin should be set to auto, so as to not shift layout in flex containers.
margin-right: auto;
margin-bottom: $grid-unit-20;
margin-left: $grid-unit-20;
}
}

Expand Down

0 comments on commit bb73b51

Please sign in to comment.