sass-spec/spec/output_styles/compressed/libsass-closed-issues/issue_1584/input.scss
raw| 1 | @mixin foo($out: false) { |
| 2 | @if $out { |
| 3 | @at-root { @content; } |
| 4 | } |
| 5 | } |
| 6 | |
| 7 | @mixin bar() { |
| 8 | @at-root { @content; } |
| 9 | } |
| 10 | |
| 11 | @mixin baz($string) { |
| 12 | @at-root .#{$string} { @content; } |
| 13 | } |
| 14 | |
| 15 | .test { |
| 16 | @include foo(true) { |
| 17 | .nest1 { |
| 18 | color: red; |
| 19 | } |
| 20 | } |
| 21 | @include bar() { |
| 22 | .nest2 { |
| 23 | color: green; |
| 24 | } |
| 25 | } |
| 26 | @include baz('nest3') { |
| 27 | color: blue; |
| 28 | } |
| 29 | @at-root { |
| 30 | .nest4 { |
| 31 | color: yellow; |
| 32 | } |
| 33 | } |
| 34 | } |