diff options
author | Nolan Lawson <nolan@nolanlawson.com> | 2017-12-23 19:48:31 -0800 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-12-24 04:48:31 +0100 |
commit | a8eb0bf44fe2ec77e9db58b2a602188392f2fc6c (patch) | |
tree | f1e48f9acfb92136ff7466854bf9e76b18f8e347 /app/javascript/styles | |
parent | 35fdf561be94200c7e7923ed11cde73b5b681314 (diff) |
Reduce motion for boost animation (#5871)
* Reduce motion for boost animation Fixes #5833 * Fix ternary expression
Diffstat (limited to 'app/javascript/styles')
-rw-r--r-- | app/javascript/styles/mastodon/components.scss | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index 12919e7e8..63664d607 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -2149,7 +2149,8 @@ @import 'boost'; -button.icon-button i.fa-retweet { +.no-reduce-motion button.icon-button i.fa-retweet { + background-position: 0 0; height: 19px; transition: background-position 0.9s steps(10); @@ -2160,13 +2161,23 @@ button.icon-button i.fa-retweet { &::before { display: none !important; } + } -button.icon-button.active i.fa-retweet { +.no-reduce-motion button.icon-button.active i.fa-retweet { transition-duration: 0.9s; background-position: 0 100%; } +.reduce-motion button.icon-button i.fa-retweet { + color: $ui-base-lighter-color; + transition: color 100ms ease-in; +} + +.reduce-motion button.icon-button.active i.fa-retweet { + color: $ui-highlight-color; +} + .status-card { display: flex; cursor: pointer; |