Skip to content

Instantly share code, notes, and snippets.

@javierarques
Created July 13, 2015 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javierarques/c9ee0aef7137c947addd to your computer and use it in GitHub Desktop.
Save javierarques/c9ee0aef7137c947addd to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
// ----
// 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