lib: spacing use not selector
This commit is contained in:
parent
a5e583e2bc
commit
bcbb0f0207
1 changed files with 1 additions and 5 deletions
|
|
@ -22,12 +22,8 @@ $scale: 0.068rem;
|
||||||
@mixin spacing($val: 5, $vertical: false) {
|
@mixin spacing($val: 5, $vertical: false) {
|
||||||
$dir: if($vertical, bottom, right);
|
$dir: if($vertical, bottom, right);
|
||||||
|
|
||||||
& > * {
|
& > *:not(:last-child) {
|
||||||
margin-#{$dir}: s($val);
|
margin-#{$dir}: s($val);
|
||||||
|
|
||||||
&:last-child {
|
|
||||||
margin-#{$dir}: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue