Skip to content

Instantly share code, notes, and snippets.

@nukos
Last active November 12, 2016 08:46
Embed
What would you like to do?
$mix-data-state-prefix: 'is' !default;
$mix-data-state-attr: 'data' !default;
@mixin data-state($name, $state: true, $attr: $mix-data-state-attr, $prefix: $mix-data-state-prefix) {
&[#{$attr}-#{$prefix}-#{$name}=#{$state}] {
@content;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment