pico/scss/layout/_grid.scss

27 lines
572 B
SCSS
Raw Normal View History

2022-10-22 13:11:51 +07:00
@use "../settings" as *;
2022-10-22 11:44:10 +07:00
2022-10-22 13:11:51 +07:00
@if ($enable-classes and $enable-grid) {
2021-10-24 12:33:20 +07:00
/**
2019-11-27 15:31:49 +07:00
* Grid
* Minimal grid system with auto-layout columns
*/
.grid {
2022-10-22 13:11:51 +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;
2022-10-22 13:11:51 +07:00
@if map-get($breakpoints, "lg") {
@media (min-width: map-get($breakpoints, "lg")) {
2019-11-27 15:31:49 +07:00
grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
}
}
& > * {
min-width: 0; // HACK for childs in overflow
}
}
2022-10-15 23:22:12 +07:00
}