Created
April 13, 2015 06:57
-
-
Save SelenIT/fb9ec8e72060ff81b085 to your computer and use it in GitHub Desktop.
Media query to detect full screen mode!
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
/** | |
* Media query to detect full screen mode! | |
* Y U NO WORK Chrome?? | |
* Firefox, you’re lovely. | |
*/ | |
body { | |
background: red; | |
font: bold 400% Helvetica Neue, sans-serif; | |
color: white; | |
} | |
@media screen and (min-device-width: 95vw) and (min-device-height: 95vh) and (max-device-width: 105vw) and (max-device-height: 105vh) { | |
body { | |
background: green; | |
} | |
body::before { content: "Full screen!!" } | |
} |
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
<!-- content to be placed inside <body>…</body> --> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment