lib: spacing use not selector

This commit is contained in:
2 * r + 2 * t 2025-01-14 12:42:56 +11:00
parent a5e583e2bc
commit bcbb0f0207

View file

@ -22,12 +22,8 @@ $scale: 0.068rem;
@mixin spacing($val: 5, $vertical: false) {
$dir: if($vertical, bottom, right);
& > * {
& > *:not(:last-child) {
margin-#{$dir}: s($val);
&:last-child {
margin-#{$dir}: 0;
}
}
}