Files
housesof/src/style/organisms/_locations.scss
Félix Péault 11c95ce4f2
All checks were successful
continuous-integration/drone/push Build is passing
Locations: Make it temp 3 not-too-large columns
2020-04-21 13:09:56 +02:00

70 lines
1.6 KiB
SCSS

.browse {
width: 100%;
overflow: hidden;
@include breakpoint (sm) {
margin-top: 120px;
margin-bottom: 52px;
}
// Description
&__description {
margin-left: auto;
margin-right: auto;
margin-bottom: 32px;
@include breakpoint (sm) {
margin-bottom: 40px;
}
}
// Continents
&__continents {
display: flex;
flex-flow: row wrap;
justify-content: center;
margin-bottom: 8px;
li {
display: block;
margin: 0 4px;
@include breakpoint (sm) {
margin: 0 8px;
}
}
}
// Locations
&__locations {
min-height: 120px;
margin-top: 72px;
@include breakpoint (600px) {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
@include breakpoint (sm) {
grid-template-columns: repeat(3, 1fr);
grid-column-gap: pxVW(96);
grid-row-gap: pxVW(96);
min-height: 200px;
margin-top: 112px;
margin-bottom: pxVW(120);
}
@include breakpoint (xl) {
grid-column-gap: 96px;
grid-row-gap: 96px;
max-width: 1024px;
margin-left: auto;
margin-right: auto;
margin-bottom: 184px;
// To apply when having 4 locations:
// grid-template-columns: repeat(4, 1fr);
// grid-column-gap: 120px;
// grid-row-gap: 120px;
}
}
}