From 421ceaf92db066871b5aa2c6eb06643c46ae7f28 Mon Sep 17 00:00:00 2001 From: Roberto Ornelas Date: Tue, 23 Jul 2013 00:25:52 +0100 Subject: [PATCH] Use default sprite map dimensions and positioning for retina background --- compass/stylesheets/toolkit/_pe.scss | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/compass/stylesheets/toolkit/_pe.scss b/compass/stylesheets/toolkit/_pe.scss index b7f0607..b0b66ea 100644 --- a/compass/stylesheets/toolkit/_pe.scss +++ b/compass/stylesheets/toolkit/_pe.scss @@ -159,9 +159,12 @@ $replace-text-inline-element: false !default; repeat: no-repeat; } @if $with-dimensions { - background-size: image-width($sprite-file) image-height($sprite-file); + background-size: image-width(sprite-path($sprite-map)) image-height(sprite-path($sprite-map)); + @include sprite($sprite-map, $sprite); + } + @else { + @include sprite($retina-map, $sprite); } - @include sprite($retina-map, $sprite); } //////////////////////////////