Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Target Safari Browsers
.safari-mac .site-container {
display: block;
/* Adjustments for Safari on Mac */
if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Mac') != -1 && navigator.userAgent.indexOf('Chrome') == -1) {
$('body').addClass('safari-mac'); // provide a class for the safari-mac specific css to filter with
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment