Menu icon Foundation

My Posts

No Content

My Comments

Tim Nethers commented on Semafork's post almost 5 years

Brandon, open _sprite.scss and replace the function of "@mixin retina-sprite-add" with:

@mixin retina-sprite-add($name, $path, $path2x) {
$retina-sprite-spacing: 2px !default;

$sprite : sprite-map($path, $spacing: $retina-sprite-spacing);
$sprite2x : sprite-map($path2x, $spacing: $retina-sprite-spacing);

$retina-sprite-names : append($retina-sprite-names, $name) !global;

$retina-sprite-sprites : append($retina-sprite-sprites, $sprite) !global;
$retina-sprite-urls : append($retina-sprite-urls, sprite-url($sprite)) !global;

$retina-sprite-sprites2x : append($retina-sprite-sprites2x, $sprite2x) !global;
$retina-sprite-urls2x : append($retina-sprite-urls2x, sprite-url($sprite2x)) !global;
}

Worked for me...

Posts Followed

No Content

Following

    No Content

Followers

My Posts

No Content

My Comments

You commented on Semafork's post almost 5 years

Brandon, open _sprite.scss and replace the function of "@mixin retina-sprite-add" with:

@mixin retina-sprite-add($name, $path, $path2x) {
$retina-sprite-spacing: 2px !default;

$sprite : sprite-map($path, $spacing: $retina-sprite-spacing);
$sprite2x : sprite-map($path2x, $spacing: $retina-sprite-spacing);

$retina-sprite-names : append($retina-sprite-names, $name) !global;

$retina-sprite-sprites : append($retina-sprite-sprites, $sprite) !global;
$retina-sprite-urls : append($retina-sprite-urls, sprite-url($sprite)) !global;

$retina-sprite-sprites2x : append($retina-sprite-sprites2x, $sprite2x) !global;
$retina-sprite-urls2x : append($retina-sprite-urls2x, sprite-url($sprite2x)) !global;
}

Worked for me...

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content