From 912201dd646b532f32bc7a06c63eb730c20e5156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 20 Nov 2012 16:08:48 +0100 Subject: [PATCH] Add styling for suspended users --- file/js/be.bastelstu.WCF.Chat.coffee | 2 +- file/style/be.bastelstu.wcf.chat.less | 26 +++++++------------------- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/file/js/be.bastelstu.WCF.Chat.coffee b/file/js/be.bastelstu.WCF.Chat.coffee index d0d4d89..a38e1dc 100644 --- a/file/js/be.bastelstu.WCF.Chat.coffee +++ b/file/js/be.bastelstu.WCF.Chat.coffee @@ -370,7 +370,7 @@ window.console ?= console.log 'Moving User: "' + user.username + '"' element = element.detach() if user.awayStatus? - element.addClass 'timsChatAway' + element.addClass 'away' element.attr 'title', user.awayStatus else element.removeClass 'timsChatAway' diff --git a/file/style/be.bastelstu.wcf.chat.less b/file/style/be.bastelstu.wcf.chat.less index 8792ef3..5ef28b0 100644 --- a/file/style/be.bastelstu.wcf.chat.less +++ b/file/style/be.bastelstu.wcf.chat.less @@ -186,26 +186,14 @@ } #timsChatUserList { - .timsChatUserMenu { - display: none; - background-color: rgba(0, 0, 0, 0.1); - border-bottom: 1px solid @wcfContentBackgroundColor; - color: rgba(0, 0, 0, 0.4); - - > li { - a { - background-color: rgba(255, 255, 255, 0.22); - .textShadow(@wcfSidebarBackgroundColor + rgba(0, 0, 0, 0.1) + rgba(255, 255, 255, 0.22)) !important; - .borderRadius(5px, 0, 0, 5px); - margin-left: 35px; - padding: 1px 0 1px 15px; - color: @wcfColor; - } + .timsChatUser { + &.away { + opacity: .5; + } + + &.suspended a { + text-decoration: line-through; } - } - - .timsChatAway { - opacity: .5; } } }