Skip to content

Commit bd98f97

Browse files
committed
Fixed examples for IE8
1 parent 77d56d7 commit bd98f97

File tree

5 files changed

+32
-9
lines changed

5 files changed

+32
-9
lines changed

docs/examples/navbar-offcanvas/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
2424
<!--[if lt IE 9]>
2525
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
26-
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
26+
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
2727
<![endif]-->
2828
</head>
2929

docs/examples/navmenu-push/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@
1616
<!-- Custom styles for this template -->
1717
<link href="navmenu-push.css" rel="stylesheet">
1818

19+
<!-- Just for debugging purposes. Don't actually copy this line! -->
20+
<!--[if lt IE 9]><script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
21+
1922
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
2023
<!--[if lt IE 9]>
21-
<script src="../../assets/js/html5shiv.js"></script>
22-
<script src="../../assets/js/respond.min.js"></script>
24+
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
25+
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
2326
<![endif]-->
2427
</head>
2528

docs/examples/navmenu-reveal/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@
1616
<!-- Custom styles for this template -->
1717
<link href="navmenu-reveal.css" rel="stylesheet">
1818

19+
<!-- Just for debugging purposes. Don't actually copy this line! -->
20+
<!--[if lt IE 9]><script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
21+
1922
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
2023
<!--[if lt IE 9]>
21-
<script src="../../assets/js/html5shiv.js"></script>
22-
<script src="../../assets/js/respond.min.js"></script>
24+
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
25+
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
2326
<![endif]-->
2427
</head>
2528

docs/examples/navmenu/index.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@
1616
<!-- Custom styles for this template -->
1717
<link href="navmenu.css" rel="stylesheet">
1818

19+
<!-- Just for debugging purposes. Don't actually copy this line! -->
20+
<!--[if lt IE 9]><script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
21+
1922
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
2023
<!--[if lt IE 9]>
21-
<script src="../../assets/js/html5shiv.js"></script>
22-
<script src="../../assets/js/respond.min.js"></script>
24+
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
25+
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
2326
<![endif]-->
2427
</head>
2528

@@ -50,8 +53,8 @@
5053
</ul>
5154
</div>
5255

53-
<div class="navbar navbar-default navbar-fixed-top visible-sm visible-xs">
54-
<button type="button" class="navbar-toggle visible-sm visible-xs" data-toggle="offcanvas" data-target=".navmenu">
56+
<div class="navbar navbar-default navbar-fixed-top hidden-md hidden-lg">
57+
<button type="button" class="navbar-toggle" data-toggle="offcanvas" data-target=".navmenu">
5558
<span class="icon-bar"></span>
5659
<span class="icon-bar"></span>
5760
<span class="icon-bar"></span>

docs/examples/navmenu/navmenu.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ body {
1111

1212
.navbar {
1313
text-align: center;
14+
display: block;
1415
}
1516
.navbar-brand {
1617
display: inline-block;
@@ -22,11 +23,24 @@ body {
2223
margin-left: 15px;
2324
}
2425

26+
.container {
27+
max-width: 100%;
28+
}
29+
30+
@media (min-width: 1px) {
31+
.navbar-toggle {
32+
display: block !important;
33+
}
34+
}
35+
2536
@media (min-width: 992px) {
2637
body {
2738
padding: 0 0 0 300px;
2839
}
2940
.navmenu {
3041
padding-top: 0;
3142
}
43+
.navbar {
44+
display: none !important; /* IE8 fix */
45+
}
3246
}

0 commit comments

Comments
 (0)