aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nextcloud-talk/service.css
blob: e616dd669444f2b7cfbd34d06c7f8a865a136d0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
With `/* Legacy [asterisk]/` are marked those selectors that were working for
some Nextcloud version before 27 (24 or 25).
*/

/*Hide all interactive elements that are not related to the Talk. */
/* App links and contacts menu link in the top menu except for Talk. */
#appmenu li:not([data-id="spreed"]),  /* Legacy */
.app-menu .app-menu-main > .app-menu-entry:not([data-app-id="spreed"]),
#unified-search,
#contactsmenu,
/* All settings options, except the option to log out */
#settings #expanddiv li:not([data-id='logout']),  /* Legacy */
#header-menu-user-menu li:not([id='logout']),  /* Nextcloud 27 */
/* Hide notifications that are not related to Talk */
.notification-container .notification-wrapper .notification:not([data-app="spreed"]),
/* "Dismiss all notifications" as this action will dismiss also hidden
notifications as this behaviour might not be desirable. */
.notification-wrapper .dismiss-all, /* Legacy */
#header-menu-notifications .notification-container .dismiss-all  /* Nextcloud 27 */ {
  display: none;
}

/* Change cursor to the default pointer for top menu Nextcloud home and Talk
links and disable them */
#nextcloud,
#appmenu li[data-id="spreed"] a,  /* Legacy */
.app-menu-main li[data-app-id="spreed"] a  /* Nextcloud 27 */ {
  cursor: default;
  pointer-events: none;
}

/* Fix the margin of the dropdown */
#settings #expanddiv,  /* Legacy */
#settings #expanddiv > ul,  /* Legacy */
#header-menu-user-menu,  /* Nextcloud 27 */
#header-menu-user-menu > .header-menu__content,  /* Nextcloud 27 */
#header-menu-notifications,  /* Nextcloud 27 */
#header-menu-notifications > .header-menu__content  /* Nextcloud 27 */ {
  min-height: auto;
}

/* Hide "More" link in the top menu */
#more-apps {
  display: none !important;
}

/* Hide notifications that are not related to Talk */
.notifications .notification-wrapper .notification  /* Legacy */ {
  display: none;
}
.notifications .notification-wrapper .notification[object_type="chat"],  /* Legacy */
.notifications .notification-wrapper .notification[object_type="room"]  /* Legacy */  {
  display: initial;
}