| 1 |
@mixin ico-common($imgUrl){ |
| 2 |
display: inline-block; |
| 3 |
background: url(i/$imgUrl); |
| 4 |
background-repeat: no-repeat; |
| 5 |
} |
| 6 |
|
| 7 |
@mixin ico-size($width,$height){ |
| 8 |
width: $width; |
| 9 |
height: $height; |
| 10 |
} |
| 11 |
|
| 12 |
.test{ |
| 13 |
@include ico-common("icon.png"); |
| 14 |
|
| 15 |
@include ico-size(100px, 100px); |
| 16 |
} |