Skip to content

A platform for community discussion. Free, open, simple.

UX: Disable highlight animation on deleted posts

Kris69df19a6635c
diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scss
index 36ca696ab27..b458f04e372 100644
--- a/app/assets/stylesheets/common/base/topic-post.scss
+++ b/app/assets/stylesheets/common/base/topic-post.scss
@@ -555,6 +555,12 @@ blockquote {
&.highlighted {
animation: background-fade-highlight 2.5s ease-out;
}
+ .deleted & {
+ // Disable so the deleted background is visible immediately
+ &.highlighted {
+ animation: none;
+ }
+ }
}
.post-info {