From c086ce776bb98aadf6541b15cd34df62482ad7bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Qu=C3=A8ze?= Date: Thu, 22 Sep 2011 01:13:30 +0200 Subject: [PATCH] Improve the appearance of the selected contact when the contact list isn't focused. --- im/content/blist.css | 2 +- im/themes/blist.css | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/im/content/blist.css b/im/content/blist.css index acd18cd241..17c21a8b4c 100644 --- a/im/content/blist.css +++ b/im/content/blist.css @@ -40,7 +40,7 @@ contact { -moz-box-align: center; } contact[open], -contact[selected] { +#buddylistbox:focus > contact[selected] { -moz-binding: url("chrome://instantbird/content/contact.xml#contact-big"); -moz-box-orient: vertical; -moz-box-align: stretch; diff --git a/im/themes/blist.css b/im/themes/blist.css index 9938a00364..2c255b224d 100644 --- a/im/themes/blist.css +++ b/im/themes/blist.css @@ -97,19 +97,19 @@ group>* { padding-bottom: 2px; } -#buddylistbox:focus > contact[selected="true"], -#buddylistbox:focus > group[selected="true"], -#convlistbox:focus > conv[selected="true"] { - background-color: -moz-Dialog; - color: -moz-DialogText; -} - -contact[open]:not([selected]):not([droptarget]) { +contact[open] { background: -moz-linear-gradient(45deg, -moz-Dialog, white 20%, white 80%, -moz-Dialog); } +#buddylistbox:focus > contact[selected="true"], +#buddylistbox:focus > group[selected="true"], +#convlistbox:focus > conv[selected="true"] { + background: -moz-Dialog; + color: -moz-DialogText; +} + :-moz-any(contact, buddy)[droptarget] { - background-color: Highlight; + background: Highlight; } contact[droptarget] .contact-hbox, @@ -118,7 +118,7 @@ buddy[droptarget] { } contact[droptarget] > buddy[dummy] { - background-color: Highlight; + background: Highlight; color: HighlightText; }