pico/scss/layout/_grid.scss

26 lines
516 B
SCSS
Raw Normal View History

2019-11-27 15:31:49 +07:00
@if $enable-classes {
/**
* Grid
* Minimal grid system with auto-layout columns
*/
.grid {
2021-07-02 16:54:41 +07:00
grid-column-gap: var(--grid-spacing-horizontal);
grid-row-gap: var(--grid-spacing-vertical);
display: grid;
grid-template-columns: 1fr;
2019-11-27 15:31:49 +07:00
margin: 0;
@if map-get($breakpoints, "lg") {
@media (min-width: map-get($breakpoints, "lg")) {
grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
}
}
& > * {
min-width: 0; // HACK for childs in overflow
}
}
}