summaryrefslogtreecommitdiffstats
path: root/comm/mail/themes/shared/mail/abContactsPanel.css
blob: 269ee3d110919a7278ff6fd88b54e0ce8568ba4f (plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* ===== sidebarPanel.css ===============================================
  == Styles for the Address Book sidebar panel.
  ======================================================================= */

@import url("chrome://messenger/skin/messenger.css");

#abContactsPanel:not([lwt-tree]) {
  --button-background: rgba(128, 128, 128, .15);
  --button-background-hover: rgba(128, 128, 128, .25);
  --button-background-active: rgba(128, 128, 128, .35);
  --box-text-color: MenuText;
  --box-background-color: Menu;
  --box-border-color: ThreeDShadow;
  --field-border-color: rgba(128, 128, 128, .6);
}

#abContactsPanel {
  appearance: none;
  background-color: -moz-Dialog;
  background-image: none !important;
  color: -moz-dialogText;
  text-shadow: none;
}

#abContactsPanel[lwt-tree] {
  background-color: var(--toolbar-bgcolor);
  color: var(--lwt-text-color);
}

#abContextMenuButton {
  min-width: 11px;
  list-style-image: url("chrome://messenger/skin/addressbook/icons/menu.svg");
  -moz-context-properties: fill;
  fill: currentColor;
}

#abContextMenuButton:not(:hover) {
  background: transparent;
  border-color: transparent;
}

#abContextMenuButton:hover:focus-visible {
  outline-style: none;
}

#abContextMenuButton > .toolbarbutton-icon {
  width: 11px;
  height: 11px;
}

#abContextMenuButton > .toolbarbutton-text {
  display: none;
}

#sidebarAbContextMenu {
  /* Compensate the arrow-scrollbox padding. */
  margin: -4px;
}

#addressbookList:not(:-moz-focusring) {
  border: 1px solid var(--field-border-color);
}

#addressbookList:not(:hover,[open="true"]) {
  background: transparent;
}

#abResultsTree {
  border-inline-end: none !important;
}

/* Hide the twisty gap. */
treechildren::-moz-tree-twisty {
  width: 0;
  padding-inline: 2px;
}

treechildren::-moz-tree-image(GeneratedName) {
  margin-inline-end: 2px;
  list-style-image: var(--icon-contact);
  -moz-context-properties: fill, stroke;
  fill: color-mix(in srgb, currentColor 20%, transparent);
  stroke: currentColor;
  opacity: 0.85;
}

treechildren::-moz-tree-image(GeneratedName, MailList) {
  list-style-image: var(--icon-user-list);
}