Repository navigation
Expand file tree
/
Copy pathpopup.css
More file actions
333 lines (314 loc) · 14.2 KB
/
Copy pathpopup.css
File metadata and controls
333 lines (314 loc) · 14.2 KB
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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
:root {
color-scheme: light;
--ink: #12263f;
--muted: #526b82;
--paper: #f7f9fc;
--surface: #ffffff;
--line: #d8e1e9;
--line-strong: #b8c7d4;
--note: #ffc857;
--shadow: 0 1px 2px rgba(18, 38, 63, 0.045);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* An action popup sizes itself from its document. Do not cap its initial
width with viewport units: Chrome can start with a narrow viewport. */
html { width: 480px; }
body {
margin: 0;
width: 480px;
max-height: 600px;
overflow: auto;
background: #eff4f7;
color: var(--ink);
font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.container { padding: 16px; }
.popup-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
gap: 16px;
padding: 1px 2px;
}
.brand-block { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; }
.popup-header h1 { margin: 0; font-size: 19px; line-height: 1.08; letter-spacing: -0.02em; }
.popup-header p { margin: 1px 0 0; color: var(--muted); font-size: 13px; }
button, select, input { font: inherit; }
button { border: 0; border-radius: 8px; padding: 7px 10px; background: var(--ink); color: #fff; font-weight: 680; cursor: pointer; }
button:hover { filter: brightness(0.985); }
button.secondary { background: #e6edf3; color: var(--ink); }
button.text-button { background: transparent; color: #2b5c88; padding: 3px 4px; }
.icon-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
border: 1px solid var(--line);
background: var(--surface);
color: var(--ink);
flex: 0 0 auto;
min-width: 108px;
min-height: 44px;
padding: 8px 12px;
border-radius: 9px;
font-size: 16px;
box-shadow: var(--shadow);
}
.settings-panel,
.section,
.report-section {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 12px;
box-shadow: var(--shadow);
}
.settings-panel { display: none; padding: 11px; margin-bottom: 9px; }
.settings-panel.open { display: block; }
.section { padding: 12px; margin-bottom: 9px; }
.report-section { padding: 0; margin-bottom: 1px; overflow: hidden; }
.settings-heading,
.section-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.section h2 { font-size: 16px; line-height: 1.18; margin: 0; letter-spacing: -0.015em; }
.eyebrow { margin: 0 0 2px; color: #6b7f92; font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.coverage-text { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.quick-profiles { display: grid; gap: 6px; margin: 9px 0; }
.quick-profile { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 7px; border: 1px solid var(--line); padding: 7px; border-radius: 8px; }
.quick-profile strong { font-size: 13px; }
.quick-profile select { max-width: 105px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 8px; margin: 9px 0; }
.checkbox-label small { display: block; color: var(--muted); }
.overview-heading-row { align-items: center; }
.overview-heading-row h2 { font-size: 18px; }
.scan-state {
display: flex;
align-items: center;
gap: 7px;
margin-top: 9px;
padding: 7px 8px;
border-radius: 8px;
background: #f2f6fa;
color: #36536d;
font-size: 13px;
}
.scan-spinner {
width: 12px;
height: 12px;
flex: 0 0 auto;
border: 2px solid #bdcbd7;
border-top-color: #2b5c88;
border-radius: 50%;
animation: notandia-spin 0.8s linear infinite;
}
@keyframes notandia-spin { to { transform: rotate(360deg); } }
.filter-toolbar {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 5px;
margin-top: 10px;
}
.filter-label { margin-right: 2px; color: var(--muted); font-size: 12px; font-weight: 700; }
.signal-grid { display: contents; }
.publisher-signal-grid { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); }
.formal-signal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.signal-card {
--signal-color: #48627a;
--signal-tint: #f7f9fc;
min-width: 0;
min-height: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
padding: 5px 8px;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--surface);
color: var(--ink);
box-shadow: none;
white-space: nowrap;
transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}
.signal-card:hover { border-color: var(--signal-color); }
.signal-card:focus-visible { outline: 2px solid var(--note); outline-offset: 2px; }
.signal-card.is-active {
border-color: var(--signal-color);
background: var(--signal-tint);
box-shadow: inset 0 0 0 1px var(--signal-color);
}
.signal-card span { color: var(--ink); font-size: 13px; font-weight: 700; }
.signal-card strong { color: var(--signal-ink, var(--signal-color)); font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; }
.all-context-card { --signal-color: #48627a; --signal-tint: #eef3f7; }
.publisher-signal-card { --signal-color: #48627a; }
.status-retracted { --signal-color: #b42318; --signal-tint: #fff4f2; }
.status-concern { --signal-color: #b54708; --signal-tint: #fff7ed; }
.status-corrected { --signal-color: #175cd3; --signal-tint: #f1f5ff; }
.status-withdrawn { --signal-color: #475467; --signal-tint: #f2f4f7; }
.coverage-details { margin-top: 10px; border-top: 1px solid #e8eef3; padding-top: 8px; }
.coverage-details summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
cursor: pointer;
list-style: none;
color: #36536d;
font-size: 13px;
font-weight: 700;
}
.coverage-details summary::-webkit-details-marker { display: none; }
.coverage-details summary::after { content: "+"; color: var(--muted); }
.coverage-details[open] summary::after { content: "−"; }
.coverage-details summary span:last-child { margin-left: auto; color: var(--muted); font-weight: 550; text-align: right; }
.integrity-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 9px 0 5px; }
.integrity-progress progress { width: 100%; height: 7px; accent-color: #175cd3; }
.integrity-progress span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.coverage-provider,
.signal-disclaimer { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.signal-disclaimer { margin-top: 4px; }
.context-card { margin-top: 8px; border-radius: 9px; background: var(--paper); padding: 9px; }
.context-card strong { display: block; font-size: 13px; }
.context-card code { display: block; margin-top: 2px; color: #2d4d6a; font-size: 12px; overflow-wrap: anywhere; }
.chip-row { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--chip-color, #48627a); color: var(--chip-ink, var(--chip-color, #48627a)); background: #fff; border-radius: 999px; padding: 2px 7px; font-weight: 700; font-size: 13px; }
.chip.integrity { border-color: var(--chip-color, #b42318); color: var(--chip-ink, var(--chip-color, #b42318)); }
.chip.integrity.primary-integrity { border-width: 2px; padding: 1px 6px; }
.results-heading-row { flex-direction: column; align-items: stretch; }
.context-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 100%; }
.context-controls label { min-width: 0; }
.context-controls select,
.report-controls select {
width: 100%;
min-width: 0;
border: 1px solid var(--line);
border-radius: 8px;
padding: 6px 7px;
background: #fff;
color: var(--ink);
font-size: 13px;
}
.context-list {
list-style: none;
padding: 0;
margin: 9px 0 0;
overflow: hidden;
border: 1px solid var(--line);
border-radius: 10px;
background: #fff;
}
.context-item {
border: 0;
border-bottom: 1px solid #e6edf3;
border-left: 3px solid transparent;
border-radius: 0;
padding: 10px;
cursor: pointer;
background: #fff;
transition: background-color 120ms ease;
}
.context-item:last-child { border-bottom: 0; }
.context-item:hover { background: #fafcfd; }
.context-item.context-item-accented { border-left-color: var(--context-accent, #48627a); background: var(--context-tint, #fff); }
.context-item:focus { outline: 2px solid var(--note); outline-offset: -2px; }
.context-item-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.context-item-heading strong { flex: 0 0 auto; font-size: 14px; line-height: 1.2; }
.context-item code { min-width: 0; max-width: 62%; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.context-item p {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
margin: 5px 0 0;
color: #2d4358;
font-size: 14px;
line-height: 1.5;
}
.placeholder { color: var(--muted); margin: 0; padding: 9px; }
.report-section summary { cursor: pointer; list-style: none; padding: 10px 12px; color: #2b5c88; font-size: 13px; font-weight: 700; }
.report-section summary::-webkit-details-marker { display: none; }
.report-section summary::after { content: "+"; float: right; color: var(--muted); }
.report-section[open] summary::after { content: "−"; }
.report-controls { padding: 0 11px 11px; border-top: 1px solid #edf1f5; }
.report-controls select { margin: 9px 0 7px; }
.report-controls button { width: 100%; }
#status { min-height: 16px; color: var(--muted); margin-top: 5px; }
@media (prefers-reduced-motion: reduce) {
.scan-spinner { animation: none; border-top-color: #bdcbd7; }
.signal-card,
.context-item { transition: none; }
}
/* Keep keyboard focus and small controls visible at the popup's natural size. */
button, select, summary { min-height: 36px; }
button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
outline: 3px solid #175cd3; outline-offset: 2px;
}
.checkbox-label input, .quick-profile input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; }
.checkbox-label small { font-size: 12px; }
.quick-profile { grid-template-columns: minmax(0, 1fr) auto auto; }
.quick-profile select { max-width: 140px; }
.context-item-heading { flex-wrap: wrap; }
.context-item code { max-width: 100%; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.pin-tip { margin-bottom: 12px; padding: 12px; border: 1px solid #b8c7d4; border-radius: 10px; background: #fff; }
.pin-tip strong { font-size: 14px; }
.pin-tip p { margin: 5px 0; color: var(--muted); font-size: 13px; }
.pin-tip button { margin-top: 4px; }
.section-heading-row > div { min-width: 0; }
.overview-heading-row > button { flex: 0 0 auto; }
.settings-heading { flex-wrap: wrap; align-items: center; }
.quick-profile select { width: 140px; min-width: 0; }
.quick-profile label { min-width: 0; overflow-wrap: anywhere; }
.pin-tip summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.pin-tip { padding: 8px 12px; }
.pin-tip summary { display: flex; align-items: center; }
.lookup-setup { margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.lookup-setup h2 { margin: 0; font-size: 17px; line-height: 1.3; }
.lookup-setup p { margin: 7px 0; font-size: 13px; }
.lookup-setup .lookup-intro { color: var(--muted); margin-bottom: 14px; }
.lookup-benefits { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lookup-benefits li { display: flex; align-items: flex-start; gap: 9px; }
.lookup-benefit-mark { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 7px; color: var(--ink); background: #edf3f8; font-weight: 800; }
.lookup-benefits strong { display: block; font-size: 13px; }
.lookup-benefits small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.lookup-setup .lookup-disclosure { color: var(--muted); font-size: 12px; margin: 14px 0 12px; }
.lookup-actions { display: grid; gap: 7px; }
#enableRecommendedChecks { width: 100%; min-height: 42px; }
.lookup-secondary-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lookup-secondary-actions button { flex: 1 1 160px; min-height: 36px; font-size: 12px; border: 1px solid var(--line); }
.lookup-data-details { margin-top: 7px; font-size: 12px; color: var(--muted); }
.lookup-data-details summary { cursor: pointer; display: list-item; line-height: 36px; }
.lookup-data-details p { font-size: 12px; }
#lookupSetupStatus:empty { display: none; }
/* Settings is a separate view, not another long panel above the results. */
.container.settings-open > .section,
.container.settings-open > .report-section,
.container.settings-open > .pin-tip { display: none; }
.quick-profile label { display: flex; align-items: center; gap: 8px; }
.quick-profile input[type="color"] { width: 44px; height: 40px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 6px; }
.quick-profile select { min-height: 40px; }
.settings-glyph { font-family: "Arial", sans-serif; font-size: 26px; line-height: 1; flex: 0 0 auto; }
/* Publisher controls remain visible without relying on the colour swatch. */
.quick-profile select,.quick-profile input[type="color"]{border:1px solid #48627a;background:#fff;color:var(--ink)}
.publisher-signal-card strong{background:#fff;border-radius:3px}
.publisher-evidence { margin-top: 10px; font-size: 12px; line-height: 1.5; }
.publisher-evidence summary { cursor: pointer; color: var(--ink); }
.publisher-evidence summary { overflow-wrap: anywhere; }
.publisher-signal-card { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.context-list .publisher-evidence p { display: block; overflow: visible; -webkit-line-clamp: unset; max-height: none; }
.publisher-evidence a { display: block; margin-top: 6px; overflow-wrap: anywhere; color: #145b9e; }
.publisher-warning-sources a { color: #145b9e; overflow-wrap: anywhere; }
.publisher-warning-sources a:focus-visible { outline: 3px solid #175cd3; outline-offset: 2px; }
.publisher-evidence summary:focus-visible, .publisher-evidence a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }