Locations: Use grid over flexbox
- More flexible and consistent, avoids weird spacing and centering - TODO: center alone locations on a row?
This commit is contained in:
@@ -3,15 +3,6 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
margin-bottom: 48px;
|
margin-bottom: 48px;
|
||||||
|
|
||||||
@include breakpoint (sm) {
|
|
||||||
margin-left: pxVW(72);
|
|
||||||
margin-right: pxVW(72);
|
|
||||||
}
|
|
||||||
@include breakpoint (xl) {
|
|
||||||
margin-left: 72px;
|
|
||||||
margin-right: 72px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&, a * {
|
&, a * {
|
||||||
will-change: transform, opacity;
|
will-change: transform, opacity;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,22 +42,24 @@
|
|||||||
min-height: 120px;
|
min-height: 120px;
|
||||||
margin-top: 72px;
|
margin-top: 72px;
|
||||||
|
|
||||||
|
@include breakpoint (600px) {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
}
|
||||||
@include breakpoint (sm) {
|
@include breakpoint (sm) {
|
||||||
display: flex;
|
grid-template-columns: repeat(3, 1fr);
|
||||||
flex-wrap: wrap;
|
grid-column-gap: pxVW(96);
|
||||||
justify-content: center;
|
grid-row-gap: pxVW(120);
|
||||||
min-height: 200px;
|
min-height: 200px;
|
||||||
margin-top: 112px;
|
margin-top: 112px;
|
||||||
margin-bottom: pxVW(120);
|
margin-bottom: pxVW(120);
|
||||||
// display: grid;
|
|
||||||
// grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
||||||
// grid-column-gap: 120px;
|
|
||||||
// grid-row-gap: pxVW(120);
|
|
||||||
}
|
}
|
||||||
@include breakpoint (md) {
|
@include breakpoint (md) {
|
||||||
margin-bottom: pxVW(232);
|
margin-bottom: pxVW(232);
|
||||||
}
|
}
|
||||||
@include breakpoint (xl) {
|
@include breakpoint (xl) {
|
||||||
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
grid-column-gap: 120px;
|
||||||
margin-bottom: 232px;
|
margin-bottom: 232px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user