| 1 |
test { |
| 2 |
test-01: #{if(&, 'true', 'false')}; |
| 3 |
test-01: #{if(0, 'true', 'false')}; |
| 4 |
test-01: #{if('', 'true', 'false')}; |
| 5 |
test-01: #{if('0', 'true', 'false')}; |
| 6 |
test-01: #{if(null, 'true', 'false')}; |
| 7 |
test-01: #{if(false, 'true', 'false')}; |
| 8 |
} |
| 9 |
|
| 10 |
#{if(&, 'has-parent', 'parentless')} { |
| 11 |
test: parent; |
| 12 |
} |
| 13 |
|
| 14 |
@mixin with-js() { |
| 15 |
.js:root #{if(&, '&', '')} { |
| 16 |
@content; |
| 17 |
} |
| 18 |
} |
| 19 |
|
| 20 |
@include with-js() { |
| 21 |
.bou { |
| 22 |
content: 'bar'; |
| 23 |
} |
| 24 |
} |
| 25 |
|
| 26 |
.bou { |
| 27 |
@include with-js() { |
| 28 |
.bar { |
| 29 |
content: 'baz'; |
| 30 |
} |
| 31 |
} |
| 32 |
} |
| 33 |
|