Converting from sass to nested vanilla css with layers (#147)

This commit is contained in:
Fredrik Jonsson 2026-03-10 14:14:55 +01:00 • committed by GitHub
commit 57244c3f33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,43 +0,0 @@
.flex-group,
%flex-group {
--flex-gap: calc(var(--base-line-height) * 1rem);
display: flex;
gap: var(--flex-gap);
flex-wrap: wrap;
& > * {
flex: 1;
}
@media (min-width: 666px) {
&--2 > * {
flex-basis: calc(100% / 2 - var(--flex-gap));
flex-grow: 0;
}
&--3 > * {
flex-basis: calc(100% / 3 - var(--flex-gap));
flex-grow: 0;
}
&--4 > * {
flex-basis: calc(100% / 4 - var(--flex-gap));
flex-grow: 0;
}
&--5 > * {
flex-basis: calc(100% / 5 - var(--flex-gap));
flex-grow: 0;
}
&--6 > * {
flex-basis: calc(100% / 6 - var(--flex-gap));
flex-grow: 0;
}
&--grow > * {
flex-grow: 1;
}
}
}