From: Thibaut Girka Date: Thu, 28 Mar 2019 19:30:30 +0000 (+0100) Subject: Fix background color transition in destructive buttons X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=a74d300b68ca992aece2763556de87bd65e0ba73;p=mastodon.git Fix background color transition in destructive buttons --- diff --git a/app/javascript/flavours/glitch/styles/components/index.scss b/app/javascript/flavours/glitch/styles/components/index.scss index 21b76e33a..b098676b0 100644 --- a/app/javascript/flavours/glitch/styles/components/index.scss +++ b/app/javascript/flavours/glitch/styles/components/index.scss @@ -35,6 +35,17 @@ 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;