Skip to content

Instantly share code, notes, and snippets.

@ackernaut
Created December 7, 2012 16:42
Show Gist options
  • Save ackernaut/4234533 to your computer and use it in GitHub Desktop.
Save ackernaut/4234533 to your computer and use it in GitHub Desktop.
LESS variables for iOS device dimensions
// iOS Device Dimensions
@iPadLandHeight: 768px;
@iPadPortHeight: 1024px;
@iPadLandWidth: 1024px;
@iPadPortWidth: 768px;
@iPhoneLandHeight: 320px; // 640 / 2
@iPhonePortHeight: 480px; // 960 / 2
@iPhoneLandWidth: 480px; // 960 / 2
@iPhonePortWidth: 320px; // 640 / 2
@iPhoneWidePortHeight: 568px; // 1136 / 2
@iPhoneWideLandWidth: 568px; // 1136 / 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment