| 1 |
$x: 3; |
| 2 |
|
| 3 |
div { |
| 4 |
noo: not $x; |
| 5 |
poo: not 3; |
| 6 |
doo: not($x); |
| 7 |
goo: not(3); |
| 8 |
zoo: not 1 + 2; |
| 9 |
|
| 10 |
roo: not not not $x; |
| 11 |
hoo: not not not 3; |
| 12 |
} |
| 13 |
|
| 14 |
@mixin foo($x-1, $x-2) { |
| 15 |
goo: $x-1; |
| 16 |
poo: $x-2; |
| 17 |
} |
| 18 |
$hux: "blah.css"; |
| 19 |
span { |
| 20 |
a: rgba(100, 20, 0, 1); |
| 21 |
b: rgba(#abc, 1); |
| 22 |
c: compact(hello, my, false, name, is, false, aaron, false, false); |
| 23 |
d: join(1 2 3, 4 5 6, comma); |
| 24 |
e: join(a b c, d e f); |
| 25 |
f: change-color(#102030, $blue: 5); |
| 26 |
g: change-color(#102030, $red: 120, $blue: 5); |
| 27 |
h: hsl(25, 100%, 80%); |
| 28 |
h: change-color(#ffc499, $alpha: 0.8, $lightness: 40%); |
| 29 |
h: change-color(hsl(25, 100%, 80%), $alpha: 0.8, $lightness: 40%); |
| 30 |
i: hsla(25, 100%, 40%, 0.8); |
| 31 |
foo: url("http://blah/flah/grah"); |
| 32 |
foo: url(http://foo/bar/buzz.css); |
| 33 |
foo: url(hey#{1+3}ho.css); |
| 34 |
foo: url($hux); |
| 35 |
bug: compact(false 1 2 false 3 4 5 false); |
| 36 |
pug: compact(false, 1, 2, false, 3, 4, 5, false); |
| 37 |
mug: compact((flug, false, blug, false, krug, false)); |
| 38 |
} |
| 39 |
|
| 40 |
@mixin bg($file) { |
| 41 |
background: url($file) no-repeat; |
| 42 |
} |
| 43 |
|
| 44 |
div { |
| 45 |
flug: url(bug.mug); |
| 46 |
krug: nth(1 2 3, 2px); |
| 47 |
blug: nth(a b c d, 3); |
| 48 |
flig: comparable(34, 22px) comparable(1%, 3) comparable(2, 1) comparable(4cm, 1in); |
| 49 |
flug: comparable(1px, 2.3in) comparable(1%, 2pt); |
| 50 |
flib: comparable(3ex, 2px) comparable(3em, 2cm); |
| 51 |
glib: not(fudge) not(false) not(0) not(red); |
| 52 |
trib: if(red, yellow, not taken); |
| 53 |
trub: if(not(fudge), not taken, here we are); |
| 54 |
} |
| 55 |
|
| 56 |
$width: 10px; |
| 57 |
$height: 10px; |
| 58 |
@media (-webkit-min-device-pixel-ratio: 2), (-moz-min-device-pixel-ratio: 2) { |
| 59 |
div { |
| 60 |
background-image: url(fudge); |
| 61 |
-webkit-background-size: $width $height; |
| 62 |
} |
| 63 |
} |
| 64 |
|
| 65 |
span { |
| 66 |
@media foo { |
| 67 |
div { |
| 68 |
blah: blah; |
| 69 |
} |
| 70 |
@media bar { |
| 71 |
p { |
| 72 |
blah: bloo; |
| 73 |
} |
| 74 |
} |
| 75 |
} |
| 76 |
} |
| 77 |
|
| 78 |
gudge { |
| 79 |
fudge: 20 + "%"; |
| 80 |
mudge: 1 + blang; |
| 81 |
} |
| 82 |
|
| 83 |
h1:lang(en) { |
| 84 |
foo: bar; |
| 85 |
} |