Skip to content

Commit

Permalink
Fix movie columns
Browse files Browse the repository at this point in the history
  • Loading branch information
LkeMitchll committed Mar 6, 2023
1 parent 027bf23 commit eb3d3a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/_includes/css/blocks/movies.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
.movies {
@media (max-width: 900px) {
--cols: 2;

@media screen and (min-width: 700px) {
& {
--cols: 3;
}
}

@media (min-width: 900px) {
@media screen and (min-width: 900px) {
& {
--cols: 6;

Expand Down
1 change: 1 addition & 0 deletions src/_includes/css/compositions/columns.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.columns {
display: grid;
grid-gap: var(--row-gap, var(--space-large)) var(--gap, var(--space-large));
grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));

&[data-row-gap="none"] {
grid-row-gap: 0;
Expand Down

0 comments on commit eb3d3a2

Please sign in to comment.