Skip to content

Commit

Permalink
grid -> flex
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster committed Apr 11, 2023
1 parent 4f84e6c commit b2584c9
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,26 @@
width: 95%;
}
@include break-large() {
height: 95%;
max-height: none;
max-height: 95%;
}
}

.edit-site-start-template-options__modal-content .block-editor-block-patterns-list {
display: grid;
display: flex;
flex-wrap: wrap;
gap: $grid-unit-30;
width: 100%;
margin-top: $grid-unit-05;
gap: $grid-unit-30;
grid-template-columns: repeat(auto-fit, minmax(min(100%/2, max(240px, 100%/5)), 1fr));

.block-editor-block-patterns-list__list-item {
break-inside: avoid-column;
margin-bottom: 0;
width: 100%;
aspect-ratio: 3/4;
width: calc(50% - #{ $grid-unit-30 * 1 } / 2);

@include break-large() {
width: calc(25% - #{ $grid-unit-30 * 3 } / 4);
}

.block-editor-block-preview__container {
height: 100%;
Expand Down

0 comments on commit b2584c9

Please sign in to comment.