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-cospend/service.css | 39 ++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) (limited to 'recipes/nextcloud-cospend/service.css') diff --git a/recipes/nextcloud-cospend/service.css b/recipes/nextcloud-cospend/service.css index 764531b..85171b0 100644 --- a/recipes/nextcloud-cospend/service.css +++ b/recipes/nextcloud-cospend/service.css @@ -1,12 +1,41 @@ /* Hide all app links and contacts menu link in the top menu except for Cospend */ -#appmenu li:not([data-id="cospend"]), #contactsmenu {display: none;} +#appmenu li:not([data-id='cospend']), +#contactsmenu { + display: none; +} -/* Change the cursor to the default for Nextcloud home, Cospend and settings +/* Change the cursor to the default for Nextcloud home and Cospend links in the top menu and disable them */ -#nextcloud, #appmenu li[data-id="cospend"] a, #settings { - cursor:default; pointer-events: none; +#nextcloud, +#appmenu li[data-id='cospend'] 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;} +#more-apps { + display: none !important; +} + +/* Hide notifications that are not related to Cospend */ +.notifications .notification-wrapper .notification:not([object_type="cospend"]) { + display: none; +} + +/* Hide "Dismiss all notifications" as this action will dismiss also hidden +notifications */ +.notification-wrapper .dismiss-all { + display: none; +} -- cgit v1.2.3-54-g00ecf