Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

sass loops

$base-color: #036;

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




Source by sass-lang.com #
 
PREVIOUS NEXT
Tagged: #sass #loops
ADD COMMENT
Topic
Name
5+9 =