Answers for "scss for loop nth child"

CSS
8

scss for loop nth child

$show-numbers: true;

@if $show-numbers {
  @for $i from 1 through 5 {
    &:nth-child(#{$i}) {
      &:before {
        content: '#{$i}';
      }
    }
  }
}
Posted by: Guest on May-05-2022

Browse Popular Code Answers by Language