sass-spec/spec/output_styles/nested/libsass/env/input.scss
raw| 1 | $x: 0; |
| 2 | |
| 3 | div { |
| 4 | /* 0 */ |
| 5 | font: $x; |
| 6 | $x: 1 !global; |
| 7 | /* 1 */ |
| 8 | font: $x; |
| 9 | span { |
| 10 | $x: 2 !global; |
| 11 | /* 2 */ |
| 12 | font: $x; |
| 13 | } |
| 14 | /* 2 */ |
| 15 | font: $x; |
| 16 | p { |
| 17 | /* 2 */ |
| 18 | font: $x; |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | div { |
| 23 | @foo { |
| 24 | $y: 2; |
| 25 | font: $y; |
| 26 | } |
| 27 | @bar { |
| 28 | $y: 3; |
| 29 | font: $y; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | @mixin foo() { |
| 34 | content: "foo"; |
| 35 | @content; |
| 36 | } |
| 37 | |
| 38 | div { |
| 39 | $z: "whatever"; |
| 40 | @include foo() { |
| 41 | $z: "block for foo!"; |
| 42 | font: fudge; |
| 43 | } |
| 44 | width: $z; |
| 45 | } |