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
/
report_view.css
183 lines (145 loc) · 3.71 KB
/
report_view.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
/* Message information page for report details*/
.report-view {
display: flex;
flex-direction: column;
background-color: #fff;
}
.report-view > .description {
padding-top: 2rem;
-moz-padding-end: 1.5rem;
padding-bottom: 3rem;
-moz-padding-start: 3rem;
}
.report-view p,
.report-view span {
font-size: 1.5rem;
line-height: 1rem;
color: #858585;
}
.report-view p {
padding-top: 1.5rem;
}
.report-view .description > .type {
padding-top: 0;
font-size: 1.6rem;
color: #ff4e00;
}
.report-view .description .detail {
color: #333;
}
.report-view .description > .type[data-l10n-id="message-type-sms"] {
color: #000;
}
/* Default layout (sent message) */
.report-view .received-block,
.report-view[data-delivery="error"] .sent-title,
.report-view[data-delivery="sending"] .sent-timestamp {
display: none;
}
/* Layout for received message */
.report-view[data-delivery="received"] .received-block,
.report-view[data-delivery="not-downloaded"] .received-block {
display: block;
}
/* Hide sent timestamp label if we don't have valid value to display */
.report-view.no-valid-sent-timestamp .sent-block {
display: none;
}
.report-view .contact-title {
color: #008787;
font-size: 1.6rem;
-moz-padding-start: 3rem;
}
.report-view > ul.contact-list {
/* Showing 4 complete contacts and part of the contact name if list
contains more than 4 contacts */
position: static;
margin-top: 0.5rem;
flex-grow: 1;
/* Avoid any pointer event on contact list in report view */
pointer-events: none;
}
.report-view > .contact-list > li {
height: auto;
min-height: 9rem;
padding: 1rem;
-moz-padding-end: 0;
-moz-padding-start: 1.5rem;
}
.report-view > .contact-list a {
height: auto;
}
.report-view > .contact-list > :first-child {
border-top: solid 0.1rem #e7e7e7;
}
.report-view > .contact-list p,
.report-view > .contact-list span {
font-size: 1.4rem;
line-height: 1.6rem;
}
.report-view > .contact-list .suggestion .name {
padding-top: 0;
font-size: 1.8rem;
font-weight: 500;
line-height: 2rem;
}
.report-view > .contact-list aside {
/* margin-top = (li - padding - aside) / 2 = (9rem - 2rem - 5.5rem) / 2 */
margin-top: 0.8rem;
}
.report-view > .contact-list .number {
padding-top: 0.9rem;
}
.report-view > .contact-list div {
padding-top: 0.7rem;
}
.report-view > .contact-list .name + div {
padding-top: 1rem;
}
.report-view > .contact-list div,
.report-view > .contact-list div span {
line-height: 1.4rem;
}
.contact-list p.number .phone-carrier {
color: #008787;
}
.report-view > .contact-list .icon {
float: left;
width: 1.6rem;
height: 1.6rem;
margin: -0.1rem 0 0.1rem;
-moz-margin-end: 0.7rem;
background: no-repeat center center / 1.6rem transparent;
}
.contact-list [data-delivery-status="delivered"] .icon {
background-image: url('images/icons/deliveredtick.png');
}
.contact-list [data-delivery-status="read"] .icon {
background-image: url('images/icons/message_read.png');
}
.contact-list [data-delivery-status="error"] .icon {
background-image: url('images/icons/exclamation.png');
}
.contact-list [data-delivery-status="not-applicable"],
.contact-list [data-delivery-status="pending"] .icon,
.contact-list [data-delivery-status="pending"] .timestamp,
.contact-list [data-delivery-status="error"] .timestamp,
.contact-list [data-delivery-status="rejected"] .icon,
.contact-list [data-delivery-status="rejected"] .timestamp{
display: none;
}
.report-view .resend-btn {
display: none;
width: calc(100% - 3rem);
flex-shrink: 0;
margin: 0 1.5rem 2rem;
background-color: #00caf2;
color: #fff;
}
.report-view[data-delivery="error"] .resend-btn {
display: block;
}
/* RTL modifications */
.contact-list:-moz-dir(rtl) .icon {
float: right;
}