Add ios specific support

This commit is contained in:
2014-12-24 10:21:19 +01:00
parent 4faee9aa6e
commit 0d40b5864f
2 changed files with 15 additions and 0 deletions
@@ -14,3 +14,8 @@ App.ApplicationView = Ember.View.extend
if fingerCount is 3 and direction is "up" if fingerCount is 3 and direction is "up"
controller.transitionToRoute "settings" controller.transitionToRoute "settings"
fingers: 'all' fingers: 'all'
#ios7 detection
if window.device and window.device.platform and window.device.platform.toLowerCase() is "ios" and parseFloat(window.device.version) >= 7.0
controller.set 'ios7', true
$('body').addClass 'ios7'
@@ -0,0 +1,10 @@
body.ios7
$ios-menu-height: 20px
.top-menu
margin-top: $ios-menu-height
.side-menu
margin-top: $ios-menu-height
#ember-app-container
padding-top: $ios-menu-height
.main-section
top: $top-menu-height + $ios-menu-height