Skip to content

Instantly share code, notes, and snippets.

@raulghm
Created October 9, 2015 15:43
Show Gist options
  • Save raulghm/69bf946b6f4fc471c221 to your computer and use it in GitHub Desktop.
Save raulghm/69bf946b6f4fc471c221 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$themes: (
red: (
background: red,
color: white
),
blue: (
background: blue,
color: green
),
black: (
background: black,
color: yellow
)
) !default;
@each $theme, $styles in $themes {
.theme--#{$theme} .sidebar {
background: map-get(map-get($themes, $theme), background);
color: map-get(map-get($themes, $theme), color);
}
}
.theme--red .sidebar {
background: red;
color: white;
}
.theme--blue .sidebar {
background: blue;
color: green;
}
.theme--black .sidebar {
background: black;
color: yellow;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment