From 08a7af9ef2bb0030fd1876674d53b719e91f13e2 Mon Sep 17 00:00:00 2001 From: Carlos SolĂ­s Date: Tue, 21 Jun 2022 09:39:54 -0600 Subject: Add fixes for Nextcloud-related webapps (#66) --- recipes/nextcloud-news/service.css | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'recipes/nextcloud-news/service.css') diff --git a/recipes/nextcloud-news/service.css b/recipes/nextcloud-news/service.css index ea90cc9..1a87a84 100644 --- a/recipes/nextcloud-news/service.css +++ b/recipes/nextcloud-news/service.css @@ -5,16 +5,37 @@ News */ display: none; } -/* Change the cursor to the default for Nextcloud home, News and settings +/* Change the cursor to the default for Nextcloud home and News links in the top menu and disable them */ #nextcloud, -#appmenu li[data-id='news'] a, -#settings { +#appmenu li[data-id='news'] a { cursor: default; pointer-events: none; } +/* Hide all settings options, except the option to log out */ +#settings #expanddiv li:not([data-id='logout']) { + display: none; +} + +/* Fix the margin of the dropdown */ +#settings #expanddiv, +#settings #expanddiv > ul { + min-height: 0; +} + /* Hide "More" link in the top menu */ #more-apps { display: none !important; } + +/* Hide notifications that are not related to News */ +.notifications .notification-wrapper .notification:not([object_type="news"]) { + display: none; +} + +/* Hide "Dismiss all notifications" as this action will dismiss also hidden +notifications */ +.notification-wrapper .dismiss-all { + display: none; +} -- cgit v1.2.3-70-g09d2