@mixin nth-child($v) {
    &:nth-child(#{$v}) {
        @content;
    }
}

@mixin nth-index($v) {
    &:nth-child(#{$v}) {
        @content;
    }
}

@mixin nth-not-index($v) {
    &:not(:nth-child(#{$v})) {
        @content;
    }
}

@mixin nth-not-first() {
    &:not(:first-child) {
        @content;
    }
}

@mixin nth-not-last() {
    &:not(:last-child) {
        @content;
    }
}

@mixin nth-only-index($v) {
    &:nth-child(-n + #{$v}) {
        @content;
    }
}

@mixin nth-grid($row, $column) {
    &:nth-child(#{$row}n + #{$column}) {
        @content;
    }
}

@mixin nth-index-last($v) {
    &:nth-last-child(#{$v}) {
        @content;
    }
}

@mixin nth-range($start, $end) {
    &:nth-child(n+#{$start}) {
        &:not(:nth-child(n+#{$end})) {
            @content;
        }
    }
}

@mixin nth-of-type($v) {
    &:nth-of-type(#{$v}) {
        @content;
    }
}

@mixin nth-of-type-index($v) {
    &:nth-of-type(#{$v}) {
        @content;
    }
}

@mixin nth-of-type-not-index($v) {
    &:not(:nth-of-type(#{$v})) {
        @content;
    }
}

@mixin nth-of-type-not-first() {
    &:not(:first-of-type) {
        @content;
    }
}

@mixin nth-of-type-not-last() {
    &:not(:last-of-type) {
        @content;
    }
}

@mixin nth-of-type-only-index($v) {
    &:nth-of-type(-n + #{$v}) {
        @content;
    }
}

@mixin nth-of-type-grid($row, $column) {
    &:nth-of-type(#{$row}n + #{$column}) {
        @content;
    }
}

@mixin nth-of-type-index-last($v) {
    &:nth-last-of-type(#{$v}) {
        @content;
    }
}

@mixin nth-of-type-range($start, $end) {
    &:nth-of-type(n+#{$start}) {
        &:not(:nth-of-type(n+#{$end})) {
            @content;
        }
    }
}