scss-library/components/00_Global/_elementAmount.scss

9 lines
220 B
SCSS
Raw Normal View History

2021-01-02 20:28:21 +01:00
@mixin RV-Utils__ElementAmount($-up-to: 20) {
@for $i from 1 through $-up-to {
*:first-child:nth-last-child(#{$i}),
*:first-child:nth-last-child(#{$i})~* {
@content($i);
}
}
}