Created
March 17, 2015 16:00
-
-
Save micahgodbolt/03413963bed00f00a92b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
abc |
This file contains hidden or 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.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
@mixin text($extend, $themes...) { | |
@extend %#{$extend}; | |
$class: unique-id(); | |
@at-root { | |
%#{$class} { | |
color: color(white); | |
} | |
} | |
@if length($themes) == 0 { | |
$themes: 'dark', 'black'; | |
} | |
@each $theme in $themes { | |
[data-rh-theme="#{$theme}"] & { | |
@extend %#{$class}; | |
} | |
} | |
} | |
%header { | |
color: blue; | |
} | |
div { | |
@include text(header); | |
} |
This file contains hidden or 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
div { | |
color: blue; | |
} | |
[data-rh-theme="dark"] div, [data-rh-theme="black"] div { | |
color: color(white); | |
} |
This file contains hidden or 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
abc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment