From cef0c2ebb2b16b006eca7dce8ec0b1a95d916dba Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 19 Oct 2020 08:44:44 +0000 Subject: highlight events for today in notifications and remove some redundant css --- Zotlabs/Lib/Enotify.php | 4 ++-- view/css/bootstrap-red.css | 27 --------------------------- view/theme/redbasic/css/style.css | 2 -- view/tpl/notifications_widget.tpl | 14 +++++++------- 4 files changed, 9 insertions(+), 38 deletions(-) diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php index 03a824b9b..c78325ee3 100644 --- a/Zotlabs/Lib/Enotify.php +++ b/Zotlabs/Lib/Enotify.php @@ -966,8 +966,8 @@ class Enotify { 'url' => $rr['xchan_url'], 'photo' => $rr['xchan_photo_s'], 'when' => $when, - 'hclass' => ('notify-unseen'), - 'message' => t('posted an event') + 'hclass' => (($today) ? 'notify-unseen bg-warning' : 'notify-unseen'), + 'message' => t('created an event') ]; return $x; diff --git a/view/css/bootstrap-red.css b/view/css/bootstrap-red.css index 984a5b4f9..122bb5904 100644 --- a/view/css/bootstrap-red.css +++ b/view/css/bootstrap-red.css @@ -11,29 +11,6 @@ nav .dropdown-menu { min-width: 16rem; } -@media screen and (min-width: 992px) { - nav .badge { - top: 0px; - left: 0px; - line-height: 0.75; - } -} - -@media screen and (max-width: 992px) { - .navbar { - padding: .5rem 7px; - } - - nav .badge { - top: 0.5rem; - left: 1.5rem; - } -} - -.widget .badge { - font-size: 100%; -} - .nav-item.nav-item-hack { height: 2.3rem; } @@ -77,10 +54,6 @@ nav .dropdown-menu { } /* nav overrides end */ -.list-group-item:hover { - text-decoration: none; -} - label { font-weight: bold; } diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 08a6e9d19..545e610b5 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -799,8 +799,6 @@ div.jGrowl div.jGrowl-notification { } .contactname { - font-weight: bold; - color: $font_colour; display: block; overflow: hidden; text-overflow: ellipsis; diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index 3844ae2bf..70b847ee5 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -142,15 +142,15 @@ {{$no_notifications}}...