From d370b410622b2fd3b0b7a9a6c86fa3898f6485c8 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Tue, 12 Feb 2013 21:19:33 +0100 Subject: [PATCH] Contacts: Only show group delete action on active group. Ref #94 --- css/contacts.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/css/contacts.css b/css/contacts.css index 487f2826..a43701a4 100644 --- a/css/contacts.css +++ b/css/contacts.css @@ -124,7 +124,7 @@ #grouplist { z-index: 100; } #grouplist h3 .action:not(.starred):not(.checked):not(.favorite) { float: right; display: none; padding: 0; margin: auto; } #grouplist h3:not([data-type="shared"]):not(.editing):hover .action.numcontacts, #grouplist h3:not([data-type="shared"]):not(.editing) .active.action.numcontacts { display: inline-block; } -#grouplist h3[data-type="category"]:not(.editing):hover .action.delete { display: inline-block; } +#grouplist h3.active[data-type="category"]:not(.editing):hover .action.delete { display: inline-block; } #grouplist h3:not(.editing) .action.delete { width: 20px; height: 20px; } /* First run */ @@ -180,6 +180,7 @@ /*.no-svg .add { background-image:url('%webroot%/core/img/actions/add.png'); }*/ .no-svg .delete { background-image:url('%webroot%/core/img/actions/delete.png'); } +/*.no-svg .delete:hover { background-image:url('%webroot%/core/img/actions/delete-hover.png'); }*/ .no-svg .edit { background-image:url('%webroot%/core/img/actions/rename.png'); } .no-svg .share { background-image:url('%webroot%/core/img/actions/share.png'); } .no-svg .groups { background-image:url('%webroot%/core/img/actions/shared.png'); } @@ -200,6 +201,7 @@ } /*.svg .add { background-image:url('%webroot%/core/img/actions/add.svg'); }*/ .svg .delete { background-image:url('%webroot%/core/img/actions/delete.svg'); } +/*.svg .delete:hover { background-image:url('%webroot%/core/img/actions/delete-hover.svg'); }*/ .svg .edit { background-image:url('%webroot%/core/img/actions/rename.svg'); } .svg .share { background-image:url('%webroot%/core/img/actions/share.svg'); } .svg .groups { background-image:url('%webroot%/core/img/actions/shared.svg'); }