Fix bug in flex-group component.

This commit is contained in:
Fredrik Jonsson 2025-03-28 15:06:11 +01:00
commit cf49d9e875

View file

@ -8,33 +8,36 @@
& > * { & > * {
flex: 1; flex: 1;
flex-basis: 100%;
flex-grow: 0;
}
&--grow {
flex-grow: 1;
} }
@media (min-width: 666px) { @media (min-width: 666px) {
&--2 > * { &--2 > * {
@include flex(2, $gap); @include flex(2, $gap);
flex-grow: 0;
} }
&--3 > * { &--3 > * {
@include flex(3, $gap); @include flex(3, $gap);
flex-grow: 0;
} }
&--4 > * { &--4 > * {
@include flex(4, $gap); @include flex(4, $gap);
flex-grow: 0;
} }
&--5 > * { &--5 > * {
@include flex(5, $gap); @include flex(5, $gap);
flex-grow: 0;
} }
&--6 > * { &--6 > * {
@include flex(6, $gap); @include flex(6, $gap);
flex-grow: 0;
}
&--grow > * {
flex-grow: 1;
} }
} }
} }