| 1 |
@mixin foo($x, $y) { |
| 2 |
hugabug: $y $x; |
| 3 |
} |
| 4 |
|
| 5 |
@mixin bar($a, $b: flug) { |
| 6 |
flugablug: $a $b glug; |
| 7 |
} |
| 8 |
|
| 9 |
@mixin hux() { |
| 10 |
no: parameters here; |
| 11 |
div, span { |
| 12 |
some: nested stuff; |
| 13 |
foo, bar { |
| 14 |
more: stuff so forth; |
| 15 |
blah: blah; |
| 16 |
} |
| 17 |
} |
| 18 |
/* end of hux */ |
| 19 |
} |
| 20 |
|
| 21 |
a { |
| 22 |
hey: ho; |
| 23 |
@include foo(second, third); |
| 24 |
@include foo($y: kwd-y, $x: kwd-x); |
| 25 |
goo: boo hoo; |
| 26 |
@include hux; |
| 27 |
@include bar(pug); |
| 28 |
@include bar(pug, mug); |
| 29 |
} |
| 30 |
|
| 31 |
|
| 32 |
$x: from a variable; |
| 33 |
|
| 34 |
div { |
| 35 |
blah: blah $x blah; |
| 36 |
} |