From ed77ee7874f7c0556390e375148dd19788224a7f Mon Sep 17 00:00:00 2001 From: asiekierka Date: Mon, 24 Dec 2012 13:04:06 +0100 Subject: [PATCH] PostHider: added opacity --- js/post-hider.js | 4 ++-- stylesheets/style.css | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/js/post-hider.js b/js/post-hider.js index 9a198620..625b28fa 100644 --- a/js/post-hider.js +++ b/js/post-hider.js @@ -21,8 +21,8 @@ function phPostHandle(element) { var pbody = element.children("div.post.op").children("div.body"); var pimage = element.children("a:first").children("img"); var pbutton = element.children("div.post.op").children("p.intro").children("a.posthider"); - if(phPostHidden(id)) { element.addClass("post-hidden"); preplies.hide(); pbody.hide(); pimage.hide(); pbutton.text("[+]"); } - else { element.removeClass("post-hidden"); preplies.show(); pbody.show(); pimage.show(); pbutton.text("[-]"); } + if(phPostHidden(id)) { element.addClass("thread-hidden"); preplies.hide(); pbody.hide(); pimage.hide(); pbutton.text("[+]"); } + else { element.removeClass("thread-hidden"); preplies.show(); pbody.show(); pimage.show(); pbutton.text("[-]"); } } $(document).ready(function(){ diff --git a/stylesheets/style.css b/stylesheets/style.css index 14463dc6..3d401184 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -453,3 +453,6 @@ table.mod.config-editor input[type="text"] { background-color: #fff; opacity: 0.8; } +.thread-hidden { + opacity: 0.5; +}