mirror of
https://github.com/picocss/pico.git
synced 2025-02-24 00:39:20 -05:00
31 lines
612 B
SCSS
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;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|