Skip to content

Instantly share code, notes, and snippets.

@SleepWalker
Created July 18, 2014 04:37
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/a71c350b64ce5243d6b4 to your computer and use it in GitHub Desktop.
Save SleepWalker/a71c350b64ce5243d6b4 to your computer and use it in GitHub Desktop.
Предупреждение о том, что необходимо перевернуть девайс на чистом CSS
@media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : landscape) {
html {
background: #333;
}
body:before {
content: "Turn your phone to portrait";
color: #888;
font-size: 11px;
text-transform: uppercase;
top: 50%;
margin: -5px 0 0 -100px;
position: absolute;
}
body * {
display: none;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment