From be08c32c963457b5579a1236570e2ff3b2fc2402 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 27 May 2016 13:56:56 +0930 Subject: [PATCH] Simplify deleted post toggle CSS (The animation was buggy anyway) --- less/forum/Post.less | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/less/forum/Post.less b/less/forum/Post.less index d2965e902..93f752f92 100644 --- a/less/forum/Post.less +++ b/less/forum/Post.less @@ -169,29 +169,19 @@ .Post-header, .Post-header a, .PostUser h3, .PostUser h3 a { color: @muted-more-color; } - &:not(.revealContent) .Post-header { - margin-bottom: 0; + &:not(.revealContent) { + .Post-header { + margin-bottom: 0; + } + .Post-body, .Post-footer, h3 .Avatar, .PostUser-badges { + display: none; + } } .Post-body, .Post-footer, h3 .Avatar, .PostUser-badges { - position: absolute; - visibility: hidden; - opacity: 0; - margin-top: -5px; - .transition(~"margin-top 0.2s, opacity 0.2s"); - } - &.revealContent { - .Post-body, .Post-footer, h3 .Avatar, .PostUser-badges { - visibility: visible; - opacity: 0.5; - margin-top: 0; - } - .Post-body, .Post-footer, .PostUser-badges { - position: static; - } + opacity: 0.5; } .Post-header .Button--more { - background: fade(@muted-more-color, 30%); - color: @muted-more-color; + .Button--color(@muted-more-color, fade(@muted-more-color, 30%)); } } .Post--loading {