| 1 |
// @charset "UTF-8"; |
| 2 |
|
| 3 |
@mixin background-image-retina($file, $type, $width, $height) { |
| 4 |
background-image: unquote(image-url("#{$file}.#{$type}", true)); |
| 5 |
hey: length(a b c d); |
| 6 |
ho: unquote("hello"); |
| 7 |
hee: unquote(unit(10fudge)); |
| 8 |
|
| 9 |
@media (-webkit-min-device-pixel-ratio: 2), (-moz-min-device-pixel-ratio: 2) { |
| 10 |
& { |
| 11 |
background-image: image-url("#{$file}@2x.#{$type}"); |
| 12 |
-webkit-background-size: $width $height; |
| 13 |
} |
| 14 |
} |
| 15 |
} |
| 16 |
|
| 17 |
$x: foo; |
| 18 |
$y: bar; |
| 19 |
|
| 20 |
div { |
| 21 |
@include background-image-retina(test, png, 100px, 300px); |
| 22 |
fudge: walnut; |
| 23 |
} |
| 24 |
|
| 25 |
span { |
| 26 |
blah: "#{$x} #{$y}"; |
| 27 |
bleh: image-url("#{$x} #{$y}"); |
| 28 |
} |
| 29 |
|
| 30 |
|
| 31 |
@mixin foo($x, $y) { |
| 32 |
foo-x: $x; |
| 33 |
foo-y: $y; |
| 34 |
} |
| 35 |
|
| 36 |
div { |
| 37 |
@include foo(1, 2); |
| 38 |
@include foo($y: 2, $x: 1); |
| 39 |
} |
| 40 |
|
| 41 |
@mixin bar($x, $y: default) { |
| 42 |
bar-x: $x; |
| 43 |
bar-y: $y; |
| 44 |
} |
| 45 |
|
| 46 |
div { |
| 47 |
@include bar(1, 2); |
| 48 |
@include bar(1); |
| 49 |
@include bar($x: n1, $y: n2); |
| 50 |
@include bar($x: n1); |
| 51 |
blah: unquote("hello"); |
| 52 |
} |