sass loops

Solutions on MaxInterview for sass loops by the best coders in the world

showing results for - "sass loops"
Federico
12 Nov 2018
1@for $i from 1 through 6 {
2    .grid-#{$i} {
3        width: 100px*$i;
4    }
5}
Leo
01 Jan 2021
1@for $i from 1 through 3 {
2  ul:nth-child(3n + #{$i}) {
3    background-color: lighten($base-color, $i * 5%);
4  }
5}
David
17 Jan 2016
1@for $i from 1 through 3 {
2  ul:nth-child(3n + #{$i}) {
3   color: blue;
4  }
5}
Sofia
03 Jan 2018
1$base-color: #036;
2
3@for $i from 1 through 3 {
4  ul:nth-child(3n + #{$i}) {
5    background-color: lighten($base-color, $i * 5%);
6  }
7}
8
9
10
11
12
Melina
09 Jan 2021
1@each $theme-name, $theme-color in $colors-theme-bo {
2  .theme-#{$theme-name} {
3    color: $theme-color;
4  }
5}
queries leading to this page
sass looploop on sassscss loop elementscss forsass 40eachsass loop in functionfor loop in scsssass eachloops scssloop in scsssasss eachfor loops in sassforeach sassscss can i put a loop in a loopeach syntac in scssfor loop sassfor sassfor i sassscss loop over stringmake loop with sass loop scss 40for in sasssass for each loophow to use loop in sassscss loop variablessass 40forfor loop in sassusing sass loopforeach scsssass for loop css var 28 29sass while loopscss loop 2 numberssass for in loopwhile loop sasseach scssscss for loopfor loops scsssass loop forshould i use loops in sasssass create for loop in valuefor loop scsssass each loop in mixinloops in sasssass foreach loopsass iteratesass for loop csssass for loop cssfor loop and eachc scss 40each sasssass for loopwriting loop in sassscss loopscss loop 1 to 10 classwhat do sass for loops compile toloop scsssass loops 40for sasseach in scsssass for loop stepsass function for loopusing loops to geneate color structure sasssass for loop syntaxfor loops sasssass for loop in cssscss 2b eacheach sasssasss for loopscss loopfor each sassscss repeat loaopeingsass echfor scsssass for loop examplescsss for loop 5cloops in scssscss foreachforeach loop in sasssass iterate 10sass for loopssas 40forloop cssfor loops in scsssass for from throughsass for exampleis there a for loop in sass 3fscss foreach loopuse 40for to create a sass loopcss sass loopdoes scss have loopssass while loop examplefor each scss foor loop scssloop with scsssass forloop sassscss mixin for loopscss 40forfor cycle scsshow to use for loop in scssscss eachloops on sassfor loop in scss with stepscss for loop tutorialfor loops in sassass for loop from htmlscss for loopsconditions sasssass css for loopsass bouclesass 23forfor in sassscss cyclesass loops use casesneed loop in css sassdoes sass have for loopdoes css sass allow for loopingsass for loop inside for loopscss for eachdoes sass has loopsscss loopssass loops variablesloop in sasssass foreachsass for loop variablesass loops