Skip to content

Instantly share code, notes, and snippets.

@tcmacdonald
Created January 9, 2012 20:16
Show Gist options
  • Save tcmacdonald/1584707 to your computer and use it in GitHub Desktop.
Save tcmacdonald/1584707 to your computer and use it in GitHub Desktop.
Native Detection for FF Pre 3.5
if /Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)
ffversion = new Number(RegExp.$1)
if ffversion < 3.5
head = document.getElementsByTagName("head")[0]
el = document.createElement("link")
el.type = "text/css"
el.rel = "stylesheet"
el.href = "/assets/firefox.css"
el.media = "screen"
head.appendChild el
@import 'partials/base';
@import "public/public_base";
@import "public/public_321_up";
@import "public/public_535_up";
@import "public/public_767_up";
@import "public/public_940_up";
@import 'flexslider';
body {
.container {
width: 950px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment