Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For example:
$flex-legacy: (); @mixin my-flex($param) { @if $flex-support == false { $flex-legacy: map_merge($flex-legacy, (nth(&, 1): $param)); // need global } @else { @include flexbox($params, $version: 3); // mixin from compass } } #container { @include my-flex((display: flex)); } @debug $flex-legacy; // now empty but I need (#container: (display: flex))
The text was updated successfully, but these errors were encountered:
Use the !global flag:
!global
$flex-legacy: (); @mixin my-flex($param) { @if $flex-support == false { $flex-legacy: map_merge($flex-legacy, (nth(&, 1): $param)) !global; // need global } @else { @include flexbox($params, $version: 3); // mixin from compass } }
Indeed, thanks! It's my fault :)
For example:
The text was updated successfully, but these errors were encountered: