Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Internet Explorer warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Cryer committed Jun 14, 2018
1 parent 3d21ee6 commit 26b54a7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
15 changes: 14 additions & 1 deletion resources/assets/scss/layout/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
height: 100vh;
overflow-x: hidden;
overflow-y: auto;

position: relative;
padding: 20px 40px;

h1 {
Expand Down Expand Up @@ -79,6 +79,9 @@ html.external {
}
}

.browser-warning {
display: none;
}

@media (max-width: 767px) {
.main {
Expand All @@ -90,4 +93,14 @@ html.external {
.sidebar-toggle {
display: none;
}
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.main {
padding-top: 50px;
}

.browser-warning {
display: block;
}
}
17 changes: 17 additions & 0 deletions resources/views/layouts/primary.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@
</div>

<div class="main">
<div class="browser-warning bg-warning-muted" style="position: absolute; top: 0; left: 0; right: 0; padding: 10px; border-radius: 0;">
<i class="fa fa-exclamation-triangle"></i>
<strong>Some things may not look quite right in Internet Explorer!</strong>
We strongly recommend using a modern web browser such as <a href="https://www.google.co.uk/chrome/">Google Chrome</a>, <a href="https://www.mozilla.org/en-GB/firefox/new/">Firefox</a> or <a href="https://www.microsoft.com/en-us/windows/microsoft-edge">Microsoft Edge</a>.
</div>

<button class="sidebar-toggle"><i class="fa fa-bars"></i></button>
<h1>@yield('title')</h1>

Expand Down Expand Up @@ -163,5 +169,16 @@ function initMap() {
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDQanDqoNnzC5kouCf7g3bhRof75qNCOuM&callback=initMap&libraries=drawing,places" async defer></script>

<!--[if IE]>
<style>
.main {
padding-top: 50px;
}
.browser-warning {
display: block;
}
</style>
<![endif]-->
</body>
</html>

0 comments on commit 26b54a7

Please sign in to comment.