| 1 |
@mixin foo($x, $y, $zs...) { |
| 2 |
grarh: type-of(false); |
| 3 |
f: $zs; |
| 4 |
fa: $x, $y, $zs; |
| 5 |
fv: $zs; |
| 6 |
ft: type-of($zs); |
| 7 |
fj: join(1 2 3, $zs); |
| 8 |
fjt: type-of(join(1 2 3, $zs)); |
| 9 |
fkt: type-of(join($zs, 1 2 3)); |
| 10 |
hoopla: length(a b c d e); |
| 11 |
boopla: type-of(123+234); |
| 12 |
koopla: type-of(length(a b c d)); |
| 13 |
} |
| 14 |
|
| 15 |
@mixin bar($x, $y, $z) { |
| 16 |
ba: $x, $y, $z; |
| 17 |
bv: $z; |
| 18 |
bt: type-of($z); |
| 19 |
bj: join(1 2 3, $z); |
| 20 |
bjt: type-of(join(1 2 3, $z)); |
| 21 |
} |
| 22 |
|
| 23 |
$stuff: hey hoo ha; |
| 24 |
|
| 25 |
@mixin mudge($x, $y, $zs...) { |
| 26 |
x: $x; |
| 27 |
y: $y; |
| 28 |
z: $zs; |
| 29 |
} |
| 30 |
|
| 31 |
div { |
| 32 |
@include foo(a, b, c d e f); |
| 33 |
@include bar(a, b, c d e f); |
| 34 |
@include foo(a, b, c d e...); |
| 35 |
@include foo(a, c d e...); |
| 36 |
@include foo(a, $stuff...); |
| 37 |
new: type-of("hello"); |
| 38 |
} |
| 39 |
|
| 40 |
@mixin bad($x, $y, $z) { |
| 41 |
first: $x; |
| 42 |
second: $y; |
| 43 |
rest: $z; |
| 44 |
} |
| 45 |
|
| 46 |
@mixin foo($x, $y, $z) { |
| 47 |
a: type-of(join($x, $y)); |
| 48 |
b: type-of($z); |
| 49 |
c: type-of(length($x)); |
| 50 |
} |
| 51 |
|
| 52 |
div { |
| 53 |
@include foo(a b c, d e, false); |
| 54 |
} |