]> cat aescling's git repositories - mastodon.git/commitdiff
Fix background color transition in destructive buttons
authorThibaut Girka <thib@sitedethib.com>
Thu, 28 Mar 2019 19:30:30 +0000 (20:30 +0100)
committerThibG <thib@sitedethib.com>
Thu, 28 Mar 2019 19:45:10 +0000 (20:45 +0100)
app/javascript/flavours/glitch/styles/components/index.scss

index 21b76e33ab6a6743cc20149fbdbe2b46fce2c6a1..b098676b026f612d964ee09f92b60005c0fc3000 100644 (file)
     transition: all 200ms ease-out;
   }
 
+  &--destructive {
+    transition: none;
+
+    &:active,
+    &:focus,
+    &:hover {
+      background-color: $error-red;
+      transition: none;
+    }
+  }
+
   &:disabled {
     background-color: $ui-primary-color;
     cursor: default;