Skip to content

Instantly share code, notes, and snippets.

@neilgee neilgee/safari.css

Last active Apr 28, 2020
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
You can’t perform that action at this time.