Skip to content

Commit

Permalink
[Block Library - Query Loop]: Use gap for the grid view (#37711)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras authored and noisysocks committed Jan 10, 2022
1 parent e995633 commit 89e5230
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions packages/block-library/src/post-template/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,21 @@
list-style: none;
padding: 0;

li {
clear: both;
}

&.is-flex-container {
flex-direction: row;
display: flex;
flex-wrap: wrap;
gap: 1.25em;

li {
margin: 0 0 1.25em 0;
margin: 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 }));

&:nth-child( #{ $i }n ) {
margin-right: 0;
}
}
}
}
Expand Down

0 comments on commit 89e5230

Please sign in to comment.