Closed asimpson closed 7 years ago
Sometimes "brand" mixins will be nested, e.g.
$current-brand: foo; @mixin brand($mixin-brand) { @if $current-brand == $mixin-brand { @content; } } @mixin brand-text () { @include brand(foo) { font-family: Arial; } } body { margin: 0; @include brand(foo) { @include brand-text(); } }
The goal here is to have the body when in brand foo have the brand-text output, e.g.
body
foo
brand-text
body { margin: 0; }
and
body { font-family: Arial }
merging after discussion with @robtarr
Sometimes "brand" mixins will be nested, e.g.
The goal here is to have the
body
when in brandfoo
have thebrand-text
output, e.g.and