]> cat aescling's git repositories - mastodon.git/commitdiff
Fix CW field still having animation in when reduce motion is enabled (#7872)
authorMélanie Chauvel (ariasuni) <perso@hack-libre.org>
Thu, 21 Jun 2018 21:05:01 +0000 (23:05 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 21 Jun 2018 21:05:01 +0000 (23:05 +0200)
app/javascript/styles/mastodon/components.scss

index 28daac6a387376699284de23bf4222665b890c13..c16cf3437bb04fa44c1b8bdbfddbde4144504b89 100644 (file)
     height: 0;
     transform-origin: bottom;
     opacity: 0.0;
-    transition: all 0.4s ease;
 
     &.spoiler-input--visible {
       height: 47px;
       opacity: 1.0;
-      transition: all 0.4s ease;
     }
   }
 
   }
 }
 
+.no-reduce-motion .spoiler-input {
+  transition: height 0.4s ease, opacity 0.4s ease;
+}
+
 .emojione {
   font-size: inherit;
   vertical-align: middle;