From 5e441d656f5bb3f3fc26f767870bb5145459816c Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Mon, 30 Dec 2013 16:21:29 -0700 Subject: [PATCH] IE8 style fixes - Add html5shiv so that HTML5 elements like header, footer, etc can be styled - Remove a couple uses of :first-child/:last-child which IE8 doesn't support --- docs/_css/react.scss | 10 +- docs/_js/es5-sham.js | 446 ------------ docs/_js/es5-sham.min.js | 2 + docs/_js/es5-shim.js | 1360 ------------------------------------ docs/_js/es5-shim.min.js | 2 + docs/_js/html5shiv.min.js | 8 + docs/_layouts/default.html | 5 +- 7 files changed, 20 insertions(+), 1813 deletions(-) delete mode 100644 docs/_js/es5-sham.js create mode 100644 docs/_js/es5-sham.min.js delete mode 100644 docs/_js/es5-shim.js create mode 100644 docs/_js/es5-shim.min.js create mode 100644 docs/_js/html5shiv.min.js diff --git a/docs/_css/react.scss b/docs/_css/react.scss index 5e94c2fe08..1c0e973009 100644 --- a/docs/_css/react.scss +++ b/docs/_css/react.scss @@ -290,7 +290,7 @@ h1, h2, h3, h4, h5, h6 { .marketing-col { float: left; - margin-right: 40px; + margin-left: 40px; width: $columnWidth; h3 { @@ -304,8 +304,8 @@ h1, h2, h3, h4, h5, h6 { } } -.marketing-col:last-child { - margin-right: 0; +.marketing-col:first-child { + margin-left: 0; } #examples h3, .home-presentation h3 { @@ -419,7 +419,7 @@ section.black content { padding-top: 20px; - // Make a notice box out of blockquotes in the documetation: + // Make a notice box out of blockquotes in the documentation: blockquote { padding: 15px 30px 15px 15px; margin: 20px 0; @@ -428,7 +428,7 @@ section.black content { h4 { margin-top: 0; } - p:last-child { + p { margin-bottom: 0; } // Treat first child as the title - promote to H4. diff --git a/docs/_js/es5-sham.js b/docs/_js/es5-sham.js deleted file mode 100644 index 20c9845975..0000000000 --- a/docs/_js/es5-sham.js +++ /dev/null @@ -1,446 +0,0 @@ -// Copyright 2009-2012 by contributors, MIT License -// vim: ts=4 sts=4 sw=4 expandtab - -//Add semicolon to prevent IIFE from being passed as argument to concated code. -; -// Module systems magic dance -(function (definition) { - // RequireJS - if (typeof define == "function") { - define(definition); - // YUI3 - } else if (typeof YUI == "function") { - YUI.add("es5-sham", definition); - // CommonJS and