iOS 7 stuff and platform testing

This commit is contained in:
Max Lynch
2013-09-23 18:35:27 -05:00
parent 4125f91daa
commit 136925f3b2
4 changed files with 19 additions and 2 deletions

View File

@ -25,7 +25,9 @@
// Check if we are running in Cordova, which will have
// window.device available.
isCordova: function() {
return 'device' in window;
return (window.cordova || window.PhoneGap || window.phonegap);
//&& /^file:\/{3}[^\/]/i.test(window.location.href)
//&& /ios|iphone|ipod|ipad|android/i.test(navigator.userAgent);
},
isIOS7: function() {
if(!window.device) {

14
scss/_ios7.scss Normal file
View File

@ -0,0 +1,14 @@
.platform-ios7 {
.bar {
height: 64px;
.title {
line-height: 84px;
}
}
.has-header {
top: 64px;
}
}

View File

@ -5,6 +5,8 @@
"mixins",
"variables",
"ios7",
// Base
"ionic/reset",
"ionic/scaffolding",

View File

@ -188,4 +188,3 @@
bottom: $bar-height;
display: block;
}