| 1 |
$list: null; |
| 2 |
.div { |
| 3 |
one: null; |
| 4 |
one: null world; |
| 5 |
one: NULL world; |
| 6 |
one: a null, b; |
| 7 |
two: a $list $list, $list, b; |
| 8 |
three: $list; |
| 9 |
} |
| 10 |
|
| 11 |
$value: null; |
| 12 |
p:before { |
| 13 |
content: "I ate #{$value} pies!"; |
| 14 |
} |
| 15 |
|
| 16 |
@mixin Rounded($radius1, $direction: null, $radius2: false) { |
| 17 |
$corner: null; |
| 18 |
@if $direction == TL { $corner: top-left-; } |
| 19 |
@if $direction == TR { $corner: top-right-; } |
| 20 |
@if $direction == BL { $corner: bottom-left-; } |
| 21 |
@if $direction == BR { $corner: bottom-right-; } |
| 22 |
@if $radius2 { |
| 23 |
-webkit-border-#{$corner}radius: $radius1 $radius2; |
| 24 |
border-#{$corner}radius: $radius1 $radius2; |
| 25 |
} @else { |
| 26 |
-webkit-border-#{$corner}radius: $radius1; |
| 27 |
border-#{$corner}radius: $radius1; |
| 28 |
} |
| 29 |
} |
| 30 |
|
| 31 |
.foo { |
| 32 |
@include Rounded(10); |
| 33 |
} |
| 34 |
|
| 35 |
.fu { |
| 36 |
@include Rounded(20, null); |
| 37 |
} |
| 38 |
|
| 39 |
.bar { |
| 40 |
@include Rounded(30, TL); |
| 41 |
} |
| 42 |
|