diff options
Diffstat (limited to 'recipes/nextcloud-calendar/service.css')
-rw-r--r-- | recipes/nextcloud-calendar/service.css | 56 |
1 files changed, 31 insertions, 25 deletions
diff --git a/recipes/nextcloud-calendar/service.css b/recipes/nextcloud-calendar/service.css index 6e04c63..000a634 100644 --- a/recipes/nextcloud-calendar/service.css +++ b/recipes/nextcloud-calendar/service.css | |||
@@ -1,41 +1,47 @@ | |||
1 | /* Hide all app links and contacts menu link in the top menu except for | 1 | /* |
2 | Calendar */ | 2 | With `/* Legacy [asterisk]/` are marked those selectors that were working for |
3 | #appmenu li:not([data-id="calendar"]), | 3 | some Nextcloud version before 27 (24 or 25). |
4 | #contactsmenu { | 4 | */ |
5 | |||
6 | /*Hide all interactive elements that are not related to the Calendar. */ | ||
7 | /* App links and contacts menu link in the top menu except for Calendar */ | ||
8 | #appmenu li:not([data-id="calendar"]), /* Legacy */ | ||
9 | .app-menu-main > .app-menu-entry:not([data-app-id="calendar"]), /* Nextcloud 27 */ | ||
10 | #unified-search, | ||
11 | #contactsmenu, | ||
12 | /* All settings options, except the option to log out */ | ||
13 | #settings #expanddiv li:not([data-id='logout']), /* Legacy */ | ||
14 | #header-menu-user-menu li:not([id='logout']), /* Nextcloud 27 */ | ||
15 | /* Notifications that are not related to Calendar */ | ||
16 | .notifications .notification-wrapper .notification:not([object_type="dav"]), /* Legacy */ | ||
17 | .notification-container .notification-wrapper .notification:not([data-app="dav"]), /* Nextcloud 27 */ | ||
18 | /* "Dismiss all notifications" as this action will dismiss also hidden | ||
19 | notifications as this behaviour might not be desirable. */ | ||
20 | .notification-wrapper .dismiss-all, /* Legacy */ | ||
21 | .notification-container .dismiss-all /* Nextcloud 27 */ { | ||
5 | display: none; | 22 | display: none; |
6 | } | 23 | } |
7 | 24 | ||
8 | /* Change the cursor to default for top menu Nextcloud home and Calendar | 25 | /* Change the cursor to default for top menu Nextcloud home and Calendar |
9 | links and disable them */ | 26 | links and disable them */ |
10 | #nextcloud, | 27 | #nextcloud, |
11 | #appmenu li[data-id="calendar"] a { | 28 | #appmenu li[data-id="calendar"] a, /* Legacy */ |
12 | cursor:default; | 29 | .app-menu-main li[data-app-id="calendar"] a /* Nextcloud 27 */ { |
30 | cursor: default; | ||
13 | pointer-events: none; | 31 | pointer-events: none; |
14 | } | 32 | } |
15 | 33 | ||
16 | /* Hide all settings options, except the option to log out */ | ||
17 | #settings #expanddiv li:not([data-id='logout']) { | ||
18 | display: none; | ||
19 | } | ||
20 | |||
21 | /* Fix the margin of the dropdown */ | 34 | /* Fix the margin of the dropdown */ |
22 | #settings #expanddiv, | 35 | #settings #expanddiv, /* Legacy */ |
23 | #settings #expanddiv > ul { | 36 | #settings #expanddiv > ul, /* Legacy */ |
24 | min-height: 0; | 37 | #header-menu-notifications, /* Nextcloud 27 */ |
38 | #header-menu-notifications > .header-menu__content, /* Nextcloud 27 */ | ||
39 | #header-menu-user-menu, /* Nextcloud 27 */ | ||
40 | #header-menu-user-menu > .header-menu__content /* Nextcloud 27 */ { | ||
41 | min-height: auto; | ||
25 | } | 42 | } |
26 | 43 | ||
27 | /* Hide "More" link in the top menu */ | 44 | /* Hide "More" link in the top menu */ |
28 | #more-apps { | 45 | #more-apps { |
29 | display: none !important; | 46 | display: none !important; |
30 | } | 47 | } |
31 | |||
32 | /* Hide notifications that are not related to calendar */ | ||
33 | .notifications .notification-wrapper .notification:not([object_type="dav"]) { | ||
34 | display: none; | ||
35 | } | ||
36 | |||
37 | /* Hide "Dismiss all notifications" as this action will dismiss also hidden | ||
38 | notifications */ | ||
39 | .notification-wrapper .dismiss-all { | ||
40 | display: none; | ||
41 | } | ||