@editio-ui/react 0.0.0-stage → 0.1.1
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/dist/components/button/button.d.ts +17 -0
- package/dist/components/button/button.js +11 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/checkbox/checkbox.d.ts +23 -0
- package/dist/components/checkbox/checkbox.js +19 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/input.d.ts +15 -0
- package/dist/components/input/input.js +14 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/radio-group.d.ts +31 -0
- package/dist/components/radio-group/radio-group.js +47 -0
- package/dist/components/separator/index.d.ts +2 -0
- package/dist/components/separator/separator.d.ts +18 -0
- package/dist/components/separator/separator.js +13 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/switch.d.ts +7 -0
- package/dist/components/switch/switch.js +12 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textarea.d.ts +15 -0
- package/dist/components/textarea/textarea.js +14 -0
- package/dist/editorial/backgrounds.css +201 -0
- package/dist/editorial/buttons.css +209 -0
- package/dist/editorial/choices.css +360 -0
- package/dist/editorial/disclosure.css +359 -0
- package/dist/editorial/feedback.css +272 -0
- package/dist/editorial/fields.css +205 -0
- package/dist/editorial/motion.css +184 -0
- package/dist/editorial/showcase.css +395 -0
- package/dist/editorial/tokens.css +129 -0
- package/dist/editorial/type.css +379 -0
- package/dist/editorial-fonts.css +4 -0
- package/dist/editorial.css +2704 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +8 -0
- package/package.json +74 -4
- package/README.md +0 -3
|
@@ -0,0 +1,2704 @@
|
|
|
1
|
+
/*! Editio Editorial. Plain CSS, no runtime. https://github.com/ (MIT) */
|
|
2
|
+
|
|
3
|
+
/* ==========================================================================
|
|
4
|
+
Editio Editorial: tokens
|
|
5
|
+
Everything in this kit reads these custom properties and nothing else.
|
|
6
|
+
Change a token and every component follows. Themes are just token sets.
|
|
7
|
+
|
|
8
|
+
Palette tokens --ed-p-* the theme's real colours (edit these)
|
|
9
|
+
Role tokens --ed-paper / --ed-ink / --ed-accent what components use
|
|
10
|
+
Surfaces data-ed-surface="paper|ink|accent" swaps the roles locally
|
|
11
|
+
========================================================================== */
|
|
12
|
+
|
|
13
|
+
/* @variant tokens */
|
|
14
|
+
@property --ed-r { syntax: "<length>"; inherits: false; initial-value: 0px; }
|
|
15
|
+
@property --ed-m { syntax: "<length-percentage>"; inherits: false; initial-value: 8px; }
|
|
16
|
+
|
|
17
|
+
/* Theme 1: Mono. The default. White stock, black ink, one mid grey. */
|
|
18
|
+
:root,
|
|
19
|
+
[data-ed-theme="mono"] {
|
|
20
|
+
--ed-p-paper: #ffffff;
|
|
21
|
+
--ed-p-ink: #0a0a0a;
|
|
22
|
+
--ed-p-accent: #8e8e8e;
|
|
23
|
+
--ed-p-on-accent: #0a0a0a;
|
|
24
|
+
--ed-hot: #3d3d3d;
|
|
25
|
+
|
|
26
|
+
--ed-font-display: "Archivo Variable", "Archivo", "Helvetica Neue", Arial, sans-serif;
|
|
27
|
+
--ed-font-swash: "Bodoni Moda Variable", "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
|
|
28
|
+
--ed-font-text: "Newsreader Variable", "Newsreader", Georgia, "Times New Roman", serif;
|
|
29
|
+
--ed-font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
|
|
30
|
+
|
|
31
|
+
--ed-hair: 1px; /* hairline rule weight */
|
|
32
|
+
--ed-thick: 3px; /* heavy rule weight */
|
|
33
|
+
--ed-radius: 0px; /* 0 is the point. Raise it if you must. */
|
|
34
|
+
--ed-dot: 7px; /* halftone cell size */
|
|
35
|
+
--ed-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
36
|
+
--ed-grain-blend: multiply;
|
|
37
|
+
--ed-grain-opacity: 0.32;
|
|
38
|
+
--ed-ht-blend: multiply; /* halftone on light stock: black dots multiplied in */
|
|
39
|
+
--ed-ht-invert: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Theme 2: Graphite. Mono turned over: near-black stock, off-white ink. */
|
|
43
|
+
[data-ed-theme="graphite"] {
|
|
44
|
+
color-scheme: dark;
|
|
45
|
+
--ed-p-paper: #0d0d0d;
|
|
46
|
+
--ed-p-ink: #ececec;
|
|
47
|
+
--ed-p-accent: #8a8a8a;
|
|
48
|
+
--ed-p-on-accent: #0d0d0d;
|
|
49
|
+
--ed-hot: #bcbcbc;
|
|
50
|
+
--ed-grain-blend: screen;
|
|
51
|
+
--ed-grain-opacity: 0.14;
|
|
52
|
+
--ed-ht-blend: screen; /* halftone on dark stock: light dots screened in */
|
|
53
|
+
--ed-ht-invert: 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Theme 3: Bone. Warm grey stock, soft black. */
|
|
57
|
+
[data-ed-theme="bone"] {
|
|
58
|
+
--ed-p-paper: #ebe8e2;
|
|
59
|
+
--ed-p-ink: #181715;
|
|
60
|
+
--ed-p-accent: #8d887e;
|
|
61
|
+
--ed-p-on-accent: #181715;
|
|
62
|
+
--ed-hot: #4a4640;
|
|
63
|
+
--ed-font-swash: "Newsreader Variable", "Newsreader", Georgia, serif;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Theme 4: Slate. Cool grey stock with one muted blue-grey. */
|
|
67
|
+
[data-ed-theme="slate"] {
|
|
68
|
+
--ed-p-paper: #eef0f3;
|
|
69
|
+
--ed-p-ink: #0f1620;
|
|
70
|
+
--ed-p-accent: #4d5f7a;
|
|
71
|
+
--ed-p-on-accent: #ffffff;
|
|
72
|
+
--ed-hot: #2b3647;
|
|
73
|
+
--ed-font-swash: "Instrument Serif", "Bodoni Moda Variable", Georgia, serif;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Theme 5: Oxide. Warm paper with a single brick red. */
|
|
77
|
+
[data-ed-theme="oxide"] {
|
|
78
|
+
--ed-p-paper: #f3efea;
|
|
79
|
+
--ed-p-ink: #1b1512;
|
|
80
|
+
--ed-p-accent: #8a3b2e;
|
|
81
|
+
--ed-p-on-accent: #fff7f0;
|
|
82
|
+
--ed-hot: #5c2a22;
|
|
83
|
+
--ed-font-swash: "Playfair Display Variable", "Playfair Display", Didot, Georgia, serif;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Role tokens: what components actually read. Recomputed wherever a theme or
|
|
87
|
+
surface is declared, so nested themes and surfaces just work. */
|
|
88
|
+
:root,
|
|
89
|
+
[data-ed-theme],
|
|
90
|
+
[data-ed-surface] {
|
|
91
|
+
--ed-paper: var(--ed-p-paper);
|
|
92
|
+
--ed-ink: var(--ed-p-ink);
|
|
93
|
+
--ed-accent: var(--ed-p-accent);
|
|
94
|
+
--ed-on-accent: var(--ed-p-on-accent);
|
|
95
|
+
--ed-paper-2: color-mix(in srgb, var(--ed-paper) 88%, var(--ed-ink));
|
|
96
|
+
--ed-ink-2: color-mix(in srgb, var(--ed-ink) 62%, var(--ed-paper));
|
|
97
|
+
--ed-tint: color-mix(in srgb, var(--ed-ink) 15%, transparent);
|
|
98
|
+
--ed-accent-tint: color-mix(in srgb, var(--ed-accent) 26%, transparent);
|
|
99
|
+
|
|
100
|
+
/* icons are masks, so they take any colour */
|
|
101
|
+
--ed-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M3 12h17M13 5l7 7-7 7'/%3E%3C/svg%3E");
|
|
102
|
+
--ed-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M4 12.5l5.2 5.2L20 6.5'/%3E%3C/svg%3E");
|
|
103
|
+
--ed-i-scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' preserveAspectRatio='none'%3E%3Cpath d='M16 2C8 1.4 1.6 6 2 12.6 2.5 19.6 10 22.6 18 21.5 26.6 20.4 30.6 15 28 8.6 25.4 3.4 18 1.4 9 3.2'/%3E%3C/svg%3E");
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Surfaces: put data-ed-surface on any container. */
|
|
107
|
+
[data-ed-surface] { background: var(--ed-paper); color: var(--ed-ink); }
|
|
108
|
+
[data-ed-surface="paper"] {
|
|
109
|
+
--ed-paper: var(--ed-p-paper);
|
|
110
|
+
--ed-ink: var(--ed-p-ink);
|
|
111
|
+
--ed-accent: var(--ed-p-accent);
|
|
112
|
+
--ed-on-accent: var(--ed-p-on-accent);
|
|
113
|
+
}
|
|
114
|
+
[data-ed-surface="ink"] {
|
|
115
|
+
--ed-paper: var(--ed-p-ink);
|
|
116
|
+
--ed-ink: var(--ed-p-paper);
|
|
117
|
+
--ed-accent: var(--ed-p-accent);
|
|
118
|
+
--ed-on-accent: var(--ed-p-on-accent);
|
|
119
|
+
--ed-grain-blend: screen;
|
|
120
|
+
--ed-grain-opacity: 0.14;
|
|
121
|
+
--ed-ht-blend: screen;
|
|
122
|
+
--ed-ht-invert: 1;
|
|
123
|
+
}
|
|
124
|
+
[data-ed-surface="paper"] { --ed-ht-blend: multiply; --ed-ht-invert: 0; --ed-grain-blend: multiply; --ed-grain-opacity: 0.32; }
|
|
125
|
+
[data-ed-surface="accent"] {
|
|
126
|
+
--ed-paper: var(--ed-p-accent);
|
|
127
|
+
--ed-ink: var(--ed-p-on-accent);
|
|
128
|
+
--ed-accent: var(--ed-p-paper);
|
|
129
|
+
--ed-on-accent: var(--ed-p-ink);
|
|
130
|
+
}
|
|
131
|
+
/* @end */
|
|
132
|
+
|
|
133
|
+
/* @variant buttons/base */
|
|
134
|
+
.ed-btn {
|
|
135
|
+
appearance: none;
|
|
136
|
+
-webkit-appearance: none;
|
|
137
|
+
position: relative;
|
|
138
|
+
display: inline-flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
justify-content: center;
|
|
141
|
+
gap: 0.6em;
|
|
142
|
+
padding: 0.95em 1.5em;
|
|
143
|
+
font: 700 0.8125rem/1 var(--ed-font-display);
|
|
144
|
+
font-stretch: 105%;
|
|
145
|
+
letter-spacing: 0.09em;
|
|
146
|
+
text-transform: uppercase;
|
|
147
|
+
text-decoration: none;
|
|
148
|
+
color: var(--ed-ink);
|
|
149
|
+
background: transparent;
|
|
150
|
+
border: 1.5px solid var(--ed-ink);
|
|
151
|
+
border-radius: var(--ed-radius);
|
|
152
|
+
cursor: pointer;
|
|
153
|
+
transition: transform 0.25s var(--ed-ease), box-shadow 0.25s var(--ed-ease),
|
|
154
|
+
background-color 0.25s, color 0.25s, background-size 0.3s var(--ed-ease), --ed-r 0.35s, --ed-m 0.35s;
|
|
155
|
+
-webkit-tap-highlight-color: transparent;
|
|
156
|
+
}
|
|
157
|
+
.ed-btn:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 4px; }
|
|
158
|
+
.ed-btn:disabled,
|
|
159
|
+
.ed-btn[aria-disabled="true"] { opacity: 0.38; cursor: not-allowed; pointer-events: none; }
|
|
160
|
+
/* @end */
|
|
161
|
+
|
|
162
|
+
/* @variant buttons/offset */
|
|
163
|
+
/* Hard offset shadow, like a misregistered second colour. Presses flat. */
|
|
164
|
+
.ed-btn[data-variant="offset"] {
|
|
165
|
+
background: var(--ed-ink);
|
|
166
|
+
color: var(--ed-paper);
|
|
167
|
+
box-shadow: 4px 4px 0 var(--ed-accent);
|
|
168
|
+
}
|
|
169
|
+
.ed-btn[data-variant="offset"]:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ed-accent); }
|
|
170
|
+
.ed-btn[data-variant="offset"]:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ed-accent); }
|
|
171
|
+
/* @end */
|
|
172
|
+
|
|
173
|
+
/* @variant buttons/rule */
|
|
174
|
+
/* A link-weight button: heavy underline, arrow that walks out on hover. */
|
|
175
|
+
.ed-btn[data-variant="rule"] {
|
|
176
|
+
padding: 0.5em 0;
|
|
177
|
+
border: 0;
|
|
178
|
+
background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
|
|
179
|
+
}
|
|
180
|
+
.ed-btn[data-variant="rule"]::after {
|
|
181
|
+
content: "";
|
|
182
|
+
width: 1.15em;
|
|
183
|
+
height: 1.15em;
|
|
184
|
+
background: currentColor;
|
|
185
|
+
-webkit-mask: var(--ed-i-arrow) center / contain no-repeat;
|
|
186
|
+
mask: var(--ed-i-arrow) center / contain no-repeat;
|
|
187
|
+
transition: transform 0.3s var(--ed-ease);
|
|
188
|
+
}
|
|
189
|
+
.ed-btn[data-variant="rule"]:hover { background-size: 100% 5px; }
|
|
190
|
+
.ed-btn[data-variant="rule"]:hover::after { transform: translateX(0.35em); }
|
|
191
|
+
/* @end */
|
|
192
|
+
|
|
193
|
+
/* @variant buttons/highlight */
|
|
194
|
+
/* Highlighter swipe. The bar rises to fill the whole word on hover. */
|
|
195
|
+
.ed-btn[data-variant="highlight"] {
|
|
196
|
+
padding: 0.35em 0.2em;
|
|
197
|
+
border: 0;
|
|
198
|
+
background: linear-gradient(var(--ed-accent), var(--ed-accent)) 0 100% / 100% 0.32em no-repeat;
|
|
199
|
+
font-size: 1rem;
|
|
200
|
+
}
|
|
201
|
+
.ed-btn[data-variant="highlight"]:hover { background-size: 100% 100%; color: var(--ed-on-accent); }
|
|
202
|
+
/* @end */
|
|
203
|
+
|
|
204
|
+
/* @variant buttons/swash */
|
|
205
|
+
/* Didone italic in a hairline capsule. Fills with ink. */
|
|
206
|
+
.ed-btn[data-variant="swash"] {
|
|
207
|
+
padding: 0.5em 1.7em 0.58em;
|
|
208
|
+
font: italic 500 1.4rem/1 var(--ed-font-swash);
|
|
209
|
+
letter-spacing: 0;
|
|
210
|
+
text-transform: none;
|
|
211
|
+
border-width: 1px;
|
|
212
|
+
border-radius: 999px;
|
|
213
|
+
background: var(--ed-paper);
|
|
214
|
+
}
|
|
215
|
+
.ed-btn[data-variant="swash"]:hover { background: var(--ed-ink); color: var(--ed-paper); }
|
|
216
|
+
/* @end */
|
|
217
|
+
|
|
218
|
+
/* @variant buttons/stamp */
|
|
219
|
+
/* Rotating postmark. Text rides a circle; centre arrow tilts on hover. */
|
|
220
|
+
.ed-btn[data-variant="stamp"] {
|
|
221
|
+
width: 7.5rem;
|
|
222
|
+
height: 7.5rem;
|
|
223
|
+
padding: 0;
|
|
224
|
+
border-radius: 50%;
|
|
225
|
+
background: var(--ed-accent);
|
|
226
|
+
color: var(--ed-on-accent);
|
|
227
|
+
border: 0;
|
|
228
|
+
}
|
|
229
|
+
.ed-btn[data-variant="stamp"] svg {
|
|
230
|
+
position: absolute;
|
|
231
|
+
inset: 0;
|
|
232
|
+
width: 100%;
|
|
233
|
+
height: 100%;
|
|
234
|
+
animation: ed-spin 16s linear infinite;
|
|
235
|
+
}
|
|
236
|
+
.ed-btn[data-variant="stamp"] text {
|
|
237
|
+
fill: currentColor;
|
|
238
|
+
font: 700 9.6px var(--ed-font-display);
|
|
239
|
+
letter-spacing: 0.14em;
|
|
240
|
+
text-transform: uppercase;
|
|
241
|
+
}
|
|
242
|
+
.ed-btn[data-variant="stamp"] .ed-ico {
|
|
243
|
+
width: 1.9rem;
|
|
244
|
+
height: 1.9rem;
|
|
245
|
+
background: currentColor;
|
|
246
|
+
-webkit-mask: var(--ed-i-arrow) center / contain no-repeat;
|
|
247
|
+
mask: var(--ed-i-arrow) center / contain no-repeat;
|
|
248
|
+
transform: rotate(-45deg);
|
|
249
|
+
transition: transform 0.35s var(--ed-ease);
|
|
250
|
+
}
|
|
251
|
+
.ed-btn[data-variant="stamp"]:hover .ed-ico { transform: rotate(0deg); }
|
|
252
|
+
.ed-btn[data-variant="stamp"]:hover svg { animation-duration: 5s; }
|
|
253
|
+
@keyframes ed-spin { to { transform: rotate(360deg); } }
|
|
254
|
+
@media (prefers-reduced-motion: reduce) { .ed-btn[data-variant="stamp"] svg { animation: none; } }
|
|
255
|
+
/* @end */
|
|
256
|
+
|
|
257
|
+
/* @variant buttons/roll */
|
|
258
|
+
/* Label rolls up and a second copy arrives. Pure text-shadow, no duplicate DOM. */
|
|
259
|
+
.ed-btn[data-variant="roll"] {
|
|
260
|
+
padding: 1.05em 1.7em;
|
|
261
|
+
background: var(--ed-ink);
|
|
262
|
+
color: var(--ed-paper);
|
|
263
|
+
overflow: hidden;
|
|
264
|
+
}
|
|
265
|
+
.ed-btn[data-variant="roll"] .ed-roll { display: block; height: 1.2em; line-height: 1.2; overflow: hidden; }
|
|
266
|
+
.ed-btn[data-variant="roll"] .ed-roll > span {
|
|
267
|
+
display: block;
|
|
268
|
+
text-shadow: 0 1.2em var(--ed-accent);
|
|
269
|
+
transition: transform 0.4s var(--ed-ease);
|
|
270
|
+
}
|
|
271
|
+
.ed-btn[data-variant="roll"]:hover .ed-roll > span { transform: translateY(-1.2em); }
|
|
272
|
+
/* @end */
|
|
273
|
+
|
|
274
|
+
/* @variant buttons/crop */
|
|
275
|
+
/* Crop marks at the corners. On hover the marks grow until they close the box. */
|
|
276
|
+
.ed-btn[data-variant="crop"] {
|
|
277
|
+
--ed-m: 9px;
|
|
278
|
+
padding: 1.1em 1.9em;
|
|
279
|
+
border: 0;
|
|
280
|
+
background:
|
|
281
|
+
linear-gradient(currentColor 0 0) 0 0 / var(--ed-m) 1.5px no-repeat,
|
|
282
|
+
linear-gradient(currentColor 0 0) 0 0 / 1.5px var(--ed-m) no-repeat,
|
|
283
|
+
linear-gradient(currentColor 0 0) 100% 0 / var(--ed-m) 1.5px no-repeat,
|
|
284
|
+
linear-gradient(currentColor 0 0) 100% 0 / 1.5px var(--ed-m) no-repeat,
|
|
285
|
+
linear-gradient(currentColor 0 0) 0 100% / var(--ed-m) 1.5px no-repeat,
|
|
286
|
+
linear-gradient(currentColor 0 0) 0 100% / 1.5px var(--ed-m) no-repeat,
|
|
287
|
+
linear-gradient(currentColor 0 0) 100% 100% / var(--ed-m) 1.5px no-repeat,
|
|
288
|
+
linear-gradient(currentColor 0 0) 100% 100% / 1.5px var(--ed-m) no-repeat;
|
|
289
|
+
}
|
|
290
|
+
.ed-btn[data-variant="crop"]:hover { --ed-m: 50.5%; }
|
|
291
|
+
/* @end */
|
|
292
|
+
|
|
293
|
+
/* @variant buttons/halftone */
|
|
294
|
+
/* Dots swell from nothing until the button is solid ink. */
|
|
295
|
+
.ed-btn[data-variant="halftone"] {
|
|
296
|
+
--ed-r: 0px;
|
|
297
|
+
background: radial-gradient(circle at center, var(--ed-ink) var(--ed-r), transparent calc(var(--ed-r) + 0.6px)) 0 0 / 7px 7px;
|
|
298
|
+
background-color: var(--ed-paper);
|
|
299
|
+
transition: --ed-r 0.45s var(--ed-ease), color 0.2s 0.15s;
|
|
300
|
+
}
|
|
301
|
+
.ed-btn[data-variant="halftone"]:hover { --ed-r: 5.2px; color: var(--ed-paper); }
|
|
302
|
+
/* @end */
|
|
303
|
+
|
|
304
|
+
/* @variant buttons/read */
|
|
305
|
+
/* Label plus a ringed arrow. The ring floods with the accent colour. */
|
|
306
|
+
.ed-btn[data-variant="read"] { padding: 0; border: 0; gap: 1em; }
|
|
307
|
+
.ed-btn[data-variant="read"] .ed-ico {
|
|
308
|
+
display: grid;
|
|
309
|
+
place-items: center;
|
|
310
|
+
width: 2.7em;
|
|
311
|
+
height: 2.7em;
|
|
312
|
+
border: 1.5px solid currentColor;
|
|
313
|
+
border-radius: 50%;
|
|
314
|
+
transition: background-color 0.3s, border-color 0.3s, color 0.3s;
|
|
315
|
+
}
|
|
316
|
+
.ed-btn[data-variant="read"] .ed-ico::after {
|
|
317
|
+
content: "";
|
|
318
|
+
width: 1.1em;
|
|
319
|
+
height: 1.1em;
|
|
320
|
+
background: currentColor;
|
|
321
|
+
-webkit-mask: var(--ed-i-arrow) center / contain no-repeat;
|
|
322
|
+
mask: var(--ed-i-arrow) center / contain no-repeat;
|
|
323
|
+
transition: transform 0.35s var(--ed-ease);
|
|
324
|
+
}
|
|
325
|
+
.ed-btn[data-variant="read"]:hover .ed-ico { background: var(--ed-accent); border-color: var(--ed-accent); color: var(--ed-on-accent); }
|
|
326
|
+
.ed-btn[data-variant="read"]:hover .ed-ico::after { transform: rotate(-45deg); }
|
|
327
|
+
/* @end */
|
|
328
|
+
|
|
329
|
+
/* @variant buttons/menu */
|
|
330
|
+
/* The masthead "Menu" control: label plus two rules that part on hover. */
|
|
331
|
+
.ed-btn[data-variant="menu"] { padding: 0.5em 0; border: 0; gap: 0.9em; font-size: 0.875rem; }
|
|
332
|
+
.ed-btn[data-variant="menu"] .ed-bars {
|
|
333
|
+
width: 1.7rem;
|
|
334
|
+
height: 0.62rem;
|
|
335
|
+
background:
|
|
336
|
+
linear-gradient(currentColor 0 0) 0 0 / 100% 2px no-repeat,
|
|
337
|
+
linear-gradient(currentColor 0 0) 100% 100% / 100% 2px no-repeat;
|
|
338
|
+
transition: background-size 0.3s var(--ed-ease);
|
|
339
|
+
}
|
|
340
|
+
.ed-btn[data-variant="menu"]:hover .ed-bars { background-size: 55% 2px, 55% 2px; }
|
|
341
|
+
/* @end */
|
|
342
|
+
|
|
343
|
+
/* ==========================================================================
|
|
344
|
+
Checkboxes, switches, radios. All three are native inputs with
|
|
345
|
+
appearance: none, so keyboard, forms and labels keep working.
|
|
346
|
+
========================================================================== */
|
|
347
|
+
|
|
348
|
+
/* @variant choices/base */
|
|
349
|
+
.ed-field {
|
|
350
|
+
display: inline-flex;
|
|
351
|
+
align-items: center;
|
|
352
|
+
gap: 0.75em;
|
|
353
|
+
font: 500 1.0625rem/1.3 var(--ed-font-text);
|
|
354
|
+
color: var(--ed-ink);
|
|
355
|
+
cursor: pointer;
|
|
356
|
+
}
|
|
357
|
+
.ed-check,
|
|
358
|
+
.ed-radio,
|
|
359
|
+
.ed-switch {
|
|
360
|
+
appearance: none;
|
|
361
|
+
-webkit-appearance: none;
|
|
362
|
+
position: relative;
|
|
363
|
+
flex: none;
|
|
364
|
+
margin: 0;
|
|
365
|
+
color: var(--ed-ink);
|
|
366
|
+
background: transparent;
|
|
367
|
+
cursor: pointer;
|
|
368
|
+
overflow: visible;
|
|
369
|
+
transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s, --ed-r 0.35s var(--ed-ease);
|
|
370
|
+
}
|
|
371
|
+
.ed-check::before, .ed-check::after,
|
|
372
|
+
.ed-radio::before, .ed-radio::after,
|
|
373
|
+
.ed-switch::before, .ed-switch::after { content: ""; position: absolute; }
|
|
374
|
+
.ed-check:focus-visible,
|
|
375
|
+
.ed-radio:focus-visible,
|
|
376
|
+
.ed-switch:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 4px; }
|
|
377
|
+
.ed-check:disabled,
|
|
378
|
+
.ed-radio:disabled,
|
|
379
|
+
.ed-switch:disabled { opacity: 0.38; cursor: not-allowed; }
|
|
380
|
+
.ed-check:disabled ~ *, .ed-radio:disabled ~ *, .ed-switch:disabled ~ * { opacity: 0.55; }
|
|
381
|
+
|
|
382
|
+
/* Layout helpers: stack = vertical list, row = wrapping inline set. */
|
|
383
|
+
.ed-stack { display: grid; gap: 1rem; justify-items: start; }
|
|
384
|
+
.ed-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
|
|
385
|
+
|
|
386
|
+
/* Wrapper for choices whose face is text (chips, tabs, plans). The input
|
|
387
|
+
covers the label so the whole thing is one hit target. */
|
|
388
|
+
.ed-choice { position: relative; display: inline-flex; cursor: pointer; }
|
|
389
|
+
.ed-choice > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
|
|
390
|
+
.ed-choice > input:focus-visible + span { outline: 2px solid var(--ed-accent); outline-offset: 3px; }
|
|
391
|
+
/* @end */
|
|
392
|
+
|
|
393
|
+
/* ---------- checkboxes ---------- */
|
|
394
|
+
|
|
395
|
+
/* @variant checkboxes/base */
|
|
396
|
+
.ed-check {
|
|
397
|
+
width: 1.5rem;
|
|
398
|
+
height: 1.5rem;
|
|
399
|
+
border: 1.5px solid currentColor;
|
|
400
|
+
border-radius: var(--ed-radius);
|
|
401
|
+
}
|
|
402
|
+
/* @end */
|
|
403
|
+
|
|
404
|
+
/* @variant checkboxes/tick */
|
|
405
|
+
/* Solid ink square, square-cap tick. Mixed state shows a dash. */
|
|
406
|
+
.ed-check[data-variant="tick"]::after {
|
|
407
|
+
inset: 0;
|
|
408
|
+
background: var(--ed-paper);
|
|
409
|
+
-webkit-mask: var(--ed-i-check) center / 74% no-repeat;
|
|
410
|
+
mask: var(--ed-i-check) center / 74% no-repeat;
|
|
411
|
+
transform: scale(0);
|
|
412
|
+
transition: transform 0.22s var(--ed-ease);
|
|
413
|
+
}
|
|
414
|
+
.ed-check[data-variant="tick"]:checked,
|
|
415
|
+
.ed-check[data-variant="tick"]:indeterminate { background: var(--ed-ink); }
|
|
416
|
+
.ed-check[data-variant="tick"]:checked::after { transform: scale(1); }
|
|
417
|
+
.ed-check[data-variant="tick"]:indeterminate::after {
|
|
418
|
+
-webkit-mask: linear-gradient(#000 0 0) center / 52% 2.5px no-repeat;
|
|
419
|
+
mask: linear-gradient(#000 0 0) center / 52% 2.5px no-repeat;
|
|
420
|
+
transform: scale(1);
|
|
421
|
+
}
|
|
422
|
+
/* @end */
|
|
423
|
+
|
|
424
|
+
/* @variant checkboxes/proof */
|
|
425
|
+
/* A pen X that overshoots the box, like marking up a proof. */
|
|
426
|
+
.ed-check[data-variant="proof"]::before,
|
|
427
|
+
.ed-check[data-variant="proof"]::after {
|
|
428
|
+
left: 50%;
|
|
429
|
+
top: 50%;
|
|
430
|
+
width: 150%;
|
|
431
|
+
height: 3px;
|
|
432
|
+
background: var(--ed-accent);
|
|
433
|
+
transform: translate(-50%, -50%) rotate(45deg) scaleX(0);
|
|
434
|
+
transition: transform 0.26s var(--ed-ease);
|
|
435
|
+
}
|
|
436
|
+
.ed-check[data-variant="proof"]::after { transform: translate(-50%, -50%) rotate(-45deg) scaleX(0); transition-delay: 0.09s; }
|
|
437
|
+
.ed-check[data-variant="proof"]:checked::before { transform: translate(-50%, -50%) rotate(45deg) scaleX(1); }
|
|
438
|
+
.ed-check[data-variant="proof"]:checked::after { transform: translate(-50%, -50%) rotate(-45deg) scaleX(1); }
|
|
439
|
+
/* @end */
|
|
440
|
+
|
|
441
|
+
/* @variant checkboxes/strike */
|
|
442
|
+
/* Done items get struck through in the accent colour. Put the label text in the span. */
|
|
443
|
+
.ed-check[data-variant="strike"] { width: 1.15rem; height: 1.15rem; }
|
|
444
|
+
.ed-check[data-variant="strike"]::after {
|
|
445
|
+
inset: 3px;
|
|
446
|
+
background: var(--ed-ink);
|
|
447
|
+
transform: scale(0);
|
|
448
|
+
transition: transform 0.2s var(--ed-ease);
|
|
449
|
+
}
|
|
450
|
+
.ed-check[data-variant="strike"]:checked::after { transform: scale(1); }
|
|
451
|
+
.ed-check[data-variant="strike"] + span {
|
|
452
|
+
background: linear-gradient(var(--ed-accent), var(--ed-accent)) 0 54% / 0% 3px no-repeat;
|
|
453
|
+
transition: background-size 0.4s var(--ed-ease), color 0.3s;
|
|
454
|
+
}
|
|
455
|
+
.ed-check[data-variant="strike"]:checked + span { background-size: 100% 3px; color: var(--ed-ink-2); }
|
|
456
|
+
/* @end */
|
|
457
|
+
|
|
458
|
+
/* @variant checkboxes/circled */
|
|
459
|
+
/* Ellipse that gets circled in marker when ticked. */
|
|
460
|
+
.ed-check[data-variant="circled"] { width: 2.4rem; height: 1.7rem; border-radius: 50%; }
|
|
461
|
+
.ed-check[data-variant="circled"]::before {
|
|
462
|
+
inset: -14% -9%;
|
|
463
|
+
background: var(--ed-accent);
|
|
464
|
+
-webkit-mask: var(--ed-i-scribble) center / 100% 100% no-repeat;
|
|
465
|
+
mask: var(--ed-i-scribble) center / 100% 100% no-repeat;
|
|
466
|
+
clip-path: inset(0 100% 0 0);
|
|
467
|
+
transition: clip-path 0.5s var(--ed-ease);
|
|
468
|
+
}
|
|
469
|
+
.ed-check[data-variant="circled"]:checked::before { clip-path: inset(0 0 0 0); }
|
|
470
|
+
/* @end */
|
|
471
|
+
|
|
472
|
+
/* @variant checkboxes/dots */
|
|
473
|
+
/* Halftone fill. The dots swell until the box reads as solid. */
|
|
474
|
+
.ed-check[data-variant="dots"] {
|
|
475
|
+
--ed-r: 0px;
|
|
476
|
+
background: radial-gradient(circle at center, var(--ed-ink) var(--ed-r), transparent calc(var(--ed-r) + 0.5px)) center / 5px 5px;
|
|
477
|
+
}
|
|
478
|
+
.ed-check[data-variant="dots"]:checked { --ed-r: 3px; }
|
|
479
|
+
.ed-check[data-variant="dots"]:indeterminate { --ed-r: 1.2px; }
|
|
480
|
+
/* @end */
|
|
481
|
+
|
|
482
|
+
/* @variant checkboxes/bracket */
|
|
483
|
+
/* Typewriter brackets. [ ] becomes [×]. */
|
|
484
|
+
.ed-check[data-variant="bracket"] { width: 2.9rem; height: 1.5rem; border: 0; }
|
|
485
|
+
.ed-check[data-variant="bracket"]::before {
|
|
486
|
+
inset: 0;
|
|
487
|
+
display: grid;
|
|
488
|
+
place-items: center;
|
|
489
|
+
content: "[ ]";
|
|
490
|
+
font: 700 1.1rem/1 var(--ed-font-mono);
|
|
491
|
+
white-space: pre;
|
|
492
|
+
}
|
|
493
|
+
.ed-check[data-variant="bracket"]:checked::before { content: "[×]"; color: var(--ed-accent); }
|
|
494
|
+
.ed-check[data-variant="bracket"]:indeterminate::before { content: "[–]"; }
|
|
495
|
+
/* @end */
|
|
496
|
+
|
|
497
|
+
/* @variant checkboxes/chip */
|
|
498
|
+
/* A topic filter. Wrap input and span in .ed-choice. */
|
|
499
|
+
.ed-check[data-variant="chip"] { width: 100%; height: 100%; border: 0; opacity: 0; }
|
|
500
|
+
.ed-check[data-variant="chip"] + span {
|
|
501
|
+
display: inline-block;
|
|
502
|
+
padding: 0.55em 1.05em;
|
|
503
|
+
font: 700 0.75rem/1 var(--ed-font-display);
|
|
504
|
+
letter-spacing: 0.09em;
|
|
505
|
+
text-transform: uppercase;
|
|
506
|
+
color: var(--ed-ink);
|
|
507
|
+
border: 1.5px solid var(--ed-ink);
|
|
508
|
+
border-radius: 999px;
|
|
509
|
+
transition: background-color 0.2s, color 0.2s;
|
|
510
|
+
}
|
|
511
|
+
.ed-choice:hover > .ed-check[data-variant="chip"] + span { background: var(--ed-paper-2); }
|
|
512
|
+
.ed-check[data-variant="chip"]:checked + span { background: var(--ed-ink); color: var(--ed-paper); }
|
|
513
|
+
/* @end */
|
|
514
|
+
|
|
515
|
+
/* ---------- switches ---------- */
|
|
516
|
+
|
|
517
|
+
/* @variant switches/slug */
|
|
518
|
+
/* Newspaper slug: a block slides across a boxed ON/OFF. */
|
|
519
|
+
.ed-switch[data-variant="slug"] { width: 4.9rem; height: 2.1rem; border: 1.5px solid currentColor; border-radius: var(--ed-radius); }
|
|
520
|
+
.ed-switch[data-variant="slug"]::before {
|
|
521
|
+
top: 2px;
|
|
522
|
+
bottom: 2px;
|
|
523
|
+
left: 2px;
|
|
524
|
+
width: calc(50% - 2px);
|
|
525
|
+
background: var(--ed-ink);
|
|
526
|
+
transition: transform 0.3s var(--ed-ease);
|
|
527
|
+
}
|
|
528
|
+
.ed-switch[data-variant="slug"]::after {
|
|
529
|
+
content: "OFF";
|
|
530
|
+
top: 0;
|
|
531
|
+
bottom: 0;
|
|
532
|
+
right: 0;
|
|
533
|
+
width: 50%;
|
|
534
|
+
display: grid;
|
|
535
|
+
place-items: center;
|
|
536
|
+
font: 800 0.66rem/1 var(--ed-font-mono);
|
|
537
|
+
letter-spacing: 0.12em;
|
|
538
|
+
}
|
|
539
|
+
.ed-switch[data-variant="slug"]:checked { background: var(--ed-accent); border-color: var(--ed-ink); color: var(--ed-on-accent); }
|
|
540
|
+
.ed-switch[data-variant="slug"]:checked::before { transform: translateX(100%); background: var(--ed-on-accent); }
|
|
541
|
+
.ed-switch[data-variant="slug"]:checked::after { content: "ON"; right: auto; left: 0; }
|
|
542
|
+
/* @end */
|
|
543
|
+
|
|
544
|
+
/* @variant switches/rule */
|
|
545
|
+
/* A hairline with a square slider. */
|
|
546
|
+
.ed-switch[data-variant="rule"] {
|
|
547
|
+
width: 3rem;
|
|
548
|
+
height: 1.5rem;
|
|
549
|
+
background: linear-gradient(currentColor 0 0) center / 100% var(--ed-hair) no-repeat;
|
|
550
|
+
}
|
|
551
|
+
.ed-switch[data-variant="rule"]::after {
|
|
552
|
+
top: 50%;
|
|
553
|
+
left: 0;
|
|
554
|
+
width: 1.05rem;
|
|
555
|
+
height: 1.05rem;
|
|
556
|
+
background: var(--ed-ink);
|
|
557
|
+
transform: translate(0, -50%);
|
|
558
|
+
transition: transform 0.3s var(--ed-ease), background-color 0.25s;
|
|
559
|
+
}
|
|
560
|
+
.ed-switch[data-variant="rule"]:checked::after { transform: translate(1.95rem, -50%); background: var(--ed-accent); box-shadow: 0 0 0 1.5px var(--ed-ink); }
|
|
561
|
+
/* @end */
|
|
562
|
+
|
|
563
|
+
/* @variant switches/plate */
|
|
564
|
+
/* Boxed track with a hard offset shadow, like a printing plate. */
|
|
565
|
+
.ed-switch[data-variant="plate"] {
|
|
566
|
+
width: 3.7rem;
|
|
567
|
+
height: 1.9rem;
|
|
568
|
+
border: 1.5px solid currentColor;
|
|
569
|
+
border-radius: var(--ed-radius);
|
|
570
|
+
box-shadow: 3px 3px 0 var(--ed-ink);
|
|
571
|
+
}
|
|
572
|
+
.ed-switch[data-variant="plate"]::after {
|
|
573
|
+
top: 3px;
|
|
574
|
+
left: 3px;
|
|
575
|
+
width: calc(1.9rem - 9px);
|
|
576
|
+
height: calc(1.9rem - 9px);
|
|
577
|
+
background: var(--ed-ink);
|
|
578
|
+
transition: transform 0.3s var(--ed-ease), background-color 0.25s;
|
|
579
|
+
}
|
|
580
|
+
.ed-switch[data-variant="plate"]:checked { background: var(--ed-accent); }
|
|
581
|
+
.ed-switch[data-variant="plate"]:checked::after { transform: translateX(1.8rem); }
|
|
582
|
+
/* @end */
|
|
583
|
+
|
|
584
|
+
/* @variant switches/dots */
|
|
585
|
+
/* Empty when off. Halftone fills the track when on. */
|
|
586
|
+
.ed-switch[data-variant="dots"] {
|
|
587
|
+
--ed-r: 0px;
|
|
588
|
+
width: 3.7rem;
|
|
589
|
+
height: 1.9rem;
|
|
590
|
+
border: 1.5px solid currentColor;
|
|
591
|
+
border-radius: 999px;
|
|
592
|
+
background: radial-gradient(circle at center, var(--ed-ink) var(--ed-r), transparent calc(var(--ed-r) + 0.5px)) 0 0 / 5px 5px;
|
|
593
|
+
}
|
|
594
|
+
.ed-switch[data-variant="dots"]::after {
|
|
595
|
+
top: 3px;
|
|
596
|
+
left: 3px;
|
|
597
|
+
width: calc(1.9rem - 9px);
|
|
598
|
+
height: calc(1.9rem - 9px);
|
|
599
|
+
border-radius: 50%;
|
|
600
|
+
background: var(--ed-paper);
|
|
601
|
+
box-shadow: 0 0 0 1.5px var(--ed-ink);
|
|
602
|
+
transition: transform 0.3s var(--ed-ease);
|
|
603
|
+
}
|
|
604
|
+
.ed-switch[data-variant="dots"]:checked { --ed-r: 3px; }
|
|
605
|
+
.ed-switch[data-variant="dots"]:checked::after { transform: translateX(1.8rem); }
|
|
606
|
+
/* @end */
|
|
607
|
+
|
|
608
|
+
/* ---------- radios ---------- */
|
|
609
|
+
|
|
610
|
+
/* @variant radios/base */
|
|
611
|
+
.ed-radio { width: 1.55rem; height: 1.55rem; border: 1.5px solid currentColor; border-radius: 50%; }
|
|
612
|
+
/* @end */
|
|
613
|
+
|
|
614
|
+
/* @variant radios/ring */
|
|
615
|
+
/* Plain ring and dot. The dot is the accent colour with an ink halo. */
|
|
616
|
+
.ed-radio[data-variant="ring"]::after {
|
|
617
|
+
inset: 4px;
|
|
618
|
+
border-radius: 50%;
|
|
619
|
+
background: var(--ed-ink);
|
|
620
|
+
transform: scale(0);
|
|
621
|
+
transition: transform 0.22s var(--ed-ease);
|
|
622
|
+
}
|
|
623
|
+
.ed-radio[data-variant="ring"]:checked::after { transform: scale(1); }
|
|
624
|
+
/* @end */
|
|
625
|
+
|
|
626
|
+
/* @variant radios/numeral */
|
|
627
|
+
/* Roman numerals in italic Didone. Set data-n on each input. */
|
|
628
|
+
.ed-radio[data-variant="numeral"] { width: 2.7rem; height: 2.7rem; border-width: 1px; border-radius: var(--ed-radius); }
|
|
629
|
+
.ed-radio[data-variant="numeral"]::before {
|
|
630
|
+
inset: 0;
|
|
631
|
+
display: grid;
|
|
632
|
+
place-items: center;
|
|
633
|
+
content: attr(data-n);
|
|
634
|
+
font: italic 500 1.3rem/1 var(--ed-font-swash);
|
|
635
|
+
color: var(--ed-ink);
|
|
636
|
+
transition: color 0.2s;
|
|
637
|
+
}
|
|
638
|
+
.ed-radio[data-variant="numeral"]:hover { background: var(--ed-paper-2); }
|
|
639
|
+
.ed-radio[data-variant="numeral"]:checked { background: var(--ed-ink); }
|
|
640
|
+
.ed-radio[data-variant="numeral"]:checked::before { color: var(--ed-paper); }
|
|
641
|
+
/* @end */
|
|
642
|
+
|
|
643
|
+
/* @variant radios/target */
|
|
644
|
+
/* Registration target. Crosshair appears when selected. */
|
|
645
|
+
.ed-radio[data-variant="target"] { width: 1.9rem; height: 1.9rem; }
|
|
646
|
+
.ed-radio[data-variant="target"]::before {
|
|
647
|
+
inset: 50% -5px auto;
|
|
648
|
+
height: 1.5px;
|
|
649
|
+
background: var(--ed-ink);
|
|
650
|
+
transform: scaleX(0);
|
|
651
|
+
transition: transform 0.25s var(--ed-ease);
|
|
652
|
+
}
|
|
653
|
+
.ed-radio[data-variant="target"]::after {
|
|
654
|
+
inset: 6px;
|
|
655
|
+
border-radius: 50%;
|
|
656
|
+
background: var(--ed-accent);
|
|
657
|
+
box-shadow: 0 0 0 1.5px var(--ed-ink);
|
|
658
|
+
transform: scale(0);
|
|
659
|
+
transition: transform 0.25s var(--ed-ease);
|
|
660
|
+
}
|
|
661
|
+
.ed-radio[data-variant="target"]:checked::before { transform: scaleX(1); }
|
|
662
|
+
.ed-radio[data-variant="target"]:checked::after { transform: scale(1); }
|
|
663
|
+
/* @end */
|
|
664
|
+
|
|
665
|
+
/* @variant radios/tab */
|
|
666
|
+
/* Section tabs. Heavy underline marks the current edition. */
|
|
667
|
+
.ed-radio[data-variant="tab"] { width: 100%; height: 100%; border: 0; border-radius: 0; opacity: 0; }
|
|
668
|
+
.ed-radio[data-variant="tab"] + span {
|
|
669
|
+
display: block;
|
|
670
|
+
padding: 0.7em 0.1em 0.6em;
|
|
671
|
+
font: 800 0.8125rem/1 var(--ed-font-display);
|
|
672
|
+
font-stretch: 105%;
|
|
673
|
+
letter-spacing: 0.1em;
|
|
674
|
+
text-transform: uppercase;
|
|
675
|
+
color: var(--ed-ink-2);
|
|
676
|
+
border-bottom: 4px solid transparent;
|
|
677
|
+
transition: color 0.2s, border-color 0.25s;
|
|
678
|
+
}
|
|
679
|
+
.ed-choice:hover > .ed-radio[data-variant="tab"] + span { color: var(--ed-ink); }
|
|
680
|
+
.ed-radio[data-variant="tab"]:checked + span { color: var(--ed-ink); border-bottom-color: var(--ed-accent); }
|
|
681
|
+
/* @end */
|
|
682
|
+
|
|
683
|
+
/* @variant radios/plan */
|
|
684
|
+
/* Selectable tier cards. Selected card inverts and picks up the offset shadow. */
|
|
685
|
+
.ed-radio[data-variant="plan"] { width: 100%; height: 100%; border: 0; border-radius: 0; opacity: 0; }
|
|
686
|
+
.ed-radio[data-variant="plan"] + span {
|
|
687
|
+
display: grid;
|
|
688
|
+
gap: 0.35em;
|
|
689
|
+
min-width: 9.5rem;
|
|
690
|
+
padding: 1rem 1.1rem 1.1rem;
|
|
691
|
+
border: 1.5px solid var(--ed-ink);
|
|
692
|
+
border-radius: var(--ed-radius);
|
|
693
|
+
background: var(--ed-paper);
|
|
694
|
+
color: var(--ed-ink);
|
|
695
|
+
transition: transform 0.25s var(--ed-ease), box-shadow 0.25s var(--ed-ease), background-color 0.2s, color 0.2s;
|
|
696
|
+
}
|
|
697
|
+
.ed-radio[data-variant="plan"] + span b { font: 800 0.75rem/1 var(--ed-font-display); letter-spacing: 0.12em; text-transform: uppercase; }
|
|
698
|
+
.ed-radio[data-variant="plan"] + span i { font: italic 500 1.9rem/1 var(--ed-font-swash); }
|
|
699
|
+
.ed-radio[data-variant="plan"] + span small { font: 500 0.75rem/1.3 var(--ed-font-mono); opacity: 0.7; }
|
|
700
|
+
.ed-choice:hover > .ed-radio[data-variant="plan"] + span { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ed-ink); }
|
|
701
|
+
.ed-radio[data-variant="plan"]:checked + span { background: var(--ed-ink); color: var(--ed-paper); box-shadow: 5px 5px 0 var(--ed-accent); transform: translate(-3px, -3px); }
|
|
702
|
+
/* @end */
|
|
703
|
+
|
|
704
|
+
/* ==========================================================================
|
|
705
|
+
Text fields, textareas, rules
|
|
706
|
+
========================================================================== */
|
|
707
|
+
|
|
708
|
+
/* @variant fields/base */
|
|
709
|
+
.ed-label {
|
|
710
|
+
display: block;
|
|
711
|
+
margin-bottom: 0.45rem;
|
|
712
|
+
font: 800 0.6875rem/1 var(--ed-font-display);
|
|
713
|
+
font-stretch: 105%;
|
|
714
|
+
letter-spacing: 0.15em;
|
|
715
|
+
text-transform: uppercase;
|
|
716
|
+
color: var(--ed-ink-2);
|
|
717
|
+
}
|
|
718
|
+
.ed-input,
|
|
719
|
+
.ed-textarea {
|
|
720
|
+
appearance: none;
|
|
721
|
+
-webkit-appearance: none;
|
|
722
|
+
display: block;
|
|
723
|
+
width: 100%;
|
|
724
|
+
margin: 0;
|
|
725
|
+
padding: 0.7em 0.1em;
|
|
726
|
+
font: 500 1.125rem/1.35 var(--ed-font-text);
|
|
727
|
+
color: var(--ed-ink);
|
|
728
|
+
background: transparent;
|
|
729
|
+
border: 0;
|
|
730
|
+
border-radius: var(--ed-radius);
|
|
731
|
+
transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
|
|
732
|
+
}
|
|
733
|
+
.ed-input::placeholder,
|
|
734
|
+
.ed-textarea::placeholder { color: var(--ed-ink-2); font-style: italic; opacity: 0.75; }
|
|
735
|
+
.ed-input:focus-visible,
|
|
736
|
+
.ed-textarea:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 3px; }
|
|
737
|
+
.ed-input:disabled,
|
|
738
|
+
.ed-textarea:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
739
|
+
.ed-input:user-invalid,
|
|
740
|
+
.ed-textarea:user-invalid { border-color: var(--ed-hot); }
|
|
741
|
+
/* @end */
|
|
742
|
+
|
|
743
|
+
/* @variant fields/underline */
|
|
744
|
+
/* Print-form field. A heavy rule thickens under the caret. */
|
|
745
|
+
.ed-input[data-variant="underline"] { border-bottom: 1.5px solid var(--ed-ink); border-radius: 0; }
|
|
746
|
+
.ed-input[data-variant="underline"]:focus-visible { outline: 0; box-shadow: 0 2px 0 0 var(--ed-ink); }
|
|
747
|
+
/* @end */
|
|
748
|
+
|
|
749
|
+
/* @variant fields/notch */
|
|
750
|
+
/* Label cut into the top border, like a fieldset legend. */
|
|
751
|
+
.ed-notch { position: relative; display: block; }
|
|
752
|
+
.ed-notch > span {
|
|
753
|
+
position: absolute;
|
|
754
|
+
top: -0.5em;
|
|
755
|
+
left: 0.9rem;
|
|
756
|
+
padding: 0 0.45em;
|
|
757
|
+
font: 800 0.625rem/1 var(--ed-font-display);
|
|
758
|
+
letter-spacing: 0.15em;
|
|
759
|
+
text-transform: uppercase;
|
|
760
|
+
color: var(--ed-ink);
|
|
761
|
+
background: var(--ed-paper);
|
|
762
|
+
}
|
|
763
|
+
.ed-input[data-variant="notch"] { padding: 0.95em 1rem; border: 1.5px solid var(--ed-ink); }
|
|
764
|
+
.ed-input[data-variant="notch"]:focus-visible { outline: 0; box-shadow: 4px 4px 0 var(--ed-accent); }
|
|
765
|
+
/* @end */
|
|
766
|
+
|
|
767
|
+
/* @variant fields/subscribe */
|
|
768
|
+
/* Oversized newsletter line with the button locked to it. */
|
|
769
|
+
.ed-subscribe { display: flex; align-items: stretch; width: 100%; border-bottom: var(--ed-thick) solid var(--ed-ink); }
|
|
770
|
+
.ed-input[data-variant="subscribe"] { flex: 1; min-width: 0; padding: 0.45em 0.1em; font: italic 500 clamp(1.3rem, 2.6vw, 1.9rem)/1.1 var(--ed-font-swash); }
|
|
771
|
+
.ed-input[data-variant="subscribe"]:focus-visible { outline: 0; background: var(--ed-accent-tint); }
|
|
772
|
+
.ed-subscribe .ed-btn { border: 0; border-radius: 0; background: var(--ed-ink); color: var(--ed-paper); padding-inline: 1.6em; }
|
|
773
|
+
.ed-subscribe .ed-btn:hover { background: var(--ed-accent); color: var(--ed-on-accent); }
|
|
774
|
+
/* @end */
|
|
775
|
+
|
|
776
|
+
/* @variant fields/giant */
|
|
777
|
+
/* Masthead-scale search. Big enough to be the page. */
|
|
778
|
+
.ed-input[data-variant="giant"] {
|
|
779
|
+
padding: 0.15em 0;
|
|
780
|
+
font: 800 clamp(2rem, 6vw, 3.6rem)/1.05 var(--ed-font-display);
|
|
781
|
+
font-stretch: 112%;
|
|
782
|
+
letter-spacing: -0.02em;
|
|
783
|
+
text-transform: uppercase;
|
|
784
|
+
border-bottom: var(--ed-thick) solid var(--ed-ink);
|
|
785
|
+
border-radius: 0;
|
|
786
|
+
}
|
|
787
|
+
.ed-input[data-variant="giant"]::placeholder { color: var(--ed-ink); opacity: 0.18; font-style: normal; }
|
|
788
|
+
.ed-input[data-variant="giant"]:focus-visible { outline: 0; border-bottom-color: var(--ed-accent); }
|
|
789
|
+
/* @end */
|
|
790
|
+
|
|
791
|
+
/* @variant fields/typewriter */
|
|
792
|
+
/* Monospace, dotted rule, block caret where the browser allows. */
|
|
793
|
+
.ed-input[data-variant="typewriter"] {
|
|
794
|
+
font: 500 1rem/1.4 var(--ed-font-mono);
|
|
795
|
+
border-bottom: 2px dotted var(--ed-ink);
|
|
796
|
+
border-radius: 0;
|
|
797
|
+
caret-color: var(--ed-accent);
|
|
798
|
+
caret-shape: block;
|
|
799
|
+
}
|
|
800
|
+
.ed-input[data-variant="typewriter"]:focus-visible { outline: 0; border-bottom-style: solid; background: var(--ed-accent-tint); }
|
|
801
|
+
/* @end */
|
|
802
|
+
|
|
803
|
+
/* @variant textareas/ruled */
|
|
804
|
+
/* Letters to the editor. Ruled lines scroll with the text; margin line in hot. */
|
|
805
|
+
.ed-textarea[data-variant="ruled"] {
|
|
806
|
+
min-height: 11rem;
|
|
807
|
+
padding: 0 1rem 0 3.9rem;
|
|
808
|
+
line-height: 2rem;
|
|
809
|
+
border: 1px solid var(--ed-ink);
|
|
810
|
+
background:
|
|
811
|
+
linear-gradient(90deg, transparent 3.1rem, var(--ed-hot) 3.1rem calc(3.1rem + 1.5px), transparent calc(3.1rem + 1.5px)),
|
|
812
|
+
repeating-linear-gradient(transparent 0 calc(2rem - 1px), var(--ed-tint) calc(2rem - 1px) 2rem);
|
|
813
|
+
background-attachment: local;
|
|
814
|
+
resize: vertical;
|
|
815
|
+
}
|
|
816
|
+
/* @end */
|
|
817
|
+
|
|
818
|
+
/* @variant textareas/double */
|
|
819
|
+
/* Classic double-rule box. */
|
|
820
|
+
.ed-textarea[data-variant="double"] {
|
|
821
|
+
min-height: 9rem;
|
|
822
|
+
padding: 0.9rem 1rem;
|
|
823
|
+
border: 6px double var(--ed-ink);
|
|
824
|
+
background: var(--ed-paper-2);
|
|
825
|
+
resize: vertical;
|
|
826
|
+
}
|
|
827
|
+
.ed-textarea[data-variant="double"]:focus-visible { outline-offset: 4px; }
|
|
828
|
+
/* @end */
|
|
829
|
+
|
|
830
|
+
/* ---------- rules ---------- */
|
|
831
|
+
|
|
832
|
+
/* @variant rules/base */
|
|
833
|
+
.ed-rule { display: block; margin: 0; border: 0; color: var(--ed-ink); }
|
|
834
|
+
/* @end */
|
|
835
|
+
|
|
836
|
+
/* @variant rules/double */
|
|
837
|
+
/* Thick over thin. The newspaper column head. */
|
|
838
|
+
.ed-rule[data-variant="double"] {
|
|
839
|
+
height: 7px;
|
|
840
|
+
background:
|
|
841
|
+
linear-gradient(currentColor 0 0) 0 0 / 100% var(--ed-thick) no-repeat,
|
|
842
|
+
linear-gradient(currentColor 0 0) 0 100% / 100% var(--ed-hair) no-repeat;
|
|
843
|
+
}
|
|
844
|
+
/* @end */
|
|
845
|
+
|
|
846
|
+
/* @variant rules/masthead */
|
|
847
|
+
/* Heavy bar, gap, hairline. Goes under a masthead. */
|
|
848
|
+
.ed-rule[data-variant="masthead"] {
|
|
849
|
+
height: 13px;
|
|
850
|
+
background:
|
|
851
|
+
linear-gradient(currentColor 0 0) 0 0 / 100% 8px no-repeat,
|
|
852
|
+
linear-gradient(currentColor 0 0) 0 100% / 100% var(--ed-hair) no-repeat;
|
|
853
|
+
}
|
|
854
|
+
/* @end */
|
|
855
|
+
|
|
856
|
+
/* @variant rules/dotted */
|
|
857
|
+
/* Dot leader. */
|
|
858
|
+
.ed-rule[data-variant="dotted"] {
|
|
859
|
+
height: 4px;
|
|
860
|
+
background: radial-gradient(circle at center, currentColor 1.4px, transparent 1.8px) 0 50% / 8px 4px repeat-x;
|
|
861
|
+
}
|
|
862
|
+
/* @end */
|
|
863
|
+
|
|
864
|
+
/* @variant rules/ornament */
|
|
865
|
+
/* Hairline broken by a diamond. */
|
|
866
|
+
.ed-rule[data-variant="ornament"] { position: relative; height: var(--ed-hair); background: currentColor; overflow: visible; }
|
|
867
|
+
.ed-rule[data-variant="ornament"]::after {
|
|
868
|
+
content: "";
|
|
869
|
+
position: absolute;
|
|
870
|
+
left: 50%;
|
|
871
|
+
top: 50%;
|
|
872
|
+
width: 0.7rem;
|
|
873
|
+
height: 0.7rem;
|
|
874
|
+
background: var(--ed-paper);
|
|
875
|
+
border: var(--ed-hair) solid currentColor;
|
|
876
|
+
transform: translate(-50%, -50%) rotate(45deg);
|
|
877
|
+
box-shadow: 0 0 0 0.6rem var(--ed-paper);
|
|
878
|
+
}
|
|
879
|
+
/* @end */
|
|
880
|
+
|
|
881
|
+
/* @variant rules/label */
|
|
882
|
+
/* Section rule with its name sitting on it. Set data-label. */
|
|
883
|
+
.ed-rule[data-variant="label"] {
|
|
884
|
+
height: auto;
|
|
885
|
+
background: linear-gradient(currentColor 0 0) 0 50% / 100% var(--ed-hair) no-repeat;
|
|
886
|
+
}
|
|
887
|
+
.ed-rule[data-variant="label"]::before {
|
|
888
|
+
content: attr(data-label);
|
|
889
|
+
display: inline-block;
|
|
890
|
+
padding-right: 0.9rem;
|
|
891
|
+
font: 800 0.75rem/1 var(--ed-font-display);
|
|
892
|
+
font-stretch: 105%;
|
|
893
|
+
letter-spacing: 0.15em;
|
|
894
|
+
text-transform: uppercase;
|
|
895
|
+
background: var(--ed-paper);
|
|
896
|
+
}
|
|
897
|
+
/* @end */
|
|
898
|
+
|
|
899
|
+
/* @variant rules/column */
|
|
900
|
+
/* Vertical column rule. Editio's vertical Separator sets aria-orientation. */
|
|
901
|
+
.ed-rule[data-variant="column"] {
|
|
902
|
+
width: var(--ed-hair);
|
|
903
|
+
align-self: stretch;
|
|
904
|
+
min-height: 3rem;
|
|
905
|
+
background: currentColor;
|
|
906
|
+
}
|
|
907
|
+
.ed-rule[data-variant="column"][data-weight="heavy"] { width: var(--ed-thick); }
|
|
908
|
+
/* @end */
|
|
909
|
+
|
|
910
|
+
/* ==========================================================================
|
|
911
|
+
Backgrounds. Put .ed-bg and data-bg="…" on any container. All of them are
|
|
912
|
+
CSS only: gradients, masks, one inline SVG noise. Children sit above.
|
|
913
|
+
Halftone fades use the contrast-threshold trick: a dot gradient averaged
|
|
914
|
+
with a tone gradient, then pushed to pure black or white. Where the tone is
|
|
915
|
+
dark the dots merge, where it is light they vanish.
|
|
916
|
+
========================================================================== */
|
|
917
|
+
|
|
918
|
+
/* @variant bg/base */
|
|
919
|
+
.ed-bg {
|
|
920
|
+
position: relative;
|
|
921
|
+
isolation: isolate;
|
|
922
|
+
overflow: hidden;
|
|
923
|
+
background-color: var(--ed-paper);
|
|
924
|
+
color: var(--ed-ink);
|
|
925
|
+
}
|
|
926
|
+
.ed-bg::before,
|
|
927
|
+
.ed-bg::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
|
|
928
|
+
/* @end */
|
|
929
|
+
|
|
930
|
+
/* @variant bg/newsprint */
|
|
931
|
+
/* Warm stock with fibre grain and slightly aged edges. */
|
|
932
|
+
.ed-bg[data-bg="newsprint"]::before {
|
|
933
|
+
inset: 0;
|
|
934
|
+
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
|
935
|
+
opacity: var(--ed-grain-opacity);
|
|
936
|
+
mix-blend-mode: var(--ed-grain-blend);
|
|
937
|
+
}
|
|
938
|
+
.ed-bg[data-bg="newsprint"]::after {
|
|
939
|
+
inset: 0;
|
|
940
|
+
background: radial-gradient(ellipse at center, transparent 55%, color-mix(in srgb, var(--ed-ink) 13%, transparent) 130%);
|
|
941
|
+
}
|
|
942
|
+
/* @end */
|
|
943
|
+
|
|
944
|
+
/* @variant bg/dots */
|
|
945
|
+
/* Even halftone screen. Size follows --ed-dot. */
|
|
946
|
+
.ed-bg[data-bg="dots"] {
|
|
947
|
+
background-image: radial-gradient(circle at center, color-mix(in srgb, var(--ed-ink) 38%, transparent) 0 1.35px, transparent 1.8px);
|
|
948
|
+
background-size: var(--ed-dot) var(--ed-dot);
|
|
949
|
+
}
|
|
950
|
+
/* @end */
|
|
951
|
+
|
|
952
|
+
/* @variant bg/fade */
|
|
953
|
+
/* Halftone gradient. Dots grow toward the dark end. --ed-angle sets direction. */
|
|
954
|
+
.ed-bg[data-bg="fade"]::before {
|
|
955
|
+
inset: 0;
|
|
956
|
+
background:
|
|
957
|
+
radial-gradient(circle at center, rgb(0 0 0 / 0.5) 0, rgb(255 255 255 / 0.5) 100%) 0 0 / var(--ed-dot) var(--ed-dot),
|
|
958
|
+
linear-gradient(var(--ed-angle, 180deg), #fff 8%, #242424 100%);
|
|
959
|
+
filter: contrast(26) invert(var(--ed-ht-invert, 0));
|
|
960
|
+
mix-blend-mode: var(--ed-ht-blend, multiply);
|
|
961
|
+
}
|
|
962
|
+
/* @end */
|
|
963
|
+
|
|
964
|
+
/* @variant bg/spot */
|
|
965
|
+
/* Duotone plate: accent colour with a black halftone vignette. */
|
|
966
|
+
.ed-bg[data-bg="spot"] { background-color: var(--ed-accent); color: var(--ed-on-accent); }
|
|
967
|
+
.ed-bg[data-bg="spot"]::before {
|
|
968
|
+
inset: 0;
|
|
969
|
+
background:
|
|
970
|
+
radial-gradient(circle at center, rgb(0 0 0 / 0.5) 0, rgb(255 255 255 / 0.5) 100%) 0 0 / var(--ed-dot) var(--ed-dot),
|
|
971
|
+
radial-gradient(circle at 55% 45%, #fff 0, #fff 12%, #181818 78%);
|
|
972
|
+
filter: contrast(26);
|
|
973
|
+
mix-blend-mode: multiply;
|
|
974
|
+
}
|
|
975
|
+
/* @end */
|
|
976
|
+
|
|
977
|
+
/* @variant bg/grid */
|
|
978
|
+
/* Layout guides: 12 columns over a 24px baseline. */
|
|
979
|
+
.ed-bg[data-bg="grid"] {
|
|
980
|
+
background-image:
|
|
981
|
+
repeating-linear-gradient(to bottom, transparent 0 calc(1.5rem - 1px), var(--ed-tint) calc(1.5rem - 1px) 1.5rem),
|
|
982
|
+
linear-gradient(90deg, var(--ed-accent-tint) 0 calc(100% - 1rem), transparent calc(100% - 1rem));
|
|
983
|
+
background-size: 100% 100%, calc((100% + 1rem) / 12) 100%;
|
|
984
|
+
background-repeat: no-repeat, repeat-x;
|
|
985
|
+
}
|
|
986
|
+
/* @end */
|
|
987
|
+
|
|
988
|
+
/* @variant bg/ledger */
|
|
989
|
+
/* Ruled ledger paper with a hot margin line. */
|
|
990
|
+
.ed-bg[data-bg="ledger"] {
|
|
991
|
+
background-image:
|
|
992
|
+
linear-gradient(90deg, transparent 4.5rem, var(--ed-hot) 4.5rem calc(4.5rem + 1.5px), transparent calc(4.5rem + 1.5px)),
|
|
993
|
+
repeating-linear-gradient(to bottom, transparent 0 calc(1.75rem - 1px), color-mix(in srgb, var(--ed-accent) 55%, transparent) calc(1.75rem - 1px) 1.75rem);
|
|
994
|
+
}
|
|
995
|
+
/* @end */
|
|
996
|
+
|
|
997
|
+
/* @variant bg/hatch */
|
|
998
|
+
/* Engraving hatch that thins out like shading on a woodcut. */
|
|
999
|
+
.ed-bg[data-bg="hatch"]::before {
|
|
1000
|
+
inset: 0;
|
|
1001
|
+
background: repeating-linear-gradient(45deg, var(--ed-ink) 0 1px, transparent 1px 6px);
|
|
1002
|
+
-webkit-mask: linear-gradient(to top, #000 0%, transparent 88%);
|
|
1003
|
+
mask: linear-gradient(to top, #000 0%, transparent 88%);
|
|
1004
|
+
}
|
|
1005
|
+
.ed-bg[data-bg="hatch"]::after {
|
|
1006
|
+
inset: 0;
|
|
1007
|
+
background: repeating-linear-gradient(-45deg, var(--ed-ink) 0 1px, transparent 1px 6px);
|
|
1008
|
+
-webkit-mask: radial-gradient(ellipse at 100% 100%, #000 0%, transparent 60%);
|
|
1009
|
+
mask: radial-gradient(ellipse at 100% 100%, #000 0%, transparent 60%);
|
|
1010
|
+
}
|
|
1011
|
+
/* @end */
|
|
1012
|
+
|
|
1013
|
+
/* @variant bg/registration */
|
|
1014
|
+
/* Press sheet: crop marks and registration targets. */
|
|
1015
|
+
.ed-bg[data-bg="registration"] {
|
|
1016
|
+
background-image:
|
|
1017
|
+
linear-gradient(var(--ed-ink) 0 0), linear-gradient(var(--ed-ink) 0 0),
|
|
1018
|
+
linear-gradient(var(--ed-ink) 0 0), linear-gradient(var(--ed-ink) 0 0),
|
|
1019
|
+
linear-gradient(var(--ed-ink) 0 0), linear-gradient(var(--ed-ink) 0 0),
|
|
1020
|
+
linear-gradient(var(--ed-ink) 0 0), linear-gradient(var(--ed-ink) 0 0);
|
|
1021
|
+
background-size: 18px 1px, 1px 18px, 18px 1px, 1px 18px, 18px 1px, 1px 18px, 18px 1px, 1px 18px;
|
|
1022
|
+
background-position:
|
|
1023
|
+
0 22px, 22px 0,
|
|
1024
|
+
100% 22px, calc(100% - 22px) 0,
|
|
1025
|
+
0 calc(100% - 22px), 22px 100%,
|
|
1026
|
+
100% calc(100% - 22px), calc(100% - 22px) 100%;
|
|
1027
|
+
background-repeat: no-repeat;
|
|
1028
|
+
}
|
|
1029
|
+
.ed-bg[data-bg="registration"]::before,
|
|
1030
|
+
.ed-bg[data-bg="registration"]::after {
|
|
1031
|
+
left: 50%;
|
|
1032
|
+
width: 26px;
|
|
1033
|
+
height: 26px;
|
|
1034
|
+
transform: translateX(-50%);
|
|
1035
|
+
background:
|
|
1036
|
+
linear-gradient(var(--ed-ink) 0 0) 50% 50% / 100% 1px no-repeat,
|
|
1037
|
+
linear-gradient(var(--ed-ink) 0 0) 50% 50% / 1px 100% no-repeat,
|
|
1038
|
+
radial-gradient(circle, transparent 0 6px, var(--ed-ink) 6px 7px, transparent 7px);
|
|
1039
|
+
}
|
|
1040
|
+
.ed-bg[data-bg="registration"]::before { top: 8px; }
|
|
1041
|
+
.ed-bg[data-bg="registration"]::after { bottom: 8px; }
|
|
1042
|
+
/* @end */
|
|
1043
|
+
|
|
1044
|
+
/* @variant bg/cinema */
|
|
1045
|
+
/* Letterboxed frame with a soft vignette and film grain. Pair with data-ed-theme="graphite". */
|
|
1046
|
+
.ed-bg[data-bg="cinema"] {
|
|
1047
|
+
background-color: #0c0c0c;
|
|
1048
|
+
background-image:
|
|
1049
|
+
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
|
|
1050
|
+
radial-gradient(ellipse 78% 68% at 50% 46%, #2e2e2e 0%, #151515 55%, #080808 100%);
|
|
1051
|
+
background-blend-mode: overlay, normal;
|
|
1052
|
+
}
|
|
1053
|
+
.ed-bg[data-bg="cinema"]::before,
|
|
1054
|
+
.ed-bg[data-bg="cinema"]::after { left: 0; right: 0; height: 11%; background: #000; }
|
|
1055
|
+
.ed-bg[data-bg="cinema"]::before { top: 0; }
|
|
1056
|
+
.ed-bg[data-bg="cinema"]::after { bottom: 0; }
|
|
1057
|
+
/* @end */
|
|
1058
|
+
|
|
1059
|
+
/* @variant bg/cmyk */
|
|
1060
|
+
/* Four-colour screens printed slightly out of register. */
|
|
1061
|
+
.ed-bg[data-bg="cmyk"]::before {
|
|
1062
|
+
inset: 0;
|
|
1063
|
+
background-image:
|
|
1064
|
+
radial-gradient(circle at center, #00aeef 0 2px, transparent 2.5px),
|
|
1065
|
+
radial-gradient(circle at center, #ec008c 0 2px, transparent 2.5px),
|
|
1066
|
+
radial-gradient(circle at center, #ffe600 0 2px, transparent 2.5px);
|
|
1067
|
+
background-size: 10px 10px;
|
|
1068
|
+
background-position: 0 0, 3px 4px, 6px 1px;
|
|
1069
|
+
background-blend-mode: multiply;
|
|
1070
|
+
opacity: 0.75;
|
|
1071
|
+
-webkit-mask: linear-gradient(115deg, #000 0%, transparent 70%);
|
|
1072
|
+
mask: linear-gradient(115deg, #000 0%, transparent 70%);
|
|
1073
|
+
}
|
|
1074
|
+
/* @end */
|
|
1075
|
+
|
|
1076
|
+
/* @variant bg/columns */
|
|
1077
|
+
/* Three newspaper columns under a heavy head rule. */
|
|
1078
|
+
.ed-bg[data-bg="columns"] {
|
|
1079
|
+
background-image:
|
|
1080
|
+
linear-gradient(var(--ed-ink) 0 0),
|
|
1081
|
+
linear-gradient(var(--ed-ink) 0 0),
|
|
1082
|
+
linear-gradient(var(--ed-ink) 0 0);
|
|
1083
|
+
background-size: 100% var(--ed-thick), var(--ed-hair) 100%, var(--ed-hair) 100%;
|
|
1084
|
+
background-position: 0 0, 33.333% 0, 66.666% 0;
|
|
1085
|
+
background-repeat: no-repeat;
|
|
1086
|
+
}
|
|
1087
|
+
/* @end */
|
|
1088
|
+
|
|
1089
|
+
/* @variant bg/halftone */
|
|
1090
|
+
/* Any <img> becomes a duotone halftone with CSS alone: the dots are made from its
|
|
1091
|
+
brightness. Tune with --ed-dot (cell size), --ed-ht-bright and --ed-ht-contrast.
|
|
1092
|
+
Tone the plate with data-tone="paper" or "hot" on .ed-duo. */
|
|
1093
|
+
.ed-duo { position: relative; isolation: isolate; overflow: hidden; background: var(--ed-accent); }
|
|
1094
|
+
.ed-duo[data-tone="paper"] { background: var(--ed-paper-2); }
|
|
1095
|
+
.ed-duo[data-tone="hot"] { background: var(--ed-hot); }
|
|
1096
|
+
.ed-halftone { position: relative; margin: 0; background: #fff; filter: contrast(var(--ed-ht-contrast, 26)); mix-blend-mode: multiply; }
|
|
1097
|
+
.ed-halftone img {
|
|
1098
|
+
display: block;
|
|
1099
|
+
width: 100%;
|
|
1100
|
+
aspect-ratio: var(--ed-ratio, 4 / 3);
|
|
1101
|
+
object-fit: cover;
|
|
1102
|
+
filter: grayscale(1) contrast(1.15) brightness(var(--ed-ht-bright, 1));
|
|
1103
|
+
}
|
|
1104
|
+
.ed-halftone::after {
|
|
1105
|
+
content: "";
|
|
1106
|
+
position: absolute;
|
|
1107
|
+
inset: 0;
|
|
1108
|
+
background: radial-gradient(circle at center, rgb(0 0 0 / 0.5) 0, rgb(255 255 255 / 0.5) 100%) 0 0 / var(--ed-dot) var(--ed-dot);
|
|
1109
|
+
}
|
|
1110
|
+
/* @end */
|
|
1111
|
+
|
|
1112
|
+
/* ==========================================================================
|
|
1113
|
+
Type and layout pieces. Plain elements, one class each. No JavaScript.
|
|
1114
|
+
========================================================================== */
|
|
1115
|
+
|
|
1116
|
+
/* @variant type/masthead */
|
|
1117
|
+
/* Thin word plus heavy word, a meta line above, a rule below. */
|
|
1118
|
+
.ed-masthead { color: var(--ed-ink); }
|
|
1119
|
+
.ed-masthead__meta {
|
|
1120
|
+
display: flex;
|
|
1121
|
+
flex-wrap: wrap;
|
|
1122
|
+
justify-content: space-between;
|
|
1123
|
+
gap: 0.4rem 1.5rem;
|
|
1124
|
+
padding-block: 0.55rem;
|
|
1125
|
+
font: 600 0.6875rem/1 var(--ed-font-mono);
|
|
1126
|
+
letter-spacing: 0.1em;
|
|
1127
|
+
text-transform: uppercase;
|
|
1128
|
+
border-bottom: var(--ed-hair) solid currentColor;
|
|
1129
|
+
}
|
|
1130
|
+
.ed-masthead__title {
|
|
1131
|
+
margin: 0.1em 0 0.12em;
|
|
1132
|
+
font: 900 clamp(3.4rem, 12vw, 8.4rem)/0.86 var(--ed-font-display);
|
|
1133
|
+
font-stretch: 118%;
|
|
1134
|
+
letter-spacing: -0.035em;
|
|
1135
|
+
text-transform: uppercase;
|
|
1136
|
+
}
|
|
1137
|
+
.ed-masthead__title .ed-thin {
|
|
1138
|
+
margin-right: 0.07em;
|
|
1139
|
+
font-weight: 200;
|
|
1140
|
+
font-stretch: 100%;
|
|
1141
|
+
letter-spacing: -0.03em;
|
|
1142
|
+
text-transform: none;
|
|
1143
|
+
}
|
|
1144
|
+
/* @end */
|
|
1145
|
+
|
|
1146
|
+
/* @variant type/headline */
|
|
1147
|
+
/* Heavy caps with an italic Didone swash. The first letter of the swash runs large. */
|
|
1148
|
+
.ed-headline {
|
|
1149
|
+
margin: 0;
|
|
1150
|
+
font: 900 clamp(2.3rem, 7vw, 4.8rem)/0.92 var(--ed-font-display);
|
|
1151
|
+
font-stretch: 116%;
|
|
1152
|
+
letter-spacing: -0.02em;
|
|
1153
|
+
text-transform: uppercase;
|
|
1154
|
+
color: var(--ed-ink);
|
|
1155
|
+
}
|
|
1156
|
+
.ed-swash {
|
|
1157
|
+
font: italic 500 1.28em/0.8 var(--ed-font-swash);
|
|
1158
|
+
letter-spacing: -0.01em;
|
|
1159
|
+
text-transform: none;
|
|
1160
|
+
}
|
|
1161
|
+
.ed-swash::first-letter { font-size: 1.6em; font-weight: 600; margin-right: -0.08em; }
|
|
1162
|
+
.ed-headline[data-stack] .ed-swash { display: block; margin-top: 0.12em; }
|
|
1163
|
+
/* @end */
|
|
1164
|
+
|
|
1165
|
+
/* @variant type/kicker */
|
|
1166
|
+
/* Section label, dateline and byline. The three small lines above any story. */
|
|
1167
|
+
.ed-kicker {
|
|
1168
|
+
display: inline-flex;
|
|
1169
|
+
align-items: center;
|
|
1170
|
+
gap: 0.6em;
|
|
1171
|
+
margin: 0;
|
|
1172
|
+
font: 800 0.75rem/1 var(--ed-font-display);
|
|
1173
|
+
font-stretch: 105%;
|
|
1174
|
+
letter-spacing: 0.15em;
|
|
1175
|
+
text-transform: uppercase;
|
|
1176
|
+
color: var(--ed-ink);
|
|
1177
|
+
}
|
|
1178
|
+
.ed-kicker::before { content: ""; width: 0.62em; height: 0.62em; background: var(--ed-accent); }
|
|
1179
|
+
.ed-dateline {
|
|
1180
|
+
margin: 0;
|
|
1181
|
+
font: 500 0.6875rem/1.4 var(--ed-font-mono);
|
|
1182
|
+
letter-spacing: 0.08em;
|
|
1183
|
+
text-transform: uppercase;
|
|
1184
|
+
color: var(--ed-ink-2);
|
|
1185
|
+
}
|
|
1186
|
+
.ed-byline { margin: 0; font: italic 400 1rem/1.3 var(--ed-font-text); color: var(--ed-ink-2); }
|
|
1187
|
+
.ed-byline b {
|
|
1188
|
+
font: 800 0.72rem/1 var(--ed-font-display);
|
|
1189
|
+
font-style: normal;
|
|
1190
|
+
letter-spacing: 0.12em;
|
|
1191
|
+
text-transform: uppercase;
|
|
1192
|
+
color: var(--ed-ink);
|
|
1193
|
+
}
|
|
1194
|
+
/* @end */
|
|
1195
|
+
|
|
1196
|
+
/* @variant type/dropcap */
|
|
1197
|
+
/* Heavy drop cap, three lines deep. */
|
|
1198
|
+
.ed-dropcap { max-width: 34rem; margin: 0; font: 400 1.1875rem/1.6 var(--ed-font-text); color: var(--ed-ink); }
|
|
1199
|
+
.ed-dropcap::first-letter {
|
|
1200
|
+
float: left;
|
|
1201
|
+
padding: 0.07em 0.1em 0 0;
|
|
1202
|
+
font: 900 4.9em/0.76 var(--ed-font-display);
|
|
1203
|
+
font-stretch: 118%;
|
|
1204
|
+
color: var(--ed-ink);
|
|
1205
|
+
}
|
|
1206
|
+
/* @end */
|
|
1207
|
+
|
|
1208
|
+
/* @variant type/quote */
|
|
1209
|
+
/* Pull quote under a heavy rule, with an oversized opening mark. */
|
|
1210
|
+
.ed-quote { max-width: 32rem; margin: 0; padding-top: 1.1rem; border-top: 6px solid var(--ed-ink); color: var(--ed-ink); }
|
|
1211
|
+
.ed-quote p {
|
|
1212
|
+
margin: 0;
|
|
1213
|
+
font: italic 500 clamp(1.7rem, 4vw, 2.55rem)/1.08 var(--ed-font-swash);
|
|
1214
|
+
letter-spacing: -0.01em;
|
|
1215
|
+
text-wrap: balance;
|
|
1216
|
+
}
|
|
1217
|
+
.ed-quote p::before {
|
|
1218
|
+
content: "\201C";
|
|
1219
|
+
display: block;
|
|
1220
|
+
height: 0.42em;
|
|
1221
|
+
margin-bottom: 0.1em;
|
|
1222
|
+
font: 900 5.4rem/0.8 var(--ed-font-display);
|
|
1223
|
+
color: var(--ed-accent);
|
|
1224
|
+
}
|
|
1225
|
+
.ed-quote footer { margin-top: 1rem; font: 700 0.6875rem/1 var(--ed-font-display); letter-spacing: 0.15em; text-transform: uppercase; }
|
|
1226
|
+
/* @end */
|
|
1227
|
+
|
|
1228
|
+
/* @variant type/ticker */
|
|
1229
|
+
/* Scrolling price strip. Duplicate the track (aria-hidden) for a seamless loop. */
|
|
1230
|
+
.ed-ticker { display: flex; overflow: hidden; color: var(--ed-ink); background: var(--ed-paper); border-block: var(--ed-hair) solid var(--ed-ink); white-space: nowrap; }
|
|
1231
|
+
.ed-ticker__track {
|
|
1232
|
+
display: flex;
|
|
1233
|
+
flex: none;
|
|
1234
|
+
min-width: 100%;
|
|
1235
|
+
justify-content: space-around;
|
|
1236
|
+
gap: 2.4rem;
|
|
1237
|
+
margin: 0;
|
|
1238
|
+
padding: 0.62rem 1.2rem;
|
|
1239
|
+
list-style: none;
|
|
1240
|
+
animation: ed-marquee 38s linear infinite;
|
|
1241
|
+
}
|
|
1242
|
+
.ed-ticker:hover .ed-ticker__track { animation-play-state: paused; }
|
|
1243
|
+
.ed-ticker li { display: flex; align-items: center; gap: 0.55em; font: 500 0.75rem/1 var(--ed-font-mono); letter-spacing: 0.04em; }
|
|
1244
|
+
.ed-ticker li b { font-weight: 800; }
|
|
1245
|
+
.ed-ticker [data-dir]::before { content: ""; border: 0.3em solid transparent; }
|
|
1246
|
+
.ed-ticker [data-dir="up"]::before { border-width: 0 0.32em 0.52em; border-bottom-color: var(--ed-accent); }
|
|
1247
|
+
.ed-ticker [data-dir="down"]::before { border-width: 0.52em 0.32em 0; border-top-color: var(--ed-hot); }
|
|
1248
|
+
@keyframes ed-marquee { to { transform: translateX(-100%); } }
|
|
1249
|
+
@media (prefers-reduced-motion: reduce) { .ed-ticker__track { animation: none; } }
|
|
1250
|
+
/* @end */
|
|
1251
|
+
|
|
1252
|
+
/* @variant type/hot */
|
|
1253
|
+
/* Numbered "most read" list. Numbers come from a CSS counter. */
|
|
1254
|
+
.ed-hot { max-width: 22rem; color: var(--ed-ink); }
|
|
1255
|
+
.ed-hot__head { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 0; border-top: var(--ed-thick) solid var(--ed-ink); border-bottom: var(--ed-hair) solid var(--ed-ink); }
|
|
1256
|
+
.ed-hot__head h3 { margin: 0; font: 900 0.8125rem/1 var(--ed-font-display); font-stretch: 112%; letter-spacing: 0.15em; text-transform: uppercase; }
|
|
1257
|
+
.ed-hot__list { margin: 0; padding: 0; list-style: none; counter-reset: ed-hot; }
|
|
1258
|
+
.ed-hot__list li {
|
|
1259
|
+
counter-increment: ed-hot;
|
|
1260
|
+
display: grid;
|
|
1261
|
+
grid-template-columns: 2.2rem 1fr;
|
|
1262
|
+
gap: 0.25rem 0.4rem;
|
|
1263
|
+
padding: 0.95rem 0;
|
|
1264
|
+
border-bottom: var(--ed-hair) solid var(--ed-ink);
|
|
1265
|
+
}
|
|
1266
|
+
.ed-hot__list li::before { content: counter(ed-hot, decimal-leading-zero); grid-row: span 2; font: 500 0.75rem/1.7 var(--ed-font-mono); color: var(--ed-ink-2); }
|
|
1267
|
+
.ed-hot__list a {
|
|
1268
|
+
justify-self: start;
|
|
1269
|
+
font: 800 0.95rem/1.18 var(--ed-font-display);
|
|
1270
|
+
text-transform: uppercase;
|
|
1271
|
+
text-decoration: none;
|
|
1272
|
+
color: inherit;
|
|
1273
|
+
background: linear-gradient(var(--ed-accent), var(--ed-accent)) 0 100% / 0 0.32em no-repeat;
|
|
1274
|
+
transition: background-size 0.35s var(--ed-ease);
|
|
1275
|
+
}
|
|
1276
|
+
.ed-hot__list a:hover,
|
|
1277
|
+
.ed-hot__list a:focus-visible { background-size: 100% 0.32em; }
|
|
1278
|
+
.ed-hot__list small { font: 500 0.6875rem/1 var(--ed-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ed-ink-2); }
|
|
1279
|
+
/* @end */
|
|
1280
|
+
|
|
1281
|
+
/* @variant type/tags */
|
|
1282
|
+
/* Section tags. Outline by default, filled with data-tone. */
|
|
1283
|
+
.ed-tag {
|
|
1284
|
+
display: inline-block;
|
|
1285
|
+
padding: 0.45em 0.75em 0.4em;
|
|
1286
|
+
font: 800 0.6875rem/1 var(--ed-font-display);
|
|
1287
|
+
letter-spacing: 0.12em;
|
|
1288
|
+
text-transform: uppercase;
|
|
1289
|
+
color: var(--ed-ink);
|
|
1290
|
+
border: 1.5px solid var(--ed-ink);
|
|
1291
|
+
border-radius: var(--ed-radius);
|
|
1292
|
+
}
|
|
1293
|
+
.ed-tag[data-tone="solid"] { background: var(--ed-ink); color: var(--ed-paper); }
|
|
1294
|
+
.ed-tag[data-tone="accent"] { background: var(--ed-accent); color: var(--ed-on-accent); border-color: var(--ed-accent); }
|
|
1295
|
+
.ed-tag[data-tone="hot"] { background: var(--ed-hot); color: var(--ed-paper); border-color: var(--ed-hot); }
|
|
1296
|
+
/* @end */
|
|
1297
|
+
|
|
1298
|
+
/* @variant type/card */
|
|
1299
|
+
/* Story card. Pair with the halftone image block for the duotone picture. */
|
|
1300
|
+
.ed-card { display: grid; gap: 0.85rem; max-width: 24rem; color: var(--ed-ink); }
|
|
1301
|
+
.ed-card__title { margin: 0; font: 800 1.5rem/1.04 var(--ed-font-display); font-stretch: 108%; letter-spacing: -0.012em; text-wrap: balance; }
|
|
1302
|
+
.ed-card__title a {
|
|
1303
|
+
color: inherit;
|
|
1304
|
+
text-decoration: none;
|
|
1305
|
+
background: linear-gradient(var(--ed-accent), var(--ed-accent)) 0 100% / 0 0.2em no-repeat;
|
|
1306
|
+
transition: background-size 0.35s var(--ed-ease);
|
|
1307
|
+
}
|
|
1308
|
+
.ed-card:hover .ed-card__title a,
|
|
1309
|
+
.ed-card__title a:focus-visible { background-size: 100% 0.2em; }
|
|
1310
|
+
/* @end */
|
|
1311
|
+
|
|
1312
|
+
/* @variant type/pager */
|
|
1313
|
+
/* Pagination. Current page is a solid block. */
|
|
1314
|
+
.ed-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; color: var(--ed-ink); }
|
|
1315
|
+
.ed-pager ol { display: flex; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
|
|
1316
|
+
.ed-pager a { color: inherit; text-decoration: none; }
|
|
1317
|
+
.ed-pager ol a {
|
|
1318
|
+
display: grid;
|
|
1319
|
+
place-items: center;
|
|
1320
|
+
min-width: 2.5rem;
|
|
1321
|
+
height: 2.5rem;
|
|
1322
|
+
font: 600 0.8125rem/1 var(--ed-font-mono);
|
|
1323
|
+
border: 1px solid transparent;
|
|
1324
|
+
}
|
|
1325
|
+
.ed-pager ol a:hover { border-color: var(--ed-ink); }
|
|
1326
|
+
.ed-pager ol a[aria-current="page"] { background: var(--ed-ink); color: var(--ed-paper); }
|
|
1327
|
+
.ed-pager__step { display: inline-flex; align-items: center; gap: 0.6em; font: 800 0.75rem/1 var(--ed-font-display); letter-spacing: 0.12em; text-transform: uppercase; }
|
|
1328
|
+
.ed-pager__step::before,
|
|
1329
|
+
.ed-pager__step::after { content: none; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--ed-i-arrow) center / contain no-repeat; mask: var(--ed-i-arrow) center / contain no-repeat; transition: transform 0.25s var(--ed-ease); }
|
|
1330
|
+
.ed-pager__step[rel="prev"]::before { content: ""; transform: scaleX(-1); }
|
|
1331
|
+
.ed-pager__step[rel="next"]::after { content: ""; }
|
|
1332
|
+
.ed-pager__step[rel="prev"]:hover::before { transform: scaleX(-1) translateX(0.3em); }
|
|
1333
|
+
.ed-pager__step[rel="next"]:hover::after { transform: translateX(0.3em); }
|
|
1334
|
+
/* @end */
|
|
1335
|
+
|
|
1336
|
+
/* @variant type/badge */
|
|
1337
|
+
/* Rotating issue badge. Text rides a circle, number sits in the middle. */
|
|
1338
|
+
.ed-badge { position: relative; display: grid; place-items: center; width: 7.5rem; height: 7.5rem; color: var(--ed-ink); }
|
|
1339
|
+
.ed-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: ed-spin 22s linear infinite; }
|
|
1340
|
+
.ed-badge text { fill: currentColor; font: 800 9.4px var(--ed-font-display); letter-spacing: 0.14em; text-transform: uppercase; }
|
|
1341
|
+
.ed-badge > span {
|
|
1342
|
+
display: grid;
|
|
1343
|
+
place-items: center;
|
|
1344
|
+
width: 3.5rem;
|
|
1345
|
+
height: 3.5rem;
|
|
1346
|
+
font: italic 500 1.9rem/1 var(--ed-font-swash);
|
|
1347
|
+
color: var(--ed-on-accent);
|
|
1348
|
+
background: var(--ed-accent);
|
|
1349
|
+
border-radius: 50%;
|
|
1350
|
+
}
|
|
1351
|
+
@keyframes ed-spin { to { transform: rotate(360deg); } }
|
|
1352
|
+
@media (prefers-reduced-motion: reduce) { .ed-badge svg { animation: none; } }
|
|
1353
|
+
/* @end */
|
|
1354
|
+
|
|
1355
|
+
/* @variant type/toc */
|
|
1356
|
+
/* Contents list with dot leaders and mono folios. */
|
|
1357
|
+
.ed-toc { max-width: 26rem; margin: 0; padding: 0; list-style: none; color: var(--ed-ink); }
|
|
1358
|
+
.ed-toc li { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.5rem 0; }
|
|
1359
|
+
.ed-toc a { font: italic 500 1.35rem/1.1 var(--ed-font-swash); color: inherit; text-decoration: none; }
|
|
1360
|
+
.ed-toc a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--ed-accent); }
|
|
1361
|
+
.ed-toc__dots { flex: 1; align-self: end; margin-bottom: 0.3em; border-bottom: 2px dotted currentColor; opacity: 0.55; }
|
|
1362
|
+
.ed-toc li > span:last-child { font: 600 0.75rem/1 var(--ed-font-mono); }
|
|
1363
|
+
/* @end */
|
|
1364
|
+
|
|
1365
|
+
/* @variant type/nav */
|
|
1366
|
+
/* Top navigation. Brand, links with a growing rule, and a menu button. */
|
|
1367
|
+
.ed-nav {
|
|
1368
|
+
display: flex;
|
|
1369
|
+
flex-wrap: wrap;
|
|
1370
|
+
align-items: center;
|
|
1371
|
+
gap: 0.75rem 2rem;
|
|
1372
|
+
padding: 0.9rem 0;
|
|
1373
|
+
font: 700 0.8125rem/1 var(--ed-font-display);
|
|
1374
|
+
letter-spacing: 0.09em;
|
|
1375
|
+
text-transform: uppercase;
|
|
1376
|
+
color: var(--ed-ink);
|
|
1377
|
+
border-bottom: var(--ed-hair) solid var(--ed-ink);
|
|
1378
|
+
}
|
|
1379
|
+
.ed-nav__brand { font: 900 1.45rem/1 var(--ed-font-display); font-stretch: 116%; letter-spacing: -0.03em; color: inherit; text-decoration: none; }
|
|
1380
|
+
.ed-nav__brand i { font-style: normal; font-weight: 200; }
|
|
1381
|
+
.ed-nav ul { display: flex; flex-wrap: wrap; gap: 0.6rem 1.7rem; margin: 0 auto 0 0.5rem; padding: 0; list-style: none; }
|
|
1382
|
+
.ed-nav ul a {
|
|
1383
|
+
padding: 0.35em 0;
|
|
1384
|
+
color: inherit;
|
|
1385
|
+
text-decoration: none;
|
|
1386
|
+
background: linear-gradient(var(--ed-accent), var(--ed-accent)) 0 100% / 0 3px no-repeat;
|
|
1387
|
+
transition: background-size 0.3s var(--ed-ease);
|
|
1388
|
+
}
|
|
1389
|
+
.ed-nav ul a:hover,
|
|
1390
|
+
.ed-nav ul a[aria-current="page"] { background-size: 100% 3px; }
|
|
1391
|
+
/* @end */
|
|
1392
|
+
|
|
1393
|
+
/* @variant type/standfirst */
|
|
1394
|
+
/* The deck under a headline: one larger paragraph, a short heavy rule above. */
|
|
1395
|
+
.ed-standfirst { max-width: 34rem; margin: 0; font: 400 1.5rem/1.32 var(--ed-font-text); letter-spacing: -0.005em; text-wrap: pretty; color: var(--ed-ink); }
|
|
1396
|
+
.ed-standfirst::before { content: ""; display: block; width: 3rem; height: var(--ed-thick); margin-bottom: 1rem; background: var(--ed-ink); }
|
|
1397
|
+
/* @end */
|
|
1398
|
+
|
|
1399
|
+
/* @variant type/lead */
|
|
1400
|
+
/* Opening line in small caps. Plain ::first-line, no markup around the words. */
|
|
1401
|
+
.ed-lead { max-width: 34rem; margin: 0; font: 400 1.1875rem/1.6 var(--ed-font-text); color: var(--ed-ink); }
|
|
1402
|
+
.ed-lead::first-line { font-variant-caps: all-small-caps; font-weight: 600; letter-spacing: 0.09em; }
|
|
1403
|
+
/* @end */
|
|
1404
|
+
|
|
1405
|
+
/* @variant type/caption */
|
|
1406
|
+
/* Figure caption: mono plate number, text, credit. Hairline above. */
|
|
1407
|
+
.ed-figure { display: grid; gap: 0.6rem; max-width: 26rem; margin: 0; color: var(--ed-ink); }
|
|
1408
|
+
.ed-caption {
|
|
1409
|
+
display: grid;
|
|
1410
|
+
grid-template-columns: auto 1fr;
|
|
1411
|
+
gap: 0.15rem 0.8rem;
|
|
1412
|
+
padding-top: 0.55rem;
|
|
1413
|
+
border-top: var(--ed-hair) solid var(--ed-ink);
|
|
1414
|
+
font: 400 0.875rem/1.4 var(--ed-font-text);
|
|
1415
|
+
color: var(--ed-ink-2);
|
|
1416
|
+
}
|
|
1417
|
+
.ed-caption b { font: 600 0.6875rem/1.7 var(--ed-font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ed-ink); }
|
|
1418
|
+
.ed-caption small { grid-column: 2; font: 500 0.6875rem/1.4 var(--ed-font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
|
|
1419
|
+
/* @end */
|
|
1420
|
+
|
|
1421
|
+
/* @variant type/columns */
|
|
1422
|
+
/* Newspaper columns. Width-driven, so it drops to one column on its own. */
|
|
1423
|
+
.ed-columns {
|
|
1424
|
+
max-width: 46rem;
|
|
1425
|
+
margin: 0;
|
|
1426
|
+
column-width: 15rem;
|
|
1427
|
+
column-gap: 2.2rem;
|
|
1428
|
+
column-rule: var(--ed-hair) solid var(--ed-ink);
|
|
1429
|
+
font: 400 1rem/1.58 var(--ed-font-text);
|
|
1430
|
+
text-align: justify;
|
|
1431
|
+
hyphens: auto;
|
|
1432
|
+
color: var(--ed-ink);
|
|
1433
|
+
}
|
|
1434
|
+
.ed-columns p { margin: 0; }
|
|
1435
|
+
.ed-columns p + p { text-indent: 1.4em; }
|
|
1436
|
+
/* @end */
|
|
1437
|
+
|
|
1438
|
+
/* @variant type/notes */
|
|
1439
|
+
/* Footnotes. Markers and notes are numbered by CSS counters inside .ed-notes. */
|
|
1440
|
+
.ed-notes { max-width: 34rem; counter-reset: ed-fn ed-fnl; color: var(--ed-ink); }
|
|
1441
|
+
.ed-notes p { margin: 0; font: 400 1.0625rem/1.6 var(--ed-font-text); }
|
|
1442
|
+
.ed-fn { counter-increment: ed-fn; }
|
|
1443
|
+
.ed-fn::after { content: counter(ed-fn); margin-left: 0.1em; font: 600 0.62em/1 var(--ed-font-mono); vertical-align: 0.1em; }
|
|
1444
|
+
.ed-footnotes { margin: 1.4rem 0 0; padding: 0.7rem 0 0; list-style: none; border-top: var(--ed-hair) solid var(--ed-ink); }
|
|
1445
|
+
.ed-footnotes li { counter-increment: ed-fnl; display: grid; grid-template-columns: 1.6rem 1fr; padding-block: 0.15rem; font: 400 0.875rem/1.45 var(--ed-font-text); color: var(--ed-ink-2); }
|
|
1446
|
+
.ed-footnotes li::before { content: counter(ed-fnl); font: 600 0.6875rem/1.9 var(--ed-font-mono); color: var(--ed-ink); }
|
|
1447
|
+
/* @end */
|
|
1448
|
+
|
|
1449
|
+
/* @variant type/stat */
|
|
1450
|
+
/* One large figure with a label rule and a note. */
|
|
1451
|
+
.ed-stat { display: grid; gap: 0.6rem; justify-items: start; color: var(--ed-ink); }
|
|
1452
|
+
.ed-stat__fig { margin: 0; font: 200 clamp(4.5rem, 10vw, 7.5rem)/0.82 var(--ed-font-display); font-stretch: 118%; letter-spacing: -0.045em; }
|
|
1453
|
+
.ed-stat__fig small { margin-left: 0.12em; font: italic 500 0.3em/1 var(--ed-font-swash); letter-spacing: 0; vertical-align: top; }
|
|
1454
|
+
.ed-stat[data-weight="heavy"] .ed-stat__fig { font-weight: 900; }
|
|
1455
|
+
.ed-stat__label { align-self: stretch; margin: 0.5rem 0 0; padding-top: 0.7rem; border-top: var(--ed-thick) solid var(--ed-ink); font: 800 0.75rem/1 var(--ed-font-display); letter-spacing: 0.15em; text-transform: uppercase; }
|
|
1456
|
+
.ed-stat__note { max-width: 18rem; margin: 0; font: italic 400 1rem/1.35 var(--ed-font-text); color: var(--ed-ink-2); }
|
|
1457
|
+
/* @end */
|
|
1458
|
+
|
|
1459
|
+
/* @variant type/prose */
|
|
1460
|
+
/* Article body. Put .ed-prose on a container of plain elements: no classes inside. */
|
|
1461
|
+
.ed-prose { max-width: 38rem; color: var(--ed-ink); font: 400 1.125rem/1.68 var(--ed-font-text); }
|
|
1462
|
+
.ed-prose > * { margin: 0; }
|
|
1463
|
+
.ed-prose > * + * { margin-top: 1.1em; }
|
|
1464
|
+
.ed-prose h2 { margin-top: 1.9em; font: 800 1.35rem/1.1 var(--ed-font-display); font-stretch: 108%; letter-spacing: -0.01em; text-transform: uppercase; }
|
|
1465
|
+
.ed-prose h3 { margin-top: 1.6em; font: italic 500 1.5rem/1.1 var(--ed-font-swash); }
|
|
1466
|
+
.ed-prose a { color: inherit; text-decoration: underline; text-decoration-thickness: var(--ed-hair); text-underline-offset: 0.2em; transition: text-decoration-thickness 0.2s var(--ed-ease); }
|
|
1467
|
+
.ed-prose a:hover { text-decoration-thickness: 0.2em; }
|
|
1468
|
+
.ed-prose ul, .ed-prose ol { padding-left: 1.4em; }
|
|
1469
|
+
.ed-prose li::marker { font: 500 0.8em var(--ed-font-mono); color: var(--ed-ink-2); }
|
|
1470
|
+
.ed-prose blockquote { padding-left: 1.1rem; border-left: var(--ed-thick) solid var(--ed-ink); font-style: italic; }
|
|
1471
|
+
.ed-prose hr { border: 0; border-top: var(--ed-hair) solid var(--ed-ink); margin-block: 2em; }
|
|
1472
|
+
.ed-prose code { padding: 0.1em 0.35em; font: 500 0.82em var(--ed-font-mono); background: var(--ed-tint); }
|
|
1473
|
+
.ed-prose mark { padding: 0 0.1em; color: inherit; background: var(--ed-accent-tint); }
|
|
1474
|
+
.ed-prose blockquote > p { margin: 0; }
|
|
1475
|
+
.ed-prose > :first-child { margin-top: 0; }
|
|
1476
|
+
/* @end */
|
|
1477
|
+
|
|
1478
|
+
/* @variant type/scale */
|
|
1479
|
+
/* A type ladder: role names in mono, one sample per role. */
|
|
1480
|
+
.ed-scale { display: grid; margin: 0; color: var(--ed-ink); border-top: var(--ed-thick) solid var(--ed-ink); }
|
|
1481
|
+
.ed-scale > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: baseline; gap: 1rem; padding: 0.8rem 0; border-bottom: var(--ed-hair) solid var(--ed-ink); }
|
|
1482
|
+
.ed-scale dt { font: 500 0.6875rem/1.2 var(--ed-font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ed-ink-2); }
|
|
1483
|
+
.ed-scale dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
|
|
1484
|
+
.ed-scale [data-step="display"] { font: 900 3rem/0.9 var(--ed-font-display); font-stretch: 118%; letter-spacing: -0.035em; text-transform: uppercase; }
|
|
1485
|
+
.ed-scale [data-step="headline"] { font: 800 1.7rem/1 var(--ed-font-display); font-stretch: 112%; letter-spacing: -0.02em; text-transform: uppercase; }
|
|
1486
|
+
.ed-scale [data-step="swash"] { font: italic 500 2rem/1 var(--ed-font-swash); }
|
|
1487
|
+
.ed-scale [data-step="text"] { font: 400 1.125rem/1.5 var(--ed-font-text); }
|
|
1488
|
+
.ed-scale [data-step="label"] { font: 800 0.75rem/1 var(--ed-font-display); font-stretch: 105%; letter-spacing: 0.15em; text-transform: uppercase; }
|
|
1489
|
+
.ed-scale [data-step="mono"] { font: 500 0.8125rem/1.4 var(--ed-font-mono); }
|
|
1490
|
+
/* @end */
|
|
1491
|
+
|
|
1492
|
+
/* ==========================================================================
|
|
1493
|
+
Disclosure: things that open, close and switch. Native elements
|
|
1494
|
+
(<details>, radios, links) plus CSS. No JavaScript.
|
|
1495
|
+
Every piece respects prefers-reduced-motion.
|
|
1496
|
+
========================================================================== */
|
|
1497
|
+
|
|
1498
|
+
/* @variant ui/base */
|
|
1499
|
+
/* Shared helper: hides text visually but keeps it for screen readers. */
|
|
1500
|
+
.ed-vh {
|
|
1501
|
+
position: absolute;
|
|
1502
|
+
width: 1px;
|
|
1503
|
+
height: 1px;
|
|
1504
|
+
margin: -1px;
|
|
1505
|
+
padding: 0;
|
|
1506
|
+
overflow: hidden;
|
|
1507
|
+
clip-path: inset(50%);
|
|
1508
|
+
white-space: nowrap;
|
|
1509
|
+
border: 0;
|
|
1510
|
+
}
|
|
1511
|
+
/* @end */
|
|
1512
|
+
|
|
1513
|
+
/* @variant disclosure/accordion */
|
|
1514
|
+
/* Numbered accordion on <details>. Give every <details> the same name
|
|
1515
|
+
attribute and only one stays open at a time. */
|
|
1516
|
+
.ed-accordion {
|
|
1517
|
+
max-width: 42rem;
|
|
1518
|
+
margin: 0;
|
|
1519
|
+
padding: 0;
|
|
1520
|
+
color: var(--ed-ink);
|
|
1521
|
+
border-top: var(--ed-thick) solid var(--ed-ink);
|
|
1522
|
+
counter-reset: ed-acc;
|
|
1523
|
+
}
|
|
1524
|
+
.ed-accordion details {
|
|
1525
|
+
border-bottom: var(--ed-hair) solid var(--ed-ink);
|
|
1526
|
+
counter-increment: ed-acc;
|
|
1527
|
+
interpolate-size: allow-keywords;
|
|
1528
|
+
}
|
|
1529
|
+
.ed-accordion summary {
|
|
1530
|
+
display: flex;
|
|
1531
|
+
align-items: center;
|
|
1532
|
+
gap: 1.1rem;
|
|
1533
|
+
padding: 1.15rem 0;
|
|
1534
|
+
font: italic 500 1.5rem/1.15 var(--ed-font-swash);
|
|
1535
|
+
list-style: none;
|
|
1536
|
+
cursor: pointer;
|
|
1537
|
+
transition: padding-left 0.35s var(--ed-ease);
|
|
1538
|
+
}
|
|
1539
|
+
.ed-accordion summary::-webkit-details-marker { display: none; }
|
|
1540
|
+
.ed-accordion summary::before {
|
|
1541
|
+
content: counter(ed-acc, decimal-leading-zero);
|
|
1542
|
+
flex: none;
|
|
1543
|
+
font: normal 600 0.75rem/1 var(--ed-font-mono);
|
|
1544
|
+
letter-spacing: 0.06em;
|
|
1545
|
+
color: var(--ed-ink-2);
|
|
1546
|
+
}
|
|
1547
|
+
.ed-accordion summary::after {
|
|
1548
|
+
content: "";
|
|
1549
|
+
flex: none;
|
|
1550
|
+
width: 1.1rem;
|
|
1551
|
+
height: 1.1rem;
|
|
1552
|
+
margin-left: auto;
|
|
1553
|
+
background:
|
|
1554
|
+
linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
|
|
1555
|
+
linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
|
|
1556
|
+
transition: background-size 0.35s var(--ed-ease), transform 0.4s var(--ed-ease);
|
|
1557
|
+
}
|
|
1558
|
+
.ed-accordion summary:hover { padding-left: 0.5rem; }
|
|
1559
|
+
.ed-accordion summary:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 2px; }
|
|
1560
|
+
.ed-accordion details[open] > summary::after { background-size: 100% 2px, 2px 0; transform: rotate(180deg); }
|
|
1561
|
+
.ed-accordion__body {
|
|
1562
|
+
max-width: 36rem;
|
|
1563
|
+
padding: 0 2.6rem 1.4rem;
|
|
1564
|
+
font: 400 1.0625rem/1.6 var(--ed-font-text);
|
|
1565
|
+
color: var(--ed-ink-2);
|
|
1566
|
+
}
|
|
1567
|
+
.ed-accordion__body > :first-child { margin-top: 0; }
|
|
1568
|
+
.ed-accordion__body > :last-child { margin-bottom: 0; }
|
|
1569
|
+
.ed-accordion details[open] .ed-accordion__body { animation: ed-acc-in 0.5s var(--ed-ease) both; }
|
|
1570
|
+
@keyframes ed-acc-in { from { opacity: 0; transform: translateY(-0.5rem); } }
|
|
1571
|
+
@supports selector(::details-content) {
|
|
1572
|
+
.ed-accordion details::details-content {
|
|
1573
|
+
block-size: 0;
|
|
1574
|
+
overflow: clip;
|
|
1575
|
+
transition: block-size 0.4s var(--ed-ease), content-visibility 0.4s allow-discrete;
|
|
1576
|
+
}
|
|
1577
|
+
.ed-accordion details[open]::details-content { block-size: auto; }
|
|
1578
|
+
}
|
|
1579
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1580
|
+
.ed-accordion summary,
|
|
1581
|
+
.ed-accordion summary::after,
|
|
1582
|
+
.ed-accordion details::details-content { transition: none; }
|
|
1583
|
+
.ed-accordion details[open] .ed-accordion__body { animation: none; }
|
|
1584
|
+
}
|
|
1585
|
+
/* @end */
|
|
1586
|
+
|
|
1587
|
+
/* @variant disclosure/tabs */
|
|
1588
|
+
/* Tabs from radios. The underline slides to the chosen tab and its panel
|
|
1589
|
+
fades in. Set --ed-tabs to the number of tabs (up to six). */
|
|
1590
|
+
.ed-tabs { --ed-tabs: 3; --ed-tab: 0; max-width: 40rem; color: var(--ed-ink); }
|
|
1591
|
+
.ed-tabs__list { position: relative; display: grid; grid-template-columns: repeat(var(--ed-tabs), 1fr); border-bottom: var(--ed-hair) solid var(--ed-ink); }
|
|
1592
|
+
.ed-tabs__list::after {
|
|
1593
|
+
content: "";
|
|
1594
|
+
position: absolute;
|
|
1595
|
+
left: 0;
|
|
1596
|
+
bottom: -1px;
|
|
1597
|
+
width: calc(100% / var(--ed-tabs));
|
|
1598
|
+
height: 4px;
|
|
1599
|
+
background: var(--ed-accent);
|
|
1600
|
+
transform: translateX(calc(var(--ed-tab) * 100%));
|
|
1601
|
+
transition: transform 0.45s var(--ed-ease);
|
|
1602
|
+
pointer-events: none;
|
|
1603
|
+
}
|
|
1604
|
+
.ed-tabs .ed-choice { display: block; }
|
|
1605
|
+
.ed-tabs .ed-radio[data-variant="slide"] { width: 100%; height: 100%; border: 0; border-radius: 0; opacity: 0; }
|
|
1606
|
+
.ed-tabs .ed-radio[data-variant="slide"] + span {
|
|
1607
|
+
display: block;
|
|
1608
|
+
padding: 0.95em 0.4em 0.9em;
|
|
1609
|
+
text-align: center;
|
|
1610
|
+
font: 800 0.8125rem/1 var(--ed-font-display);
|
|
1611
|
+
font-stretch: 105%;
|
|
1612
|
+
letter-spacing: 0.1em;
|
|
1613
|
+
text-transform: uppercase;
|
|
1614
|
+
color: var(--ed-ink-2);
|
|
1615
|
+
transition: color 0.25s;
|
|
1616
|
+
}
|
|
1617
|
+
.ed-tabs .ed-choice:hover > .ed-radio[data-variant="slide"] + span,
|
|
1618
|
+
.ed-tabs .ed-radio[data-variant="slide"]:checked + span { color: var(--ed-ink); }
|
|
1619
|
+
.ed-tabs__panel { display: none; padding-top: 1.5rem; font: 400 1.0625rem/1.6 var(--ed-font-text); }
|
|
1620
|
+
.ed-tabs__panel > :first-child { margin-top: 0; }
|
|
1621
|
+
.ed-tabs__panel > :last-child { margin-bottom: 0; }
|
|
1622
|
+
|
|
1623
|
+
.ed-tabs:has(.ed-tabs__list .ed-choice:nth-child(1) input:checked) { --ed-tab: 0; }
|
|
1624
|
+
.ed-tabs:has(.ed-tabs__list .ed-choice:nth-child(2) input:checked) { --ed-tab: 1; }
|
|
1625
|
+
.ed-tabs:has(.ed-tabs__list .ed-choice:nth-child(3) input:checked) { --ed-tab: 2; }
|
|
1626
|
+
.ed-tabs:has(.ed-tabs__list .ed-choice:nth-child(4) input:checked) { --ed-tab: 3; }
|
|
1627
|
+
.ed-tabs:has(.ed-tabs__list .ed-choice:nth-child(5) input:checked) { --ed-tab: 4; }
|
|
1628
|
+
.ed-tabs:has(.ed-tabs__list .ed-choice:nth-child(6) input:checked) { --ed-tab: 5; }
|
|
1629
|
+
|
|
1630
|
+
.ed-tabs:has(.ed-tabs__list .ed-choice:nth-child(1) input:checked) > .ed-tabs__panel:nth-child(2),
|
|
1631
|
+
.ed-tabs:has(.ed-tabs__list .ed-choice:nth-child(2) input:checked) > .ed-tabs__panel:nth-child(3),
|
|
1632
|
+
.ed-tabs:has(.ed-tabs__list .ed-choice:nth-child(3) input:checked) > .ed-tabs__panel:nth-child(4),
|
|
1633
|
+
.ed-tabs:has(.ed-tabs__list .ed-choice:nth-child(4) input:checked) > .ed-tabs__panel:nth-child(5),
|
|
1634
|
+
.ed-tabs:has(.ed-tabs__list .ed-choice:nth-child(5) input:checked) > .ed-tabs__panel:nth-child(6),
|
|
1635
|
+
.ed-tabs:has(.ed-tabs__list .ed-choice:nth-child(6) input:checked) > .ed-tabs__panel:nth-child(7) {
|
|
1636
|
+
display: block;
|
|
1637
|
+
animation: ed-tab-in 0.5s var(--ed-ease) both;
|
|
1638
|
+
}
|
|
1639
|
+
@keyframes ed-tab-in { from { opacity: 0; transform: translateY(0.6rem); } }
|
|
1640
|
+
/* Without :has() every panel stays visible rather than hiding the content. */
|
|
1641
|
+
@supports not selector(:has(*)) { .ed-tabs__panel { display: block; } }
|
|
1642
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1643
|
+
.ed-tabs__list::after { transition: none; }
|
|
1644
|
+
.ed-tabs__panel { animation: none !important; }
|
|
1645
|
+
}
|
|
1646
|
+
/* @end */
|
|
1647
|
+
|
|
1648
|
+
/* @variant disclosure/tooltip */
|
|
1649
|
+
/* Tooltip from a data-tip attribute. Wrap the trigger in .ed-tip. Shows on hover
|
|
1650
|
+
and keyboard focus. Keep it to short hints: it is not read as a description. */
|
|
1651
|
+
.ed-tip { position: relative; display: inline-flex; }
|
|
1652
|
+
.ed-tip::before,
|
|
1653
|
+
.ed-tip::after {
|
|
1654
|
+
position: absolute;
|
|
1655
|
+
left: 50%;
|
|
1656
|
+
z-index: 5;
|
|
1657
|
+
opacity: 0;
|
|
1658
|
+
pointer-events: none;
|
|
1659
|
+
translate: -50% 0.35rem;
|
|
1660
|
+
transition: opacity 0.2s, translate 0.3s var(--ed-ease);
|
|
1661
|
+
}
|
|
1662
|
+
.ed-tip::after {
|
|
1663
|
+
content: attr(data-tip);
|
|
1664
|
+
bottom: calc(100% + 0.7rem);
|
|
1665
|
+
width: max-content;
|
|
1666
|
+
max-width: 16rem;
|
|
1667
|
+
padding: 0.6em 0.8em 0.55em;
|
|
1668
|
+
font: 500 0.6875rem/1.35 var(--ed-font-mono);
|
|
1669
|
+
letter-spacing: 0.04em;
|
|
1670
|
+
text-align: center;
|
|
1671
|
+
color: var(--ed-paper);
|
|
1672
|
+
background: var(--ed-ink);
|
|
1673
|
+
border-radius: var(--ed-radius);
|
|
1674
|
+
}
|
|
1675
|
+
.ed-tip::before {
|
|
1676
|
+
content: "";
|
|
1677
|
+
bottom: calc(100% + 0.3rem);
|
|
1678
|
+
border: 0.4rem solid transparent;
|
|
1679
|
+
border-bottom: 0;
|
|
1680
|
+
border-top-color: var(--ed-ink);
|
|
1681
|
+
}
|
|
1682
|
+
.ed-tip:hover::before, .ed-tip:hover::after,
|
|
1683
|
+
.ed-tip:focus-within::before, .ed-tip:focus-within::after { opacity: 1; translate: -50% 0; transition-delay: 0.1s; }
|
|
1684
|
+
.ed-tip[data-side="bottom"]::after { bottom: auto; top: calc(100% + 0.7rem); }
|
|
1685
|
+
.ed-tip[data-side="bottom"]::before { bottom: auto; top: calc(100% + 0.3rem); border-top: 0; border-bottom: 0.4rem solid var(--ed-ink); border-top-color: transparent; }
|
|
1686
|
+
/* Inline glossary term. Give it tabindex="0" so keyboards can reach it. */
|
|
1687
|
+
.ed-tip[data-inline] { display: inline; cursor: help; border-bottom: 1.5px dotted currentColor; }
|
|
1688
|
+
@media (prefers-reduced-motion: reduce) { .ed-tip::before, .ed-tip::after { transition: opacity 0.1s; translate: -50% 0; } }
|
|
1689
|
+
/* @end */
|
|
1690
|
+
|
|
1691
|
+
/* @variant disclosure/dropdown */
|
|
1692
|
+
/* Dropdown menu on <details>. The panel wipes open and its links rise in turn.
|
|
1693
|
+
Style the summary with any .ed-btn variant. */
|
|
1694
|
+
.ed-drop { position: relative; display: inline-block; color: var(--ed-ink); }
|
|
1695
|
+
.ed-drop > summary { list-style: none; }
|
|
1696
|
+
.ed-drop > summary::-webkit-details-marker { display: none; }
|
|
1697
|
+
.ed-drop__panel {
|
|
1698
|
+
position: absolute;
|
|
1699
|
+
top: calc(100% + 0.7rem);
|
|
1700
|
+
left: 0;
|
|
1701
|
+
z-index: 10;
|
|
1702
|
+
min-width: 15rem;
|
|
1703
|
+
margin: 0;
|
|
1704
|
+
padding: 0.35rem 0;
|
|
1705
|
+
list-style: none;
|
|
1706
|
+
background: var(--ed-paper);
|
|
1707
|
+
border: 1.5px solid var(--ed-ink);
|
|
1708
|
+
box-shadow: 5px 5px 0 var(--ed-accent);
|
|
1709
|
+
animation: ed-drop-in 0.4s var(--ed-ease) both;
|
|
1710
|
+
}
|
|
1711
|
+
.ed-drop__panel a {
|
|
1712
|
+
display: flex;
|
|
1713
|
+
align-items: baseline;
|
|
1714
|
+
justify-content: space-between;
|
|
1715
|
+
gap: 1.5rem;
|
|
1716
|
+
padding: 0.8rem 1rem;
|
|
1717
|
+
font: 700 0.8125rem/1 var(--ed-font-display);
|
|
1718
|
+
letter-spacing: 0.08em;
|
|
1719
|
+
text-transform: uppercase;
|
|
1720
|
+
text-decoration: none;
|
|
1721
|
+
color: inherit;
|
|
1722
|
+
background: linear-gradient(var(--ed-ink), var(--ed-ink)) 0 0 / 0 100% no-repeat;
|
|
1723
|
+
transition: background-size 0.3s var(--ed-ease), color 0.3s;
|
|
1724
|
+
}
|
|
1725
|
+
.ed-drop__panel a:hover,
|
|
1726
|
+
.ed-drop__panel a:focus-visible { color: var(--ed-paper); background-size: 100% 100%; outline: none; }
|
|
1727
|
+
.ed-drop__panel small { font: 500 0.6875rem/1 var(--ed-font-mono); letter-spacing: 0.04em; opacity: 0.7; }
|
|
1728
|
+
.ed-drop__panel li { animation: ed-rise-in 0.45s var(--ed-ease) both; }
|
|
1729
|
+
.ed-drop__panel li:nth-child(1) { animation-delay: 0.05s; }
|
|
1730
|
+
.ed-drop__panel li:nth-child(2) { animation-delay: 0.1s; }
|
|
1731
|
+
.ed-drop__panel li:nth-child(3) { animation-delay: 0.15s; }
|
|
1732
|
+
.ed-drop__panel li:nth-child(4) { animation-delay: 0.2s; }
|
|
1733
|
+
.ed-drop__panel li:nth-child(5) { animation-delay: 0.25s; }
|
|
1734
|
+
.ed-drop__panel li:nth-child(6) { animation-delay: 0.3s; }
|
|
1735
|
+
@keyframes ed-drop-in { from { opacity: 0; clip-path: inset(0 -8px 100% -8px); } to { opacity: 1; clip-path: inset(0 -8px -8px -8px); } }
|
|
1736
|
+
@keyframes ed-rise-in { from { opacity: 0; transform: translateY(0.5rem); } }
|
|
1737
|
+
@media (prefers-reduced-motion: reduce) { .ed-drop__panel, .ed-drop__panel li { animation: none; } .ed-drop__panel a { transition: none; } }
|
|
1738
|
+
/* @end */
|
|
1739
|
+
|
|
1740
|
+
/* @variant disclosure/redact */
|
|
1741
|
+
/* Redaction bar. Wipes away on hover, focus or tap. Add tabindex="0".
|
|
1742
|
+
The text is always in the page, so do not use it to hide anything private. */
|
|
1743
|
+
.ed-redact { position: relative; display: inline-block; cursor: pointer; }
|
|
1744
|
+
.ed-redact::after {
|
|
1745
|
+
content: "";
|
|
1746
|
+
position: absolute;
|
|
1747
|
+
inset: 0.08em -0.14em 0.02em;
|
|
1748
|
+
background: var(--ed-ink);
|
|
1749
|
+
transform-origin: right center;
|
|
1750
|
+
transition: transform 0.6s var(--ed-ease);
|
|
1751
|
+
pointer-events: none;
|
|
1752
|
+
}
|
|
1753
|
+
.ed-redact:hover::after,
|
|
1754
|
+
.ed-redact:focus::after { transform: scaleX(0); }
|
|
1755
|
+
.ed-redact:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 3px; }
|
|
1756
|
+
@media (prefers-reduced-motion: reduce) { .ed-redact::after { transition: none; } }
|
|
1757
|
+
/* @end */
|
|
1758
|
+
|
|
1759
|
+
/* @variant disclosure/more */
|
|
1760
|
+
/* "Continue reading" on <details>. The teaser fades out while closed and
|
|
1761
|
+
the label and arrow swap when open. */
|
|
1762
|
+
.ed-more { max-width: 36rem; color: var(--ed-ink); font: 400 1.0625rem/1.6 var(--ed-font-text); }
|
|
1763
|
+
.ed-more p { margin: 0 0 1em; }
|
|
1764
|
+
.ed-more:has(details:not([open])) > p:first-child {
|
|
1765
|
+
-webkit-mask-image: linear-gradient(#000 45%, transparent);
|
|
1766
|
+
mask-image: linear-gradient(#000 45%, transparent);
|
|
1767
|
+
}
|
|
1768
|
+
.ed-more summary {
|
|
1769
|
+
display: inline-flex;
|
|
1770
|
+
align-items: center;
|
|
1771
|
+
gap: 0.6em;
|
|
1772
|
+
padding: 0.5em 0;
|
|
1773
|
+
font: 800 0.75rem/1 var(--ed-font-display);
|
|
1774
|
+
letter-spacing: 0.12em;
|
|
1775
|
+
text-transform: uppercase;
|
|
1776
|
+
list-style: none;
|
|
1777
|
+
cursor: pointer;
|
|
1778
|
+
background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
|
|
1779
|
+
transition: background-size 0.3s var(--ed-ease);
|
|
1780
|
+
}
|
|
1781
|
+
.ed-more summary::-webkit-details-marker { display: none; }
|
|
1782
|
+
.ed-more summary::after {
|
|
1783
|
+
content: "";
|
|
1784
|
+
width: 1.1em;
|
|
1785
|
+
height: 1.1em;
|
|
1786
|
+
background: currentColor;
|
|
1787
|
+
-webkit-mask: var(--ed-i-arrow) center / contain no-repeat;
|
|
1788
|
+
mask: var(--ed-i-arrow) center / contain no-repeat;
|
|
1789
|
+
transform: rotate(90deg);
|
|
1790
|
+
transition: transform 0.45s var(--ed-ease);
|
|
1791
|
+
}
|
|
1792
|
+
.ed-more summary:hover { background-size: 100% 5px; }
|
|
1793
|
+
.ed-more summary:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 4px; }
|
|
1794
|
+
.ed-more details[open] > summary::after { transform: rotate(-90deg); }
|
|
1795
|
+
.ed-more details:not([open]) .ed-more__close,
|
|
1796
|
+
.ed-more details[open] .ed-more__open { display: none; }
|
|
1797
|
+
.ed-more details[open] > :not(summary) { animation: ed-more-in 0.55s var(--ed-ease) both; }
|
|
1798
|
+
.ed-more details > summary + p { margin-top: 1em; }
|
|
1799
|
+
@keyframes ed-more-in { from { opacity: 0; transform: translateY(0.5rem); } }
|
|
1800
|
+
@media (prefers-reduced-motion: reduce) { .ed-more summary::after { transition: none; } .ed-more details[open] > :not(summary) { animation: none; } }
|
|
1801
|
+
/* @end */
|
|
1802
|
+
|
|
1803
|
+
/* @variant radios/segment */
|
|
1804
|
+
/* Segmented control. A solid block slides to the chosen segment.
|
|
1805
|
+
Set --ed-seg to the number of segments (up to six). */
|
|
1806
|
+
.ed-segment {
|
|
1807
|
+
--ed-seg: 3;
|
|
1808
|
+
--ed-i: 0;
|
|
1809
|
+
position: relative;
|
|
1810
|
+
display: inline-grid;
|
|
1811
|
+
grid-template-columns: repeat(var(--ed-seg), 1fr);
|
|
1812
|
+
color: var(--ed-ink);
|
|
1813
|
+
border: 1.5px solid var(--ed-ink);
|
|
1814
|
+
border-radius: var(--ed-radius);
|
|
1815
|
+
isolation: isolate;
|
|
1816
|
+
}
|
|
1817
|
+
.ed-segment::before {
|
|
1818
|
+
content: "";
|
|
1819
|
+
position: absolute;
|
|
1820
|
+
z-index: -1;
|
|
1821
|
+
inset: 0 auto 0 0;
|
|
1822
|
+
width: calc(100% / var(--ed-seg));
|
|
1823
|
+
background: var(--ed-ink);
|
|
1824
|
+
border-radius: calc(var(--ed-radius) - 1px);
|
|
1825
|
+
transform: translateX(calc(var(--ed-i) * 100%));
|
|
1826
|
+
transition: transform 0.45s var(--ed-ease);
|
|
1827
|
+
}
|
|
1828
|
+
.ed-segment .ed-choice { display: block; }
|
|
1829
|
+
.ed-segment .ed-radio[data-variant="segment"] { width: 100%; height: 100%; border: 0; border-radius: 0; opacity: 0; }
|
|
1830
|
+
.ed-segment .ed-radio[data-variant="segment"] + span {
|
|
1831
|
+
display: block;
|
|
1832
|
+
padding: 0.9em 1.3em;
|
|
1833
|
+
text-align: center;
|
|
1834
|
+
font: 800 0.75rem/1 var(--ed-font-display);
|
|
1835
|
+
font-stretch: 105%;
|
|
1836
|
+
letter-spacing: 0.1em;
|
|
1837
|
+
text-transform: uppercase;
|
|
1838
|
+
white-space: nowrap;
|
|
1839
|
+
color: var(--ed-ink);
|
|
1840
|
+
transition: color 0.3s;
|
|
1841
|
+
}
|
|
1842
|
+
.ed-segment .ed-radio[data-variant="segment"]:checked + span { color: var(--ed-paper); }
|
|
1843
|
+
.ed-segment:has(.ed-choice:nth-child(1) input:checked) { --ed-i: 0; }
|
|
1844
|
+
.ed-segment:has(.ed-choice:nth-child(2) input:checked) { --ed-i: 1; }
|
|
1845
|
+
.ed-segment:has(.ed-choice:nth-child(3) input:checked) { --ed-i: 2; }
|
|
1846
|
+
.ed-segment:has(.ed-choice:nth-child(4) input:checked) { --ed-i: 3; }
|
|
1847
|
+
.ed-segment:has(.ed-choice:nth-child(5) input:checked) { --ed-i: 4; }
|
|
1848
|
+
.ed-segment:has(.ed-choice:nth-child(6) input:checked) { --ed-i: 5; }
|
|
1849
|
+
@media (prefers-reduced-motion: reduce) { .ed-segment::before { transition: none; } }
|
|
1850
|
+
/* @end */
|
|
1851
|
+
|
|
1852
|
+
/* ==========================================================================
|
|
1853
|
+
Feedback: notices, progress and loading states. Plain elements, one
|
|
1854
|
+
class each. Motion stops under prefers-reduced-motion.
|
|
1855
|
+
========================================================================== */
|
|
1856
|
+
|
|
1857
|
+
/* @variant feedback/note */
|
|
1858
|
+
/* Editor's note. A heavy rule draws down the side when it appears.
|
|
1859
|
+
data-tone: correction, solid. */
|
|
1860
|
+
.ed-note {
|
|
1861
|
+
position: relative;
|
|
1862
|
+
max-width: 36rem;
|
|
1863
|
+
padding: 1.05rem 1.25rem 1.15rem 1.65rem;
|
|
1864
|
+
color: var(--ed-ink);
|
|
1865
|
+
background: var(--ed-paper-2);
|
|
1866
|
+
}
|
|
1867
|
+
.ed-note::before {
|
|
1868
|
+
content: "";
|
|
1869
|
+
position: absolute;
|
|
1870
|
+
inset: 0 auto 0 0;
|
|
1871
|
+
width: 5px;
|
|
1872
|
+
background: var(--ed-accent);
|
|
1873
|
+
transform-origin: top;
|
|
1874
|
+
animation: ed-note-draw 0.7s var(--ed-ease) both;
|
|
1875
|
+
}
|
|
1876
|
+
.ed-note__label {
|
|
1877
|
+
display: flex;
|
|
1878
|
+
align-items: center;
|
|
1879
|
+
gap: 0.65em;
|
|
1880
|
+
margin: 0 0 0.55rem;
|
|
1881
|
+
font: 700 0.6875rem/1 var(--ed-font-mono);
|
|
1882
|
+
letter-spacing: 0.12em;
|
|
1883
|
+
text-transform: uppercase;
|
|
1884
|
+
}
|
|
1885
|
+
.ed-note__label::before { content: ""; width: 0.5rem; height: 0.5rem; background: currentColor; rotate: 45deg; }
|
|
1886
|
+
.ed-note p:not(.ed-note__label) { margin: 0; font: 400 1.0625rem/1.55 var(--ed-font-text); }
|
|
1887
|
+
.ed-note[data-tone="correction"]::before { background: var(--ed-hot); }
|
|
1888
|
+
.ed-note[data-tone="solid"] { color: var(--ed-paper); background: var(--ed-ink); }
|
|
1889
|
+
@keyframes ed-note-draw { from { transform: scaleY(0); } }
|
|
1890
|
+
@media (prefers-reduced-motion: reduce) { .ed-note::before { animation: none; } }
|
|
1891
|
+
/* @end */
|
|
1892
|
+
|
|
1893
|
+
/* @variant feedback/live */
|
|
1894
|
+
/* Live banner. The dot gives off a ring every couple of seconds. */
|
|
1895
|
+
.ed-live {
|
|
1896
|
+
display: flex;
|
|
1897
|
+
flex-wrap: wrap;
|
|
1898
|
+
align-items: center;
|
|
1899
|
+
gap: 0.5rem 1.1rem;
|
|
1900
|
+
padding: 0.75rem 1.1rem;
|
|
1901
|
+
color: var(--ed-paper);
|
|
1902
|
+
background: var(--ed-ink);
|
|
1903
|
+
}
|
|
1904
|
+
.ed-live__tag {
|
|
1905
|
+
display: inline-flex;
|
|
1906
|
+
align-items: center;
|
|
1907
|
+
gap: 0.6em;
|
|
1908
|
+
font: 800 0.6875rem/1 var(--ed-font-display);
|
|
1909
|
+
letter-spacing: 0.16em;
|
|
1910
|
+
text-transform: uppercase;
|
|
1911
|
+
}
|
|
1912
|
+
.ed-live__tag::before {
|
|
1913
|
+
content: "";
|
|
1914
|
+
width: 0.6rem;
|
|
1915
|
+
height: 0.6rem;
|
|
1916
|
+
border-radius: 50%;
|
|
1917
|
+
background: var(--ed-accent);
|
|
1918
|
+
animation: ed-live-ring 1.9s ease-out infinite;
|
|
1919
|
+
}
|
|
1920
|
+
.ed-live__text { flex: 1; min-width: 12rem; margin: 0; font: 600 0.95rem/1.3 var(--ed-font-text); }
|
|
1921
|
+
.ed-live a { color: inherit; text-underline-offset: 0.2em; }
|
|
1922
|
+
.ed-live time { font: 500 0.6875rem/1 var(--ed-font-mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
|
|
1923
|
+
@keyframes ed-live-ring { 0% { box-shadow: 0 0 0 0 var(--ed-accent); } 70%, 100% { box-shadow: 0 0 0 0.7rem transparent; } }
|
|
1924
|
+
@media (prefers-reduced-motion: reduce) { .ed-live__tag::before { animation: none; } }
|
|
1925
|
+
/* @end */
|
|
1926
|
+
|
|
1927
|
+
/* @variant feedback/toast */
|
|
1928
|
+
/* Toast. Rises in, waits, leaves, with a hairline counting down. It pauses
|
|
1929
|
+
while hovered or focused. Remove "infinite" in real use: one run is enough. */
|
|
1930
|
+
.ed-toast {
|
|
1931
|
+
position: relative;
|
|
1932
|
+
display: grid;
|
|
1933
|
+
grid-template-columns: auto 1fr auto;
|
|
1934
|
+
align-items: center;
|
|
1935
|
+
gap: 0.9rem;
|
|
1936
|
+
width: min(100%, 25rem);
|
|
1937
|
+
padding: 1rem 1.15rem 1.2rem;
|
|
1938
|
+
overflow: hidden;
|
|
1939
|
+
color: var(--ed-paper);
|
|
1940
|
+
background: var(--ed-ink);
|
|
1941
|
+
box-shadow: 5px 5px 0 var(--ed-accent);
|
|
1942
|
+
animation: ed-toast 7s var(--ed-ease) var(--ed-loop, 1) both;
|
|
1943
|
+
}
|
|
1944
|
+
.ed-toast::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--ed-accent); rotate: 45deg; }
|
|
1945
|
+
.ed-toast::after {
|
|
1946
|
+
content: "";
|
|
1947
|
+
position: absolute;
|
|
1948
|
+
inset: auto 0 0;
|
|
1949
|
+
height: 3px;
|
|
1950
|
+
background: var(--ed-accent);
|
|
1951
|
+
transform-origin: left;
|
|
1952
|
+
animation: ed-toast-bar 7s linear var(--ed-loop, 1) both;
|
|
1953
|
+
}
|
|
1954
|
+
.ed-toast p { margin: 0; font: 500 0.9375rem/1.35 var(--ed-font-text); }
|
|
1955
|
+
.ed-toast b { display: block; font: 800 0.6875rem/1.2 var(--ed-font-display); letter-spacing: 0.14em; text-transform: uppercase; }
|
|
1956
|
+
.ed-toast button {
|
|
1957
|
+
padding: 0.3em 0;
|
|
1958
|
+
font: 700 0.6875rem/1 var(--ed-font-mono);
|
|
1959
|
+
letter-spacing: 0.08em;
|
|
1960
|
+
text-transform: uppercase;
|
|
1961
|
+
color: inherit;
|
|
1962
|
+
background: none;
|
|
1963
|
+
border: 0;
|
|
1964
|
+
border-bottom: 1.5px solid currentColor;
|
|
1965
|
+
cursor: pointer;
|
|
1966
|
+
}
|
|
1967
|
+
.ed-toast button:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 3px; }
|
|
1968
|
+
.ed-toast:hover, .ed-toast:hover::after,
|
|
1969
|
+
.ed-toast:focus-within, .ed-toast:focus-within::after { animation-play-state: paused; }
|
|
1970
|
+
@keyframes ed-toast {
|
|
1971
|
+
0% { opacity: 0; transform: translateY(1.2rem); }
|
|
1972
|
+
6%, 90% { opacity: 1; transform: none; }
|
|
1973
|
+
100% { opacity: 0; transform: translateY(0.6rem); visibility: hidden; }
|
|
1974
|
+
}
|
|
1975
|
+
@keyframes ed-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
|
|
1976
|
+
@media (prefers-reduced-motion: reduce) { .ed-toast, .ed-toast::after { animation: none; } }
|
|
1977
|
+
/* @end */
|
|
1978
|
+
|
|
1979
|
+
/* @variant feedback/progress */
|
|
1980
|
+
/* Progress bar on a plain element with role="progressbar". Set --v from 0 to
|
|
1981
|
+
100. data-state="busy" is the unknown-length version: drop the aria-value
|
|
1982
|
+
attributes and it slides back and forth. */
|
|
1983
|
+
.ed-meter { display: grid; gap: 0.55rem; max-width: 28rem; color: var(--ed-ink); }
|
|
1984
|
+
.ed-meter__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font: 600 0.75rem/1 var(--ed-font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
|
|
1985
|
+
.ed-bar { --v: 64; position: relative; height: 0.95rem; overflow: hidden; border: 1.5px solid currentColor; border-radius: var(--ed-radius); }
|
|
1986
|
+
.ed-bar > span {
|
|
1987
|
+
position: absolute;
|
|
1988
|
+
inset: 0;
|
|
1989
|
+
background: linear-gradient(135deg, var(--ed-ink) 25%, color-mix(in srgb, var(--ed-ink) 65%, var(--ed-paper)) 25% 50%, var(--ed-ink) 50% 75%, color-mix(in srgb, var(--ed-ink) 65%, var(--ed-paper)) 75%) 0 0 / 0.9rem 0.9rem;
|
|
1990
|
+
clip-path: inset(0 calc(100% - var(--v) * 1%) 0 0);
|
|
1991
|
+
animation: ed-bar-grow 1.2s var(--ed-ease) both, ed-bar-run 0.9s linear infinite;
|
|
1992
|
+
}
|
|
1993
|
+
.ed-bar[data-state="busy"] > span { width: 34%; clip-path: none; animation: ed-bar-slide 1.5s var(--ed-ease) infinite alternate, ed-bar-run 0.9s linear infinite; }
|
|
1994
|
+
@keyframes ed-bar-grow { from { clip-path: inset(0 100% 0 0); } }
|
|
1995
|
+
@keyframes ed-bar-run { to { background-position: 0.9rem 0; } }
|
|
1996
|
+
@keyframes ed-bar-slide { from { transform: translateX(0); } to { transform: translateX(194%); } }
|
|
1997
|
+
@media (prefers-reduced-motion: reduce) { .ed-bar > span { animation: none; } }
|
|
1998
|
+
/* @end */
|
|
1999
|
+
|
|
2000
|
+
/* @variant feedback/reading */
|
|
2001
|
+
/* Reading progress. The bar is driven by scroll with CSS alone. Browsers
|
|
2002
|
+
without scroll-driven animations simply do not draw it. Add data-page to
|
|
2003
|
+
pin it to the top of the window instead of a scroll box. */
|
|
2004
|
+
.ed-reader { position: relative; max-height: 17rem; overflow-y: auto; color: var(--ed-ink); border: var(--ed-hair) solid var(--ed-ink); }
|
|
2005
|
+
.ed-reader:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 3px; }
|
|
2006
|
+
.ed-reader__bar { position: sticky; top: 0; z-index: 2; height: 4px; margin-bottom: -4px; background: var(--ed-accent); transform: scaleX(0); transform-origin: left; }
|
|
2007
|
+
.ed-reader__body { padding: 1.1rem 1.25rem 1.4rem; font: 400 1.0625rem/1.6 var(--ed-font-text); }
|
|
2008
|
+
.ed-reader__body > :first-child { margin-top: 0; }
|
|
2009
|
+
.ed-reader__body > :last-child { margin-bottom: 0; }
|
|
2010
|
+
.ed-reader__bar[data-page] { position: fixed; inset: 0 0 auto; margin: 0; }
|
|
2011
|
+
@supports (animation-timeline: scroll()) {
|
|
2012
|
+
.ed-reader__bar { animation: ed-read linear both; animation-timeline: scroll(nearest block); }
|
|
2013
|
+
.ed-reader__bar[data-page] { animation-timeline: scroll(root block); }
|
|
2014
|
+
}
|
|
2015
|
+
@keyframes ed-read { to { transform: scaleX(1); } }
|
|
2016
|
+
/* @end */
|
|
2017
|
+
|
|
2018
|
+
/* @variant feedback/skeleton */
|
|
2019
|
+
/* Loading placeholder. Dot-screen picture, ruled lines, one soft sweep of
|
|
2020
|
+
light. Put aria-busy="true" on it and keep a hidden "Loading" label. */
|
|
2021
|
+
.ed-skel { display: grid; gap: 0.8rem; width: 22rem; max-width: 100%; color: var(--ed-ink); }
|
|
2022
|
+
.ed-skel > :not(.ed-vh) { position: relative; overflow: hidden; background-color: var(--ed-paper-2); }
|
|
2023
|
+
.ed-skel > :not(.ed-vh)::after {
|
|
2024
|
+
content: "";
|
|
2025
|
+
position: absolute;
|
|
2026
|
+
inset: 0;
|
|
2027
|
+
background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--ed-paper) 85%, transparent) 50%, transparent 70%);
|
|
2028
|
+
transform: translateX(-100%);
|
|
2029
|
+
animation: ed-shimmer 1.7s ease-in-out infinite;
|
|
2030
|
+
}
|
|
2031
|
+
.ed-skel__img { aspect-ratio: 4 / 3; background-image: radial-gradient(circle, var(--ed-tint) 1.3px, transparent 1.6px); background-size: 7px 7px; }
|
|
2032
|
+
.ed-skel__line { height: 0.8rem; }
|
|
2033
|
+
.ed-skel__line[data-size="lg"] { height: 1.5rem; }
|
|
2034
|
+
.ed-skel__line[data-w="60"] { width: 60%; }
|
|
2035
|
+
.ed-skel__line[data-w="35"] { width: 35%; }
|
|
2036
|
+
@keyframes ed-shimmer { to { transform: translateX(100%); } }
|
|
2037
|
+
@media (prefers-reduced-motion: reduce) { .ed-skel > :not(.ed-vh)::after { animation: none; } }
|
|
2038
|
+
/* @end */
|
|
2039
|
+
|
|
2040
|
+
/* @variant feedback/loader */
|
|
2041
|
+
/* Three small loaders: a tapering ring, three halftone dots and a type cursor.
|
|
2042
|
+
Give each role="status" and a hidden label. */
|
|
2043
|
+
.ed-ring {
|
|
2044
|
+
display: inline-block;
|
|
2045
|
+
width: 2.6rem;
|
|
2046
|
+
aspect-ratio: 1;
|
|
2047
|
+
border-radius: 50%;
|
|
2048
|
+
color: var(--ed-ink);
|
|
2049
|
+
background: conic-gradient(from 0deg, transparent 0 15%, currentColor);
|
|
2050
|
+
-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
|
|
2051
|
+
mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
|
|
2052
|
+
animation: ed-ring-spin 0.95s linear infinite;
|
|
2053
|
+
}
|
|
2054
|
+
.ed-dots-load { display: inline-flex; gap: 0.5rem; color: var(--ed-ink); }
|
|
2055
|
+
.ed-dots-load span { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: currentColor; animation: ed-dot-pulse 1.2s ease-in-out infinite; }
|
|
2056
|
+
.ed-dots-load span:nth-child(2) { animation-delay: 0.16s; }
|
|
2057
|
+
.ed-dots-load span:nth-child(3) { animation-delay: 0.32s; }
|
|
2058
|
+
.ed-caret-load { display: inline-flex; align-items: center; gap: 0.5em; font: 500 0.875rem/1 var(--ed-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ed-ink); }
|
|
2059
|
+
.ed-caret-load::after { content: ""; width: 0.6em; height: 1.15em; background: currentColor; animation: ed-caret-blink 1s steps(1) infinite; }
|
|
2060
|
+
@keyframes ed-ring-spin { to { transform: rotate(360deg); } }
|
|
2061
|
+
@keyframes ed-dot-pulse { 0%, 80%, 100% { transform: scale(0.35); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
|
|
2062
|
+
@keyframes ed-caret-blink { 50% { opacity: 0; } }
|
|
2063
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2064
|
+
.ed-ring { animation-duration: 3s; }
|
|
2065
|
+
.ed-dots-load span { animation: none; opacity: 0.7; transform: none; }
|
|
2066
|
+
.ed-caret-load::after { animation: none; }
|
|
2067
|
+
}
|
|
2068
|
+
/* @end */
|
|
2069
|
+
|
|
2070
|
+
/* @variant feedback/steps */
|
|
2071
|
+
/* Steps in an <ol>. data-state="done" fills and draws its rule forward;
|
|
2072
|
+
aria-current="step" marks where you are. */
|
|
2073
|
+
.ed-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(5.5rem, 1fr); max-width: 44rem; margin: 0; padding: 0; overflow-x: auto; list-style: none; counter-reset: ed-step; }
|
|
2074
|
+
.ed-steps li {
|
|
2075
|
+
position: relative;
|
|
2076
|
+
display: grid;
|
|
2077
|
+
justify-items: start;
|
|
2078
|
+
gap: 0.75rem;
|
|
2079
|
+
counter-increment: ed-step;
|
|
2080
|
+
font: 800 0.6875rem/1.2 var(--ed-font-display);
|
|
2081
|
+
letter-spacing: 0.12em;
|
|
2082
|
+
text-transform: uppercase;
|
|
2083
|
+
color: var(--ed-ink-2);
|
|
2084
|
+
}
|
|
2085
|
+
.ed-steps li::before {
|
|
2086
|
+
content: counter(ed-step, decimal-leading-zero);
|
|
2087
|
+
position: relative;
|
|
2088
|
+
z-index: 1;
|
|
2089
|
+
display: grid;
|
|
2090
|
+
place-items: center;
|
|
2091
|
+
width: 2.3rem;
|
|
2092
|
+
height: 2.3rem;
|
|
2093
|
+
font: 600 0.75rem/1 var(--ed-font-mono);
|
|
2094
|
+
letter-spacing: 0.04em;
|
|
2095
|
+
background: var(--ed-paper);
|
|
2096
|
+
border: 1.5px solid currentColor;
|
|
2097
|
+
border-radius: 50%;
|
|
2098
|
+
transition: background-color 0.3s, color 0.3s;
|
|
2099
|
+
}
|
|
2100
|
+
.ed-steps li::after {
|
|
2101
|
+
content: "";
|
|
2102
|
+
position: absolute;
|
|
2103
|
+
top: 1.15rem;
|
|
2104
|
+
left: 2.3rem;
|
|
2105
|
+
right: 0;
|
|
2106
|
+
height: 1.5px;
|
|
2107
|
+
background: linear-gradient(var(--ed-ink), var(--ed-ink)) 0 0 / 0 100% no-repeat, var(--ed-tint);
|
|
2108
|
+
}
|
|
2109
|
+
.ed-steps li:last-child::after { display: none; }
|
|
2110
|
+
.ed-steps li[data-state="done"] { color: var(--ed-ink); }
|
|
2111
|
+
.ed-steps li[data-state="done"]::before { color: var(--ed-paper); background: var(--ed-ink); border-color: var(--ed-ink); }
|
|
2112
|
+
.ed-steps li[data-state="done"]::after { background-size: 100% 100%, auto; animation: ed-step-draw 0.9s var(--ed-ease) 0.2s both; }
|
|
2113
|
+
.ed-steps li[aria-current="step"] { color: var(--ed-ink); }
|
|
2114
|
+
.ed-steps li[aria-current="step"]::before {
|
|
2115
|
+
color: var(--ed-on-accent);
|
|
2116
|
+
background: var(--ed-accent);
|
|
2117
|
+
border-color: var(--ed-ink);
|
|
2118
|
+
animation: ed-step-ring 2.2s ease-out infinite;
|
|
2119
|
+
}
|
|
2120
|
+
@keyframes ed-step-draw { from { background-size: 0 100%, auto; } }
|
|
2121
|
+
@keyframes ed-step-ring { 0% { box-shadow: 0 0 0 0 var(--ed-accent-tint); } 70%, 100% { box-shadow: 0 0 0 0.6rem transparent; } }
|
|
2122
|
+
@media (prefers-reduced-motion: reduce) { .ed-steps li::after, .ed-steps li::before { animation: none !important; } }
|
|
2123
|
+
/* @end */
|
|
2124
|
+
|
|
2125
|
+
/* ==========================================================================
|
|
2126
|
+
Motion: type in movement. Reveals, tickers, counters, highlighters.
|
|
2127
|
+
CSS keyframes only. Each piece falls back to its finished state under
|
|
2128
|
+
prefers-reduced-motion, so nothing is ever hidden.
|
|
2129
|
+
========================================================================== */
|
|
2130
|
+
|
|
2131
|
+
/* @variant motion/rise */
|
|
2132
|
+
/* Headline whose words rise out of a clipped line, one after another.
|
|
2133
|
+
Wrap each word in .ed-rise__w > span and number them with --i. */
|
|
2134
|
+
.ed-rise {
|
|
2135
|
+
margin: 0;
|
|
2136
|
+
font: 900 clamp(2.2rem, 6vw, 4.2rem)/0.95 var(--ed-font-display);
|
|
2137
|
+
font-stretch: 116%;
|
|
2138
|
+
letter-spacing: -0.02em;
|
|
2139
|
+
text-transform: uppercase;
|
|
2140
|
+
color: var(--ed-ink);
|
|
2141
|
+
}
|
|
2142
|
+
.ed-rise__w { display: inline-block; padding-bottom: 0.14em; margin-bottom: -0.14em; overflow: clip; vertical-align: top; }
|
|
2143
|
+
.ed-rise__w > span {
|
|
2144
|
+
display: inline-block;
|
|
2145
|
+
transform: translateY(112%);
|
|
2146
|
+
animation: ed-rise-up 1s var(--ed-ease) forwards;
|
|
2147
|
+
animation-delay: calc(var(--i, 0) * 0.1s + 0.1s);
|
|
2148
|
+
}
|
|
2149
|
+
@keyframes ed-rise-up { to { transform: none; } }
|
|
2150
|
+
@media (prefers-reduced-motion: reduce) { .ed-rise__w > span { transform: none; animation: none; } }
|
|
2151
|
+
/* @end */
|
|
2152
|
+
|
|
2153
|
+
/* @variant motion/marquee */
|
|
2154
|
+
/* Giant type on a belt. Two copies of the set (the second aria-hidden) make
|
|
2155
|
+
the loop seamless. Rows can run opposite ways and pause on hover. */
|
|
2156
|
+
.ed-marq { overflow: hidden; color: var(--ed-ink); border-block: var(--ed-thick) solid currentColor; }
|
|
2157
|
+
.ed-marq__row { display: flex; width: max-content; animation: ed-marq 30s linear infinite; }
|
|
2158
|
+
.ed-marq__row + .ed-marq__row { border-top: var(--ed-hair) solid currentColor; }
|
|
2159
|
+
.ed-marq__row[data-dir="reverse"] { animation-direction: reverse; animation-duration: 38s; }
|
|
2160
|
+
.ed-marq:hover .ed-marq__row { animation-play-state: paused; }
|
|
2161
|
+
.ed-marq__set { display: flex; flex: none; align-items: center; gap: 1.6rem; margin: 0; padding: 0.3rem 1.6rem 0.3rem 0; }
|
|
2162
|
+
.ed-marq__set span {
|
|
2163
|
+
display: inline-flex;
|
|
2164
|
+
align-items: center;
|
|
2165
|
+
gap: 1.6rem;
|
|
2166
|
+
font: 900 clamp(2.6rem, 8vw, 5.5rem)/1 var(--ed-font-display);
|
|
2167
|
+
font-stretch: 118%;
|
|
2168
|
+
letter-spacing: -0.03em;
|
|
2169
|
+
text-transform: uppercase;
|
|
2170
|
+
white-space: nowrap;
|
|
2171
|
+
}
|
|
2172
|
+
.ed-marq__set span::after { content: ""; width: 0.28em; height: 0.28em; background: var(--ed-accent); rotate: 45deg; }
|
|
2173
|
+
.ed-marq__row[data-style="outline"] .ed-marq__set span { color: transparent; -webkit-text-stroke: 1.5px var(--ed-ink); }
|
|
2174
|
+
@keyframes ed-marq { to { transform: translateX(-50%); } }
|
|
2175
|
+
@media (prefers-reduced-motion: reduce) { .ed-marq__row { animation: none; } }
|
|
2176
|
+
/* @end */
|
|
2177
|
+
|
|
2178
|
+
/* @variant motion/cycle */
|
|
2179
|
+
/* A word that swaps inside a sentence. Four words, then the first again so the
|
|
2180
|
+
loop has no jump. Edit the keyframes if you want a different count. */
|
|
2181
|
+
.ed-cycle-line { margin: 0; font: 400 clamp(1.7rem, 4vw, 2.8rem)/1.15 var(--ed-font-text); color: var(--ed-ink); }
|
|
2182
|
+
.ed-cycle { display: inline-block; height: 1.15em; overflow: hidden; vertical-align: bottom; }
|
|
2183
|
+
.ed-cycle__list { display: block; animation: ed-cycle 11s var(--ed-ease) infinite; }
|
|
2184
|
+
.ed-cycle__list > * { display: block; height: 1.15em; width: fit-content; font: italic 500 1em/1.15 var(--ed-font-swash); background: linear-gradient(var(--ed-accent), var(--ed-accent)) 0 88% / 100% 0.08em no-repeat; }
|
|
2185
|
+
@keyframes ed-cycle {
|
|
2186
|
+
0%, 20% { transform: translateY(0); }
|
|
2187
|
+
25%, 45% { transform: translateY(-20%); }
|
|
2188
|
+
50%, 70% { transform: translateY(-40%); }
|
|
2189
|
+
75%, 95% { transform: translateY(-60%); }
|
|
2190
|
+
100% { transform: translateY(-80%); }
|
|
2191
|
+
}
|
|
2192
|
+
@media (prefers-reduced-motion: reduce) { .ed-cycle__list { animation: none; } }
|
|
2193
|
+
/* @end */
|
|
2194
|
+
|
|
2195
|
+
/* @variant motion/count */
|
|
2196
|
+
/* Figures that count up. A registered custom property is animated and shown
|
|
2197
|
+
through a CSS counter. Set --ed-to and data-sfx; describe it with aria-label. */
|
|
2198
|
+
@property --ed-n { syntax: "<integer>"; inherits: false; initial-value: 0; }
|
|
2199
|
+
.ed-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1.6rem 2rem; max-width: 46rem; padding-top: 1rem; color: var(--ed-ink); border-top: var(--ed-thick) solid currentColor; }
|
|
2200
|
+
.ed-counts > div { display: grid; gap: 0.55rem; align-content: start; }
|
|
2201
|
+
.ed-count {
|
|
2202
|
+
--ed-to: 48;
|
|
2203
|
+
--ed-n: var(--ed-to);
|
|
2204
|
+
margin: 0;
|
|
2205
|
+
font: 900 clamp(2.8rem, 7vw, 4.4rem)/0.9 var(--ed-font-display);
|
|
2206
|
+
font-stretch: 116%;
|
|
2207
|
+
font-variant-numeric: tabular-nums;
|
|
2208
|
+
letter-spacing: -0.03em;
|
|
2209
|
+
counter-reset: ed-n var(--ed-n);
|
|
2210
|
+
animation: ed-count 2s var(--ed-ease) both;
|
|
2211
|
+
}
|
|
2212
|
+
.ed-count::before { content: counter(ed-n); }
|
|
2213
|
+
.ed-count::after { content: attr(data-sfx); font-size: 0.5em; font-weight: 600; letter-spacing: 0; margin-left: 0.08em; }
|
|
2214
|
+
.ed-counts__label { margin: 0; font: 700 0.6875rem/1.3 var(--ed-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ed-ink-2); }
|
|
2215
|
+
@keyframes ed-count { from { --ed-n: 0; } to { --ed-n: var(--ed-to); } }
|
|
2216
|
+
@media (prefers-reduced-motion: reduce) { .ed-count { animation: none; } }
|
|
2217
|
+
/* @end */
|
|
2218
|
+
|
|
2219
|
+
/* @variant motion/sweep */
|
|
2220
|
+
/* Highlighter that sweeps across <mark> text. Number them with --i for a
|
|
2221
|
+
stagger. Plays once on load. Add data-scroll to the paragraph and each
|
|
2222
|
+
sweep follows the page as you scroll instead. */
|
|
2223
|
+
.ed-sweep { max-width: 38rem; margin: 0; font: 400 1.375rem/1.7 var(--ed-font-text); color: var(--ed-ink); }
|
|
2224
|
+
.ed-sweep mark {
|
|
2225
|
+
--ed-hl: color-mix(in srgb, var(--ed-accent) 62%, transparent);
|
|
2226
|
+
padding: 0 0.1em;
|
|
2227
|
+
margin: 0 -0.1em;
|
|
2228
|
+
color: inherit;
|
|
2229
|
+
background: linear-gradient(var(--ed-hl), var(--ed-hl)) 0 60% / 0% 0.9em no-repeat;
|
|
2230
|
+
animation: ed-sweep 0.9s var(--ed-ease) forwards;
|
|
2231
|
+
animation-delay: calc(var(--i, 0) * 0.75s + 0.3s);
|
|
2232
|
+
}
|
|
2233
|
+
.ed-sweep mark[data-style="under"] {
|
|
2234
|
+
background-image: linear-gradient(var(--ed-ink), var(--ed-ink));
|
|
2235
|
+
background-position: 0 96%;
|
|
2236
|
+
background-size: 0% 0.12em;
|
|
2237
|
+
animation-name: ed-sweep-under;
|
|
2238
|
+
}
|
|
2239
|
+
@keyframes ed-sweep { to { background-size: 100% 0.9em; } }
|
|
2240
|
+
@keyframes ed-sweep-under { to { background-size: 100% 0.12em; } }
|
|
2241
|
+
@supports (animation-timeline: view()) {
|
|
2242
|
+
.ed-sweep[data-scroll] mark { animation-timeline: view(); animation-range: entry 10% cover 40%; animation-delay: 0s; animation-duration: auto; }
|
|
2243
|
+
}
|
|
2244
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2245
|
+
.ed-sweep mark { animation: none; background-size: 100% 0.9em; }
|
|
2246
|
+
.ed-sweep mark[data-style="under"] { background-size: 100% 0.12em; }
|
|
2247
|
+
}
|
|
2248
|
+
/* @end */
|
|
2249
|
+
|
|
2250
|
+
/* @variant motion/type */
|
|
2251
|
+
/* Typewriter line. Set --ed-ch to the number of characters. It needs a
|
|
2252
|
+
monospaced face, which the mono token is, and it stays on one line. */
|
|
2253
|
+
.ed-typed {
|
|
2254
|
+
--ed-ch: 24;
|
|
2255
|
+
box-sizing: content-box;
|
|
2256
|
+
display: block;
|
|
2257
|
+
width: calc(var(--ed-ch) * 1ch);
|
|
2258
|
+
max-width: 100%;
|
|
2259
|
+
margin: 0;
|
|
2260
|
+
overflow: hidden;
|
|
2261
|
+
font: 500 clamp(1.15rem, 3.2vw, 2rem)/1.35 var(--ed-font-mono);
|
|
2262
|
+
letter-spacing: 0;
|
|
2263
|
+
white-space: nowrap;
|
|
2264
|
+
color: var(--ed-ink);
|
|
2265
|
+
border-right: 0.12em solid var(--ed-accent);
|
|
2266
|
+
animation: ed-typing calc(var(--ed-ch) * 0.075s) steps(var(--ed-ch)) 0.4s both, ed-caret 0.85s steps(1) infinite;
|
|
2267
|
+
}
|
|
2268
|
+
@keyframes ed-typing { from { width: 0; } }
|
|
2269
|
+
@keyframes ed-caret { 50% { border-right-color: transparent; } }
|
|
2270
|
+
@media (prefers-reduced-motion: reduce) { .ed-typed { animation: none; } }
|
|
2271
|
+
/* @end */
|
|
2272
|
+
|
|
2273
|
+
/* @variant motion/correct */
|
|
2274
|
+
/* Corrections: the wrong figure is struck out, then the right one drops in.
|
|
2275
|
+
Plain <s> and <ins>, so the change is also marked up for readers. The
|
|
2276
|
+
strike sits on the middle of the figures: line-height 1 makes the box the
|
|
2277
|
+
type's own height, and the nudge lifts it from the middle of that box to the
|
|
2278
|
+
middle of the digits. Tune --ed-strike-nudge if you swap the text face. */
|
|
2279
|
+
.ed-correct { max-width: 34rem; margin: 0; font: 400 clamp(1.35rem, 3vw, 1.9rem)/1.5 var(--ed-font-text); color: var(--ed-ink); }
|
|
2280
|
+
.ed-correct s { position: relative; display: inline-block; line-height: 1; text-decoration: none; color: var(--ed-ink-2); }
|
|
2281
|
+
.ed-correct s::after {
|
|
2282
|
+
content: "";
|
|
2283
|
+
position: absolute;
|
|
2284
|
+
inset: calc(50% - 0.045em + var(--ed-strike-nudge, -0.12em)) -0.06em auto;
|
|
2285
|
+
height: 0.09em;
|
|
2286
|
+
background: var(--ed-hot);
|
|
2287
|
+
transform: scaleX(0);
|
|
2288
|
+
transform-origin: left;
|
|
2289
|
+
animation: ed-strike 0.5s var(--ed-ease) 0.7s forwards;
|
|
2290
|
+
}
|
|
2291
|
+
.ed-correct ins {
|
|
2292
|
+
display: inline-block;
|
|
2293
|
+
padding: 0.04em 0.15em;
|
|
2294
|
+
line-height: 1.1;
|
|
2295
|
+
font-weight: 700;
|
|
2296
|
+
text-decoration: none;
|
|
2297
|
+
background: color-mix(in srgb, var(--ed-accent) 34%, transparent);
|
|
2298
|
+
animation: ed-correct-in 0.55s var(--ed-ease) 1.15s both;
|
|
2299
|
+
}
|
|
2300
|
+
.ed-correct s:nth-of-type(2)::after { animation-delay: 1.9s; }
|
|
2301
|
+
.ed-correct ins:nth-of-type(2) { animation-delay: 2.35s; }
|
|
2302
|
+
@keyframes ed-strike { to { transform: scaleX(1); } }
|
|
2303
|
+
@keyframes ed-correct-in { from { opacity: 0; transform: translateY(0.45em); } }
|
|
2304
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2305
|
+
.ed-correct s::after { animation: none; transform: scaleX(1); }
|
|
2306
|
+
.ed-correct ins { animation: none; }
|
|
2307
|
+
}
|
|
2308
|
+
/* @end */
|
|
2309
|
+
|
|
2310
|
+
/* ==========================================================================
|
|
2311
|
+
Showcase: page-sized pieces. Covers, indexes, cards, galleries, charts,
|
|
2312
|
+
tables and timelines. Native elements and CSS; scroll-driven effects are
|
|
2313
|
+
progressive enhancement and fall back to a still page.
|
|
2314
|
+
========================================================================== */
|
|
2315
|
+
|
|
2316
|
+
/* @variant showcase/cover */
|
|
2317
|
+
/* Cover story. Text lines settle in one after another, the picture is
|
|
2318
|
+
uncovered like a curtain going up. */
|
|
2319
|
+
.ed-cover { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: end; color: var(--ed-ink); }
|
|
2320
|
+
.ed-cover__text { display: grid; gap: 1.1rem; justify-items: start; }
|
|
2321
|
+
.ed-cover__text > * { margin: 0; animation: ed-cover-in 0.85s var(--ed-ease) both; }
|
|
2322
|
+
.ed-cover__text > :nth-child(2) { animation-delay: 0.1s; }
|
|
2323
|
+
.ed-cover__text > :nth-child(3) { animation-delay: 0.2s; }
|
|
2324
|
+
.ed-cover__text > :nth-child(4) { animation-delay: 0.3s; }
|
|
2325
|
+
.ed-cover__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; }
|
|
2326
|
+
.ed-cover__media { margin: 0; animation: ed-cover-curtain 1.2s var(--ed-ease) 0.15s both; }
|
|
2327
|
+
.ed-cover__media figcaption { margin-top: 0.55rem; font: 500 0.6875rem/1.4 var(--ed-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ed-ink-2); }
|
|
2328
|
+
@keyframes ed-cover-in { from { opacity: 0; transform: translateY(1.1rem); } }
|
|
2329
|
+
@keyframes ed-cover-curtain { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
|
|
2330
|
+
@media (prefers-reduced-motion: reduce) { .ed-cover__text > *, .ed-cover__media { animation: none; } }
|
|
2331
|
+
/* @end */
|
|
2332
|
+
|
|
2333
|
+
/* @variant showcase/index */
|
|
2334
|
+
/* Hover index. Rows list stories; the one you point at slides a picture out
|
|
2335
|
+
and the rest step back. The picture is a placeholder until you add an <img>.
|
|
2336
|
+
Works with keyboard focus too. */
|
|
2337
|
+
.ed-index { max-width: 46rem; margin: 0; padding: 0; list-style: none; color: var(--ed-ink); border-top: var(--ed-thick) solid var(--ed-ink); counter-reset: ed-idx; }
|
|
2338
|
+
.ed-index li { counter-increment: ed-idx; border-bottom: var(--ed-hair) solid var(--ed-ink); transition: opacity 0.35s; }
|
|
2339
|
+
.ed-index:has(a:is(:hover, :focus-visible)) li:not(:has(a:is(:hover, :focus-visible))) { opacity: 0.3; }
|
|
2340
|
+
.ed-index a {
|
|
2341
|
+
display: grid;
|
|
2342
|
+
grid-template-columns: 2.4rem minmax(0, 1fr) auto auto auto;
|
|
2343
|
+
align-items: center;
|
|
2344
|
+
gap: 1rem;
|
|
2345
|
+
padding: 1.05rem 0;
|
|
2346
|
+
color: inherit;
|
|
2347
|
+
text-decoration: none;
|
|
2348
|
+
}
|
|
2349
|
+
.ed-index a:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 2px; }
|
|
2350
|
+
.ed-index a::before { content: counter(ed-idx, decimal-leading-zero); font: 600 0.75rem/1 var(--ed-font-mono); color: var(--ed-ink-2); }
|
|
2351
|
+
.ed-index a::after {
|
|
2352
|
+
content: "";
|
|
2353
|
+
width: 1.2rem;
|
|
2354
|
+
height: 1.2rem;
|
|
2355
|
+
background: currentColor;
|
|
2356
|
+
-webkit-mask: var(--ed-i-arrow) center / contain no-repeat;
|
|
2357
|
+
mask: var(--ed-i-arrow) center / contain no-repeat;
|
|
2358
|
+
transform: translateX(-0.4rem);
|
|
2359
|
+
opacity: 0;
|
|
2360
|
+
transition: transform 0.4s var(--ed-ease), opacity 0.3s;
|
|
2361
|
+
}
|
|
2362
|
+
.ed-index__title { font: italic 500 clamp(1.35rem, 3vw, 1.9rem)/1.1 var(--ed-font-swash); transition: transform 0.45s var(--ed-ease); }
|
|
2363
|
+
.ed-index__tag { font: 700 0.6875rem/1 var(--ed-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ed-ink-2); }
|
|
2364
|
+
.ed-index__thumb {
|
|
2365
|
+
display: block;
|
|
2366
|
+
width: 0;
|
|
2367
|
+
height: 3.4rem;
|
|
2368
|
+
overflow: hidden;
|
|
2369
|
+
opacity: 0;
|
|
2370
|
+
background:
|
|
2371
|
+
linear-gradient(to top right, transparent calc(50% - 0.5px), var(--ed-ink-2) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
|
|
2372
|
+
linear-gradient(to bottom right, transparent calc(50% - 0.5px), var(--ed-ink-2) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
|
|
2373
|
+
radial-gradient(circle, var(--ed-tint) 1px, transparent 1.3px) 0 0 / 5px 5px,
|
|
2374
|
+
var(--ed-paper);
|
|
2375
|
+
box-shadow: inset 0 0 0 var(--ed-hair) var(--ed-ink);
|
|
2376
|
+
transition: width 0.5s var(--ed-ease), opacity 0.3s;
|
|
2377
|
+
}
|
|
2378
|
+
/* A placeholder until you give it a picture: put an <img> inside and it covers the crosses. */
|
|
2379
|
+
.ed-index__thumb img { display: block; width: 6.5rem; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.35); }
|
|
2380
|
+
.ed-index a:hover .ed-index__thumb,
|
|
2381
|
+
.ed-index a:focus-visible .ed-index__thumb { width: 6.5rem; opacity: 1; }
|
|
2382
|
+
.ed-index a:hover .ed-index__title,
|
|
2383
|
+
.ed-index a:focus-visible .ed-index__title { transform: translateX(0.4rem); }
|
|
2384
|
+
.ed-index a:hover::after,
|
|
2385
|
+
.ed-index a:focus-visible::after { transform: none; opacity: 1; }
|
|
2386
|
+
@media (max-width: 34rem) { .ed-index a { grid-template-columns: 2rem minmax(0, 1fr) auto auto; } .ed-index__thumb { display: none; } }
|
|
2387
|
+
@media (prefers-reduced-motion: reduce) { .ed-index li, .ed-index__thumb, .ed-index__title, .ed-index a::after { transition: none; } }
|
|
2388
|
+
/* @end */
|
|
2389
|
+
|
|
2390
|
+
/* @variant showcase/flip */
|
|
2391
|
+
/* Flip card. The card turns over on hover, focus or tap to show its back.
|
|
2392
|
+
Both faces stay in the page, so a screen reader reads both. */
|
|
2393
|
+
.ed-flip { width: 17rem; max-width: 100%; aspect-ratio: 3 / 4; color: var(--ed-ink); perspective: 1200px; }
|
|
2394
|
+
.ed-flip:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 6px; }
|
|
2395
|
+
.ed-flip__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.85s var(--ed-ease); }
|
|
2396
|
+
.ed-flip:hover .ed-flip__inner,
|
|
2397
|
+
.ed-flip:focus-within .ed-flip__inner,
|
|
2398
|
+
.ed-flip:focus .ed-flip__inner { transform: rotateY(180deg); }
|
|
2399
|
+
.ed-flip__face {
|
|
2400
|
+
position: absolute;
|
|
2401
|
+
inset: 0;
|
|
2402
|
+
display: grid;
|
|
2403
|
+
align-content: space-between;
|
|
2404
|
+
gap: 1rem;
|
|
2405
|
+
padding: 1.25rem;
|
|
2406
|
+
border: 1.5px solid var(--ed-ink);
|
|
2407
|
+
-webkit-backface-visibility: hidden;
|
|
2408
|
+
backface-visibility: hidden;
|
|
2409
|
+
}
|
|
2410
|
+
.ed-flip__front { background: radial-gradient(circle, var(--ed-tint) 1.2px, transparent 1.5px) 0 0 / 7px 7px, var(--ed-paper); }
|
|
2411
|
+
.ed-flip__back { color: var(--ed-paper); background: var(--ed-ink); transform: rotateY(180deg); }
|
|
2412
|
+
.ed-flip__no { margin: 0; font: 600 0.75rem/1 var(--ed-font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
|
|
2413
|
+
.ed-flip__title { margin: 0; font: italic 500 2.3rem/1 var(--ed-font-swash); text-wrap: balance; }
|
|
2414
|
+
.ed-flip__hint { margin: 0; font: 600 0.6875rem/1 var(--ed-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ed-ink-2); }
|
|
2415
|
+
.ed-flip__back p { margin: 0; font: 400 1rem/1.5 var(--ed-font-text); }
|
|
2416
|
+
.ed-flip__back .ed-flip__no { font: 600 0.75rem/1 var(--ed-font-mono); opacity: 0.7; }
|
|
2417
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2418
|
+
.ed-flip__inner { transform: none !important; transition: none; }
|
|
2419
|
+
.ed-flip__face { position: relative; backface-visibility: visible; transform: none; }
|
|
2420
|
+
.ed-flip__inner { display: grid; gap: 0.75rem; height: auto; }
|
|
2421
|
+
.ed-flip { aspect-ratio: auto; }
|
|
2422
|
+
}
|
|
2423
|
+
/* @end */
|
|
2424
|
+
|
|
2425
|
+
/* @variant showcase/carousel */
|
|
2426
|
+
/* Carousel from scroll-snap. Swipe, scroll, or focus the strip and use the
|
|
2427
|
+
arrow keys. Where supported, cards ease in and out as they cross the edge. */
|
|
2428
|
+
.ed-carousel { color: var(--ed-ink); }
|
|
2429
|
+
.ed-carousel__track {
|
|
2430
|
+
display: flex;
|
|
2431
|
+
gap: 1rem;
|
|
2432
|
+
margin: 0;
|
|
2433
|
+
padding: 0.6rem 0.2rem 1.3rem;
|
|
2434
|
+
overflow-x: auto;
|
|
2435
|
+
list-style: none;
|
|
2436
|
+
scroll-snap-type: x mandatory;
|
|
2437
|
+
scroll-behavior: smooth;
|
|
2438
|
+
overscroll-behavior-x: contain;
|
|
2439
|
+
scrollbar-width: thin;
|
|
2440
|
+
scrollbar-color: var(--ed-ink) transparent;
|
|
2441
|
+
}
|
|
2442
|
+
.ed-carousel__track:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 3px; }
|
|
2443
|
+
.ed-carousel__track > li { flex: 0 0 min(76%, 16.5rem); scroll-snap-align: start; }
|
|
2444
|
+
.ed-slide {
|
|
2445
|
+
display: grid;
|
|
2446
|
+
grid-template-rows: auto 1fr auto;
|
|
2447
|
+
gap: 1rem;
|
|
2448
|
+
height: 100%;
|
|
2449
|
+
min-height: 17rem;
|
|
2450
|
+
padding: 1.2rem;
|
|
2451
|
+
background: radial-gradient(circle at 100% 0, var(--ed-tint) 1.2px, transparent 1.5px) 0 0 / 7px 7px, var(--ed-paper);
|
|
2452
|
+
border: 1.5px solid var(--ed-ink);
|
|
2453
|
+
transition: transform 0.4s var(--ed-ease), box-shadow 0.4s var(--ed-ease);
|
|
2454
|
+
}
|
|
2455
|
+
.ed-slide:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ed-accent); }
|
|
2456
|
+
.ed-slide__no { margin: 0; font: italic 500 3rem/0.9 var(--ed-font-swash); }
|
|
2457
|
+
.ed-slide__title { margin: 0; align-self: end; font: 800 1.2rem/1.12 var(--ed-font-display); font-stretch: 106%; text-wrap: balance; }
|
|
2458
|
+
.ed-slide__meta { margin: 0; font: 500 0.6875rem/1.3 var(--ed-font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ed-ink-2); }
|
|
2459
|
+
@supports (animation-timeline: view(inline)) {
|
|
2460
|
+
.ed-carousel__track > li > .ed-slide { animation: ed-slide-edge linear both; animation-timeline: view(inline); }
|
|
2461
|
+
}
|
|
2462
|
+
@keyframes ed-slide-edge {
|
|
2463
|
+
0% { opacity: 0.35; scale: 0.94; }
|
|
2464
|
+
30%, 70% { opacity: 1; scale: 1; }
|
|
2465
|
+
100% { opacity: 0.35; scale: 0.94; }
|
|
2466
|
+
}
|
|
2467
|
+
@media (prefers-reduced-motion: reduce) { .ed-carousel__track { scroll-behavior: auto; } .ed-slide { transition: none; animation: none !important; } }
|
|
2468
|
+
/* @end */
|
|
2469
|
+
|
|
2470
|
+
/* @variant showcase/filter */
|
|
2471
|
+
/* Filter grid with no script. A segmented control of radios decides which
|
|
2472
|
+
cards show; ones that appear pop in. Add one rule per topic. */
|
|
2473
|
+
.ed-filter { display: grid; gap: 1.5rem; max-width: 46rem; color: var(--ed-ink); }
|
|
2474
|
+
.ed-filter__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
|
|
2475
|
+
.ed-filter__item { display: grid; align-content: space-between; gap: 1.6rem; min-height: 9rem; padding: 1rem; border: 1.5px solid var(--ed-ink); animation: ed-filter-in 0.55s var(--ed-ease) both; }
|
|
2476
|
+
.ed-filter__item h3 { margin: 0; font: 800 1.05rem/1.15 var(--ed-font-display); font-stretch: 106%; text-wrap: balance; }
|
|
2477
|
+
.ed-filter__item p { margin: 0; font: 500 0.6875rem/1 var(--ed-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ed-ink-2); }
|
|
2478
|
+
.ed-filter:has(input[value="film"]:checked) .ed-filter__item:not([data-topic="film"]),
|
|
2479
|
+
.ed-filter:has(input[value="music"]:checked) .ed-filter__item:not([data-topic="music"]),
|
|
2480
|
+
.ed-filter:has(input[value="print"]:checked) .ed-filter__item:not([data-topic="print"]),
|
|
2481
|
+
.ed-filter:has(input[value="essay"]:checked) .ed-filter__item:not([data-topic="essay"]) { display: none; }
|
|
2482
|
+
@keyframes ed-filter-in { from { opacity: 0; transform: translateY(0.8rem) scale(0.96); } }
|
|
2483
|
+
@media (prefers-reduced-motion: reduce) { .ed-filter__item { animation: none; } }
|
|
2484
|
+
/* @end */
|
|
2485
|
+
|
|
2486
|
+
/* @variant showcase/chart */
|
|
2487
|
+
/* Bar chart from a list. Heights come from --v (0 to 100) and the bars grow
|
|
2488
|
+
from the baseline. The values are real text, so no chart library. */
|
|
2489
|
+
.ed-chart { max-width: 34rem; margin: 0; color: var(--ed-ink); }
|
|
2490
|
+
.ed-chart figcaption { margin-bottom: 1.4rem; font: italic 500 1.35rem/1.15 var(--ed-font-swash); }
|
|
2491
|
+
.ed-chart figcaption small { display: block; margin-top: 0.4rem; font: 500 0.6875rem/1.3 var(--ed-font-mono); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ed-ink-2); }
|
|
2492
|
+
.ed-chart__bars {
|
|
2493
|
+
display: grid;
|
|
2494
|
+
grid-auto-flow: column;
|
|
2495
|
+
grid-auto-columns: 1fr;
|
|
2496
|
+
gap: 0.7rem;
|
|
2497
|
+
height: 13rem;
|
|
2498
|
+
margin: 0 0 2rem;
|
|
2499
|
+
padding: 1.4rem 0 0;
|
|
2500
|
+
list-style: none;
|
|
2501
|
+
background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--ed-tint) calc(25% - 1px) 25%);
|
|
2502
|
+
background-origin: content-box;
|
|
2503
|
+
background-clip: content-box;
|
|
2504
|
+
border-bottom: var(--ed-hair) solid var(--ed-ink);
|
|
2505
|
+
}
|
|
2506
|
+
.ed-chart__bars li { position: relative; display: grid; align-items: end; min-width: 0; }
|
|
2507
|
+
.ed-chart__bar {
|
|
2508
|
+
position: relative;
|
|
2509
|
+
align-self: end;
|
|
2510
|
+
height: calc(var(--v) * 1%);
|
|
2511
|
+
background: repeating-linear-gradient(135deg, var(--ed-ink) 0 2px, transparent 2px 6px);
|
|
2512
|
+
border-top: 3px solid var(--ed-ink);
|
|
2513
|
+
transform-origin: bottom;
|
|
2514
|
+
animation: ed-bar-up 1s var(--ed-ease) both;
|
|
2515
|
+
animation-delay: calc(var(--i, 0) * 0.08s);
|
|
2516
|
+
transition: background-color 0.3s;
|
|
2517
|
+
}
|
|
2518
|
+
.ed-chart__bars li[data-hi] .ed-chart__bar { background: var(--ed-ink); }
|
|
2519
|
+
.ed-chart__bars li:hover .ed-chart__bar { background-color: var(--ed-accent-tint); }
|
|
2520
|
+
.ed-chart__bar b {
|
|
2521
|
+
position: absolute;
|
|
2522
|
+
inset: auto 0 calc(100% + 0.4rem);
|
|
2523
|
+
font: 700 0.75rem/1 var(--ed-font-mono);
|
|
2524
|
+
text-align: center;
|
|
2525
|
+
animation: ed-fade-in 0.5s ease 0.7s both;
|
|
2526
|
+
animation-delay: calc(var(--i, 0) * 0.08s + 0.7s);
|
|
2527
|
+
}
|
|
2528
|
+
.ed-chart__bars i { position: absolute; inset: 100% 0 auto; padding-top: 0.6rem; font: 600 0.6875rem/1 var(--ed-font-mono); font-style: normal; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; color: var(--ed-ink-2); }
|
|
2529
|
+
@keyframes ed-bar-up { from { transform: scaleY(0); } }
|
|
2530
|
+
@keyframes ed-fade-in { from { opacity: 0; } }
|
|
2531
|
+
@media (prefers-reduced-motion: reduce) { .ed-chart__bar, .ed-chart__bar b { animation: none; } }
|
|
2532
|
+
/* @end */
|
|
2533
|
+
|
|
2534
|
+
/* @variant showcase/table */
|
|
2535
|
+
/* Ledger table. Hairline rows, mono numerals, and a highlight that wipes
|
|
2536
|
+
across the row you are on. Wrap it in a focusable region so wide tables
|
|
2537
|
+
scroll by keyboard. */
|
|
2538
|
+
.ed-table-wrap { max-width: 100%; overflow-x: auto; color: var(--ed-ink); }
|
|
2539
|
+
.ed-table-wrap:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 3px; }
|
|
2540
|
+
.ed-table { width: 100%; min-width: 30rem; border-collapse: collapse; font: 400 1rem/1.35 var(--ed-font-text); }
|
|
2541
|
+
.ed-table caption { padding-bottom: 0.9rem; text-align: left; font: italic 500 1.4rem/1.1 var(--ed-font-swash); }
|
|
2542
|
+
.ed-table thead th {
|
|
2543
|
+
padding: 0.75rem 0.9rem;
|
|
2544
|
+
text-align: left;
|
|
2545
|
+
font: 800 0.6875rem/1 var(--ed-font-display);
|
|
2546
|
+
letter-spacing: 0.12em;
|
|
2547
|
+
text-transform: uppercase;
|
|
2548
|
+
border-top: var(--ed-thick) solid var(--ed-ink);
|
|
2549
|
+
border-bottom: var(--ed-hair) solid var(--ed-ink);
|
|
2550
|
+
}
|
|
2551
|
+
.ed-table th[scope="row"] { font-weight: 600; text-align: left; }
|
|
2552
|
+
.ed-table th, .ed-table td { padding: 0.9rem; }
|
|
2553
|
+
.ed-table tbody th, .ed-table tbody td { border-bottom: var(--ed-hair) solid var(--ed-tint); }
|
|
2554
|
+
.ed-table [data-num] { text-align: right; font: 500 0.875rem/1 var(--ed-font-mono); font-variant-numeric: tabular-nums; }
|
|
2555
|
+
.ed-table thead [data-num] { text-align: right; }
|
|
2556
|
+
.ed-table tbody tr { background: linear-gradient(var(--ed-accent-tint), var(--ed-accent-tint)) 0 0 / 0 100% no-repeat; transition: background-size 0.5s var(--ed-ease); }
|
|
2557
|
+
.ed-table tbody tr:hover { background-size: 100% 100%; }
|
|
2558
|
+
.ed-table [data-dir]::before { content: ""; display: inline-block; margin-right: 0.5em; border: 0.28em solid transparent; }
|
|
2559
|
+
.ed-table [data-dir="up"]::before { border-width: 0 0.3em 0.5em; border-bottom-color: var(--ed-ink); }
|
|
2560
|
+
.ed-table [data-dir="down"]::before { border-width: 0.5em 0.3em 0; border-top-color: var(--ed-hot); }
|
|
2561
|
+
.ed-table tfoot td, .ed-table tfoot th { font-weight: 700; border-top: var(--ed-hair) solid var(--ed-ink); }
|
|
2562
|
+
@media (prefers-reduced-motion: reduce) { .ed-table tbody tr { transition: none; } }
|
|
2563
|
+
/* @end */
|
|
2564
|
+
|
|
2565
|
+
/* @variant showcase/timeline */
|
|
2566
|
+
/* Vertical timeline. The spine draws down, then each entry rises in. Where
|
|
2567
|
+
scroll-driven animation is supported the entries arrive as you scroll. */
|
|
2568
|
+
.ed-timeline { position: relative; max-width: 36rem; margin: 0; padding: 0 0 0 2.2rem; list-style: none; color: var(--ed-ink); }
|
|
2569
|
+
.ed-timeline::before {
|
|
2570
|
+
content: "";
|
|
2571
|
+
position: absolute;
|
|
2572
|
+
top: 0.5rem;
|
|
2573
|
+
bottom: 0.5rem;
|
|
2574
|
+
left: 0.42rem;
|
|
2575
|
+
width: 2px;
|
|
2576
|
+
background: var(--ed-ink);
|
|
2577
|
+
transform-origin: top;
|
|
2578
|
+
animation: ed-tl-draw 1.5s var(--ed-ease) both;
|
|
2579
|
+
}
|
|
2580
|
+
.ed-timeline li { position: relative; padding-bottom: 1.9rem; animation: ed-tl-in 0.7s var(--ed-ease) both; }
|
|
2581
|
+
.ed-timeline li:last-child { padding-bottom: 0; }
|
|
2582
|
+
.ed-timeline li:nth-child(1) { animation-delay: 0.15s; }
|
|
2583
|
+
.ed-timeline li:nth-child(2) { animation-delay: 0.35s; }
|
|
2584
|
+
.ed-timeline li:nth-child(3) { animation-delay: 0.55s; }
|
|
2585
|
+
.ed-timeline li:nth-child(4) { animation-delay: 0.75s; }
|
|
2586
|
+
.ed-timeline li:nth-child(5) { animation-delay: 0.95s; }
|
|
2587
|
+
.ed-timeline li::before {
|
|
2588
|
+
content: "";
|
|
2589
|
+
position: absolute;
|
|
2590
|
+
top: 0.28rem;
|
|
2591
|
+
left: -2.2rem;
|
|
2592
|
+
width: 0.95rem;
|
|
2593
|
+
height: 0.95rem;
|
|
2594
|
+
background: var(--ed-paper);
|
|
2595
|
+
border: 2px solid var(--ed-ink);
|
|
2596
|
+
border-radius: 50%;
|
|
2597
|
+
}
|
|
2598
|
+
.ed-timeline li[data-state="now"]::before { background: var(--ed-accent); animation: ed-tl-ring 2s ease-out infinite; }
|
|
2599
|
+
.ed-timeline time { display: block; margin-bottom: 0.35rem; font: 600 0.6875rem/1 var(--ed-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ed-ink-2); }
|
|
2600
|
+
.ed-timeline h3 { margin: 0 0 0.3rem; font: italic 500 1.5rem/1.1 var(--ed-font-swash); }
|
|
2601
|
+
.ed-timeline p { margin: 0; font: 400 1rem/1.5 var(--ed-font-text); color: var(--ed-ink-2); }
|
|
2602
|
+
@keyframes ed-tl-draw { from { transform: scaleY(0); } }
|
|
2603
|
+
@keyframes ed-tl-in { from { opacity: 0; transform: translateY(1rem); } }
|
|
2604
|
+
@keyframes ed-tl-ring { 0% { box-shadow: 0 0 0 0 var(--ed-accent-tint); } 70%, 100% { box-shadow: 0 0 0 0.6rem transparent; } }
|
|
2605
|
+
@supports (animation-timeline: view()) {
|
|
2606
|
+
.ed-timeline li { animation: ed-tl-in linear both; animation-timeline: view(); animation-range: entry 5% entry 55%; animation-delay: 0s; }
|
|
2607
|
+
}
|
|
2608
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2609
|
+
.ed-timeline::before, .ed-timeline li, .ed-timeline li[data-state="now"]::before { animation: none; }
|
|
2610
|
+
}
|
|
2611
|
+
/* @end */
|
|
2612
|
+
|
|
2613
|
+
/* @variant showcase/develop */
|
|
2614
|
+
/* Darkroom hover. A bench seen from above, lit by one safelight. The sheet
|
|
2615
|
+
lies blank in the tray, then the picture comes up through the bath as you
|
|
2616
|
+
point at it, and a caption slides up. A link, so it is keyboard reachable. */
|
|
2617
|
+
.ed-develop {
|
|
2618
|
+
--ed-light: color-mix(in srgb, var(--ed-accent) 70%, #000);
|
|
2619
|
+
position: relative;
|
|
2620
|
+
display: block;
|
|
2621
|
+
width: 22rem;
|
|
2622
|
+
max-width: 100%;
|
|
2623
|
+
aspect-ratio: 4 / 5;
|
|
2624
|
+
overflow: hidden;
|
|
2625
|
+
isolation: isolate;
|
|
2626
|
+
color: #fff;
|
|
2627
|
+
text-decoration: none;
|
|
2628
|
+
background:
|
|
2629
|
+
radial-gradient(ellipse 85% 60% at 88% 0%, var(--ed-light), transparent 70%),
|
|
2630
|
+
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 2.2rem),
|
|
2631
|
+
#060606;
|
|
2632
|
+
animation: ed-develop-in 1.1s var(--ed-ease) both;
|
|
2633
|
+
}
|
|
2634
|
+
.ed-develop:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 4px; }
|
|
2635
|
+
/* the tray */
|
|
2636
|
+
.ed-develop::before {
|
|
2637
|
+
content: "";
|
|
2638
|
+
position: absolute;
|
|
2639
|
+
inset: 10% 9% 12%;
|
|
2640
|
+
z-index: -1;
|
|
2641
|
+
background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.015) 55%);
|
|
2642
|
+
border: 2px solid rgba(255, 255, 255, 0.2);
|
|
2643
|
+
box-shadow: 0 0 0 0.45rem rgba(255, 255, 255, 0.035), inset 0 0 2.2rem rgba(0, 0, 0, 0.7);
|
|
2644
|
+
}
|
|
2645
|
+
/* the bath ripples when the sheet is touched */
|
|
2646
|
+
.ed-develop::after {
|
|
2647
|
+
content: "";
|
|
2648
|
+
position: absolute;
|
|
2649
|
+
inset: 10% 9% 12%;
|
|
2650
|
+
z-index: -1;
|
|
2651
|
+
border: 1px solid rgba(255, 255, 255, 0.35);
|
|
2652
|
+
opacity: 0;
|
|
2653
|
+
pointer-events: none;
|
|
2654
|
+
}
|
|
2655
|
+
.ed-develop:hover::after, .ed-develop:focus-visible::after { animation: ed-develop-ripple 2.4s ease-out 0.2s; }
|
|
2656
|
+
.ed-develop__print {
|
|
2657
|
+
position: absolute;
|
|
2658
|
+
inset: 19% 17% 23%;
|
|
2659
|
+
display: block;
|
|
2660
|
+
width: calc(100% - 34%);
|
|
2661
|
+
height: calc(100% - 42%);
|
|
2662
|
+
object-fit: cover;
|
|
2663
|
+
background: #d8d8d8;
|
|
2664
|
+
border: 0.45rem solid #d8d8d8;
|
|
2665
|
+
box-shadow: 0 0.7rem 1.4rem rgba(0, 0, 0, 0.65);
|
|
2666
|
+
rotate: -3deg;
|
|
2667
|
+
filter: grayscale(1) brightness(3.4) contrast(0.06) blur(1.5px);
|
|
2668
|
+
transition: filter 2.6s var(--ed-ease), rotate 1.6s var(--ed-ease);
|
|
2669
|
+
}
|
|
2670
|
+
.ed-develop__cap { position: absolute; inset: auto 0 0; display: grid; gap: 0.35rem; padding: 2.4rem 1.1rem 1.1rem; background: linear-gradient(transparent, rgba(0, 0, 0, 0.88)); translate: 0 100%; transition: translate 0.7s var(--ed-ease); }
|
|
2671
|
+
.ed-develop__cap b { font: 800 0.6875rem/1 var(--ed-font-display); letter-spacing: 0.14em; text-transform: uppercase; }
|
|
2672
|
+
.ed-develop__cap span { font: italic 500 1.35rem/1.1 var(--ed-font-swash); }
|
|
2673
|
+
.ed-develop:hover .ed-develop__print, .ed-develop:focus-visible .ed-develop__print { filter: none; rotate: -1deg; }
|
|
2674
|
+
.ed-develop:hover .ed-develop__cap, .ed-develop:focus-visible .ed-develop__cap { translate: 0 0; }
|
|
2675
|
+
@keyframes ed-develop-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
|
|
2676
|
+
@keyframes ed-develop-ripple { from { opacity: 0.8; scale: 0.9; } to { opacity: 0; scale: 1.12; } }
|
|
2677
|
+
@media (hover: none) { .ed-develop__print { filter: none; rotate: -1deg; } .ed-develop__cap { translate: 0 0; } }
|
|
2678
|
+
@media (prefers-reduced-motion: reduce) { .ed-develop, .ed-develop__print, .ed-develop__cap { animation: none; transition: none; } .ed-develop::after { display: none; } }
|
|
2679
|
+
/* @end */
|
|
2680
|
+
|
|
2681
|
+
/* @variant showcase/paywall */
|
|
2682
|
+
/* Metered paywall. The article fades into the page and a card with an offset
|
|
2683
|
+
shadow rises over the break. */
|
|
2684
|
+
.ed-wall { max-width: 36rem; color: var(--ed-ink); }
|
|
2685
|
+
.ed-wall__text { max-height: 12.5rem; overflow: hidden; font: 400 1.0625rem/1.6 var(--ed-font-text); -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }
|
|
2686
|
+
.ed-wall__text p { margin: 0 0 1em; }
|
|
2687
|
+
.ed-wall__gate {
|
|
2688
|
+
position: relative;
|
|
2689
|
+
display: grid;
|
|
2690
|
+
gap: 0.9rem;
|
|
2691
|
+
justify-items: center;
|
|
2692
|
+
margin-top: -2.6rem;
|
|
2693
|
+
padding: 1.6rem 1.4rem;
|
|
2694
|
+
text-align: center;
|
|
2695
|
+
background: var(--ed-paper);
|
|
2696
|
+
border: 1.5px solid var(--ed-ink);
|
|
2697
|
+
box-shadow: 6px 6px 0 var(--ed-accent);
|
|
2698
|
+
animation: ed-gate-in 0.9s var(--ed-ease) 0.25s both;
|
|
2699
|
+
}
|
|
2700
|
+
.ed-wall__gate h3 { margin: 0; font: italic 500 1.9rem/1.05 var(--ed-font-swash); text-wrap: balance; }
|
|
2701
|
+
.ed-wall__gate p { margin: 0; font: 400 1rem/1.5 var(--ed-font-text); color: var(--ed-ink-2); }
|
|
2702
|
+
@keyframes ed-gate-in { from { opacity: 0; transform: translateY(1.6rem); } }
|
|
2703
|
+
@media (prefers-reduced-motion: reduce) { .ed-wall__gate { animation: none; } }
|
|
2704
|
+
/* @end */
|