Different rules at different counts

This commit is contained in:
reverend 2021-01-02 20:28:21 +01:00
parent 2c2cbf2d79
commit 52af65da92
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
@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);
}
}
}