Skip to content

Instantly share code, notes, and snippets.

@diegocuruma
Created August 29, 2014 14:33
Show Gist options
  • Save diegocuruma/86e5787d5e33dd5a1f64 to your computer and use it in GitHub Desktop.
Save diegocuruma/86e5787d5e33dd5a1f64 to your computer and use it in GitHub Desktop.
Examplo de each com zip simples em sass
$ids: 'Blue', 'Green', 'Purple';
$cores: red, yellow, gray;
$cores2: orange, white, black;
$tema: zip($ids,$cores, $cores2);
@each $elemento in $tema {
##{nth($elemento, 1)} {
.bloc-2{
background:#{nth($elemento, 2)};
}
.bloc-3{
background:#{nth($elemento, 3)};
}
.bloc-4{
background:#{nth($elemento, 2)};
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment