Skip to content

Commit

Permalink
Curso de SASS🌈 de 0 a 100 [08.- Ciclos]
Browse files Browse the repository at this point in the history
  • Loading branch information
programadornovato committed Aug 6, 2019
1 parent 7d545f5 commit af28674
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 17 deletions.
12 changes: 6 additions & 6 deletions rutaCss/estilo.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rutaCss/estilo.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 24 additions & 10 deletions rutaSass/_mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,28 @@
width: $ancho;
height: $alto;
}
$color:#333;
$colores:(#333,#666,#888,#aaa);
#rec1{
@include forma(nth($colores,4),300px,50px);
$colores:(#333,#666,#888);

@for $i from 1 through length($colores) {
@debug "Val de i="+$i;
#rec#{$i}{
@include forma(nth($colores,$i),300px,50px);
}
}
#rec2{
@include forma($color*2,400px,20px);
}
#rec3{
@include forma($color*4,100px,50px);
}

// @each $color in $colores {
// $i:index($colores , $color );
// #rec#{$i}{
// @include forma($color,300px,50px);
// }
// }

// #rec1{
// @include forma(nth($colores,4),300px,50px);
// }
// #rec2{
// @include forma($color*2,400px,20px);
// }
// #rec3{
// @include forma($color*4,100px,50px);
// }

0 comments on commit af28674

Please sign in to comment.