|
1 |
| -<===> input.scss |
2 |
| -$root_default: initial; |
3 |
| -$root_implicit: initial; |
4 |
| -$root_explicit: initial !global; |
5 |
| -
|
6 |
| -@mixin set_variable_inner() { |
7 |
| - $root_implicit: inner; |
8 |
| - $root_explicit: inner !global; |
9 |
| - $root_default: inner !default; |
10 |
| - $local_implicit: inner; |
11 |
| - $local_explicit: inner !global; |
12 |
| - $local_default: inner !default; |
13 |
| -} |
14 |
| -
|
15 |
| -@mixin set_variable_outer() { |
16 |
| - $root_implicit: outer; |
17 |
| - $root_explicit: outer !global; |
18 |
| - $root_default: outer !default; |
19 |
| - $local_implicit: outer; |
20 |
| - $local_explicit: outer !global; |
21 |
| - $local_default: outer !default; |
22 |
| - @include set_variable_inner(); |
23 |
| -} |
24 |
| -
|
25 |
| -@include set_variable_outer(); |
26 |
| -
|
27 |
| -result { |
28 |
| - root_default: $root_default; |
29 |
| - root_implicit: $root_implicit; |
30 |
| - root_explicit: $root_explicit; |
31 |
| - @if variable-exists(local_default) { |
32 |
| - local_default: $local_default; |
33 |
| - } |
34 |
| - @if variable-exists(local_implicit) { |
35 |
| - local_implicit: $local_implicit; |
36 |
| - } |
37 |
| - @if variable-exists(local_explicit) { |
38 |
| - local_explicit: $local_explicit; |
39 |
| - } |
40 |
| -} |
41 |
| -
|
42 |
| -<===> output.css |
43 |
| -result { |
44 |
| - root_default: initial; |
45 |
| - root_implicit: initial; |
46 |
| - root_explicit: inner; |
47 |
| - local_explicit: inner; |
48 |
| -} |
49 |
| -
|
50 |
| -<===> warning |
51 |
| -DEPRECATION WARNING: As of Dart Sass 2.0.0, !global assignments won't be able to |
52 |
| -declare new variables. Since this assignment is at the root of the stylesheet, |
53 |
| -the !global flag is unnecessary and can safely be removed. |
54 |
| -
|
55 |
| - , |
56 |
| -3 | $root_explicit: initial !global; |
57 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
58 |
| - ' |
59 |
| - input.scss 3:1 root stylesheet |
60 |
| -
|
61 |
| -DEPRECATION WARNING: As of Dart Sass 2.0.0, !global assignments won't be able to |
62 |
| -declare new variables. Consider adding `$local_explicit: null` at the root of the |
63 |
| -stylesheet. |
64 |
| -
|
65 |
| - , |
66 |
| -19 | $local_explicit: outer !global; |
67 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
68 |
| - ' |
69 |
| - input.scss 19:3 set-variable-outer() |
70 |
| - input.scss 24:1 root stylesheet |
71 |
| -
|
72 |
| -<===> warning-libsass |
73 |
| -DEPRECATION WARNING: As of Dart Sass 2.0.0, !global assignments won't be able to |
74 |
| -declare new variables. Since this assignment is at the root of the stylesheet, |
75 |
| -the !global flag is unnecessary and can safely be removed. |
76 |
| -
|
77 |
| - , |
78 |
| -3 | $root_explicit: initial !global; |
79 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
80 |
| - ' |
81 |
| - input.scss 3:1 root stylesheet |
82 |
| -
|
83 |
| -DEPRECATION WARNING: As of Dart Sass 2.0.0, !global assignments won't be able to |
84 |
| -declare new variables. Consider adding `$local_explicit: null` at the root of the |
85 |
| -stylesheet. |
86 |
| -
|
87 |
| - , |
88 |
| -19 | $local_explicit: outer !global; |
89 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
90 |
| - ' |
91 |
| - input.scss 19:3 set_variable_outer() |
92 |
| - , |
93 |
| -24 | @include set_variable_outer(); |
94 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
95 |
| - ' |
96 |
| - input.scss 24:1 root stylesheet |
| 1 | +<===> input.scss |
| 2 | +$root_default: initial; |
| 3 | +$root_implicit: initial; |
| 4 | +$root_explicit: initial !global; |
| 5 | + |
| 6 | +@mixin set_variable_inner() { |
| 7 | + $root_implicit: inner; |
| 8 | + $root_explicit: inner !global; |
| 9 | + $root_default: inner !default; |
| 10 | + $local_implicit: inner; |
| 11 | + $local_explicit: inner !global; |
| 12 | + $local_default: inner !default; |
| 13 | +} |
| 14 | + |
| 15 | +@mixin set_variable_outer() { |
| 16 | + $root_implicit: outer; |
| 17 | + $root_explicit: outer !global; |
| 18 | + $root_default: outer !default; |
| 19 | + $local_implicit: outer; |
| 20 | + $local_explicit: outer !global; |
| 21 | + $local_default: outer !default; |
| 22 | + @include set_variable_inner(); |
| 23 | +} |
| 24 | + |
| 25 | +@include set_variable_outer(); |
| 26 | + |
| 27 | +result { |
| 28 | + root_default: $root_default; |
| 29 | + root_implicit: $root_implicit; |
| 30 | + root_explicit: $root_explicit; |
| 31 | + @if variable-exists(local_default) { |
| 32 | + local_default: $local_default; |
| 33 | + } |
| 34 | + @if variable-exists(local_implicit) { |
| 35 | + local_implicit: $local_implicit; |
| 36 | + } |
| 37 | + @if variable-exists(local_explicit) { |
| 38 | + local_explicit: $local_explicit; |
| 39 | + } |
| 40 | +} |
| 41 | + |
| 42 | +<===> output.css |
| 43 | +result { |
| 44 | + root_default: initial; |
| 45 | + root_implicit: initial; |
| 46 | + root_explicit: inner; |
| 47 | + local_explicit: inner; |
| 48 | +} |
| 49 | + |
| 50 | +<===> warning |
| 51 | +DEPRECATION WARNING: As of Dart Sass 2.0.0, !global assignments won't be able to |
| 52 | +declare new variables. Since this assignment is at the root of the stylesheet, |
| 53 | +the !global flag is unnecessary and can safely be removed. |
| 54 | + |
| 55 | + , |
| 56 | +3 | $root_explicit: initial !global; |
| 57 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 58 | + ' |
| 59 | + input.scss 3:1 root stylesheet |
| 60 | + |
| 61 | +DEPRECATION WARNING: As of Dart Sass 2.0.0, !global assignments won't be able to |
| 62 | +declare new variables. Consider adding `$local_explicit: null` at the root of the |
| 63 | +stylesheet. |
| 64 | + |
| 65 | + , |
| 66 | +19 | $local_explicit: outer !global; |
| 67 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 68 | + ' |
| 69 | + input.scss 19:3 set-variable-outer() |
| 70 | + input.scss 24:1 root stylesheet |
| 71 | + |
| 72 | +<===> warning-libsass |
| 73 | +DEPRECATION WARNING: As of Dart Sass 2.0.0, !global assignments won't be able to |
| 74 | +declare new variables. Since this assignment is at the root of the stylesheet, |
| 75 | +the !global flag is unnecessary and can safely be removed. |
| 76 | + |
| 77 | + , |
| 78 | +3 | $root_explicit: initial !global; |
| 79 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 80 | + ' |
| 81 | + input.scss 3:1 root stylesheet |
| 82 | + |
| 83 | +DEPRECATION WARNING: As of Dart Sass 2.0.0, !global assignments won't be able to |
| 84 | +declare new variables. Consider adding `$local_explicit: null` at the root of the |
| 85 | +stylesheet. |
| 86 | + |
| 87 | + , |
| 88 | +19 | $local_explicit: outer !global; |
| 89 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 90 | + ' |
| 91 | + input.scss 19:3 set_variable_outer() |
| 92 | + , |
| 93 | +24 | @include set_variable_outer(); |
| 94 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 95 | + ' |
| 96 | + input.scss 24:1 root stylesheet |
0 commit comments