We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 553fb3c commit 176e07cCopy full SHA for 176e07c
source/src/_family.scss
@@ -98,12 +98,12 @@
98
/// @alias every
99
@mixin each($num, $from: 0) {
100
101
- @if $from != 0 {
102
- &:nth-child(#{$num}n + $from) {
+ @if $from == 0 {
+ &:nth-child(#{$num}n) {
103
@content;
104
}
105
} @else {
106
- &:nth-child(#{$num}n) {
+ &:nth-child(#{$num}n + #{$from}) {
107
108
109
@@ -113,8 +113,8 @@
113
/// @group with-arguments
114
/// @content [Write the style you want to apply to the children, and it will be added within the @content directive]
115
/// @param {number} $num - id of the child
116
-@mixin every($num) {
117
+@mixin every($num, $from: 1) {
+ @include each($num, $from) {
118
119
120
0 commit comments