Skip to content

Instantly share code, notes, and snippets.

@akella
Created February 22, 2013 19:50
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 akella/5016075 to your computer and use it in GitHub Desktop.
Save akella/5016075 to your computer and use it in GitHub Desktop.
@viewport {
width: auto; // auto | device-width | length | percentage
// 'width' задаст сразу max и min-width.
max-width: auto;
min-width: auto;
// 'zoom' тоже что 'initial-scale' в meta
// Значения 1.0 или 100% означают что нет zoom.
zoom: auto; // auto | number | percentage
max-zoom: 5; // Максимальный zoom.
min-zoom: 0.25; // Минимальный zoom .
// Can the zoom factor be changed by user interaction?
// Тоже что 'user-scalable' в метатаге
user-zoom: zoom; // fixed | zoom
// Зафиксировать ориентацию landscape-portrait
orientation: auto; // auto | portrait | landscape
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment