mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(transitions): Disable transitions on Android 2, closes #780
By default transitions will be disabled on Android 2. To force transitions to work on Android 2 add `enable-transitions` to the body className.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Platform
|
||||
* --------------------------------------------------
|
||||
* Platform specific tweaks when in Cordova.
|
||||
* Platform specific tweaks
|
||||
*/
|
||||
|
||||
.platform-ios7.platform-cordova {
|
||||
@@ -26,7 +26,7 @@
|
||||
top: $bar-height + $ios7-statusbar-height;
|
||||
}
|
||||
|
||||
.has-header,
|
||||
.has-header,
|
||||
.bar-subheader {
|
||||
top: $bar-height + $ios7-statusbar-height;
|
||||
}
|
||||
@@ -45,3 +45,9 @@
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.platform-android2:not(.enable-transitions) * {
|
||||
// disable transitions on Android 2
|
||||
-webkit-transition: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user