mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
iOS 7 stuff and platform testing
This commit is contained in:
@ -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
14
scss/_ios7.scss
Normal file
@ -0,0 +1,14 @@
|
||||
.platform-ios7 {
|
||||
.bar {
|
||||
height: 64px;
|
||||
|
||||
.title {
|
||||
line-height: 84px;
|
||||
}
|
||||
}
|
||||
|
||||
.has-header {
|
||||
top: 64px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,6 +5,8 @@
|
||||
"mixins",
|
||||
"variables",
|
||||
|
||||
"ios7",
|
||||
|
||||
// Base
|
||||
"ionic/reset",
|
||||
"ionic/scaffolding",
|
||||
|
||||
@ -188,4 +188,3 @@
|
||||
bottom: $bar-height;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user