Skip to content

Commit

Permalink
fix(transitions): Disable transitions on Android 2, closes #780
Browse files Browse the repository at this point in the history
By default transitions will be disabled on Android 2. To force
transitions to work on Android 2 add `enable-transitions` to the body
className.
  • Loading branch information
Adam Bradley committed May 2, 2014
1 parent 45106a6 commit 9c58d47
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scss/_platform.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Platform
* --------------------------------------------------
* Platform specific tweaks when in Cordova.
* Platform specific tweaks
*/

.platform-ios7.platform-cordova {
Expand All @@ -26,7 +26,7 @@
top: $bar-height + $ios7-statusbar-height;
}

.has-header,
.has-header,
.bar-subheader {
top: $bar-height + $ios7-statusbar-height;
}
Expand All @@ -45,3 +45,9 @@
margin-bottom: 20px;
}
}

.platform-android2:not(.enable-transitions) * {
// disable transitions on Android 2
-webkit-transition: none !important;
transition: none !important;
}

0 comments on commit 9c58d47

Please sign in to comment.