summaryrefslogtreecommitdiffstats
path: root/comm/calendar/base/themes/common/calendar-attendees.css
blob: 15ad0d9691f687b74af06c50f96ef0ed4a53b677 (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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
/* 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/. */

@namespace html url("http://www.w3.org/1999/xhtml");

/* this is for attendee and organizer decoration in summary and event dialog */
html|input.textbox-addressingWidget {
  width: 100%;
  background-color: transparent !important;
  flex: 1;
}
html|input.textbox-addressingWidget:disabled {
  color: inherit;
  opacity: 0.5;
}

#outer {
  max-height: calc(100vh - 210px);
}

.attendee-list-container {
  width: 350px;
}

.item-attendees-list-container {
  flex: 1 1 100px;
  appearance: auto;
  -moz-default-appearance: listbox;
  margin: 2px 4px 0;
  overflow-y: auto;
}

:root[lwt-tree] .item-attendees-list-container {
  appearance: none;
  background-color: var(--field-background-color);
  color: var(--field-text-color);
  border: 1px solid var(--field-border-color);
}

.attendee-list {
  display: block;
  padding: 0;
  margin: 0;
}

.attendee-list-item {
  display: contents;
}

.attendee-label {
  padding: 2px;
  display: flex;
  align-items: baseline;
  user-select: text;
}

.attendee-list .attendee-label:focus {
  background-color: var(--selected-item-color);
  color: var(--selected-item-text-color);
}

.itip-icon {
  flex: 0 0 auto;
}

.attendee-name {
  margin: 0 3px;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* this is for the itip icon setup in calendar */

.itip-icon {
  --itip-icon-partstat: -16px -16px; /* default: NEEDS-ACTION */
  --itip-icon-role: 0px; /* default: REQ-PARTICIPANT */
  --itip-icon-usertype: -32px; /* default: INDIVIDUAL */
  width: 16px;
  height: 16px;
  background-image: url(chrome://calendar/skin/shared/calendar-itip-icons.svg),
                    url(chrome://calendar/skin/shared/calendar-itip-icons.svg);
  background-position: var(--itip-icon-partstat), var(--itip-icon-usertype) var(--itip-icon-role);
}
.itip-icon[partstat="ACCEPTED"] {
  --itip-icon-partstat: 0px 0px;
}
.itip-icon[partstat="DECLINED"] {
  --itip-icon-partstat: 0px -16px;
}
.itip-icon[partstat="DELEGATED"] {
  --itip-icon-partstat: 0px -32px;
}
.itip-icon[partstat="TENTATIVE"] {
  --itip-icon-partstat: -16px 0px;
}
.itip-icon[usertype="INDIVIDUAL"] {
  --itip-icon-usertype: -32px;
}
.itip-icon[usertype="GROUP"] {
  --itip-icon-usertype: -48px;
}
.itip-icon[usertype="RESOURCE"] {
  --itip-icon-usertype: -64px;
}
.itip-icon[usertype="ROOM"] {
  --itip-icon-usertype: -80px;
}
.itip-icon[usertype="UNKNOWN"] {
  --itip-icon-usertype: -96px;
}
.itip-icon[attendeerole="REQ-PARTICIPANT"] {
  --itip-icon-role: 0px;
}
.itip-icon[attendeerole="OPT-PARTICIPANT"] {
  --itip-icon-role: -16px;
}
.itip-icon[attendeerole="NON-PARTICIPANT"] {
  --itip-icon-role: -32px;
}
.itip-icon[attendeerole="CHAIR"] {
  --itip-icon-role: -32px;
  --itip-icon-usertype: -16px;
}

/* Autocomplete popup label formatting */

html|span.ac-emphasize-text {
  font-weight: bold;
}

/* the following will get obsolete once porting to new itip icons is complete */

.role-icon > .menu-iconic-left,
.usertype-icon > .menu-iconic-left {
  visibility: inherit;
}

.role-icon {
  margin: 0 3px;
  width: 21px;
  height: 16px;
  object-fit: none;
  object-position: top 0 left -138px;
}

.role-icon[disabled="true"] {
  object-position: top 0 left -138px;
}

.role-icon[attendeerole="REQ-PARTICIPANT"] {
  object-position: top 0 left -138px;
}
.role-icon[attendeerole="REQ-PARTICIPANT"][disabled="true"] {
  object-position: top 0 left -138px;
}

.role-icon[attendeerole="OPT-PARTICIPANT"] {
  object-position: top 0 left -159px;
}
.role-icon[attendeerole="OPT-PARTICIPANT"][disabled="true"] {
  object-position: top 0 left -159px;
}

.role-icon[attendeerole="CHAIR"] {
  object-position: top 0 left -180px;
}
.role-icon[attendeerole="CHAIR"][disabled="true"] {
  object-position: top 0 left -180px;
}

.role-icon[attendeerole="NON-PARTICIPANT"] {
  object-position: top 0 left -201px;
}
.role-icon[attendeerole="NON-PARTICIPANT"][disabled="true"] {
  object-position: top 0 left -201px;
}

.usertype-icon {
  margin: 0 3px;
  width: 16px;
  height: 16px;
  object-fit: none;
  object-position: top 0 left 0;
}

.usertype-icon[usertype="INDIVIDUAL"] {
  object-position: top 0 left 0;
}
.usertype-icon[disabled="true"],
.usertype-icon[usertype="INDIVIDUAL"][disabled="true"] {
  object-position: top -16px left 0;
}

.usertype-icon[usertype="GROUP"] {
  object-position: top 0 left -16px;
}
.usertype-icon[usertype="GROUP"][disabled="true"] {
  object-position: top -16px left -16px;
}

.usertype-icon[usertype="RESOURCE"] {
  object-position: top 0 left -32px;
}
.usertype-icon[usertype="RESOURCE"][disabled="true"] {
  object-position: top -16px left -32px;
}

.usertype-icon[usertype="ROOM"] {
  object-position: top 0 left -48px;
}
.usertype-icon[usertype="ROOM"][disabled="true"] {
  object-position: top -16px left -48px;
}