“Loop SCSS” Kode Jawaban

Loop SCSS

@for $i from 1 through 6 {
    .grid-#{$i} {
        width: 100px*$i;
    }
}
Lively Leopard

Loops SCSS

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

loops sass

$base-color: #036;

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




Difficult Dormouse

Loop SCSS

@for $i from 1 through 3 {
  ul:nth-child(3n + #{$i}) {
   color: blue;
  }
}
Code Cat

Loop SCSS

@each $theme-name, $theme-color in $colors-theme-bo {
  .theme-#{$theme-name} {
    color: $theme-color;
  }
}
Lively Leopard

Jawaban yang mirip dengan “Loop SCSS”

Pertanyaan yang mirip dengan “Loop SCSS”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya