summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/animations.scss
diff options
context:
space:
mode:
authorNur Rony <pro.nmrony@gmail.com>2017-02-03 14:44:12 +0600
committerNur Rony <pro.nmrony@gmail.com>2017-02-03 14:44:12 +0600
commit80bd5717367ae4af63ac476244e6adee8ccefad5 (patch)
treefab014ff2732263574c8ffef836ee24ed7d63859 /app/assets/stylesheets/framework/animations.scss
parentfd46fb1cd9cc1fdf826d31261aa594baa38d4898 (diff)
downloadgitlab-ce-80bd5717367ae4af63ac476244e6adee8ccefad5.tar.gz
fixes flickers in avatar mention dropdown
Diffstat (limited to 'app/assets/stylesheets/framework/animations.scss')
-rw-r--r--app/assets/stylesheets/framework/animations.scss21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/assets/stylesheets/framework/animations.scss b/app/assets/stylesheets/framework/animations.scss
index 8d38fc78a19..f1ff9faef7f 100644
--- a/app/assets/stylesheets/framework/animations.scss
+++ b/app/assets/stylesheets/framework/animations.scss
@@ -71,6 +71,27 @@
transition: $unfoldedTransitions;
}
+@mixin disableAllAnimation {
+ /*CSS transitions*/
+ -o-transition-property: none !important;
+ -moz-transition-property: none !important;
+ -ms-transition-property: none !important;
+ -webkit-transition-property: none !important;
+ transition-property: none !important;
+ /*CSS transforms*/
+ -o-transform: none !important;
+ -moz-transform: none !important;
+ -ms-transform: none !important;
+ -webkit-transform: none !important;
+ transform: none !important;
+ /*CSS animations*/
+ -webkit-animation: none !important;
+ -moz-animation: none !important;
+ -o-animation: none !important;
+ -ms-animation: none !important;
+ animation: none !important;
+}
+
@function unfoldTransition ($transition) {
// Default values
$property: all;