Answers for "looping scss variable"

CSS
11

loop scss

@for $i from 1 through 6 {
    .grid-#{$i} {
        width: 100px*$i;
    }
}
Posted by: Guest on March-23-2020
1

loop scss

@for $i from 1 through 3 {
  ul:nth-child(3n + #{$i}) {
   color: blue;
  }
}
Posted by: Guest on May-22-2021

Browse Popular Code Answers by Language