mattliu
0
Q:

sass each index

$i: 0;
@each $food in $top-foods {
  $i: $i + 1;
  &:nth-child(#{$i}){
    display: block;
  }
}
0

Tags

New to Communities?

Join the community