27 lines
626 B
SCSS
27 lines
626 B
SCSS
|
@use "sass:map";
|
||
|
@use "../settings" as *;
|
||
|
|
||
|
@if map.get($modules, "layout/grid") and $enable-classes {
|
||
|
/**
|
||
|
* Grid
|
||
|
* Minimal grid system with auto-layout columns
|
||
|
*/
|
||
|
|
||
|
.grid {
|
||
|
grid-column-gap: var(#{$css-var-prefix}grid-column-gap);
|
||
|
grid-row-gap: var(#{$css-var-prefix}grid-row-gap);
|
||
|
display: grid;
|
||
|
grid-template-columns: 1fr;
|
||
|
|
||
|
@if map.get($breakpoints, "md") {
|
||
|
@media (min-width: map.get(map.get($breakpoints, "md"), "breakpoint")) {
|
||
|
grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
& > * {
|
||
|
min-width: 0; // HACK for childs in overflow
|
||
|
}
|
||
|
}
|
||
|
}
|