From 9c58d47b2b7c4d5695c1eb1b2ee7d23555ae0137 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Fri, 2 May 2014 14:02:28 -0500 Subject: [PATCH] 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. --- scss/_platform.scss | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scss/_platform.scss b/scss/_platform.scss index e8460a0e8c0..bee3b8a8c1e 100644 --- a/scss/_platform.scss +++ b/scss/_platform.scss @@ -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; +}