Skip to content

Instantly share code, notes, and snippets.

@arthursoares
Created May 12, 2017 12:22
Show Gist options
  • Save arthursoares/7c6c9808f13c88d5c43780dcfe4e862b to your computer and use it in GitHub Desktop.
Save arthursoares/7c6c9808f13c88d5c43780dcfe4e862b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.0.2)
// ----
$colourList: (
id-1: (
color1: #bbb,
color2: #ccc
),
id-2: (
color1: #ddd,
color2: #eee
)
);
@each $item, $color in $colourList {
[data-section-id="#{$item}"] {
border-top: map-get(map-get($colourList, $item), color1);
border-bottom: map-get(map-get($colourList, $item), color2);
}
}
[data-section-id="id-1"] {
border-top: #bbb;
border-bottom: #ccc; }
[data-section-id="id-2"] {
border-top: #ddd;
border-bottom: #eee; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment