Skip to content

Instantly share code, notes, and snippets.

Avatar
👨
On paternal leave

Kristofer Giltvedt Selbekk selbekk

👨
On paternal leave
View GitHub Profile
@selbekk
selbekk / styles.scss
Created Aug 6, 2015 — forked from pburtchaell/styles.css
VH and VW units can cause issues on iOS devices. To overcome this, create media queries that target the width, height, and orientation of iOS devices.
View styles.scss
@mixin vh($heightPercentage) {
/**
* VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units
*
* To overcome this, create media queries that target the width, height, and orientation of iOS devices.
* It isn't optimal, but there is really no other way to solve the problem.
*
* iOS Resolution Quick Reference: http://www.iosres.com/
*
* Original gist at from here: https://gist.github.com/pburtchaell/e702f441ba9b3f76f587
You can’t perform that action at this time.