Skip to content

Commit

Permalink
Adjust mobile margins for the Query block's grid view (#27619)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellr authored Dec 10, 2020
1 parent a110765 commit 8f257d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/block-library/src/query-loop/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@
flex-wrap: wrap;

li {
margin: 0 1.25em 1.25em 0;
margin: 0 0 1.25em 0;
width: 100%;
}

@include break-small {
li {
margin-right: 1.25em;
}

@for $i from 2 through 6 {
&.is-flex-container.columns-#{ $i } > li {
width: calc((100% / #{ $i }) - 1.25em + (1.25em / #{ $i }));
Expand Down

0 comments on commit 8f257d1

Please sign in to comment.