Skip to content

Commit

Permalink
Merge pull request thoughtbot#109 from thoughtbot/gf-image-rendering
Browse files Browse the repository at this point in the history
image-rendering mixin
  • Loading branch information
Phil LaPier committed Jul 27, 2012
2 parents 42e727b + 1ecc94e commit 8ee9627
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/stylesheets/_bourbon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
@import "css3/box-sizing";
@import "css3/columns";
@import "css3/flex-box";
@import "css3/image-rendering";
@import "css3/inline-block";
@import "css3/linear-gradient";
@import "css3/prefixer";
Expand Down
13 changes: 13 additions & 0 deletions app/assets/stylesheets/css3/_image-rendering.scss
Original file line number Diff line number Diff line change
@@ -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 8ee9627

Please sign in to comment.