Skip to content

Instantly share code, notes, and snippets.

@SleepWalker
Forked from visnup/lock.css
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SleepWalker/167b38041c7a6069d26f to your computer and use it in GitHub Desktop.
Save SleepWalker/167b38041c7a6069d26f to your computer and use it in GitHub Desktop.
/* if portrait mode is detected, rotate the entire site -90 degrees to hint rotating to landscape */
@media (orientation: landscape) {
body {
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment