Libsass: @mixin inside @media (compiles with Sass v3.4.21)

Created on 26 May 2016  路  1Comment  路  Source: sass/libsass

@media all {
  @mixin foo() {}
}

Ruby Sass


LibSass

Error: Mixins may not be defined within control directives or other mixins.
        on line 75 of test.scss
>>   @mixin foo() {}
   --^

Spec added https://github.com/sass/sass-spec/pull/911

Bug - Confirmed Bug - Regression Dev - PR Ready Dev - Test Written Sass 3.4 Compatibility

Most helpful comment

Thanks @glen-84 I've confirmed this is a bug with defining mixins within @media. The work around for now is moving the @mixin outside the @media.

>All comments

Thanks @glen-84 I've confirmed this is a bug with defining mixins within @media. The work around for now is moving the @mixin outside the @media.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

catamphetamine picture catamphetamine  路  7Comments

xzyfer picture xzyfer  路  11Comments

holmesmr picture holmesmr  路  3Comments

nex3 picture nex3  路  9Comments

xzyfer picture xzyfer  路  7Comments