Skip to content

Commit

Permalink
Adds image-rendering mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
Galen Frechette committed Jul 27, 2012
1 parent 5122d03 commit 1ecc94e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
17 changes: 0 additions & 17 deletions app/assets/stylesheets/css3/_image-rendering.css

This file was deleted.

13 changes: 13 additions & 0 deletions app/assets/stylesheets/css3/_image-rendering.scss
@@ -0,0 +1,13 @@
@mixin image-rendering ($mode:optimizeQuality) {

@if ($mode == optimize-contrast) {
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: optimize-contrast;
}

@else {
image-rendering: $mode;
}
}

0 comments on commit 1ecc94e

Please sign in to comment.