mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +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
|
// Check if we are running in Cordova, which will have
|
||||||
// window.device available.
|
// window.device available.
|
||||||
isCordova: function() {
|
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() {
|
isIOS7: function() {
|
||||||
if(!window.device) {
|
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",
|
"mixins",
|
||||||
"variables",
|
"variables",
|
||||||
|
|
||||||
|
"ios7",
|
||||||
|
|
||||||
// Base
|
// Base
|
||||||
"ionic/reset",
|
"ionic/reset",
|
||||||
"ionic/scaffolding",
|
"ionic/scaffolding",
|
||||||
|
|||||||
@ -188,4 +188,3 @@
|
|||||||
bottom: $bar-height;
|
bottom: $bar-height;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user