Skip to content

Commit

Permalink
style: fix .grid-auto-fit responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
felixicaza committed Aug 13, 2024
1 parent e7bb75d commit 8f10aab
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/routes/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ import { GradientColor } from '../components/GradientBackground/GradientBackgrou
margin: 0 auto;
}

@media (width >= 992px) {
.grid-auto-fit {
--min-item-width: 30rem;
--grid-gap: 2rem;

margin-inline: auto;
max-width: 100%;
}
}

main {
overflow: hidden;
}
Expand All @@ -72,13 +82,5 @@ import { GradientColor } from '../components/GradientBackground/GradientBackgrou
margin: 0 auto;
}
}

.grid-auto-fit {
--min-item-width: 30rem;
--grid-gap: 2rem;

margin-inline: auto;
max-width: 100%;
}
}
</style>

0 comments on commit 8f10aab

Please sign in to comment.