Permalink
Browse files

Removed image-height and width in favor of background-size variable

  • Loading branch information...
1 parent 33f615a commit 133e4f3d980b3f1088ab08acd9dd955241d407d6 Phil LaPier committed Feb 1, 2013
Showing with 2 additions and 4 deletions.
  1. +2 −4 app/assets/stylesheets/addons/_retina-image.scss
@@ -1,7 +1,5 @@
-@mixin retina-image($filename, $image-width, $image-height, $extension: png, $retina-filename: null, $asset-pipeline: false) {
+@mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $asset-pipeline: false) {
background-image: url($filename + "." + $extension);
- height: $image-height;
- width: $image-width;
@include hidpi {
@@ -23,7 +21,7 @@
}
}
- background-size: $image-width $image-height;
+ background-size: $background-size;
}
}

0 comments on commit 133e4f3

Please sign in to comment.