| 1 |
@function exists($name) { |
| 2 |
@return mixin-exists($name); |
| 3 |
} |
| 4 |
|
| 5 |
@function f() { |
| 6 |
$foo: hi; |
| 7 |
@return g(); |
| 8 |
} |
| 9 |
|
| 10 |
@function g() { |
| 11 |
@return mixin-exists(foo); |
| 12 |
} |
| 13 |
|
| 14 |
@function h() { |
| 15 |
@return mixin-exists(lighten); |
| 16 |
} |
| 17 |
|
| 18 |
@mixin red-text { color: red; } |
| 19 |
@mixin blue-text { color: red; } |
| 20 |
@mixin green-text { color: red; } |
| 21 |
|
| 22 |
div { |
| 23 |
foo: mixin-exists(red-text); |
| 24 |
foo: mixin-exists("red-text"); |
| 25 |
foo: mixin-exists(blue-text); |
| 26 |
foo: mixin-exists("blue-text"); |
| 27 |
foo: mixin-exists(green-text); |
| 28 |
foo: mixin-exists("green-text"); |
| 29 |
foo: mixin-exists(nope); |
| 30 |
foo: mixin-exists("nope"); |
| 31 |
foo: g(); |
| 32 |
foo: f(); |
| 33 |
foo: h(); |
| 34 |
|
| 35 |
|
| 36 |
span { |
| 37 |
foo: mixin-exists(red-text); |
| 38 |
foo: mixin-exists("red-text"); |
| 39 |
foo: mixin-exists(blue-text); |
| 40 |
foo: mixin-exists("blue-text"); |
| 41 |
foo: mixin-exists(green-text); |
| 42 |
foo: mixin-exists("green-text"); |
| 43 |
foo: mixin-exists(nope); |
| 44 |
foo: mixin-exists("nope"); |
| 45 |
foo: g(); |
| 46 |
foo: f(); |
| 47 |
foo: h(); |
| 48 |
p { |
| 49 |
foo: mixin-exists(red-text); |
| 50 |
foo: mixin-exists("red-text"); |
| 51 |
foo: mixin-exists(blue-text); |
| 52 |
foo: mixin-exists("blue-text"); |
| 53 |
foo: mixin-exists(green-text); |
| 54 |
foo: mixin-exists("green-text"); |
| 55 |
foo: mixin-exists(nope); |
| 56 |
foo: mixin-exists("nope"); |
| 57 |
foo: g(); |
| 58 |
foo: f(); |
| 59 |
foo: h(); |
| 60 |
} |
| 61 |
} |
| 62 |
|
| 63 |
} |