Permalink
Browse files

Merge pull request #109 from thoughtbot/gf-image-rendering

image-rendering mixin
  • Loading branch information...
Phil LaPier
Phil LaPier committed Jul 27, 2012
2 parents 42e727b + 1ecc94e commit 8ee962789058011ff91089901b691ed4a999a897
Showing with 14 additions and 0 deletions.
  1. +1 −0 app/assets/stylesheets/_bourbon.scss
  2. +13 −0 app/assets/stylesheets/css3/_image-rendering.scss
@@ -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";
@@ -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.