Answers for "sass each index"

CSS
0

sass each index

$i: 0;
@each $food in $top-foods {
  $i: $i + 1;
  &:nth-child(#{$i}){
    display: block;
  }
}
Posted by: Guest on August-28-2020

Browse Popular Code Answers by Language