From 2f93a4d70dbdc1c8affa05dc7a09638c542e2fa3 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Thu, 8 Sep 2011 10:11:57 +0200 Subject: [PATCH 1/2] style vcard infos --- view/theme/quattro/colors.less | 1 + view/theme/quattro/quattro.less | 3 ++- view/theme/quattro/style.css | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/view/theme/quattro/colors.less b/view/theme/quattro/colors.less index 3d3074d60..b5a203b94 100644 --- a/view/theme/quattro/colors.less +++ b/view/theme/quattro/colors.less @@ -58,6 +58,7 @@ @AsideConnect: @Grey1; @AsideConnectBg: @Blue3; @AsideConnectHoverBg: @Blue1; +@VCardLabelColor: @Grey3; @InfoColor: @Grey1; @InfoBackgroundColor: @Metalic3; diff --git a/view/theme/quattro/quattro.less b/view/theme/quattro/quattro.less index 01d0b94b9..54bd11806 100644 --- a/view/theme/quattro/quattro.less +++ b/view/theme/quattro/quattro.less @@ -149,6 +149,7 @@ nav { .menu-popup{ right: 0px; left: auto; } } + #nav-notifications-linkmenu.on .icon.s22.notify, #nav-notifications-linkmenu.selected .icon.s22.notify { background-image: url("../../../images/icons/22/notify_on.png") } #nav-apps-link.selected { background-color: @NavbarSelectedBg; } } @@ -201,7 +202,7 @@ aside { .fn { font-size: 16px; font-weight: bold; margin-bottom: 5px; } .title { margin-bottom: 5px; } dl { height: auto; overflow: auto; } - dt {float: left; margin-left: 0px; width: 35%; } + dt {float: left; margin-left: 0px; width: 35%; text-align: right; color: @VCardLabelColor; } dd {float: left; margin-left: 4px; width: 60%;} } diff --git a/view/theme/quattro/style.css b/view/theme/quattro/style.css index 6daef77a3..70e0a3b94 100644 --- a/view/theme/quattro/style.css +++ b/view/theme/quattro/style.css @@ -243,7 +243,7 @@ nav #nav-site-linkmenu .menu-popup { right: 0px; left: auto; } -nav #nav-notifications-linkmenu.selected .icon.s22.notify { +nav #nav-notifications-linkmenu.on .icon.s22.notify, nav #nav-notifications-linkmenu.selected .icon.s22.notify { background-image: url("../../../images/icons/22/notify_on.png"); } nav #nav-apps-link.selected { @@ -331,6 +331,8 @@ aside .vcard dt { float: left; margin-left: 0px; width: 35%; + text-align: right; + color: #999999; } aside .vcard dd { float: left; From dbc5ecfe572b0dc11bab277dcbe24541cdd4e858 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Thu, 8 Sep 2011 10:12:20 +0200 Subject: [PATCH 2/2] light notifications menu icon on new notifs --- js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 328b1f231..452cb8451 100644 --- a/js/main.js +++ b/js/main.js @@ -97,9 +97,10 @@ var eNotif = $(data).find('notif') notif = eNotif.attr('count'); if (notif>0){ + $("#nav-notifications-linkmenu").addClass("on"); nnm = $("#nav-notifications-menu"); nnm.html(""); - nnm.attr('popup','true'); + //nnm.attr('popup','true'); eNotif.children("note").each(function(){ e = $(this); text = e.text().format(""+e.attr('name')+""); @@ -107,6 +108,7 @@ nnm.append(html); }); } else { + $("#nav-notifications-linkmenu").removeClass("on"); $("#nav-notifications-menu").html(notifications_empty); } if(notif == 0) { notif = ''; $('#notify-update').removeClass('show') } else { $('#notify-update').addClass('show') }