| 1 |
$root_default: initial; |
| 2 |
$root_implicit: initial; |
| 3 |
$root_explicit: initial !global; |
| 4 |
|
| 5 |
@mixin set_variable_inner() { |
| 6 |
$root_implicit: inner; |
| 7 |
$root_explicit: inner !global; |
| 8 |
$root_default: inner !default; |
| 9 |
$local_implicit: inner; |
| 10 |
$local_explicit: inner !global; |
| 11 |
$local_default: inner !default; |
| 12 |
} |
| 13 |
|
| 14 |
@mixin set_variable_outer() { |
| 15 |
$root_implicit: outer; |
| 16 |
$root_explicit: outer !global; |
| 17 |
$root_default: outer !default; |
| 18 |
$local_implicit: outer; |
| 19 |
$local_explicit: outer !global; |
| 20 |
$local_default: outer !default; |
| 21 |
@include set_variable_inner(); |
| 22 |
} |
| 23 |
|
| 24 |
@include set_variable_outer(); |
| 25 |
|
| 26 |
result { |
| 27 |
root_default: $root_default; |
| 28 |
root_implicit: $root_implicit; |
| 29 |
root_explicit: $root_explicit; |
| 30 |
@if variable-exists(local_default) { |
| 31 |
local_default: $local_default; |
| 32 |
} |
| 33 |
@if variable-exists(local_implicit) { |
| 34 |
local_implicit: $local_implicit; |
| 35 |
} |
| 36 |
@if variable-exists(local_explicit) { |
| 37 |
local_explicit: $local_explicit; |
| 38 |
} |
| 39 |
} |