diff --git a/components/00_Global/_elementAmount.scss b/components/00_Global/_elementAmount.scss new file mode 100644 index 0000000..962d614 --- /dev/null +++ b/components/00_Global/_elementAmount.scss @@ -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); + } + } +} \ No newline at end of file