Created
January 29, 2013 23:52
-
-
Save ideefixe/4669174 to your computer and use it in GitHub Desktop.
Susy Sub Pixel Rendering Fix for Safari
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (jQuery.browser.safari) { | |
var width = $(window) | |
.width(); | |
if (width < 671) { | |
$('.people_image') | |
.css('width', '32.5%'); | |
} else if (width >= 1000) { | |
$('.people_image') | |
.css('width', '15.3%'); | |
} else if (width > 671 && width <= 999) { | |
$('.people_image') | |
.css('width', '23.125%'); | |
} | |
$(window) | |
.resize(function() { | |
var width = $(window) | |
.width(); | |
if (width < 671) { | |
$('.people_image') | |
.css('width', '32.5%'); | |
} else if (width >= 1000) { | |
$('.people_image') | |
.css('width', '15.3%'); | |
} else if (width > 671 && width <= 999) { | |
$('.people_image') | |
.css('width', '23.125%'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment