Skip to content

Instantly share code, notes, and snippets.

@cole007
Created March 7, 2015 14:55
Show Gist options
  • Save cole007/70e165db3dffde0aa0f4 to your computer and use it in GitHub Desktop.
Save cole007/70e165db3dffde0aa0f4 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
$core: #F7E900;
$accent: #FF5F09;
$contrast: #A0005E;
$deep: #41004B;
$brand: $core, $accent, $contrast, $deep;
@each $item in $brand {
li.brand-#{$item} {
background: $item }}
// is there any way in the above to define my selector as li.brand-core rather than li.brand-#F7E900?
li.brand-#F7E900 {
background: #F7E900;
}
li.brand-#FF5F09 {
background: #FF5F09;
}
li.brand-#A0005E {
background: #A0005E;
}
li.brand-#41004B {
background: #41004B;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment