pico/scss/layout/_grid.scss
2019-11-27 15:31:49 +07:00

31 lines
612 B
SCSS

@if $enable-classes {
/**
* Grid
* Minimal grid system with auto-layout columns
*/
.grid {
margin: 0;
@if map-get($breakpoints, "lg") {
@media (min-width: map-get($breakpoints, "lg")) {
grid-column-gap: $spacing-gutter;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
}
}
& > * {
min-width: 0; // HACK for childs in overflow
margin-bottom: $spacing-gutter;
@if map-get($breakpoints, "md") {
@media (min-width: map-get($breakpoints, "lg")) {
margin-bottom: 0;
}
}
}
}
}