From 6ffdd7a34e0d8bb219dfe22a4aebd9211944a58b Mon Sep 17 00:00:00 2001 From: Rosiak Date: Fri, 11 Dec 2015 16:32:53 +0100 Subject: [PATCH] Small fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Make count smaller so it’ll fit. - Change color of badge based on unread notifications or not. --- html/css/styles.css | 2 +- html/includes/print-menubar.php | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/html/css/styles.css b/html/css/styles.css index 504400d765..05d00c39c2 100644 --- a/html/css/styles.css +++ b/html/css/styles.css @@ -1773,7 +1773,7 @@ label { .badge-navbar-user{ background:red; border-radius: 40%; - font-size: 60%; + font-size: 50%; height: auto; margin: 0; padding:5px; diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php index c15444c807..5d1f217ebb 100644 --- a/html/includes/print-menubar.php +++ b/html/includes/print-menubar.php @@ -492,7 +492,11 @@ if(is_file("includes/print-menubar-custom.inc.php")) { '.($notifications['sticky_count']+$notifications['count']).''); + $style = ''; + if (empty($notifications['count']) && empty($notifications['sticky_count'])) { + $style = 'style="background-color:grey; color:white;"'; + } + echo(''.($notifications['sticky_count']+$notifications['count']).''); ?>