Use grid for better spacing between elements.

This commit is contained in:
2020-11-16 14:35:12 +01:00
parent c1c11f9782
commit 3b8d6f22ca

View File

@@ -86,14 +86,10 @@ h1 {
} }
#wines-container { #wines-container {
display: flex; display: grid;
flex-wrap: wrap; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
justify-content: space-evenly; grid-gap: 2rem;
align-items: flex-start;
@include desktop {
margin: 0 2rem;
}
> div { > div {
justify-content: flex-start; justify-content: flex-start;