/* Icon sprite example */
$icon: sprite-map("bg/icon/*.png",
$layout: smart
);
$icon2x: sprite-map("bg/icon2x/*.png",
$layout: smart
);
@mixin icon-sprite($sprite, $from: $base-font-size, $offset-x: 0, $offset-y: 0){
@include use-sprite($icon, $icon2x, $sprite, $from, $offset-x, $offset-y);
}
/* Vertical mode with spacing example */
$vertical: sprite-map("bg/vertical/*.png",
$layout: vertical,
$spacing: 24px
);
$vertical2x: sprite-map("bg/vertical2x/*.png",
$layout: smart,
$spacing: 48px
);
@mixin vertical-sprite($sprite, $from: $base-font-size, $offset-x: 0, $offset-y: 0){
@include use-sprite($vertical, $vertical2x, $sprite, $from, $offset-x, $offset-y);
}