Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 133e4f3d980b3f1088ab08acd9dd955241d407d6 1 parent 33f615a
@plapier plapier authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 app/assets/stylesheets/addons/_retina-image.scss
View
6 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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.