]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add CSS portion of IE10 viewport bug workaround to docs
authorChris Rebert <code@chrisrebert.com>
Wed, 30 Sep 2015 19:35:57 +0000 (12:35 -0700)
committerChris Rebert <code@chrisrebert.com>
Wed, 30 Sep 2015 19:41:18 +0000 (12:41 -0700)
Refs #17337

Gruntfile.js
docs/_includes/header.html
docs/assets/css/ie10-viewport-bug-workaround.css [new file with mode: 0644]

index 713feba3e157e2650ba87e53b75b054563ac79d4..950af85791b9e14fcdaa4161068e3fc86ccf768f 100644 (file)
@@ -244,6 +244,7 @@ module.exports = function (grunt) {
       },
       docs: {
         src: [
+          'docs/assets/css/ie10-viewport-bug-workaround.css',
           'docs/assets/css/src/pygments-manni.css',
           'docs/assets/css/src/docs.css'
         ],
index 176f45fc01f7d783315894ceb5d36b6f04a5fd09..6b53f00d87fe3d8df1a5841cd5dce8998a01289c 100644 (file)
@@ -32,6 +32,7 @@
 {% if site.github %}
 <link href="../assets/css/docs.min.css" rel="stylesheet">
 {% else %}
+<link href="../assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
 <link href="../assets/css/src/pygments-manni.css" rel="stylesheet">
 <link href="../assets/css/src/docs.css" rel="stylesheet">
 {% endif %}
diff --git a/docs/assets/css/ie10-viewport-bug-workaround.css b/docs/assets/css/ie10-viewport-bug-workaround.css
new file mode 100644 (file)
index 0000000..8b3803b
--- /dev/null
@@ -0,0 +1,15 @@
+/*!
+ * IE10 viewport hack for Surface/desktop Windows 8 bug
+ * Copyright 2014-2015 Twitter, Inc.
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+ */
+
+/*
+ * See the Getting Started docs for more information:
+ * http://getbootstrap.com/getting-started/#support-ie10-width
+ */
+@-webkit-viewport { width: device-width; }
+@-moz-viewport    { width: device-width; }
+@-ms-viewport     { width: device-width; }
+@-o-viewport      { width: device-width; }
+@viewport         { width: device-width; }