Debian Codegraph @

sass-spec/spec/output_styles/compressed/scss/composed-args/input.scss

raw
1 @mixin A($width: 0, $height: 0, $opacity: 0) {
2 width: $width;
3 height: $height;
4 opacity: $opacity;
5 }
6
7 @mixin B($args...) {
8 @include A($args...);
9 }
10
11 @mixin C($args...) {
12 @include B($args...);
13 }
14
15 .testOneLevelPassthrough {
16 @include B(1px, 2px, 0.3);
17 }
18
19 .testOneLevelNoArgs {
20 @include B();
21 }
22
23 .testOneLevelSingleArg {
24 @include B(1px);
25 }
26
27 .testOneLevelNamedSingleArg {
28 @include B($opacity: 0.1);
29 }
30
31 .testOneLevelNamedArgs {
32 @include B($opacity: 0.3, $width: 1px, $height: 2px);
33 }
34
35 .testTwoLevelPassthrough {
36 @include C(1px, 2px, 0.3);
37 }
38
39 .testTwoLevelNoArgs {
40 @include C();
41 }
42
43 .testTwoLevelSingleArg {
44 @include C(1px);
45 }
46
47 .testTwoLevelNamedSingleArg {
48 @include C($opacity: 0.1);
49 }
50
51 .testTwoLevelNamedArgs {
52 @include C($opacity: 0.3, $width: 1px, $height: 2px);
53 }