Skip to content

Commit

Permalink
Add CSS portion of IE10 viewport bug workaround to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cvrebert committed Sep 30, 2015
1 parent 79cdd66 commit 05b1c62
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
],
Expand Down
1 change: 1 addition & 0 deletions docs/_includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
15 changes: 15 additions & 0 deletions docs/assets/css/ie10-viewport-bug-workaround.css
Original file line number Diff line number Diff line change
@@ -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; }

0 comments on commit 05b1c62

Please sign in to comment.