This commit is contained in:
Sven Ullmann 2025-07-20 00:59:06 +02:00
parent 58842c665e
commit c398282688
3 changed files with 6 additions and 39 deletions

View file

@ -3,7 +3,7 @@
/*
@include layout(column, [
(0 "full" ((0 0) (0 0) (1 1) (0 0)))
("m" "full" ((0 0) (0 0) (1 1) (0 0)))
]);
@include layout($flex-direction, [
@ -26,9 +26,13 @@
@include breakpoint('screen', list.nth($bp, 1), list.nth($bp, 2)) {
$columns: list.nth($bp, 3);
@for $i from 1 through list.length($columns) {
$minmax: list.nth($columns, $i);
$min: list.nth($minmax, 1);
$max: list.nth($minmax, 2);
$max: $min;
@if list.length($minmax) == 2 {
$max: list.nth($minmax, 2);
}
& > *:nth-child(#{$i}) {
@if math.unit($min) == "" and math.unit($max) == "" {
flex: $max $min min-content;