Add ios specific support
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user