Skip to content

Instantly share code, notes, and snippets.

@esseb
Created April 22, 2015 10:36
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 esseb/15ce07f9677de17d4e48 to your computer and use it in GitHub Desktop.
Save esseb/15ce07f9677de17d4e48 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
// _chart-bar.scss
@mixin chart-bar($color, $secondary) {
.chart-bar {
color:#{$color};
}
}
// _chart-line.scss
@mixin chart-line($color, $secondary) {
.chart-line {
color: #{$secondary};
}
}
// _theme.scss
@mixin theme($color, $secondary) {
@include chart-bar($color, $secondary);
@include chart-line($color, $secondary);
}
// _dnb.scss
.dnb {
@include theme('red', 'blue');
}
// _privat-megleren.scss
.privat-megleren {
@include theme('yello', 'black');
}
.dnb .chart-bar {
color: red;
}
.dnb .chart-line {
color: blue;
}
.privat-megleren .chart-bar {
color: yello;
}
.privat-megleren .chart-line {
color: black;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment