Skip to content

Commit

Permalink
fix: make sure first floated element has top margin (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford authored Apr 28, 2020
1 parent a8ec2cd commit 733d482
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions newspack-theme/sass/blocks/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
&.alignleft {
/*rtl:ignore*/
float: left;
margin-top: 0;
margin-left: 0;
/*rtl:ignore*/
margin-right: $size__spacing-unit;
Expand All @@ -25,13 +24,17 @@
&.alignright {
/*rtl:ignore*/
float: right;
margin-top: 0;
margin-right: 0;
/*rtl:ignore*/
margin-left: $size__spacing-unit;
max-width: 50%;
}

.alignleft:not( :first-child ),
.alignright:not( :first-child ) {
margin-top: 0;
}

&.aligncenter {
margin-left: auto;
margin-right: auto;
Expand Down

0 comments on commit 733d482

Please sign in to comment.