This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
call_log.css
306 lines (246 loc) · 6.2 KB
/
call_log.css
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
/* Overriding BB styles for headers */
section[role="region"] > header:first-child .icon {
pointer-events: auto;
}
/* Overriding BB styles for edit mode */
form[role="dialog"][data-type="edit"] header .icon {
pointer-events: auto;
}
form[role="dialog"][data-type="edit"] header {
transform: translateY(-110%);
}
form[role="dialog"][data-type="edit"] > menu {
transform: translateY(110%);
}
#call-log-container[data-type="list"] section {
background: #fff;
}
#sticky {
position: absolute;
/* The sticky element is positioned at the beginning of the list. */
top: 0;
/* The width is not 100% so the scrollbar is visible. */
width: calc(100% - 1.5rem);
/* The height needs to be kept in sync with the header height. */
height: 3.1rem;
/* The sticky element needs to be above the list. */
z-index: 2;
/* Those style will affect the bagroundImage: -moz-element. */
background-repeat: no-repeat;
background-position: 1.5rem 0;
}
#call-log-container[data-type="list"] header {
background: #fff;
}
/* Override Building Block styles for lists */
#call-log-container[data-type="list"] {
padding: 0;
}
#call-log-container[data-type="list"] header {
margin: 0 1.5rem;
}
#call-log-container[data-type="list"] ol {
padding: 0 1.5rem;
/* Bug 967880 - [Call Log] Background doesn't scroll with the logs causing
* expensive over-invalidation.
*/
background-color: white;
}
#call-log-container[data-type="list"] li {
height: 7rem;
padding: 0.5rem 0 0;
-moz-box-sizing: border-box;
}
#call-log-container[data-type="list"] li a p {
line-height: 1.9rem;
}
#call-log-container[data-type="list"] li a p:nth-last-of-type(3) {
padding: 0;
line-height: 2rem;
}
.call-additional-info {
text-transform: capitalize;
}
button[disabled], input[type="text"][disabled],
a[disabled][role="button"], a[disabled][role="button"] * {
pointer-events: none;
}
input[type="text"][disabled], a[disabled][role="button"] {
opacity: 0.3;
}
li, ol, ul {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
ol, ul {
list-style: none;
}
.hide {
display: none;
}
.view-body {
background : white;
color: black;
height: -moz-calc(100% - 9.1rem);
position: absolute;
overflow: hidden;
width: 100%;
}
.view-body-inner {
height: 100%;
overflow: auto;
}
.view-body-inner ol {
overflow: hidden;
}
.icon-container {
float: left;
height: 100%;
width: 5rem;
}
.icon-incoming,
.icon-outgoing,
.icon-missed {
background-size: 3rem;
}
/* .first-sim and .second-sim classes should only affect the style
* if the .dual-sim class is set on the container */
[data-type="list"] aside.icon.icon-incoming {
background-image: url('images/CallLog_30x30_incoming.png');
}
[data-type="list"].dual-sim aside.icon.icon-incoming.first-sim {
background-image: url('images/CallLog_30x30_incoming-first-sim.png');
}
[data-type="list"].dual-sim aside.icon.icon-incoming.second-sim {
background-image: url('images/CallLog_30x30_incoming-second-sim.png');
}
[data-type="list"] aside.icon.icon-outgoing {
background-image: url('images/CallLog_30x30_outgoing.png');
}
[data-type="list"].dual-sim aside.icon.icon-outgoing.first-sim {
background-image: url('images/CallLog_30x30_outgoing-first-sim.png');
}
[data-type="list"].dual-sim aside.icon.icon-outgoing.second-sim {
background-image: url('images/CallLog_30x30_outgoing-second-sim.png');
}
[data-type="list"] aside.icon.icon-missed {
background-image: url('images/CallLog_30x30_missed_grey.png');
}
[data-type="list"].dual-sim aside.icon.icon-missed.first-sim {
background-image: url('images/CallLog_30x30_missed_grey-first-sim.png');
}
[data-type="list"].dual-sim aside.icon.icon-missed.second-sim {
background-image: url('images/CallLog_30x30_missed_grey-second-sim.png');
}
[data-type="list"] .missed-call.highlighted aside.icon.icon-missed {
background-image: url('images/CallLog_30x30_missed.png');
}
[data-type="list"].dual-sim .missed-call.highlighted aside.icon.icon-missed.first-sim {
background-image: url('images/CallLog_30x30_missed-first-sim.png');
}
[data-type="list"].dual-sim .missed-call.highlighted aside.icon.icon-missed.second-sim {
background-image: url('images/CallLog_30x30_missed-first-sim.png');
}
.log-item * {
pointer-events: none;
}
.log-item .pack-end {
position: absolute;
right: 0;
}
.log-item:not(.hasPhoto) .pack-end {
display: none;
}
.log-item .primary-info {
text-overflow: clip;
}
.log-item a > p {
width: calc(100% - 9.5rem);
}
.log-item:not(.hasPhoto) a > p {
width: calc(100% - 3.5rem);
}
.log-item .primary-info span {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.log-item .call-log-contact-photo {
pointer-events: auto;
}
.log-item.missed-call.highlighted .call-time {
color: #b90000 !important;
}
.log-item .pack-checkbox {
visibility: hidden;
}
/* Edit mode state */
.recents-edit form[role="dialog"][data-type="edit"] header,
.recents-edit form[role="dialog"][data-type="edit"] > menu {
transform: translateY(0);
}
.recents-edit .pack-checkbox.call-log-selection {
transform: translateX(4rem);
}
.recents-edit .log-item a {
transform: translateX(3rem);
visibility: hidden;
}
.recents-edit .log-item a > aside,
.recents-edit .log-item a > p {
visibility: visible;
}
.recents-edit .log-item a > p {
width: calc(100% - 6.5rem);
}
.recents-edit .pack-end {
display: none
}
.recents-edit .call-log-contact-photo {
pointer-events: none;
}
.recents-edit .log-item .pack-checkbox {
pointer-events: auto;
visibility: visible;
}
/*
No result container
*/
#no-result-container {
background: url('images/ComLog_200x200_clock.png') fixed no-repeat center / 20rem;
height: 100%;
}
#no-result-message {
position: relative;
top: 11.5rem;
border-top: .1rem solid rgba(96,96,96,.5);
padding: 1rem 0.5rem;
}
#no-result-message > p {
text-align: left;
line-height: 3rem;
font-size: 2.2rem;
font-weight: 300;
color: #606060;
margin: 0;
}
.recents-edit #edit-mode {
display: block;
}
.recents-edit .recents-filter-container {
display: none;
}
.recents-edit .view-body {
height: calc(100% - 7.6rem);
}
.filter .log-item:not(.missed-call) {
display: none;
}
.filter .groupFiltered {
display: none;
}