sass-spec/spec/mixin/environment_locality/input.scss
raw| 1 | // The "$var" variable should only be set locally, despite being in the same |
| 2 | // mixin each time. |
| 3 | @mixin with-local-variable($recurse) { |
| 4 | $var: before; |
| 5 | |
| 6 | @if ($recurse) { |
| 7 | @include with-local-variable($recurse: false); |
| 8 | } |
| 9 | |
| 10 | var: $var; |
| 11 | $var: after; |
| 12 | } |
| 13 | |
| 14 | .environment-locality { |
| 15 | @include with-local-variable($recurse: true); |
| 16 | } |