Skip to content

Instantly share code, notes, and snippets.

@janson
Created October 15, 2013 17:41
Show Gist options
  • Save janson/6995523 to your computer and use it in GitHub Desktop.
Save janson/6995523 to your computer and use it in GitHub Desktop.
// $*-color are sass variables defined elsewhere
$brands: (bandcamp $bandcamp-color) (twitter $twitter-color) (facebook $facebook-color) (foobar $foobar-color)
@each $brand in $brands
$klass: nth($brand, 1)
$kolor: nth($brand, 2)
//@debug "brand class is #{$klass} and color is #{$kolor}"
//
// Foreground Color
//
body.#{$klass}
h1,
h2,
h4.titles,
.secondary nav ol a.current,
.secondary nav ol a:hover
color: $kolor
//
// Background Color
//
body.#{$klass}
header[role=banner] #browse,
header[role=banner] .division-icon,
header[role=banner] #ribbon.book-esources,
background-color: $kolor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment