Created
April 22, 2015 10:36
-
-
Save esseb/15ce07f9677de17d4e48 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// 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'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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