Open antonpirker opened 11 years ago
The @content directive does not work when there is a @include statement called before.
See this sample test.scss file for illustration of the problem:
test.scss
@mixin disable-prefix-for-all() { .test { color: blue; } } @mixin keyframes($name) { @include disable-prefix-for-all(); @-webkit-keyframes #{$name} { @content; } } @include keyframes(mc-hide) { 0% { margin-right: 0px; } 100% { margin-right: -220px; } }
Somehow the line @include disable-prefix-for-all(); prevents the @content to be rendered.
@include disable-prefix-for-all();
@content
This is what i would expect (what sass is generating)
$ sass test.scss .test { color: blue; } @-webkit-keyframes mc-hide { 0% { margin-right: 0px; } 100% { margin-right: -220px; } }
And this is what pyScss renders: (the @content part is just gone)
$ pyscss --no-compress test.scss .test { color: blue; } @-webkit-keyframes mc-hide { }
When I remove the @include disable-prefix-for-all(); line, everything is rendered as expected.
I have the same problem trying to use _keyframes.scss in Bourbon library.
The @content directive does not work when there is a @include statement called before.
See this sample
test.scss
file for illustration of the problem:Somehow the line
@include disable-prefix-for-all();
prevents the@content
to be rendered.This is what i would expect (what sass is generating)
And this is what pyScss renders: (the
@content
part is just gone)When I remove the
@include disable-prefix-for-all();
line, everything is rendered as expected.