@plus234feed/ds 0.0.0-stage → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -2
- package/build/tokens-auto.css +68 -0
- package/build/tokens.css +283 -0
- package/build/tokens.json +1514 -0
- package/build/type.css +141 -0
- package/package.json +50 -4
- package/src/components.css +1391 -0
- package/src/fonts/LICENSE.charter.txt +10 -0
- package/src/fonts/charter_bold.woff2 +0 -0
- package/src/fonts/charter_bold_italic.woff2 +0 -0
- package/src/fonts/charter_italic.woff2 +0 -0
- package/src/fonts/charter_regular.woff2 +0 -0
- package/src/fonts.css +45 -0
- package/tokens/core.tokens.json +364 -0
- package/tokens/themes/dark.tokens.json +82 -0
|
@@ -0,0 +1,1391 @@
|
|
|
1
|
+
/* Plus234Feed design system: editorial components.
|
|
2
|
+
Plain CSS on top of tokens.css and type.css. No framework, no build step.
|
|
3
|
+
Every rule here reads a token. A raw colour or font-size in this file is a bug. */
|
|
4
|
+
|
|
5
|
+
/* --- focus -------------------------------------------------------------
|
|
6
|
+
One focus style for the whole site. The amber needs the outer ring on a
|
|
7
|
+
light page; on a dark page the outer ring recedes and the amber carries it. */
|
|
8
|
+
.p234 :focus-visible,
|
|
9
|
+
.p234-focusable:focus-visible {
|
|
10
|
+
outline: 3px solid var(--p234-color-focus);
|
|
11
|
+
outline-offset: 0;
|
|
12
|
+
box-shadow: 0 0 0 6px var(--p234-color-focus-outer);
|
|
13
|
+
border-radius: var(--p234-radius-sm);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* --- rules -------------------------------------------------------------
|
|
17
|
+
An editorial page separates with rules, not cards and shadows. */
|
|
18
|
+
.p234-rule {
|
|
19
|
+
border: 0;
|
|
20
|
+
border-top: var(--p234-border-hairline) solid var(--p234-color-rule);
|
|
21
|
+
margin: var(--p234-space-6) 0;
|
|
22
|
+
}
|
|
23
|
+
.p234-rule--section {
|
|
24
|
+
border-top-width: var(--p234-border-thick);
|
|
25
|
+
border-top-color: var(--p234-color-rule-strong);
|
|
26
|
+
}
|
|
27
|
+
.p234-rule--masthead {
|
|
28
|
+
border-top-width: var(--p234-border-heavy);
|
|
29
|
+
border-top-color: var(--p234-color-ink);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* --- kicker ------------------------------------------------------------
|
|
33
|
+
The section label above a headline. Carries the only section colour on the
|
|
34
|
+
card, which is why section colours are never backgrounds. */
|
|
35
|
+
.p234-kicker {
|
|
36
|
+
font-family: var(--p234-type-kicker-family);
|
|
37
|
+
font-size: var(--p234-type-kicker-size);
|
|
38
|
+
line-height: var(--p234-type-kicker-leading);
|
|
39
|
+
font-weight: var(--p234-type-kicker-weight);
|
|
40
|
+
letter-spacing: var(--p234-type-kicker-tracking);
|
|
41
|
+
text-transform: var(--p234-type-kicker-case);
|
|
42
|
+
color: var(--p234-color-brand);
|
|
43
|
+
display: block;
|
|
44
|
+
margin-bottom: var(--p234-space-3);
|
|
45
|
+
}
|
|
46
|
+
.p234-kicker[data-section="politics"] { color: var(--p234-color-section-politics); }
|
|
47
|
+
.p234-kicker[data-section="business"] { color: var(--p234-color-section-business); }
|
|
48
|
+
.p234-kicker[data-section="markets"] { color: var(--p234-color-section-markets); }
|
|
49
|
+
.p234-kicker[data-section="world"] { color: var(--p234-color-section-world); }
|
|
50
|
+
.p234-kicker[data-section="sport"] { color: var(--p234-color-section-sport); }
|
|
51
|
+
|
|
52
|
+
/* --- story -------------------------------------------------------------
|
|
53
|
+
One component, four densities. This replaces the 47 files that each
|
|
54
|
+
re-implement an article card. */
|
|
55
|
+
.p234-story {
|
|
56
|
+
display: block;
|
|
57
|
+
color: inherit;
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
padding-block: var(--p234-space-5);
|
|
60
|
+
border-top: var(--p234-border-hairline) solid var(--p234-color-rule);
|
|
61
|
+
}
|
|
62
|
+
.p234-story:first-child { border-top: 0; padding-top: 0; }
|
|
63
|
+
|
|
64
|
+
.p234-story__headline {
|
|
65
|
+
font-family: var(--p234-type-headline-sm-family);
|
|
66
|
+
font-size: var(--p234-type-headline-sm-size);
|
|
67
|
+
line-height: var(--p234-type-headline-sm-leading);
|
|
68
|
+
font-weight: var(--p234-type-headline-sm-weight);
|
|
69
|
+
letter-spacing: var(--p234-type-headline-sm-tracking);
|
|
70
|
+
color: var(--p234-color-ink);
|
|
71
|
+
margin: 0;
|
|
72
|
+
text-wrap: balance;
|
|
73
|
+
}
|
|
74
|
+
.p234-story:hover .p234-story__headline { text-decoration: underline; text-underline-offset: 2px; }
|
|
75
|
+
.p234-story:visited .p234-story__headline { color: var(--p234-color-link-visited); }
|
|
76
|
+
|
|
77
|
+
.p234-story__standfirst {
|
|
78
|
+
font-family: var(--p234-type-body-sm-family);
|
|
79
|
+
font-size: var(--p234-type-body-sm-size);
|
|
80
|
+
line-height: var(--p234-type-body-sm-leading);
|
|
81
|
+
color: var(--p234-color-ink-muted);
|
|
82
|
+
max-width: var(--p234-measure-narrow);
|
|
83
|
+
margin: var(--p234-space-3) 0 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.p234-story--lead .p234-story__headline {
|
|
87
|
+
font-size: var(--p234-type-display-1-size);
|
|
88
|
+
line-height: var(--p234-type-display-1-leading);
|
|
89
|
+
letter-spacing: var(--p234-type-display-1-tracking);
|
|
90
|
+
}
|
|
91
|
+
.p234-story--lead .p234-story__standfirst {
|
|
92
|
+
font-family: var(--p234-type-standfirst-family);
|
|
93
|
+
font-size: var(--p234-type-standfirst-size);
|
|
94
|
+
line-height: var(--p234-type-standfirst-leading);
|
|
95
|
+
color: var(--p234-color-ink);
|
|
96
|
+
max-width: var(--p234-measure-text);
|
|
97
|
+
}
|
|
98
|
+
.p234-story--secondary .p234-story__headline {
|
|
99
|
+
font-size: var(--p234-type-headline-size);
|
|
100
|
+
line-height: var(--p234-type-headline-leading);
|
|
101
|
+
letter-spacing: var(--p234-type-headline-tracking);
|
|
102
|
+
}
|
|
103
|
+
.p234-story--compact {
|
|
104
|
+
padding-block: var(--p234-space-4);
|
|
105
|
+
}
|
|
106
|
+
.p234-story--compact .p234-story__headline {
|
|
107
|
+
font-size: var(--p234-type-headline-xs-size);
|
|
108
|
+
line-height: var(--p234-type-headline-xs-leading);
|
|
109
|
+
}
|
|
110
|
+
.p234-story--compact .p234-story__standfirst { display: none; }
|
|
111
|
+
|
|
112
|
+
/* --- story media -------------------------------------------------------
|
|
113
|
+
Most story cards on the site carry a picture. The image is a child of the
|
|
114
|
+
story, not a separate component, so the two cannot drift apart. */
|
|
115
|
+
.p234-story__media {
|
|
116
|
+
display: block;
|
|
117
|
+
width: 100%;
|
|
118
|
+
aspect-ratio: var(--p234-figure-ratio);
|
|
119
|
+
object-fit: cover;
|
|
120
|
+
background: var(--p234-color-paper-sunk);
|
|
121
|
+
border-radius: var(--p234-radius-sm);
|
|
122
|
+
margin-bottom: var(--p234-space-4);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Card: picture on top, headline under it. The homepage grid. */
|
|
126
|
+
.p234-story--card { display: flex; flex-direction: column; }
|
|
127
|
+
|
|
128
|
+
/* Thumb: picture beside the headline, for dense lists and rails. The image
|
|
129
|
+
comes second in the markup so the headline is read first, and is pulled
|
|
130
|
+
back into place visually. */
|
|
131
|
+
.p234-story--thumb { display: grid; grid-template-columns: 1fr 5.5rem; gap: var(--p234-space-4); align-items: start; }
|
|
132
|
+
.p234-story--thumb .p234-story__media { grid-column: 2; grid-row: 1 / span 3; margin-bottom: 0; }
|
|
133
|
+
.p234-story--thumb .p234-story__standfirst { display: none; }
|
|
134
|
+
|
|
135
|
+
/* Lead with a picture: the image sits above the headline at full width. */
|
|
136
|
+
.p234-story--lead .p234-story__media { margin-bottom: var(--p234-space-5); }
|
|
137
|
+
|
|
138
|
+
/* --- avatar ------------------------------------------------------------
|
|
139
|
+
A person: a legislator, a candidate, an author. */
|
|
140
|
+
.p234-avatar {
|
|
141
|
+
display: block;
|
|
142
|
+
width: 2.75rem;
|
|
143
|
+
height: 2.75rem;
|
|
144
|
+
border-radius: var(--p234-radius-pill);
|
|
145
|
+
object-fit: cover;
|
|
146
|
+
background: var(--p234-color-paper-sunk);
|
|
147
|
+
flex-shrink: 0;
|
|
148
|
+
}
|
|
149
|
+
.p234-avatar--sm { width: 1.75rem; height: 1.75rem; }
|
|
150
|
+
.p234-avatar--lg { width: 5rem; height: 5rem; }
|
|
151
|
+
.p234-avatar--xl { width: 8rem; height: 8rem; }
|
|
152
|
+
/* Initials when there is no photograph, which is common for newer members. */
|
|
153
|
+
.p234-avatar--initials {
|
|
154
|
+
display: inline-flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
font-family: var(--p234-type-ui-family);
|
|
158
|
+
font-weight: 700;
|
|
159
|
+
color: var(--p234-color-ink-muted);
|
|
160
|
+
background: var(--p234-color-paper-sunk);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* --- logo --------------------------------------------------------------
|
|
164
|
+
A company, a team, a publisher. Square, contained, never cropped: a
|
|
165
|
+
cropped logo is a different logo. */
|
|
166
|
+
.p234-logo {
|
|
167
|
+
display: block;
|
|
168
|
+
width: 2rem;
|
|
169
|
+
height: 2rem;
|
|
170
|
+
object-fit: contain;
|
|
171
|
+
background: var(--p234-color-paper-sunk);
|
|
172
|
+
border-radius: var(--p234-radius-sm);
|
|
173
|
+
padding: 2px;
|
|
174
|
+
flex-shrink: 0;
|
|
175
|
+
}
|
|
176
|
+
.p234-logo--lg { width: 3rem; height: 3rem; }
|
|
177
|
+
|
|
178
|
+
/* --- meta and coverage -------------------------------------------------
|
|
179
|
+
Source, timestamp, and the number of outlets carrying the story. The
|
|
180
|
+
coverage count is the one thing an aggregator can say that a single
|
|
181
|
+
publisher cannot, so it is a first-class part of the card. */
|
|
182
|
+
.p234-meta {
|
|
183
|
+
font-family: var(--p234-type-meta-family);
|
|
184
|
+
font-size: var(--p234-type-meta-size);
|
|
185
|
+
line-height: var(--p234-type-meta-leading);
|
|
186
|
+
color: var(--p234-color-ink-muted);
|
|
187
|
+
display: flex;
|
|
188
|
+
flex-wrap: wrap;
|
|
189
|
+
align-items: center;
|
|
190
|
+
gap: var(--p234-space-3);
|
|
191
|
+
margin-top: var(--p234-space-3);
|
|
192
|
+
}
|
|
193
|
+
.p234-meta__dot { color: var(--p234-color-rule-strong); }
|
|
194
|
+
.p234-meta__source { font-weight: 600; color: var(--p234-color-ink); }
|
|
195
|
+
|
|
196
|
+
.p234-coverage {
|
|
197
|
+
font-family: var(--p234-type-ui-sm-family);
|
|
198
|
+
font-size: var(--p234-type-ui-sm-size);
|
|
199
|
+
font-weight: 600;
|
|
200
|
+
color: var(--p234-color-brand);
|
|
201
|
+
border: var(--p234-border-hairline) solid var(--p234-color-brand);
|
|
202
|
+
border-radius: var(--p234-radius-pill);
|
|
203
|
+
padding: 1px var(--p234-space-3);
|
|
204
|
+
white-space: nowrap;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* --- tag ---------------------------------------------------------------
|
|
208
|
+
The only pill-shaped thing in the system. */
|
|
209
|
+
.p234-tag {
|
|
210
|
+
display: inline-block;
|
|
211
|
+
font-family: var(--p234-type-ui-sm-family);
|
|
212
|
+
font-size: var(--p234-type-ui-sm-size);
|
|
213
|
+
font-weight: var(--p234-type-ui-sm-weight);
|
|
214
|
+
color: var(--p234-color-ink);
|
|
215
|
+
background: var(--p234-color-paper-sunk);
|
|
216
|
+
border-radius: var(--p234-radius-pill);
|
|
217
|
+
padding: var(--p234-space-2) var(--p234-space-4);
|
|
218
|
+
text-decoration: none;
|
|
219
|
+
}
|
|
220
|
+
.p234-tag[aria-pressed="true"] {
|
|
221
|
+
background: var(--p234-color-brand-tint);
|
|
222
|
+
box-shadow: inset 0 0 0 1px var(--p234-color-brand);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* --- button ------------------------------------------------------------ */
|
|
226
|
+
.p234-btn {
|
|
227
|
+
font-family: var(--p234-type-ui-family);
|
|
228
|
+
font-size: var(--p234-type-ui-size);
|
|
229
|
+
font-weight: 600;
|
|
230
|
+
line-height: 1;
|
|
231
|
+
padding: var(--p234-space-4) var(--p234-space-5);
|
|
232
|
+
border-radius: var(--p234-radius-md);
|
|
233
|
+
border: var(--p234-border-hairline) solid transparent;
|
|
234
|
+
background: var(--p234-color-brand);
|
|
235
|
+
color: var(--p234-color-on-brand);
|
|
236
|
+
cursor: pointer;
|
|
237
|
+
transition: background var(--p234-motion-duration-fast) var(--p234-motion-easing-standard);
|
|
238
|
+
}
|
|
239
|
+
.p234-btn:hover { background: var(--p234-color-brand-hover); }
|
|
240
|
+
.p234-btn--secondary {
|
|
241
|
+
background: transparent;
|
|
242
|
+
color: var(--p234-color-ink);
|
|
243
|
+
border-color: var(--p234-color-rule-strong);
|
|
244
|
+
}
|
|
245
|
+
.p234-btn--secondary:hover { background: var(--p234-color-paper-sunk); }
|
|
246
|
+
|
|
247
|
+
/* --- data --------------------------------------------------------------
|
|
248
|
+
Figures are sans and tabular so columns line up. Direction is never colour
|
|
249
|
+
alone: the arrow glyph carries it for anyone who cannot separate the hues. */
|
|
250
|
+
.p234-tile {
|
|
251
|
+
border-top: var(--p234-border-thick) solid var(--p234-color-ink);
|
|
252
|
+
padding-top: var(--p234-space-4);
|
|
253
|
+
}
|
|
254
|
+
.p234-tile__label {
|
|
255
|
+
font-family: var(--p234-type-meta-family);
|
|
256
|
+
font-size: var(--p234-type-meta-size);
|
|
257
|
+
color: var(--p234-color-ink-muted);
|
|
258
|
+
display: block;
|
|
259
|
+
}
|
|
260
|
+
.p234-tile__figure {
|
|
261
|
+
font-family: var(--p234-type-data-lg-family);
|
|
262
|
+
font-size: var(--p234-type-data-lg-size);
|
|
263
|
+
line-height: var(--p234-type-data-lg-leading);
|
|
264
|
+
font-weight: var(--p234-type-data-lg-weight);
|
|
265
|
+
letter-spacing: var(--p234-type-data-lg-tracking);
|
|
266
|
+
font-variant-numeric: var(--p234-type-data-lg-numeric);
|
|
267
|
+
color: var(--p234-color-ink);
|
|
268
|
+
display: block;
|
|
269
|
+
margin-top: var(--p234-space-2);
|
|
270
|
+
}
|
|
271
|
+
.p234-delta {
|
|
272
|
+
font-family: var(--p234-type-data-sm-family);
|
|
273
|
+
font-size: var(--p234-type-data-sm-size);
|
|
274
|
+
font-weight: var(--p234-type-data-sm-weight);
|
|
275
|
+
font-variant-numeric: var(--p234-type-data-sm-numeric);
|
|
276
|
+
color: var(--p234-color-data-flat);
|
|
277
|
+
}
|
|
278
|
+
.p234-delta[data-direction="up"] { color: var(--p234-color-data-up); }
|
|
279
|
+
.p234-delta[data-direction="down"] { color: var(--p234-color-data-down); }
|
|
280
|
+
.p234-delta[data-direction="up"]::before { content: "\25B2 "; }
|
|
281
|
+
.p234-delta[data-direction="down"]::before { content: "\25BC "; }
|
|
282
|
+
|
|
283
|
+
.p234-table {
|
|
284
|
+
width: 100%;
|
|
285
|
+
border-collapse: collapse;
|
|
286
|
+
font-family: var(--p234-type-data-family);
|
|
287
|
+
font-size: var(--p234-type-data-sm-size);
|
|
288
|
+
font-variant-numeric: tabular-nums;
|
|
289
|
+
}
|
|
290
|
+
.p234-table th {
|
|
291
|
+
font-family: var(--p234-type-ui-sm-family);
|
|
292
|
+
font-size: var(--p234-type-ui-sm-size);
|
|
293
|
+
font-weight: 600;
|
|
294
|
+
text-align: left;
|
|
295
|
+
color: var(--p234-color-ink-muted);
|
|
296
|
+
padding: var(--p234-space-3) var(--p234-space-4);
|
|
297
|
+
border-bottom: var(--p234-border-thick) solid var(--p234-color-ink);
|
|
298
|
+
}
|
|
299
|
+
.p234-table td {
|
|
300
|
+
padding: var(--p234-space-3) var(--p234-space-4);
|
|
301
|
+
border-bottom: var(--p234-border-hairline) solid var(--p234-color-rule);
|
|
302
|
+
color: var(--p234-color-ink);
|
|
303
|
+
}
|
|
304
|
+
.p234-table td:not(:first-child),
|
|
305
|
+
.p234-table th:not(:first-child) { text-align: right; }
|
|
306
|
+
|
|
307
|
+
/* --- prose -------------------------------------------------------------
|
|
308
|
+
The article body. Capped at a measure because a full-width line of 18px
|
|
309
|
+
serif is unreadable, which is most of what "looks like a dashboard" means. */
|
|
310
|
+
.p234-prose {
|
|
311
|
+
font-family: var(--p234-type-body-family);
|
|
312
|
+
font-size: var(--p234-type-body-size);
|
|
313
|
+
line-height: var(--p234-type-body-leading);
|
|
314
|
+
color: var(--p234-color-ink);
|
|
315
|
+
max-width: var(--p234-measure-text);
|
|
316
|
+
}
|
|
317
|
+
.p234-prose > * + * { margin-top: var(--p234-space-5); }
|
|
318
|
+
.p234-prose a { color: var(--p234-color-link); text-underline-offset: 2px; }
|
|
319
|
+
.p234-prose a:visited { color: var(--p234-color-link-visited); }
|
|
320
|
+
.p234-prose blockquote {
|
|
321
|
+
font-family: var(--p234-type-quote-family);
|
|
322
|
+
font-size: var(--p234-type-quote-size);
|
|
323
|
+
line-height: var(--p234-type-quote-leading);
|
|
324
|
+
letter-spacing: var(--p234-type-quote-tracking);
|
|
325
|
+
border-left: var(--p234-border-heavy) solid var(--p234-color-brand);
|
|
326
|
+
padding-left: var(--p234-space-5);
|
|
327
|
+
margin-inline: 0;
|
|
328
|
+
color: var(--p234-color-ink);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* --- ad slot -----------------------------------------------------------
|
|
332
|
+
Declared, labelled and bounded. The article template allows two of these,
|
|
333
|
+
total. The count is a design decision, not an inventory decision: at six
|
|
334
|
+
plus a sticky, the page reads as an ad wrapper and the reader leaves. */
|
|
335
|
+
.p234-adslot {
|
|
336
|
+
background: var(--p234-color-paper-sunk);
|
|
337
|
+
border: var(--p234-border-hairline) dashed var(--p234-color-rule-strong);
|
|
338
|
+
border-radius: var(--p234-radius-sm);
|
|
339
|
+
padding: var(--p234-space-5);
|
|
340
|
+
text-align: center;
|
|
341
|
+
max-width: var(--p234-measure-text);
|
|
342
|
+
}
|
|
343
|
+
.p234-adslot::before {
|
|
344
|
+
content: "Advertisement";
|
|
345
|
+
display: block;
|
|
346
|
+
font-family: var(--p234-type-caption-family);
|
|
347
|
+
font-size: var(--p234-type-caption-size);
|
|
348
|
+
letter-spacing: 0.06em;
|
|
349
|
+
text-transform: uppercase;
|
|
350
|
+
color: var(--p234-color-ink-subtle);
|
|
351
|
+
margin-bottom: var(--p234-space-3);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/* --- next step ---------------------------------------------------------
|
|
355
|
+
The module the GA4 numbers say is missing: 114 seconds on the page, then
|
|
356
|
+
1.18 pages per session. A reader who arrived on a visa story wants the next
|
|
357
|
+
visa story, not the general feed. */
|
|
358
|
+
.p234-nextstep {
|
|
359
|
+
border-top: var(--p234-border-thick) solid var(--p234-color-ink);
|
|
360
|
+
padding-top: var(--p234-space-4);
|
|
361
|
+
max-width: var(--p234-measure-text);
|
|
362
|
+
}
|
|
363
|
+
.p234-nextstep__title {
|
|
364
|
+
font-family: var(--p234-type-kicker-family);
|
|
365
|
+
font-size: var(--p234-type-kicker-size);
|
|
366
|
+
font-weight: var(--p234-type-kicker-weight);
|
|
367
|
+
letter-spacing: var(--p234-type-kicker-tracking);
|
|
368
|
+
text-transform: var(--p234-type-kicker-case);
|
|
369
|
+
color: var(--p234-color-ink-muted);
|
|
370
|
+
margin: 0 0 var(--p234-space-4);
|
|
371
|
+
}
|
|
372
|
+
.p234-nextstep ol { margin: 0; padding-left: var(--p234-space-6); }
|
|
373
|
+
.p234-nextstep li { margin-bottom: var(--p234-space-4); }
|
|
374
|
+
.p234-nextstep li::marker {
|
|
375
|
+
font-family: var(--p234-type-ui-sm-family);
|
|
376
|
+
font-weight: 700;
|
|
377
|
+
color: var(--p234-color-brand);
|
|
378
|
+
}
|
|
379
|
+
.p234-nextstep a {
|
|
380
|
+
font-family: var(--p234-type-headline-xs-family);
|
|
381
|
+
font-size: var(--p234-type-headline-xs-size);
|
|
382
|
+
line-height: var(--p234-type-headline-xs-leading);
|
|
383
|
+
font-weight: var(--p234-type-headline-xs-weight);
|
|
384
|
+
color: var(--p234-color-ink);
|
|
385
|
+
text-decoration: none;
|
|
386
|
+
}
|
|
387
|
+
.p234-nextstep a:hover { text-decoration: underline; text-underline-offset: 2px; }
|
|
388
|
+
|
|
389
|
+
/* --- breadcrumb --------------------------------------------------------
|
|
390
|
+
34 files hand-roll this today, each with its own separator and spacing. */
|
|
391
|
+
.p234-breadcrumb {
|
|
392
|
+
font-family: var(--p234-type-meta-family);
|
|
393
|
+
font-size: var(--p234-type-meta-size);
|
|
394
|
+
color: var(--p234-color-ink-muted);
|
|
395
|
+
margin-bottom: var(--p234-space-5);
|
|
396
|
+
}
|
|
397
|
+
.p234-breadcrumb ol {
|
|
398
|
+
list-style: none;
|
|
399
|
+
margin: 0;
|
|
400
|
+
padding: 0;
|
|
401
|
+
display: flex;
|
|
402
|
+
flex-wrap: wrap;
|
|
403
|
+
align-items: center;
|
|
404
|
+
gap: var(--p234-space-3);
|
|
405
|
+
}
|
|
406
|
+
.p234-breadcrumb li { display: flex; align-items: center; gap: var(--p234-space-3); }
|
|
407
|
+
.p234-breadcrumb li + li::before {
|
|
408
|
+
content: "/";
|
|
409
|
+
color: var(--p234-color-rule-strong);
|
|
410
|
+
}
|
|
411
|
+
.p234-breadcrumb a { color: var(--p234-color-ink-muted); text-decoration: none; }
|
|
412
|
+
.p234-breadcrumb a:hover { color: var(--p234-color-ink); text-decoration: underline; text-underline-offset: 2px; }
|
|
413
|
+
.p234-breadcrumb [aria-current="page"] { color: var(--p234-color-ink); }
|
|
414
|
+
|
|
415
|
+
/* --- figure ------------------------------------------------------------
|
|
416
|
+
An image with its credit. The credit is not optional: the archive
|
|
417
|
+
summarises other outlets, and their photographs belong to them. */
|
|
418
|
+
.p234-figure { margin: 0 0 var(--p234-space-6); }
|
|
419
|
+
.p234-figure img {
|
|
420
|
+
display: block;
|
|
421
|
+
width: 100%;
|
|
422
|
+
height: auto;
|
|
423
|
+
/* The space is reserved before the image lands, so the text below does not
|
|
424
|
+
jump under the reader. This is why the ratio is a token and not a guess. */
|
|
425
|
+
aspect-ratio: var(--p234-figure-ratio);
|
|
426
|
+
object-fit: cover;
|
|
427
|
+
border-radius: var(--p234-radius-sm);
|
|
428
|
+
background: var(--p234-color-paper-sunk);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/* Hero: the lead image on an article. Capped in height so the first paragraph
|
|
432
|
+
is still on screen on a laptop. */
|
|
433
|
+
.p234-figure--hero img { max-height: var(--p234-figure-hero-max-height); }
|
|
434
|
+
|
|
435
|
+
/* Portrait, for people. A face cropped to 16:9 is a forehead and a chin. */
|
|
436
|
+
.p234-figure--portrait img { aspect-ratio: var(--p234-figure-ratio-portrait); }
|
|
437
|
+
.p234-figure--square img { aspect-ratio: var(--p234-figure-ratio-square); }
|
|
438
|
+
|
|
439
|
+
/* Inset: beside the text once there is room for it, full width before that. */
|
|
440
|
+
@media (min-width: 48rem) {
|
|
441
|
+
.p234-figure--inset {
|
|
442
|
+
float: right;
|
|
443
|
+
width: var(--p234-figure-inset-width);
|
|
444
|
+
margin: 0 0 var(--p234-space-5) var(--p234-space-6);
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/* An image whose host the resizer cannot touch arrives at its original size and
|
|
449
|
+
shape. Letterbox it rather than crop blind: for a third of the archive this
|
|
450
|
+
is the normal case, not the edge case. */
|
|
451
|
+
.p234-figure--unsized img {
|
|
452
|
+
aspect-ratio: auto;
|
|
453
|
+
object-fit: contain;
|
|
454
|
+
max-height: var(--p234-figure-hero-max-height);
|
|
455
|
+
}
|
|
456
|
+
.p234-figure figcaption {
|
|
457
|
+
font-family: var(--p234-type-caption-family);
|
|
458
|
+
font-size: var(--p234-type-caption-size);
|
|
459
|
+
line-height: var(--p234-type-caption-leading);
|
|
460
|
+
color: var(--p234-color-ink-muted);
|
|
461
|
+
margin-top: var(--p234-space-3);
|
|
462
|
+
max-width: var(--p234-measure-text);
|
|
463
|
+
}
|
|
464
|
+
.p234-figure__credit { color: var(--p234-color-ink-subtle); }
|
|
465
|
+
|
|
466
|
+
/* --- toggle ------------------------------------------------------------
|
|
467
|
+
Save, follow topic, follow source. One control, three labels. The state
|
|
468
|
+
lives in aria-pressed, so it is announced rather than merely coloured. */
|
|
469
|
+
.p234-toggle {
|
|
470
|
+
display: inline-flex;
|
|
471
|
+
align-items: center;
|
|
472
|
+
gap: var(--p234-space-3);
|
|
473
|
+
font-family: var(--p234-type-ui-family);
|
|
474
|
+
font-size: var(--p234-type-ui-size);
|
|
475
|
+
font-weight: 600;
|
|
476
|
+
line-height: 1;
|
|
477
|
+
min-height: var(--p234-field-height);
|
|
478
|
+
padding: 0 var(--p234-space-5);
|
|
479
|
+
background: transparent;
|
|
480
|
+
color: var(--p234-color-ink);
|
|
481
|
+
border: var(--p234-border-hairline) solid var(--p234-color-rule-strong);
|
|
482
|
+
border-radius: var(--p234-radius-md);
|
|
483
|
+
cursor: pointer;
|
|
484
|
+
transition: background var(--p234-motion-duration-fast) var(--p234-motion-easing-standard);
|
|
485
|
+
}
|
|
486
|
+
.p234-toggle:hover { background: var(--p234-color-paper-sunk); }
|
|
487
|
+
.p234-toggle[aria-pressed="true"] {
|
|
488
|
+
background: var(--p234-color-brand-tint);
|
|
489
|
+
border-color: var(--p234-color-brand);
|
|
490
|
+
color: var(--p234-color-brand);
|
|
491
|
+
}
|
|
492
|
+
/* The icon changes with the state too, so the change is not colour alone. */
|
|
493
|
+
.p234-toggle__on, .p234-toggle[aria-pressed="true"] .p234-toggle__off { display: none; }
|
|
494
|
+
.p234-toggle[aria-pressed="true"] .p234-toggle__on { display: inline; }
|
|
495
|
+
|
|
496
|
+
/* --- share -------------------------------------------------------------- */
|
|
497
|
+
.p234-share {
|
|
498
|
+
display: flex;
|
|
499
|
+
flex-wrap: wrap;
|
|
500
|
+
align-items: center;
|
|
501
|
+
gap: var(--p234-space-3);
|
|
502
|
+
border-top: var(--p234-border-hairline) solid var(--p234-color-rule);
|
|
503
|
+
border-bottom: var(--p234-border-hairline) solid var(--p234-color-rule);
|
|
504
|
+
padding: var(--p234-space-4) 0;
|
|
505
|
+
margin: var(--p234-space-6) 0;
|
|
506
|
+
max-width: var(--p234-measure-text);
|
|
507
|
+
}
|
|
508
|
+
.p234-share__label {
|
|
509
|
+
font-family: var(--p234-type-kicker-family);
|
|
510
|
+
font-size: var(--p234-type-kicker-size);
|
|
511
|
+
font-weight: var(--p234-type-kicker-weight);
|
|
512
|
+
letter-spacing: var(--p234-type-kicker-tracking);
|
|
513
|
+
text-transform: var(--p234-type-kicker-case);
|
|
514
|
+
color: var(--p234-color-ink-muted);
|
|
515
|
+
margin-right: var(--p234-space-3);
|
|
516
|
+
}
|
|
517
|
+
.p234-share__btn {
|
|
518
|
+
display: inline-flex;
|
|
519
|
+
align-items: center;
|
|
520
|
+
justify-content: center;
|
|
521
|
+
gap: var(--p234-space-3);
|
|
522
|
+
min-width: var(--p234-field-height);
|
|
523
|
+
min-height: var(--p234-field-height);
|
|
524
|
+
padding: 0 var(--p234-space-4);
|
|
525
|
+
font-family: var(--p234-type-ui-sm-family);
|
|
526
|
+
font-size: var(--p234-type-ui-sm-size);
|
|
527
|
+
font-weight: 600;
|
|
528
|
+
color: var(--p234-color-ink);
|
|
529
|
+
background: transparent;
|
|
530
|
+
border: var(--p234-border-hairline) solid var(--p234-color-rule);
|
|
531
|
+
border-radius: var(--p234-radius-md);
|
|
532
|
+
cursor: pointer;
|
|
533
|
+
text-decoration: none;
|
|
534
|
+
}
|
|
535
|
+
.p234-share__btn:hover { background: var(--p234-color-paper-sunk); border-color: var(--p234-color-rule-strong); }
|
|
536
|
+
|
|
537
|
+
/* --- subscribe ---------------------------------------------------------
|
|
538
|
+
The newsletter block. One field, one button, one line of what you get. */
|
|
539
|
+
.p234-subscribe {
|
|
540
|
+
border-top: var(--p234-border-thick) solid var(--p234-color-ink);
|
|
541
|
+
padding-top: var(--p234-space-5);
|
|
542
|
+
max-width: var(--p234-measure-text);
|
|
543
|
+
}
|
|
544
|
+
.p234-subscribe__title {
|
|
545
|
+
font-family: var(--p234-type-headline-sm-family);
|
|
546
|
+
font-size: var(--p234-type-headline-sm-size);
|
|
547
|
+
line-height: var(--p234-type-headline-sm-leading);
|
|
548
|
+
font-weight: var(--p234-type-headline-sm-weight);
|
|
549
|
+
letter-spacing: var(--p234-type-headline-sm-tracking);
|
|
550
|
+
color: var(--p234-color-ink);
|
|
551
|
+
margin: 0 0 var(--p234-space-3);
|
|
552
|
+
}
|
|
553
|
+
.p234-subscribe__what {
|
|
554
|
+
font-family: var(--p234-type-body-sm-family);
|
|
555
|
+
font-size: var(--p234-type-body-sm-size);
|
|
556
|
+
line-height: var(--p234-type-body-sm-leading);
|
|
557
|
+
color: var(--p234-color-ink-muted);
|
|
558
|
+
margin: 0 0 var(--p234-space-5);
|
|
559
|
+
}
|
|
560
|
+
.p234-subscribe__row { display: flex; flex-wrap: wrap; gap: var(--p234-space-3); }
|
|
561
|
+
.p234-subscribe__field {
|
|
562
|
+
flex: 1 1 14rem;
|
|
563
|
+
min-width: 0;
|
|
564
|
+
height: var(--p234-field-height);
|
|
565
|
+
padding: 0 var(--p234-field-padding-x);
|
|
566
|
+
background: var(--p234-color-field-bg);
|
|
567
|
+
color: var(--p234-color-ink);
|
|
568
|
+
border: var(--p234-field-border-width) solid var(--p234-color-field-border);
|
|
569
|
+
border-radius: var(--p234-field-radius);
|
|
570
|
+
font-family: var(--p234-type-ui-family);
|
|
571
|
+
font-size: var(--p234-type-ui-size);
|
|
572
|
+
}
|
|
573
|
+
.p234-subscribe__field::placeholder { color: var(--p234-color-field-ink-placeholder); }
|
|
574
|
+
.p234-subscribe__field:hover { border-color: var(--p234-color-field-border-hover); }
|
|
575
|
+
.p234-subscribe__field[aria-invalid="true"] {
|
|
576
|
+
border-width: var(--p234-field-border-width-invalid);
|
|
577
|
+
border-color: var(--p234-color-error);
|
|
578
|
+
}
|
|
579
|
+
.p234-subscribe__note {
|
|
580
|
+
font-family: var(--p234-type-caption-family);
|
|
581
|
+
font-size: var(--p234-type-caption-size);
|
|
582
|
+
color: var(--p234-color-ink-subtle);
|
|
583
|
+
margin: var(--p234-space-4) 0 0;
|
|
584
|
+
}
|
|
585
|
+
.p234-subscribe__error {
|
|
586
|
+
font-family: var(--p234-type-meta-family);
|
|
587
|
+
font-size: var(--p234-type-meta-size);
|
|
588
|
+
color: var(--p234-color-error);
|
|
589
|
+
margin: var(--p234-space-3) 0 0;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/* --- masthead ----------------------------------------------------------
|
|
593
|
+
The 727 line Header replaced by a shell. The dropdown and overlay
|
|
594
|
+
behaviour belongs to the app; what lives here is the shape, the rules
|
|
595
|
+
and the layering. */
|
|
596
|
+
.p234-masthead {
|
|
597
|
+
position: sticky;
|
|
598
|
+
top: 0;
|
|
599
|
+
z-index: var(--p234-z-sticky);
|
|
600
|
+
background: var(--p234-color-paper);
|
|
601
|
+
border-bottom: var(--p234-border-heavy) solid var(--p234-color-ink);
|
|
602
|
+
}
|
|
603
|
+
.p234-masthead__bar {
|
|
604
|
+
max-width: var(--p234-layout-container);
|
|
605
|
+
margin: 0 auto;
|
|
606
|
+
padding: var(--p234-space-4) var(--p234-layout-gutter);
|
|
607
|
+
display: flex;
|
|
608
|
+
align-items: center;
|
|
609
|
+
gap: var(--p234-space-5);
|
|
610
|
+
}
|
|
611
|
+
@media (min-width: 48rem) {
|
|
612
|
+
.p234-masthead__bar { padding-inline: var(--p234-layout-gutter-lg); }
|
|
613
|
+
}
|
|
614
|
+
.p234-masthead__brand {
|
|
615
|
+
display: flex;
|
|
616
|
+
align-items: baseline;
|
|
617
|
+
gap: var(--p234-space-3);
|
|
618
|
+
text-decoration: none;
|
|
619
|
+
color: inherit;
|
|
620
|
+
flex-shrink: 0;
|
|
621
|
+
}
|
|
622
|
+
/* The wordmark. Two files, not one recoloured image: the E is dark on light
|
|
623
|
+
pages and white on dark, so neither a filter nor an opacity trick gets it
|
|
624
|
+
right. The pair swaps with the theme. */
|
|
625
|
+
.p234-masthead__logo { display: block; height: 1.75rem; width: auto; }
|
|
626
|
+
.p234-masthead__logo--dark { display: none; }
|
|
627
|
+
.dark .p234-masthead__logo--light,
|
|
628
|
+
[data-theme="dark"] .p234-masthead__logo--light { display: none; }
|
|
629
|
+
.dark .p234-masthead__logo--dark,
|
|
630
|
+
[data-theme="dark"] .p234-masthead__logo--dark { display: block; }
|
|
631
|
+
|
|
632
|
+
/* Text fallback, for anywhere the image cannot be used. */
|
|
633
|
+
.p234-masthead__mark {
|
|
634
|
+
font-family: var(--p234-type-ui-family);
|
|
635
|
+
font-weight: 900;
|
|
636
|
+
font-size: 1.25rem;
|
|
637
|
+
letter-spacing: -0.03em;
|
|
638
|
+
color: var(--p234-color-brand);
|
|
639
|
+
}
|
|
640
|
+
.p234-masthead__tagline {
|
|
641
|
+
font-family: var(--p234-type-caption-family);
|
|
642
|
+
font-size: var(--p234-type-caption-size);
|
|
643
|
+
color: var(--p234-color-ink-muted);
|
|
644
|
+
display: none;
|
|
645
|
+
}
|
|
646
|
+
@media (min-width: 62rem) { .p234-masthead__tagline { display: inline; } }
|
|
647
|
+
|
|
648
|
+
.p234-masthead__nav { display: none; gap: var(--p234-space-5); margin-left: auto; }
|
|
649
|
+
@media (min-width: 62rem) { .p234-masthead__nav { display: flex; } }
|
|
650
|
+
.p234-masthead__nav a {
|
|
651
|
+
font-family: var(--p234-type-ui-family);
|
|
652
|
+
font-size: var(--p234-type-ui-size);
|
|
653
|
+
font-weight: 600;
|
|
654
|
+
color: var(--p234-color-ink-muted);
|
|
655
|
+
text-decoration: none;
|
|
656
|
+
white-space: nowrap;
|
|
657
|
+
}
|
|
658
|
+
.p234-masthead__nav a:hover { color: var(--p234-color-ink); }
|
|
659
|
+
.p234-masthead__nav a[aria-current] { color: var(--p234-color-ink); }
|
|
660
|
+
|
|
661
|
+
.p234-masthead__actions { display: flex; align-items: center; gap: var(--p234-space-3); margin-left: auto; }
|
|
662
|
+
@media (min-width: 62rem) { .p234-masthead__actions { margin-left: 0; } }
|
|
663
|
+
.p234-masthead__icon {
|
|
664
|
+
display: inline-flex;
|
|
665
|
+
align-items: center;
|
|
666
|
+
justify-content: center;
|
|
667
|
+
width: var(--p234-field-height);
|
|
668
|
+
height: var(--p234-field-height);
|
|
669
|
+
background: transparent;
|
|
670
|
+
color: var(--p234-color-ink);
|
|
671
|
+
border: 0;
|
|
672
|
+
border-radius: var(--p234-radius-md);
|
|
673
|
+
cursor: pointer;
|
|
674
|
+
}
|
|
675
|
+
.p234-masthead__icon:hover { background: var(--p234-color-paper-sunk); }
|
|
676
|
+
|
|
677
|
+
/* --- subnav ------------------------------------------------------------
|
|
678
|
+
Section level navigation: the price pages, the account panes. Scrolls
|
|
679
|
+
sideways on a phone rather than wrapping into two rows. */
|
|
680
|
+
.p234-subnav {
|
|
681
|
+
border-bottom: var(--p234-border-hairline) solid var(--p234-color-rule);
|
|
682
|
+
overflow-x: auto;
|
|
683
|
+
scrollbar-width: none;
|
|
684
|
+
}
|
|
685
|
+
.p234-subnav::-webkit-scrollbar { display: none; }
|
|
686
|
+
.p234-subnav ul {
|
|
687
|
+
display: flex;
|
|
688
|
+
gap: var(--p234-space-5);
|
|
689
|
+
list-style: none;
|
|
690
|
+
margin: 0;
|
|
691
|
+
padding: 0 var(--p234-layout-gutter);
|
|
692
|
+
max-width: var(--p234-layout-container);
|
|
693
|
+
margin-inline: auto;
|
|
694
|
+
}
|
|
695
|
+
.p234-subnav a {
|
|
696
|
+
display: block;
|
|
697
|
+
font-family: var(--p234-type-ui-sm-family);
|
|
698
|
+
font-size: var(--p234-type-ui-sm-size);
|
|
699
|
+
font-weight: 600;
|
|
700
|
+
color: var(--p234-color-ink-muted);
|
|
701
|
+
text-decoration: none;
|
|
702
|
+
white-space: nowrap;
|
|
703
|
+
padding: var(--p234-space-4) 0;
|
|
704
|
+
border-bottom: var(--p234-border-thick) solid transparent;
|
|
705
|
+
margin-bottom: -1px;
|
|
706
|
+
}
|
|
707
|
+
.p234-subnav a:hover { color: var(--p234-color-ink); }
|
|
708
|
+
.p234-subnav a[aria-current] {
|
|
709
|
+
color: var(--p234-color-ink);
|
|
710
|
+
border-bottom-color: var(--p234-color-brand);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
/* --- page hero ---------------------------------------------------------
|
|
714
|
+
The header for a page that is not an article: a section front, a price
|
|
715
|
+
page, a state page. */
|
|
716
|
+
.p234-pagehero {
|
|
717
|
+
border-bottom: var(--p234-border-thick) solid var(--p234-color-ink);
|
|
718
|
+
padding-bottom: var(--p234-space-5);
|
|
719
|
+
margin-bottom: var(--p234-space-7);
|
|
720
|
+
}
|
|
721
|
+
.p234-pagehero__title {
|
|
722
|
+
font-family: var(--p234-type-display-2-family);
|
|
723
|
+
font-size: var(--p234-type-display-2-size);
|
|
724
|
+
line-height: var(--p234-type-display-2-leading);
|
|
725
|
+
font-weight: var(--p234-type-display-2-weight);
|
|
726
|
+
letter-spacing: var(--p234-type-display-2-tracking);
|
|
727
|
+
color: var(--p234-color-ink);
|
|
728
|
+
margin: 0;
|
|
729
|
+
text-wrap: balance;
|
|
730
|
+
}
|
|
731
|
+
.p234-pagehero__standfirst {
|
|
732
|
+
font-family: var(--p234-type-standfirst-family);
|
|
733
|
+
font-size: var(--p234-type-standfirst-size);
|
|
734
|
+
line-height: var(--p234-type-standfirst-leading);
|
|
735
|
+
color: var(--p234-color-ink-muted);
|
|
736
|
+
max-width: var(--p234-measure-text);
|
|
737
|
+
margin: var(--p234-space-4) 0 0;
|
|
738
|
+
}
|
|
739
|
+
.p234-pagehero__meta {
|
|
740
|
+
font-family: var(--p234-type-meta-family);
|
|
741
|
+
font-size: var(--p234-type-meta-size);
|
|
742
|
+
color: var(--p234-color-ink-muted);
|
|
743
|
+
margin-top: var(--p234-space-4);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/* --- footer ------------------------------------------------------------- */
|
|
747
|
+
.p234-footer {
|
|
748
|
+
border-top: var(--p234-border-heavy) solid var(--p234-color-ink);
|
|
749
|
+
margin-top: var(--p234-space-9);
|
|
750
|
+
padding: var(--p234-space-8) 0;
|
|
751
|
+
}
|
|
752
|
+
.p234-footer__in {
|
|
753
|
+
max-width: var(--p234-layout-container);
|
|
754
|
+
margin: 0 auto;
|
|
755
|
+
padding-inline: var(--p234-layout-gutter);
|
|
756
|
+
}
|
|
757
|
+
.p234-footer__groups {
|
|
758
|
+
display: grid;
|
|
759
|
+
gap: var(--p234-space-7);
|
|
760
|
+
grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
|
|
761
|
+
margin-bottom: var(--p234-space-8);
|
|
762
|
+
}
|
|
763
|
+
.p234-footer__title {
|
|
764
|
+
font-family: var(--p234-type-kicker-family);
|
|
765
|
+
font-size: var(--p234-type-kicker-size);
|
|
766
|
+
font-weight: var(--p234-type-kicker-weight);
|
|
767
|
+
letter-spacing: var(--p234-type-kicker-tracking);
|
|
768
|
+
text-transform: var(--p234-type-kicker-case);
|
|
769
|
+
color: var(--p234-color-ink-muted);
|
|
770
|
+
margin: 0 0 var(--p234-space-4);
|
|
771
|
+
}
|
|
772
|
+
.p234-footer ul { list-style: none; margin: 0; padding: 0; }
|
|
773
|
+
.p234-footer li { margin-bottom: var(--p234-space-3); }
|
|
774
|
+
.p234-footer a {
|
|
775
|
+
font-family: var(--p234-type-ui-sm-family);
|
|
776
|
+
font-size: var(--p234-type-ui-sm-size);
|
|
777
|
+
color: var(--p234-color-ink);
|
|
778
|
+
text-decoration: none;
|
|
779
|
+
}
|
|
780
|
+
.p234-footer a:hover { text-decoration: underline; text-underline-offset: 2px; }
|
|
781
|
+
.p234-footer__legal {
|
|
782
|
+
border-top: var(--p234-border-hairline) solid var(--p234-color-rule);
|
|
783
|
+
padding-top: var(--p234-space-5);
|
|
784
|
+
font-family: var(--p234-type-caption-family);
|
|
785
|
+
font-size: var(--p234-type-caption-size);
|
|
786
|
+
line-height: 1.6;
|
|
787
|
+
color: var(--p234-color-ink-muted);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/* --- route progress ----------------------------------------------------
|
|
791
|
+
A thin bar while the next page is fetched. It sits above everything
|
|
792
|
+
except a toast, because it is about the navigation itself. */
|
|
793
|
+
.p234-progress {
|
|
794
|
+
position: fixed;
|
|
795
|
+
inset: 0 0 auto 0;
|
|
796
|
+
height: 2px;
|
|
797
|
+
z-index: var(--p234-z-overlay);
|
|
798
|
+
background: var(--p234-color-brand);
|
|
799
|
+
transform-origin: 0 50%;
|
|
800
|
+
transition: transform var(--p234-motion-duration-base) var(--p234-motion-easing-standard);
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
/* --- field -------------------------------------------------------------
|
|
804
|
+
One control for input, select and textarea. 34 files currently style
|
|
805
|
+
their own. The label is a real label, never a placeholder. */
|
|
806
|
+
.p234-field { display: block; margin-bottom: var(--p234-space-5); }
|
|
807
|
+
.p234-field__label {
|
|
808
|
+
display: block;
|
|
809
|
+
font-family: var(--p234-type-ui-sm-family);
|
|
810
|
+
font-size: var(--p234-type-ui-sm-size);
|
|
811
|
+
font-weight: 600;
|
|
812
|
+
color: var(--p234-color-ink);
|
|
813
|
+
margin-bottom: var(--p234-space-3);
|
|
814
|
+
}
|
|
815
|
+
.p234-field__optional { font-weight: 400; color: var(--p234-color-ink-muted); }
|
|
816
|
+
.p234-field__hint {
|
|
817
|
+
font-family: var(--p234-type-meta-family);
|
|
818
|
+
font-size: var(--p234-type-meta-size);
|
|
819
|
+
color: var(--p234-color-ink-muted);
|
|
820
|
+
margin: 0 0 var(--p234-space-3);
|
|
821
|
+
max-width: var(--p234-measure-narrow);
|
|
822
|
+
}
|
|
823
|
+
.p234-field__control {
|
|
824
|
+
display: block;
|
|
825
|
+
width: 100%;
|
|
826
|
+
min-height: var(--p234-field-height);
|
|
827
|
+
padding: 0 var(--p234-field-padding-x);
|
|
828
|
+
background: var(--p234-color-field-bg);
|
|
829
|
+
color: var(--p234-color-ink);
|
|
830
|
+
border: var(--p234-field-border-width) solid var(--p234-color-field-border);
|
|
831
|
+
border-radius: var(--p234-field-radius);
|
|
832
|
+
font-family: var(--p234-type-ui-family);
|
|
833
|
+
font-size: var(--p234-type-ui-size);
|
|
834
|
+
}
|
|
835
|
+
.p234-field__control::placeholder { color: var(--p234-color-field-ink-placeholder); }
|
|
836
|
+
.p234-field__control:hover { border-color: var(--p234-color-field-border-hover); }
|
|
837
|
+
.p234-field__control:disabled {
|
|
838
|
+
background: var(--p234-color-field-bg-disabled);
|
|
839
|
+
color: var(--p234-color-ink-muted);
|
|
840
|
+
border-color: var(--p234-color-rule);
|
|
841
|
+
cursor: not-allowed;
|
|
842
|
+
}
|
|
843
|
+
textarea.p234-field__control {
|
|
844
|
+
padding: var(--p234-space-4) var(--p234-field-padding-x);
|
|
845
|
+
min-height: 7rem;
|
|
846
|
+
line-height: 1.5;
|
|
847
|
+
resize: vertical;
|
|
848
|
+
}
|
|
849
|
+
/* Invalid thickens the border as well as changing its colour, so the state
|
|
850
|
+
does not depend on seeing the hue. */
|
|
851
|
+
.p234-field__control[aria-invalid="true"] {
|
|
852
|
+
border-width: var(--p234-field-border-width-invalid);
|
|
853
|
+
border-color: var(--p234-color-error);
|
|
854
|
+
}
|
|
855
|
+
.p234-field__error {
|
|
856
|
+
font-family: var(--p234-type-meta-family);
|
|
857
|
+
font-size: var(--p234-type-meta-size);
|
|
858
|
+
font-weight: 600;
|
|
859
|
+
color: var(--p234-color-error);
|
|
860
|
+
margin: var(--p234-space-3) 0 0;
|
|
861
|
+
max-width: var(--p234-measure-narrow);
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
/* Checkbox and radio: the control keeps its native shape and the whole row
|
|
865
|
+
is the target. */
|
|
866
|
+
.p234-check {
|
|
867
|
+
display: flex;
|
|
868
|
+
align-items: flex-start;
|
|
869
|
+
gap: var(--p234-space-4);
|
|
870
|
+
padding: var(--p234-space-3) 0;
|
|
871
|
+
font-family: var(--p234-type-ui-family);
|
|
872
|
+
font-size: var(--p234-type-ui-size);
|
|
873
|
+
color: var(--p234-color-ink);
|
|
874
|
+
cursor: pointer;
|
|
875
|
+
}
|
|
876
|
+
.p234-check input {
|
|
877
|
+
flex-shrink: 0;
|
|
878
|
+
width: 1.25rem;
|
|
879
|
+
height: 1.25rem;
|
|
880
|
+
margin: 0;
|
|
881
|
+
accent-color: var(--p234-color-brand);
|
|
882
|
+
}
|
|
883
|
+
.p234-check__text { line-height: 1.45; }
|
|
884
|
+
.p234-check__hint {
|
|
885
|
+
display: block;
|
|
886
|
+
font-family: var(--p234-type-meta-family);
|
|
887
|
+
font-size: var(--p234-type-meta-size);
|
|
888
|
+
color: var(--p234-color-ink-muted);
|
|
889
|
+
margin-top: 2px;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
/* --- toast -------------------------------------------------------------
|
|
893
|
+
A short message about something that just happened. Lives in a live
|
|
894
|
+
region so it is announced, not only seen. */
|
|
895
|
+
.p234-toast-region {
|
|
896
|
+
position: fixed;
|
|
897
|
+
left: 50%;
|
|
898
|
+
bottom: var(--p234-space-6);
|
|
899
|
+
transform: translateX(-50%);
|
|
900
|
+
z-index: var(--p234-z-toast);
|
|
901
|
+
display: flex;
|
|
902
|
+
flex-direction: column;
|
|
903
|
+
gap: var(--p234-space-3);
|
|
904
|
+
width: calc(100% - (2 * var(--p234-layout-gutter)));
|
|
905
|
+
max-width: 26rem;
|
|
906
|
+
pointer-events: none;
|
|
907
|
+
}
|
|
908
|
+
.p234-toast {
|
|
909
|
+
display: flex;
|
|
910
|
+
align-items: flex-start;
|
|
911
|
+
gap: var(--p234-space-4);
|
|
912
|
+
pointer-events: auto;
|
|
913
|
+
background: var(--p234-color-paper-dark);
|
|
914
|
+
color: var(--p234-color-ink-inverse);
|
|
915
|
+
border-radius: var(--p234-radius-md);
|
|
916
|
+
box-shadow: var(--p234-shadow-overlay);
|
|
917
|
+
padding: var(--p234-space-4) var(--p234-space-5);
|
|
918
|
+
font-family: var(--p234-type-ui-family);
|
|
919
|
+
font-size: var(--p234-type-ui-size);
|
|
920
|
+
line-height: 1.45;
|
|
921
|
+
}
|
|
922
|
+
.p234-toast__mark { flex-shrink: 0; font-weight: 700; }
|
|
923
|
+
.p234-toast--success .p234-toast__mark { color: var(--p234-color-data-up); }
|
|
924
|
+
.p234-toast--error .p234-toast__mark { color: var(--p234-color-data-down); }
|
|
925
|
+
.p234-toast__action {
|
|
926
|
+
margin-left: auto;
|
|
927
|
+
flex-shrink: 0;
|
|
928
|
+
background: none;
|
|
929
|
+
border: 0;
|
|
930
|
+
color: inherit;
|
|
931
|
+
font: inherit;
|
|
932
|
+
font-weight: 600;
|
|
933
|
+
text-decoration: underline;
|
|
934
|
+
text-underline-offset: 2px;
|
|
935
|
+
cursor: pointer;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
/* --- empty state -------------------------------------------------------
|
|
939
|
+
30 files write their own "no results" copy. An empty state says what
|
|
940
|
+
happened and what to do next. */
|
|
941
|
+
.p234-empty {
|
|
942
|
+
border-top: var(--p234-border-thick) solid var(--p234-color-ink);
|
|
943
|
+
padding: var(--p234-space-7) 0;
|
|
944
|
+
max-width: var(--p234-measure-text);
|
|
945
|
+
}
|
|
946
|
+
.p234-empty__title {
|
|
947
|
+
font-family: var(--p234-type-headline-sm-family);
|
|
948
|
+
font-size: var(--p234-type-headline-sm-size);
|
|
949
|
+
line-height: var(--p234-type-headline-sm-leading);
|
|
950
|
+
font-weight: var(--p234-type-headline-sm-weight);
|
|
951
|
+
color: var(--p234-color-ink);
|
|
952
|
+
margin: 0 0 var(--p234-space-3);
|
|
953
|
+
}
|
|
954
|
+
.p234-empty__body {
|
|
955
|
+
font-family: var(--p234-type-body-sm-family);
|
|
956
|
+
font-size: var(--p234-type-body-sm-size);
|
|
957
|
+
line-height: var(--p234-type-body-sm-leading);
|
|
958
|
+
color: var(--p234-color-ink-muted);
|
|
959
|
+
margin: 0 0 var(--p234-space-5);
|
|
960
|
+
}
|
|
961
|
+
.p234-empty__actions { display: flex; flex-wrap: wrap; gap: var(--p234-space-3); }
|
|
962
|
+
|
|
963
|
+
/* --- skeleton ----------------------------------------------------------
|
|
964
|
+
A placeholder shaped like the thing that is coming. Never a spinner:
|
|
965
|
+
a spinner says "wait", a skeleton says "here is what is arriving". */
|
|
966
|
+
.p234-skeleton {
|
|
967
|
+
display: block;
|
|
968
|
+
background: var(--p234-color-paper-sunk);
|
|
969
|
+
border-radius: var(--p234-radius-sm);
|
|
970
|
+
position: relative;
|
|
971
|
+
overflow: hidden;
|
|
972
|
+
}
|
|
973
|
+
.p234-skeleton::after {
|
|
974
|
+
content: "";
|
|
975
|
+
position: absolute;
|
|
976
|
+
inset: 0;
|
|
977
|
+
background: linear-gradient(90deg, transparent, var(--p234-color-rule), transparent);
|
|
978
|
+
transform: translateX(-100%);
|
|
979
|
+
animation: p234-shimmer 1.4s infinite;
|
|
980
|
+
}
|
|
981
|
+
@keyframes p234-shimmer { to { transform: translateX(100%); } }
|
|
982
|
+
|
|
983
|
+
.p234-skeleton--line { height: 0.75rem; margin-bottom: var(--p234-space-3); }
|
|
984
|
+
.p234-skeleton--headline { height: 1.5rem; margin-bottom: var(--p234-space-4); }
|
|
985
|
+
.p234-skeleton--figure { aspect-ratio: var(--p234-figure-ratio); height: auto; width: 100%; }
|
|
986
|
+
.p234-skeleton--short { width: 40%; }
|
|
987
|
+
.p234-skeleton--medium { width: 70%; }
|
|
988
|
+
|
|
989
|
+
/* --- tabs --------------------------------------------------------------
|
|
990
|
+
Switches a panel in place. If it navigates, it is a sub-nav. */
|
|
991
|
+
.p234-tabs {
|
|
992
|
+
display: flex;
|
|
993
|
+
gap: var(--p234-space-5);
|
|
994
|
+
border-bottom: var(--p234-border-hairline) solid var(--p234-color-rule);
|
|
995
|
+
overflow-x: auto;
|
|
996
|
+
scrollbar-width: none;
|
|
997
|
+
}
|
|
998
|
+
.p234-tabs::-webkit-scrollbar { display: none; }
|
|
999
|
+
.p234-tabs__tab {
|
|
1000
|
+
flex-shrink: 0;
|
|
1001
|
+
background: none;
|
|
1002
|
+
border: 0;
|
|
1003
|
+
border-bottom: var(--p234-border-thick) solid transparent;
|
|
1004
|
+
margin-bottom: -1px;
|
|
1005
|
+
padding: var(--p234-space-4) 0;
|
|
1006
|
+
font-family: var(--p234-type-ui-family);
|
|
1007
|
+
font-size: var(--p234-type-ui-size);
|
|
1008
|
+
font-weight: 600;
|
|
1009
|
+
color: var(--p234-color-ink-muted);
|
|
1010
|
+
white-space: nowrap;
|
|
1011
|
+
cursor: pointer;
|
|
1012
|
+
}
|
|
1013
|
+
.p234-tabs__tab:hover { color: var(--p234-color-ink); }
|
|
1014
|
+
.p234-tabs__tab[aria-selected="true"] {
|
|
1015
|
+
color: var(--p234-color-ink);
|
|
1016
|
+
border-bottom-color: var(--p234-color-brand);
|
|
1017
|
+
}
|
|
1018
|
+
.p234-tabs__count { color: var(--p234-color-ink-subtle); font-weight: 400; }
|
|
1019
|
+
.p234-tabpanel { padding-top: var(--p234-space-6); }
|
|
1020
|
+
|
|
1021
|
+
/* --- pagination --------------------------------------------------------
|
|
1022
|
+
One button and a count. The count is the part people leave out, and it
|
|
1023
|
+
is the part that tells a reader whether to keep going. */
|
|
1024
|
+
.p234-pagination {
|
|
1025
|
+
display: flex;
|
|
1026
|
+
flex-direction: column;
|
|
1027
|
+
align-items: center;
|
|
1028
|
+
gap: var(--p234-space-4);
|
|
1029
|
+
border-top: var(--p234-border-hairline) solid var(--p234-color-rule);
|
|
1030
|
+
padding-top: var(--p234-space-6);
|
|
1031
|
+
margin-top: var(--p234-space-6);
|
|
1032
|
+
}
|
|
1033
|
+
.p234-pagination__status {
|
|
1034
|
+
font-family: var(--p234-type-meta-family);
|
|
1035
|
+
font-size: var(--p234-type-meta-size);
|
|
1036
|
+
color: var(--p234-color-ink-muted);
|
|
1037
|
+
margin: 0;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
/* --- strip -------------------------------------------------------------
|
|
1041
|
+
A sideways row of cards. 22 files roll their own overflow container. */
|
|
1042
|
+
.p234-strip { position: relative; }
|
|
1043
|
+
.p234-strip__track {
|
|
1044
|
+
display: flex;
|
|
1045
|
+
gap: var(--p234-space-5);
|
|
1046
|
+
overflow-x: auto;
|
|
1047
|
+
scroll-snap-type: x proximity;
|
|
1048
|
+
scrollbar-width: none;
|
|
1049
|
+
padding-bottom: var(--p234-space-3);
|
|
1050
|
+
}
|
|
1051
|
+
.p234-strip__track::-webkit-scrollbar { display: none; }
|
|
1052
|
+
.p234-strip__item {
|
|
1053
|
+
flex: 0 0 15rem;
|
|
1054
|
+
scroll-snap-align: start;
|
|
1055
|
+
border-top: var(--p234-border-thick) solid var(--p234-color-ink);
|
|
1056
|
+
padding-top: var(--p234-space-4);
|
|
1057
|
+
color: inherit;
|
|
1058
|
+
text-decoration: none;
|
|
1059
|
+
}
|
|
1060
|
+
.p234-strip__item:hover .p234-strip__title { text-decoration: underline; text-underline-offset: 2px; }
|
|
1061
|
+
.p234-strip__title {
|
|
1062
|
+
font-family: var(--p234-type-headline-xs-family);
|
|
1063
|
+
font-size: var(--p234-type-headline-xs-size);
|
|
1064
|
+
line-height: var(--p234-type-headline-xs-leading);
|
|
1065
|
+
font-weight: var(--p234-type-headline-xs-weight);
|
|
1066
|
+
color: var(--p234-color-ink);
|
|
1067
|
+
margin: var(--p234-space-3) 0 0;
|
|
1068
|
+
}
|
|
1069
|
+
/* The right edge fades, which is the only hint that the row continues once
|
|
1070
|
+
the scrollbar is hidden. */
|
|
1071
|
+
.p234-strip::after {
|
|
1072
|
+
content: "";
|
|
1073
|
+
position: absolute;
|
|
1074
|
+
inset: 0 0 var(--p234-space-3) auto;
|
|
1075
|
+
width: var(--p234-space-8);
|
|
1076
|
+
pointer-events: none;
|
|
1077
|
+
background: linear-gradient(90deg, transparent, var(--p234-color-paper));
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
/* --- directory ---------------------------------------------------------
|
|
1081
|
+
A long index: every equity, every state, every seat. Grouped, with the
|
|
1082
|
+
group letter sticking as the reader scrolls past it. */
|
|
1083
|
+
.p234-directory { border-top: var(--p234-border-thick) solid var(--p234-color-ink); }
|
|
1084
|
+
.p234-directory__letter {
|
|
1085
|
+
position: sticky;
|
|
1086
|
+
top: 0;
|
|
1087
|
+
background: var(--p234-color-paper);
|
|
1088
|
+
font-family: var(--p234-type-kicker-family);
|
|
1089
|
+
font-size: var(--p234-type-kicker-size);
|
|
1090
|
+
font-weight: var(--p234-type-kicker-weight);
|
|
1091
|
+
letter-spacing: var(--p234-type-kicker-tracking);
|
|
1092
|
+
text-transform: var(--p234-type-kicker-case);
|
|
1093
|
+
color: var(--p234-color-ink-muted);
|
|
1094
|
+
padding: var(--p234-space-4) 0 var(--p234-space-3);
|
|
1095
|
+
margin: 0;
|
|
1096
|
+
border-bottom: var(--p234-border-hairline) solid var(--p234-color-rule);
|
|
1097
|
+
}
|
|
1098
|
+
.p234-directory__row {
|
|
1099
|
+
display: flex;
|
|
1100
|
+
align-items: baseline;
|
|
1101
|
+
gap: var(--p234-space-4);
|
|
1102
|
+
padding: var(--p234-space-4) 0;
|
|
1103
|
+
border-bottom: var(--p234-border-hairline) solid var(--p234-color-rule);
|
|
1104
|
+
color: inherit;
|
|
1105
|
+
text-decoration: none;
|
|
1106
|
+
}
|
|
1107
|
+
.p234-directory__row:hover { background: var(--p234-color-paper-alt); }
|
|
1108
|
+
.p234-directory__name {
|
|
1109
|
+
font-family: var(--p234-type-ui-family);
|
|
1110
|
+
font-size: var(--p234-type-ui-size);
|
|
1111
|
+
font-weight: 600;
|
|
1112
|
+
color: var(--p234-color-ink);
|
|
1113
|
+
}
|
|
1114
|
+
.p234-directory__detail {
|
|
1115
|
+
font-family: var(--p234-type-meta-family);
|
|
1116
|
+
font-size: var(--p234-type-meta-size);
|
|
1117
|
+
color: var(--p234-color-ink-muted);
|
|
1118
|
+
}
|
|
1119
|
+
.p234-directory__value {
|
|
1120
|
+
margin-left: auto;
|
|
1121
|
+
font-family: var(--p234-type-data-sm-family);
|
|
1122
|
+
font-size: var(--p234-type-data-sm-size);
|
|
1123
|
+
font-weight: var(--p234-type-data-sm-weight);
|
|
1124
|
+
font-variant-numeric: var(--p234-type-data-sm-numeric);
|
|
1125
|
+
color: var(--p234-color-ink);
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
/* --- chart -------------------------------------------------------------
|
|
1129
|
+
The frame around a plot: title, legend, the plot itself, and the line
|
|
1130
|
+
saying where the numbers came from and as of when. */
|
|
1131
|
+
.p234-chart { margin: 0 0 var(--p234-space-7); max-width: var(--p234-measure-wide); }
|
|
1132
|
+
.p234-chart__head { margin-bottom: var(--p234-space-5); }
|
|
1133
|
+
.p234-chart__title {
|
|
1134
|
+
font-family: var(--p234-type-headline-sm-family);
|
|
1135
|
+
font-size: var(--p234-type-headline-sm-size);
|
|
1136
|
+
line-height: var(--p234-type-headline-sm-leading);
|
|
1137
|
+
font-weight: var(--p234-type-headline-sm-weight);
|
|
1138
|
+
color: var(--p234-color-ink);
|
|
1139
|
+
margin: 0;
|
|
1140
|
+
}
|
|
1141
|
+
.p234-chart__legend {
|
|
1142
|
+
display: flex;
|
|
1143
|
+
flex-wrap: wrap;
|
|
1144
|
+
gap: var(--p234-space-3) var(--p234-space-5);
|
|
1145
|
+
margin-top: var(--p234-space-4);
|
|
1146
|
+
list-style: none;
|
|
1147
|
+
padding: 0;
|
|
1148
|
+
}
|
|
1149
|
+
.p234-chart__key {
|
|
1150
|
+
display: flex;
|
|
1151
|
+
align-items: center;
|
|
1152
|
+
gap: var(--p234-space-3);
|
|
1153
|
+
font-family: var(--p234-type-ui-sm-family);
|
|
1154
|
+
font-size: var(--p234-type-ui-sm-size);
|
|
1155
|
+
color: var(--p234-color-ink);
|
|
1156
|
+
}
|
|
1157
|
+
.p234-chart__swatch { width: 0.875rem; height: 0.875rem; border-radius: 2px; flex-shrink: 0; }
|
|
1158
|
+
.p234-chart__plot { display: block; width: 100%; height: auto; }
|
|
1159
|
+
.p234-chart__source {
|
|
1160
|
+
font-family: var(--p234-type-caption-family);
|
|
1161
|
+
font-size: var(--p234-type-caption-size);
|
|
1162
|
+
line-height: var(--p234-type-caption-leading);
|
|
1163
|
+
color: var(--p234-color-ink-subtle);
|
|
1164
|
+
margin: var(--p234-space-4) 0 0;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/* --- map ---------------------------------------------------------------
|
|
1168
|
+
A choropleth of the 36 states and the FCT, with the ramp as its key. */
|
|
1169
|
+
.p234-map { max-width: var(--p234-measure-wide); }
|
|
1170
|
+
.p234-map__svg { display: block; width: 100%; height: auto; }
|
|
1171
|
+
.p234-map__shape { stroke: var(--p234-color-paper); stroke-width: 1; }
|
|
1172
|
+
.p234-map__shape:hover { stroke: var(--p234-color-ink); stroke-width: 2; }
|
|
1173
|
+
.p234-map__shape--nodata { fill: var(--p234-color-paper-sunk); }
|
|
1174
|
+
.p234-map__key { display: flex; align-items: center; gap: var(--p234-space-3); margin-top: var(--p234-space-5); flex-wrap: wrap; }
|
|
1175
|
+
.p234-map__steps { display: flex; }
|
|
1176
|
+
.p234-map__step { width: 2.25rem; height: 0.75rem; }
|
|
1177
|
+
.p234-map__bound {
|
|
1178
|
+
font-family: var(--p234-type-data-sm-family);
|
|
1179
|
+
font-size: var(--p234-type-data-sm-size);
|
|
1180
|
+
font-variant-numeric: var(--p234-type-data-sm-numeric);
|
|
1181
|
+
color: var(--p234-color-ink-muted);
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
/* --- hemicycle ---------------------------------------------------------- */
|
|
1185
|
+
.p234-hemicycle { max-width: var(--p234-measure-wide); }
|
|
1186
|
+
.p234-hemicycle__svg { display: block; width: 100%; height: auto; }
|
|
1187
|
+
.p234-hemicycle__seat { stroke: var(--p234-color-paper); stroke-width: 0.5; }
|
|
1188
|
+
.p234-hemicycle__seat--vacant { fill: var(--p234-color-paper-sunk); }
|
|
1189
|
+
|
|
1190
|
+
/* --- results -----------------------------------------------------------
|
|
1191
|
+
Declared results and pending seats. Party identity is carried by the
|
|
1192
|
+
abbreviation, not by the colour: party colours are data, they are not
|
|
1193
|
+
tokens, and three of them are close to each other. */
|
|
1194
|
+
.p234-results { border-top: var(--p234-border-thick) solid var(--p234-color-ink); }
|
|
1195
|
+
.p234-results__row {
|
|
1196
|
+
display: grid;
|
|
1197
|
+
grid-template-columns: auto 1fr auto;
|
|
1198
|
+
align-items: center;
|
|
1199
|
+
gap: var(--p234-space-3) var(--p234-space-4);
|
|
1200
|
+
padding: var(--p234-space-4) 0;
|
|
1201
|
+
border-bottom: var(--p234-border-hairline) solid var(--p234-color-rule);
|
|
1202
|
+
}
|
|
1203
|
+
.p234-results__party {
|
|
1204
|
+
font-family: var(--p234-type-ui-sm-family);
|
|
1205
|
+
font-size: var(--p234-type-ui-sm-size);
|
|
1206
|
+
font-weight: 700;
|
|
1207
|
+
color: var(--p234-color-ink);
|
|
1208
|
+
min-width: 3.5rem;
|
|
1209
|
+
}
|
|
1210
|
+
.p234-results__name {
|
|
1211
|
+
font-family: var(--p234-type-ui-family);
|
|
1212
|
+
font-size: var(--p234-type-ui-size);
|
|
1213
|
+
color: var(--p234-color-ink);
|
|
1214
|
+
}
|
|
1215
|
+
.p234-results__votes {
|
|
1216
|
+
font-family: var(--p234-type-data-family);
|
|
1217
|
+
font-size: var(--p234-type-data-size);
|
|
1218
|
+
font-weight: var(--p234-type-data-weight);
|
|
1219
|
+
font-variant-numeric: var(--p234-type-data-numeric);
|
|
1220
|
+
color: var(--p234-color-ink);
|
|
1221
|
+
}
|
|
1222
|
+
.p234-results__bar {
|
|
1223
|
+
grid-column: 1 / -1;
|
|
1224
|
+
height: 0.5rem;
|
|
1225
|
+
background: var(--p234-color-paper-sunk);
|
|
1226
|
+
border-radius: 1px;
|
|
1227
|
+
overflow: hidden;
|
|
1228
|
+
}
|
|
1229
|
+
.p234-results__fill { display: block; height: 100%; background: var(--p234-color-ink-muted); }
|
|
1230
|
+
.p234-results__fill--lead { background: var(--p234-color-brand); }
|
|
1231
|
+
.p234-results__status {
|
|
1232
|
+
display: inline-block;
|
|
1233
|
+
font-family: var(--p234-type-ui-sm-family);
|
|
1234
|
+
font-size: var(--p234-type-ui-sm-size);
|
|
1235
|
+
font-weight: 600;
|
|
1236
|
+
padding: 1px var(--p234-space-3);
|
|
1237
|
+
border-radius: var(--p234-radius-pill);
|
|
1238
|
+
}
|
|
1239
|
+
.p234-results__status--declared { color: var(--p234-color-success); border: 1px solid var(--p234-color-success); }
|
|
1240
|
+
.p234-results__status--pending { color: var(--p234-color-ink-muted); border: 1px solid var(--p234-color-rule-strong); }
|
|
1241
|
+
|
|
1242
|
+
/* --- banner ------------------------------------------------------------
|
|
1243
|
+
One band for the four that exist today: consent, push prompt, daily brief
|
|
1244
|
+
and quick access. A banner interrupts, so it earns its place or it goes. */
|
|
1245
|
+
.p234-banner {
|
|
1246
|
+
display: flex;
|
|
1247
|
+
align-items: flex-start;
|
|
1248
|
+
gap: var(--p234-space-4);
|
|
1249
|
+
padding: var(--p234-space-5);
|
|
1250
|
+
border: var(--p234-border-hairline) solid var(--p234-color-rule);
|
|
1251
|
+
border-left: var(--p234-border-heavy) solid var(--p234-color-brand);
|
|
1252
|
+
border-radius: var(--p234-radius-sm);
|
|
1253
|
+
background: var(--p234-color-paper-alt);
|
|
1254
|
+
margin-bottom: var(--p234-space-6);
|
|
1255
|
+
}
|
|
1256
|
+
.p234-banner__body { flex: 1; min-width: 0; }
|
|
1257
|
+
.p234-banner__title {
|
|
1258
|
+
font-family: var(--p234-type-ui-family);
|
|
1259
|
+
font-size: var(--p234-type-ui-size);
|
|
1260
|
+
font-weight: 700;
|
|
1261
|
+
color: var(--p234-color-ink);
|
|
1262
|
+
margin: 0 0 var(--p234-space-2);
|
|
1263
|
+
}
|
|
1264
|
+
.p234-banner__text {
|
|
1265
|
+
font-family: var(--p234-type-body-sm-family);
|
|
1266
|
+
font-size: var(--p234-type-body-sm-size);
|
|
1267
|
+
line-height: var(--p234-type-body-sm-leading);
|
|
1268
|
+
color: var(--p234-color-ink-muted);
|
|
1269
|
+
margin: 0;
|
|
1270
|
+
}
|
|
1271
|
+
.p234-banner__actions { display: flex; flex-wrap: wrap; gap: var(--p234-space-3); margin-top: var(--p234-space-4); }
|
|
1272
|
+
.p234-banner__dismiss {
|
|
1273
|
+
flex-shrink: 0;
|
|
1274
|
+
background: none;
|
|
1275
|
+
border: 0;
|
|
1276
|
+
color: var(--p234-color-ink-muted);
|
|
1277
|
+
font: inherit;
|
|
1278
|
+
font-size: var(--p234-type-ui-sm-size);
|
|
1279
|
+
cursor: pointer;
|
|
1280
|
+
min-width: var(--p234-field-height);
|
|
1281
|
+
min-height: var(--p234-field-height);
|
|
1282
|
+
}
|
|
1283
|
+
.p234-banner--info { border-left-color: var(--p234-color-info); }
|
|
1284
|
+
.p234-banner--warning { border-left-color: var(--p234-color-warning); }
|
|
1285
|
+
/* Consent is the one banner that may sit over the page. */
|
|
1286
|
+
.p234-banner--sticky {
|
|
1287
|
+
position: fixed;
|
|
1288
|
+
inset: auto var(--p234-layout-gutter) var(--p234-layout-gutter);
|
|
1289
|
+
z-index: var(--p234-z-overlay);
|
|
1290
|
+
max-width: 34rem;
|
|
1291
|
+
margin: 0 auto;
|
|
1292
|
+
background: var(--p234-color-paper);
|
|
1293
|
+
box-shadow: var(--p234-shadow-overlay);
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
/* --- ticker ------------------------------------------------------------
|
|
1297
|
+
A row of figures across the top of a markets page. Scrolls by hand; it
|
|
1298
|
+
never animates on its own, because a moving number cannot be read. */
|
|
1299
|
+
.p234-ticker {
|
|
1300
|
+
display: flex;
|
|
1301
|
+
gap: var(--p234-space-6);
|
|
1302
|
+
overflow-x: auto;
|
|
1303
|
+
scrollbar-width: none;
|
|
1304
|
+
border-block: var(--p234-border-hairline) solid var(--p234-color-rule);
|
|
1305
|
+
padding: var(--p234-space-4) 0;
|
|
1306
|
+
}
|
|
1307
|
+
.p234-ticker::-webkit-scrollbar { display: none; }
|
|
1308
|
+
.p234-ticker__item {
|
|
1309
|
+
display: flex;
|
|
1310
|
+
align-items: baseline;
|
|
1311
|
+
gap: var(--p234-space-3);
|
|
1312
|
+
flex-shrink: 0;
|
|
1313
|
+
text-decoration: none;
|
|
1314
|
+
color: inherit;
|
|
1315
|
+
}
|
|
1316
|
+
.p234-ticker__name {
|
|
1317
|
+
font-family: var(--p234-type-ui-sm-family);
|
|
1318
|
+
font-size: var(--p234-type-ui-sm-size);
|
|
1319
|
+
font-weight: 600;
|
|
1320
|
+
color: var(--p234-color-ink-muted);
|
|
1321
|
+
}
|
|
1322
|
+
.p234-ticker__value {
|
|
1323
|
+
font-family: var(--p234-type-data-sm-family);
|
|
1324
|
+
font-size: var(--p234-type-data-sm-size);
|
|
1325
|
+
font-weight: 600;
|
|
1326
|
+
font-variant-numeric: var(--p234-type-data-sm-numeric);
|
|
1327
|
+
color: var(--p234-color-ink);
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
/* --- link grid ---------------------------------------------------------
|
|
1331
|
+
Destinations: categories, states, tools. Text, not icons in boxes. */
|
|
1332
|
+
.p234-linkgrid {
|
|
1333
|
+
display: grid;
|
|
1334
|
+
gap: var(--p234-space-4);
|
|
1335
|
+
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
|
|
1336
|
+
list-style: none;
|
|
1337
|
+
margin: 0;
|
|
1338
|
+
padding: 0;
|
|
1339
|
+
}
|
|
1340
|
+
.p234-linkgrid a {
|
|
1341
|
+
display: block;
|
|
1342
|
+
border-top: var(--p234-border-thick) solid var(--p234-color-ink);
|
|
1343
|
+
padding-top: var(--p234-space-3);
|
|
1344
|
+
font-family: var(--p234-type-ui-family);
|
|
1345
|
+
font-size: var(--p234-type-ui-size);
|
|
1346
|
+
font-weight: 600;
|
|
1347
|
+
color: var(--p234-color-ink);
|
|
1348
|
+
text-decoration: none;
|
|
1349
|
+
}
|
|
1350
|
+
.p234-linkgrid a:hover { color: var(--p234-color-brand); }
|
|
1351
|
+
.p234-linkgrid__count {
|
|
1352
|
+
display: block;
|
|
1353
|
+
font-family: var(--p234-type-meta-family);
|
|
1354
|
+
font-size: var(--p234-type-meta-size);
|
|
1355
|
+
font-weight: 400;
|
|
1356
|
+
color: var(--p234-color-ink-muted);
|
|
1357
|
+
margin-top: 2px;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
/* --- poster ------------------------------------------------------------
|
|
1361
|
+
Portrait media: films, shows, book and product covers. */
|
|
1362
|
+
.p234-poster { display: block; text-decoration: none; color: inherit; }
|
|
1363
|
+
.p234-poster__img {
|
|
1364
|
+
display: block;
|
|
1365
|
+
width: 100%;
|
|
1366
|
+
aspect-ratio: 2 / 3;
|
|
1367
|
+
object-fit: cover;
|
|
1368
|
+
background: var(--p234-color-paper-sunk);
|
|
1369
|
+
border-radius: var(--p234-radius-sm);
|
|
1370
|
+
}
|
|
1371
|
+
.p234-poster__title {
|
|
1372
|
+
font-family: var(--p234-type-ui-sm-family);
|
|
1373
|
+
font-size: var(--p234-type-ui-sm-size);
|
|
1374
|
+
font-weight: 600;
|
|
1375
|
+
color: var(--p234-color-ink);
|
|
1376
|
+
margin: var(--p234-space-3) 0 0;
|
|
1377
|
+
}
|
|
1378
|
+
.p234-poster__meta {
|
|
1379
|
+
font-family: var(--p234-type-meta-family);
|
|
1380
|
+
font-size: var(--p234-type-meta-size);
|
|
1381
|
+
color: var(--p234-color-ink-muted);
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1385
|
+
.p234-btn, .p234-toggle { transition: none; }
|
|
1386
|
+
/* The bar still appears and still fills, it just stops sliding. */
|
|
1387
|
+
.p234-progress { transition: none; }
|
|
1388
|
+
/* The placeholder stays, the shimmer goes. */
|
|
1389
|
+
.p234-skeleton::after { animation: none; }
|
|
1390
|
+
.p234-strip__track { scroll-behavior: auto; }
|
|
1391
|
+
}
|