Last active
August 29, 2015 14:25
-
-
Save gunnarbittersmann/a4a2e5ac20615b36cd22 to your computer and use it in GitHub Desktop.
forcing user to turn device into landscape 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
/** | |
* forcing user to turn device into landscape mode | |
* http://forum.selfhtml.org/self/2015/jul/25/website-darstellung-in-den-landscape-modus-zwingen/1646490#m1646490 | |
*/ | |
@media (orientation: portrait) and (max-width: 20em) | |
{ | |
html::after | |
{ | |
position: absolute; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
background: black; | |
color: white; | |
font-size: 100vmin; | |
content: "⤺"; | |
text-align: center; | |
} | |
} |
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
<p>Pretty landscape, hunh?</p> |
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-vertical","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