Skip to content

Commit

Permalink
Remove last button margin for left and right aligned buttons too
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed Jun 20, 2020
1 parent be1d207 commit aed2ea7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/block-library/src/buttons/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,21 @@
display: inline-block;
margin-right: $grid-unit-10;
margin-bottom: $grid-unit-10;

&:last-child {
margin-right: 0;
}
}

.wp-block-buttons.alignright .wp-block-button {
margin-right: 0;
margin-left: $grid-unit-10;

&:first-child {
margin-left: 0;
}
}

.wp-block-buttons.aligncenter {
text-align: center;

.wp-block-button:last-child {
margin-right: 0;
}
}

0 comments on commit aed2ea7

Please sign in to comment.