Answers for "scss loop"

CSS
10

loop scss

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

loops scss

@for $i from 1 through 3 {
  ul:nth-child(3n + #{$i}) {
    background-color: lighten($base-color, $i * 5%);
  }
}
Posted by: Guest on July-10-2020
1

loop scss

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

sass loops

$base-color: #036;

@for $i from 1 through 3 {
  ul:nth-child(3n + #{$i}) {
    background-color: lighten($base-color, $i * 5%);
  }
}
Posted by: Guest on February-19-2020
0

scss loop

@each $theme-name, $theme-color in $colors-theme-bo {
  .theme-#{$theme-name} {
    color: $theme-color;
  }
}
Posted by: Guest on July-17-2020

Browse Popular Code Answers by Language