Created
September 3, 2019 12:42
-
-
Save farshidrezaei/e70203fea5158729734443b9c645c2fd to your computer and use it in GitHub Desktop.
Orientation Lock
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 screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape) { | |
html { | |
transform: rotate(-90deg); | |
transform-origin: left top; | |
width: 100vh; | |
overflow-x: hidden; | |
position: absolute; | |
top: 100%; | |
left: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment