Skip to content

Commit

Permalink
Remove margin from last button if buttons are centered (#23319)
Browse files Browse the repository at this point in the history
* Remove margin from last button if buttons are centered

* Remove last button margin for left and right aligned buttons too
  • Loading branch information
Aljullu committed Jun 21, 2020
1 parent 5886225 commit 01fab7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/block-library/src/buttons/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@
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 {
Expand Down

0 comments on commit 01fab7e

Please sign in to comment.