-
-
Notifications
You must be signed in to change notification settings - Fork 650
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No Javascript / Old Browser Blockers (#274)
* Add messages for no js and bad browser. Share styles with alpha agreement. * Bad browser checks and shower. * No flash of bad browser * Typsecriptify * Move all checks directly to HTML to avoid issues. * remove duplicate badBrowser declaration
- Loading branch information
Showing
11 changed files
with
274 additions
and
41 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
@import "common/sass/variables"; | ||
@import "common/sass/mixins"; | ||
|
||
.BadBrowser { | ||
@include cover-message; | ||
|
||
&.is-open { | ||
// Override inline display none | ||
display: block !important; | ||
} | ||
|
||
&-content { | ||
&-browsers { | ||
text-align: center; | ||
|
||
&-browser { | ||
position: relative; | ||
display: inline-block; | ||
width: 20%; | ||
margin: 5%; | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
|
||
&:after { | ||
content: ""; | ||
display: block; | ||
padding-bottom: 100%; | ||
} | ||
|
||
&-name { | ||
position: absolute; | ||
top: 100%; | ||
left: 0; | ||
width: 100%; | ||
text-align: center; | ||
padding-top: 12px; | ||
color: rgba(#fff, 0.8); | ||
} | ||
|
||
&.chrome { | ||
background-image: url('~assets/images/browsers/chrome.svg'); | ||
} | ||
|
||
&.firefox { | ||
background-image: url('~assets/images/browsers/firefox.svg'); | ||
} | ||
|
||
&.opera { | ||
background-image: url('~assets/images/browsers/opera.svg'); | ||
} | ||
} | ||
} | ||
} | ||
|
||
// Hide mobile specific messaging by default | ||
.is-mobile { | ||
display: none; | ||
} | ||
|
||
&.is-mobile { | ||
.is-mobile { | ||
display: block; | ||
} | ||
|
||
.is-desktop { | ||
display: none; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@import "common/sass/variables"; | ||
@import "common/sass/mixins"; | ||
|
||
.NoScript { | ||
@include cover-message; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters