@rathnasgala/theme 0.0.20 → 2.0.2
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/package.json +1 -1
- package/payload/.gala/managed-files.json +28 -23
- package/payload/eleventy.config.js +15 -1
- package/payload/lib/accent.js +105 -0
- package/payload/lib/render-markdown.js +1 -1
- package/payload/lib/seo.js +17 -3
- package/payload/lib/site-config.js +75 -5
- package/payload/package-lock.json +487 -2
- package/payload/package.json +7 -6
- package/payload/scripts/build-reader.js +24 -0
- package/payload/scripts/lint.js +21 -0
- package/payload/src/_data/site.js +16 -0
- package/payload/src/_includes/components/ui.njk +38 -17
- package/payload/src/_includes/layouts/base.njk +33 -26
- package/payload/src/_includes/layouts/post.njk +11 -7
- package/payload/src/accent.11ty.js +10 -0
- package/payload/src/assets/engagement-comments.js +125 -234
- package/payload/src/assets/engagement-transport.js +10 -4
- package/payload/src/assets/interactions.js +161 -39
- package/payload/src/assets/reader.js +2 -0
- package/payload/src/assets/theme.css +1 -676
- package/payload/src/client/reader.js +5 -0
- package/payload/src/posts.11ty.js +6 -0
- package/payload/src/styles/theme.css +1058 -0
- package/payload/static/favicon.ico +0 -0
- package/payload/src/assets/vendor/hooks.js +0 -2
- package/payload/src/assets/vendor/htm.js +0 -2
- package/payload/src/assets/vendor/preact.js +0 -2
- package/payload/src/assets/vendor/signals-core.js +0 -2
- package/payload/src/assets/vendor/signals.js +0 -2
|
@@ -0,0 +1,1058 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* A publication should read like a well-set page, not like a product.
|
|
3
|
+
*
|
|
4
|
+
* The chrome is quiet, the type carries the hierarchy, and depth comes from surface and space
|
|
5
|
+
* rather than from an outline around everything. Every value here is a token so that the ten
|
|
6
|
+
* `design:` choices in site.config.yml can move the whole page by moving a handful of variables,
|
|
7
|
+
* instead of each component inventing its own spacing and its own grey.
|
|
8
|
+
*/
|
|
9
|
+
:root {
|
|
10
|
+
color-scheme: light dark;
|
|
11
|
+
|
|
12
|
+
/* Neutrals carry a slight warmth. A pure grey reads as unconsidered; these were picked. */
|
|
13
|
+
--gala-color-background: light-dark(#fdfcfb, #131211);
|
|
14
|
+
--gala-color-surface: light-dark(#f6f4f1, #1c1a18);
|
|
15
|
+
--gala-color-raised: light-dark(#fffffe, #24211f);
|
|
16
|
+
--gala-color-text: light-dark(#1a1817, #f2efec);
|
|
17
|
+
--gala-color-muted: light-dark(#6b645e, #a8a099);
|
|
18
|
+
--gala-color-border: light-dark(#968e86, #6b645e);
|
|
19
|
+
--gala-color-hairline: light-dark(#e8e3dd, #2a2724);
|
|
20
|
+
--gala-color-border-strong: light-dark(#c9c2ba, #46413d);
|
|
21
|
+
--gala-color-accent: light-dark(
|
|
22
|
+
var(--gala-accent-light, #8a4b2a),
|
|
23
|
+
var(--gala-accent-dark, #e8a87c));
|
|
24
|
+
|
|
25
|
+
/* Type. One scale, used everywhere, fluid between a phone and a desk. */
|
|
26
|
+
--gala-font-body: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
27
|
+
--gala-font-display: var(--gala-font-body);
|
|
28
|
+
--gala-font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
|
|
29
|
+
--gala-text-xs: 0.78rem;
|
|
30
|
+
--gala-text-sm: 0.875rem;
|
|
31
|
+
--gala-text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
|
|
32
|
+
--gala-text-lg: clamp(1.15rem, 1.09rem + 0.3vw, 1.3rem);
|
|
33
|
+
--gala-text-xl: clamp(1.4rem, 1.28rem + 0.6vw, 1.75rem);
|
|
34
|
+
--gala-text-2xl: clamp(1.75rem, 1.5rem + 1.2vw, 2.4rem);
|
|
35
|
+
--gala-text-3xl: clamp(2.2rem, 1.7rem + 2.4vw, 3.4rem);
|
|
36
|
+
--gala-leading-tight: 1.15;
|
|
37
|
+
--gala-leading-body: 1.65;
|
|
38
|
+
--gala-tracking-tight: -0.018em;
|
|
39
|
+
--gala-tracking-wide: 0.08em;
|
|
40
|
+
--gala-weight-display: 640;
|
|
41
|
+
|
|
42
|
+
/* Space, radius, depth, motion. */
|
|
43
|
+
--gala-step: 1rem;
|
|
44
|
+
--gala-space-2xs: calc(var(--gala-step) * 0.25);
|
|
45
|
+
--gala-space-xs: calc(var(--gala-step) * 0.5);
|
|
46
|
+
--gala-space-sm: calc(var(--gala-step) * 0.75);
|
|
47
|
+
--gala-space-md: var(--gala-step);
|
|
48
|
+
--gala-space-lg: calc(var(--gala-step) * 1.75);
|
|
49
|
+
--gala-space-xl: calc(var(--gala-step) * 3);
|
|
50
|
+
--gala-space-page: clamp(1.25rem, 5vw, 4.5rem);
|
|
51
|
+
--gala-radius-control: 0.625rem;
|
|
52
|
+
--gala-radius-surface: 1rem;
|
|
53
|
+
--gala-shadow-high:
|
|
54
|
+
0 1px 2px light-dark(rgb(26 24 23 / 5%), rgb(0 0 0 / 35%)),
|
|
55
|
+
0 12px 28px -12px light-dark(rgb(26 24 23 / 18%), rgb(0 0 0 / 60%));
|
|
56
|
+
--gala-motion-fast: 120ms;
|
|
57
|
+
--gala-motion-base: 220ms;
|
|
58
|
+
--gala-ease: cubic-bezier(0.2, 0, 0, 1);
|
|
59
|
+
|
|
60
|
+
--gala-content-width: 72rem;
|
|
61
|
+
--gala-measure: 68ch;
|
|
62
|
+
--gala-widget-min-block-size: 8rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* An explicit choice must beat the operating system in both directions, so every colour is
|
|
66
|
+
restated rather than left to `light-dark()`. */
|
|
67
|
+
:root[data-mode='light'] {
|
|
68
|
+
color-scheme: light;
|
|
69
|
+
--gala-color-background: #fdfcfb;
|
|
70
|
+
--gala-color-surface: #f6f4f1;
|
|
71
|
+
--gala-color-raised: #fffffe;
|
|
72
|
+
--gala-color-text: #1a1817;
|
|
73
|
+
--gala-color-muted: #6b645e;
|
|
74
|
+
--gala-color-border: #968e86;
|
|
75
|
+
--gala-color-hairline: #e8e3dd;
|
|
76
|
+
--gala-color-border-strong: #c9c2ba;
|
|
77
|
+
--gala-color-accent: var(--gala-accent-light, #8a4b2a);
|
|
78
|
+
}
|
|
79
|
+
:root[data-mode='dark'] {
|
|
80
|
+
color-scheme: dark;
|
|
81
|
+
--gala-color-background: #131211;
|
|
82
|
+
--gala-color-surface: #1c1a18;
|
|
83
|
+
--gala-color-raised: #24211f;
|
|
84
|
+
--gala-color-text: #f2efec;
|
|
85
|
+
--gala-color-muted: #a8a099;
|
|
86
|
+
--gala-color-border: #6b645e;
|
|
87
|
+
--gala-color-hairline: #2a2724;
|
|
88
|
+
--gala-color-border-strong: #46413d;
|
|
89
|
+
--gala-color-accent: var(--gala-accent-dark, #e8a87c);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* ---------------------------------------------------------------- palettes */
|
|
93
|
+
:root[data-palette='ocean'] {
|
|
94
|
+
--gala-color-background: light-dark(#f8fbfd, #0b1a24);
|
|
95
|
+
--gala-color-surface: light-dark(#eef4f9, #12252f);
|
|
96
|
+
--gala-color-raised: light-dark(#ffffff, #172d39);
|
|
97
|
+
--gala-color-text: light-dark(#12242f, #eaf3f8);
|
|
98
|
+
--gala-color-muted: light-dark(#5a6f7d, #98aebb);
|
|
99
|
+
--gala-color-border: light-dark(#7d8d99, #5f7d8c);
|
|
100
|
+
--gala-color-hairline: light-dark(#dde7ee, #1d3644);
|
|
101
|
+
--gala-color-border-strong: light-dark(#bdccd7, #33505f);
|
|
102
|
+
--gala-color-accent: light-dark(#0f5f7a, #7fd0e8);
|
|
103
|
+
}
|
|
104
|
+
:root[data-palette='ocean'][data-mode='light'] {
|
|
105
|
+
color-scheme: light;
|
|
106
|
+
--gala-color-background: #f8fbfd;
|
|
107
|
+
--gala-color-surface: #eef4f9;
|
|
108
|
+
--gala-color-raised: #ffffff;
|
|
109
|
+
--gala-color-text: #12242f;
|
|
110
|
+
--gala-color-muted: #5a6f7d;
|
|
111
|
+
--gala-color-border: #7d8d99;
|
|
112
|
+
--gala-color-hairline: #dde7ee;
|
|
113
|
+
--gala-color-border-strong: #bdccd7;
|
|
114
|
+
--gala-color-accent: var(--gala-accent-light, #0f5f7a);
|
|
115
|
+
}
|
|
116
|
+
:root[data-palette='ocean'][data-mode='dark'] {
|
|
117
|
+
color-scheme: dark;
|
|
118
|
+
--gala-color-background: #0b1a24;
|
|
119
|
+
--gala-color-surface: #12252f;
|
|
120
|
+
--gala-color-raised: #172d39;
|
|
121
|
+
--gala-color-text: #eaf3f8;
|
|
122
|
+
--gala-color-muted: #98aebb;
|
|
123
|
+
--gala-color-border: #5f7d8c;
|
|
124
|
+
--gala-color-hairline: #1d3644;
|
|
125
|
+
--gala-color-border-strong: #33505f;
|
|
126
|
+
--gala-color-accent: var(--gala-accent-dark, #7fd0e8);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/* Two more, because colour is the choice a writer actually wants to make — and the one that is
|
|
131
|
+
safe to offer, since a palette only swaps values every rule already reads and each is checked
|
|
132
|
+
for contrast in both modes. */
|
|
133
|
+
:root[data-palette='forest'] {
|
|
134
|
+
--gala-color-background: light-dark(#fbfcfa, #101410);
|
|
135
|
+
--gala-color-surface: light-dark(#f0f4ee, #182018);
|
|
136
|
+
--gala-color-raised: light-dark(#ffffff, #1f271f);
|
|
137
|
+
--gala-color-text: light-dark(#18201a, #eef3ec);
|
|
138
|
+
--gala-color-muted: light-dark(#5b665d, #9aa89b);
|
|
139
|
+
--gala-color-border: light-dark(#849084, #5e685f);
|
|
140
|
+
--gala-color-hairline: light-dark(#e2e9df, #232b23);
|
|
141
|
+
--gala-color-border-strong: light-dark(#5b665d, #7d897e);
|
|
142
|
+
--gala-color-accent: light-dark(#2f6b3f, #8fd3a1);
|
|
143
|
+
}
|
|
144
|
+
:root[data-palette='forest'][data-mode='light'] {
|
|
145
|
+
color-scheme: light;
|
|
146
|
+
--gala-color-background: #fbfcfa;
|
|
147
|
+
--gala-color-surface: #f0f4ee;
|
|
148
|
+
--gala-color-raised: #ffffff;
|
|
149
|
+
--gala-color-text: #18201a;
|
|
150
|
+
--gala-color-muted: #5b665d;
|
|
151
|
+
--gala-color-border: #849084;
|
|
152
|
+
--gala-color-hairline: #e2e9df;
|
|
153
|
+
--gala-color-border-strong: #5b665d;
|
|
154
|
+
--gala-color-accent: var(--gala-accent-light, #2f6b3f);
|
|
155
|
+
}
|
|
156
|
+
:root[data-palette='forest'][data-mode='dark'] {
|
|
157
|
+
color-scheme: dark;
|
|
158
|
+
--gala-color-background: #101410;
|
|
159
|
+
--gala-color-surface: #182018;
|
|
160
|
+
--gala-color-raised: #1f271f;
|
|
161
|
+
--gala-color-text: #eef3ec;
|
|
162
|
+
--gala-color-muted: #9aa89b;
|
|
163
|
+
--gala-color-border: #5e685f;
|
|
164
|
+
--gala-color-hairline: #232b23;
|
|
165
|
+
--gala-color-border-strong: #7d897e;
|
|
166
|
+
--gala-color-accent: var(--gala-accent-dark, #8fd3a1);
|
|
167
|
+
}
|
|
168
|
+
:root[data-palette='plum'] {
|
|
169
|
+
--gala-color-background: light-dark(#fdfbfd, #141016);
|
|
170
|
+
--gala-color-surface: light-dark(#f5eff5, #1d1720);
|
|
171
|
+
--gala-color-raised: light-dark(#ffffff, #241d28);
|
|
172
|
+
--gala-color-text: light-dark(#1f1820, #f2ecf3);
|
|
173
|
+
--gala-color-muted: light-dark(#665c69, #a99dac);
|
|
174
|
+
--gala-color-border: light-dark(#948a95, #6b606d);
|
|
175
|
+
--gala-color-hairline: light-dark(#ebe2ec, #281f2b);
|
|
176
|
+
--gala-color-border-strong: light-dark(#665c69, #8b7f8d);
|
|
177
|
+
--gala-color-accent: light-dark(#7a3d76, #dda6d8);
|
|
178
|
+
}
|
|
179
|
+
:root[data-palette='plum'][data-mode='light'] {
|
|
180
|
+
color-scheme: light;
|
|
181
|
+
--gala-color-background: #fdfbfd;
|
|
182
|
+
--gala-color-surface: #f5eff5;
|
|
183
|
+
--gala-color-raised: #ffffff;
|
|
184
|
+
--gala-color-text: #1f1820;
|
|
185
|
+
--gala-color-muted: #665c69;
|
|
186
|
+
--gala-color-border: #948a95;
|
|
187
|
+
--gala-color-hairline: #ebe2ec;
|
|
188
|
+
--gala-color-border-strong: #665c69;
|
|
189
|
+
--gala-color-accent: var(--gala-accent-light, #7a3d76);
|
|
190
|
+
}
|
|
191
|
+
:root[data-palette='plum'][data-mode='dark'] {
|
|
192
|
+
color-scheme: dark;
|
|
193
|
+
--gala-color-background: #141016;
|
|
194
|
+
--gala-color-surface: #1d1720;
|
|
195
|
+
--gala-color-raised: #241d28;
|
|
196
|
+
--gala-color-text: #f2ecf3;
|
|
197
|
+
--gala-color-muted: #a99dac;
|
|
198
|
+
--gala-color-border: #6b606d;
|
|
199
|
+
--gala-color-hairline: #281f2b;
|
|
200
|
+
--gala-color-border-strong: #8b7f8d;
|
|
201
|
+
--gala-color-accent: var(--gala-accent-dark, #dda6d8);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* ---------------------------------------------------------------- the looks
|
|
205
|
+
*
|
|
206
|
+
* Three, each designed whole.
|
|
207
|
+
*
|
|
208
|
+
* This replaced nine independent knobs — typeface, spacing, density, radius, motion, surfaces,
|
|
209
|
+
* palette — which a writer set one at a time, blind, and only saw combined after a deploy. Nine
|
|
210
|
+
* knobs is several hundred looks, and nobody had seen most of them: `mono` + `round` + `spacious`
|
|
211
|
+
* + `raised` produced monospace headings inside page-wide pills, and it was reachable in four
|
|
212
|
+
* clicks. A look is a set of decisions that agree with each other, so it is chosen as a set.
|
|
213
|
+
*/
|
|
214
|
+
|
|
215
|
+
/* Calm, serif, generous. For essays and long reading. */
|
|
216
|
+
:root[data-theme='editorial'] {
|
|
217
|
+
--gala-font-body: ui-serif, "Iowan Old Style", Charter, "Source Serif 4", Georgia, serif;
|
|
218
|
+
--gala-font-display: var(--gala-font-body);
|
|
219
|
+
--gala-weight-display: 600;
|
|
220
|
+
--gala-step: 1.1rem;
|
|
221
|
+
--gala-leading-body: 1.7;
|
|
222
|
+
--gala-radius-control: 0.5rem;
|
|
223
|
+
--gala-radius-surface: 0.75rem;
|
|
224
|
+
--gala-measure: 66ch;
|
|
225
|
+
--gala-surface-border: var(--gala-color-hairline);
|
|
226
|
+
--gala-surface-shadow: none;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* Crisp, sans, a little tighter. The default, and the safe one. */
|
|
230
|
+
:root[data-theme='modern'] {
|
|
231
|
+
--gala-font-body: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
232
|
+
--gala-font-display: var(--gala-font-body);
|
|
233
|
+
--gala-weight-display: 640;
|
|
234
|
+
--gala-step: 1rem;
|
|
235
|
+
--gala-leading-body: 1.65;
|
|
236
|
+
--gala-radius-control: 0.625rem;
|
|
237
|
+
--gala-radius-surface: 1rem;
|
|
238
|
+
--gala-measure: 70ch;
|
|
239
|
+
--gala-surface-border: transparent;
|
|
240
|
+
--gala-surface-shadow: var(--gala-shadow-high);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* For writing about code: mono for the furniture, never for the prose or the headings. */
|
|
244
|
+
:root[data-theme='technical'] {
|
|
245
|
+
--gala-font-body: ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
246
|
+
--gala-font-display: var(--gala-font-body);
|
|
247
|
+
--gala-weight-display: 660;
|
|
248
|
+
--gala-tracking-tight: -0.022em;
|
|
249
|
+
--gala-step: 0.9rem;
|
|
250
|
+
--gala-leading-body: 1.6;
|
|
251
|
+
--gala-radius-control: 0.375rem;
|
|
252
|
+
--gala-radius-surface: 0.5rem;
|
|
253
|
+
--gala-measure: 74ch;
|
|
254
|
+
--gala-surface-border: var(--gala-color-border-strong);
|
|
255
|
+
--gala-surface-shadow: none;
|
|
256
|
+
}
|
|
257
|
+
/* Mono is an accent here — labels, counts, metadata — not a face to set a page in. */
|
|
258
|
+
:root[data-theme='technical'] .gala-eyebrow,
|
|
259
|
+
:root[data-theme='technical'] .gala-engagement dt,
|
|
260
|
+
:root[data-theme='technical'] .gala-comment__meta time {
|
|
261
|
+
font-family: var(--gala-font-mono);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* Motion is not a choice a writer has to make; it is a property of a considered page. */
|
|
265
|
+
@media (prefers-reduced-motion: reduce) {
|
|
266
|
+
:root { --gala-motion-fast: 0ms; --gala-motion-base: 0ms; scroll-behavior: auto; }
|
|
267
|
+
*, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
:root[data-layout='portfolio'] { --gala-content-width: 82rem; }
|
|
271
|
+
|
|
272
|
+
html { scroll-behavior: smooth; }
|
|
273
|
+
|
|
274
|
+
body {
|
|
275
|
+
margin: 0;
|
|
276
|
+
padding: var(--gala-space-page);
|
|
277
|
+
color: var(--gala-color-text);
|
|
278
|
+
background: var(--gala-color-background);
|
|
279
|
+
font-family: var(--gala-font-body);
|
|
280
|
+
font-size: var(--gala-text-base);
|
|
281
|
+
line-height: var(--gala-leading-body);
|
|
282
|
+
-webkit-font-smoothing: antialiased;
|
|
283
|
+
text-rendering: optimizeLegibility;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.gala-skip-link {
|
|
287
|
+
position: fixed;
|
|
288
|
+
inset-block-start: 1rem;
|
|
289
|
+
inset-inline-start: 1rem;
|
|
290
|
+
z-index: 100;
|
|
291
|
+
padding: .75rem 1rem;
|
|
292
|
+
color: white;
|
|
293
|
+
background: var(--gala-color-accent);
|
|
294
|
+
border-radius: 999px;
|
|
295
|
+
transform: translateY(-200%);
|
|
296
|
+
}
|
|
297
|
+
.gala-skip-link:focus { transform: translateY(0); }
|
|
298
|
+
|
|
299
|
+
.gala-site-name {
|
|
300
|
+
color: var(--gala-color-text);
|
|
301
|
+
font-family: var(--gala-font-display);
|
|
302
|
+
font-size: var(--gala-text-lg);
|
|
303
|
+
font-weight: var(--gala-weight-display);
|
|
304
|
+
letter-spacing: var(--gala-tracking-tight);
|
|
305
|
+
text-decoration: none;
|
|
306
|
+
min-inline-size: 0;
|
|
307
|
+
overflow: hidden;
|
|
308
|
+
text-overflow: ellipsis;
|
|
309
|
+
white-space: nowrap;
|
|
310
|
+
}
|
|
311
|
+
.gala-header-link { color: var(--gala-color-text); font-size: var(--gala-text-sm); text-decoration: none; }
|
|
312
|
+
.gala-account-control {
|
|
313
|
+
display: inline-flex;
|
|
314
|
+
align-items: center;
|
|
315
|
+
gap: .5rem;
|
|
316
|
+
min-block-size: 2.75rem;
|
|
317
|
+
padding-inline: .9rem;
|
|
318
|
+
border-radius: 999px;
|
|
319
|
+
}
|
|
320
|
+
.gala-account-control svg { inline-size: 1rem; block-size: 1rem; }
|
|
321
|
+
|
|
322
|
+
.gala-article { max-inline-size: 76rem; margin-inline: auto; }
|
|
323
|
+
.gala-page--article .gala-site-header,
|
|
324
|
+
.gala-page--article main,
|
|
325
|
+
.gala-page--article .gala-page-footer { max-inline-size: 112rem; }
|
|
326
|
+
.gala-page--article .gala-article,
|
|
327
|
+
.gala-page--article .gala-engagement { max-inline-size: none; }
|
|
328
|
+
.gala-article-header { padding-block: clamp(2.5rem, 5vw, 5rem); }
|
|
329
|
+
.gala-article-header h1 {
|
|
330
|
+
max-inline-size: 12ch;
|
|
331
|
+
font-size: clamp(2.5rem, 7vw, 5.25rem);
|
|
332
|
+
line-height: .96;
|
|
333
|
+
letter-spacing: -.055em;
|
|
334
|
+
}
|
|
335
|
+
.gala-byline { color: var(--gala-color-muted); font-size: var(--gala-text-sm); }
|
|
336
|
+
.gala-markdown { max-inline-size: 42rem; margin-inline: auto; font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); }
|
|
337
|
+
.gala-markdown :where(h2) { margin-block-start: clamp(3rem, 7vw, 5rem); font-size: clamp(2.2rem, 5vw, 3.8rem); }
|
|
338
|
+
.gala-markdown :where(h2, h3, h4, h5, h6) { scroll-margin-block-start: 7rem; }
|
|
339
|
+
.gala-markdown :where(img, video) { max-inline-size: 100%; block-size: auto; }
|
|
340
|
+
.gala-markdown :where(pre) {
|
|
341
|
+
box-sizing: border-box;
|
|
342
|
+
max-inline-size: 100%;
|
|
343
|
+
overflow-x: auto;
|
|
344
|
+
scrollbar-color: var(--gala-color-border-strong) var(--gala-color-surface);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/* Headings carry the hierarchy, so they get the display face, a tighter measure and tighter
|
|
348
|
+
tracking — large type set at body tracking is the single clearest sign of an unconsidered page. */
|
|
349
|
+
:where(h1, h2, h3, h4) {
|
|
350
|
+
font-family: var(--gala-font-display);
|
|
351
|
+
font-weight: var(--gala-weight-display);
|
|
352
|
+
line-height: var(--gala-leading-tight);
|
|
353
|
+
letter-spacing: var(--gala-tracking-tight);
|
|
354
|
+
text-wrap: balance;
|
|
355
|
+
margin-block: 0 var(--gala-space-sm);
|
|
356
|
+
}
|
|
357
|
+
:where(h1) { font-size: var(--gala-text-3xl); }
|
|
358
|
+
:where(h2) { font-size: var(--gala-text-2xl); }
|
|
359
|
+
:where(h3) { font-size: var(--gala-text-xl); }
|
|
360
|
+
:where(h4) { font-size: var(--gala-text-lg); }
|
|
361
|
+
:where(p, ul, ol, blockquote) { margin-block: 0 var(--gala-space-md); }
|
|
362
|
+
:where(p) { text-wrap: pretty; }
|
|
363
|
+
|
|
364
|
+
blockquote {
|
|
365
|
+
margin-inline: 0;
|
|
366
|
+
padding-inline-start: var(--gala-space-md);
|
|
367
|
+
border-inline-start: 2px solid var(--gala-color-accent);
|
|
368
|
+
color: var(--gala-color-muted);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
:where(code, kbd, samp) { font-family: var(--gala-font-mono); font-size: 0.9em; }
|
|
372
|
+
:where(pre) {
|
|
373
|
+
padding: var(--gala-space-md);
|
|
374
|
+
overflow-x: auto;
|
|
375
|
+
background: var(--gala-color-surface);
|
|
376
|
+
border-radius: var(--gala-radius-control);
|
|
377
|
+
}
|
|
378
|
+
:where(hr) { border: 0; border-block-start: 1px solid var(--gala-color-hairline); margin-block: var(--gala-space-xl); }
|
|
379
|
+
:where(table) { border-collapse: collapse; inline-size: 100%; }
|
|
380
|
+
:where(th, td) { padding: var(--gala-space-xs) var(--gala-space-sm); border-block-end: 1px solid var(--gala-color-hairline); text-align: start; }
|
|
381
|
+
|
|
382
|
+
/* An uppercase label needs air between the letters or it sets as a solid block. */
|
|
383
|
+
.gala-eyebrow, .gala-comment__meta time, .gala-comment__edited {
|
|
384
|
+
font-size: var(--gala-text-xs);
|
|
385
|
+
letter-spacing: var(--gala-tracking-wide);
|
|
386
|
+
text-transform: uppercase;
|
|
387
|
+
color: var(--gala-color-muted);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/*
|
|
391
|
+
* Stays with the reader. It used to scroll away, so on a long post the only way back to the site
|
|
392
|
+
* — or to sign in — was to scroll to the top. The negative inline margin lets the bar's background
|
|
393
|
+
* reach the edge of the viewport while its contents stay on the page's own measure.
|
|
394
|
+
*/
|
|
395
|
+
.gala-site-header {
|
|
396
|
+
position: sticky;
|
|
397
|
+
inset-block-start: 0;
|
|
398
|
+
z-index: 10;
|
|
399
|
+
display: flex;
|
|
400
|
+
align-items: center;
|
|
401
|
+
justify-content: space-between;
|
|
402
|
+
gap: var(--gala-space-md);
|
|
403
|
+
max-inline-size: var(--gala-content-width);
|
|
404
|
+
margin-inline: auto;
|
|
405
|
+
margin-block-end: var(--gala-space-xl);
|
|
406
|
+
padding-block: var(--gala-space-xs);
|
|
407
|
+
background: color-mix(in srgb, var(--gala-color-background) 88%, transparent);
|
|
408
|
+
backdrop-filter: blur(8px);
|
|
409
|
+
border-block-end: 1px solid var(--gala-color-hairline);
|
|
410
|
+
}
|
|
411
|
+
@supports not (backdrop-filter: blur(8px)) {
|
|
412
|
+
.gala-site-header { background: var(--gala-color-background); }
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.gala-site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
|
|
416
|
+
.gala-header-link { display: inline-flex; align-items: center; min-block-size: 2.75rem; }
|
|
417
|
+
.gala-icon-control {
|
|
418
|
+
display: inline-grid;
|
|
419
|
+
inline-size: 2.75rem;
|
|
420
|
+
block-size: 2.75rem;
|
|
421
|
+
box-sizing: border-box;
|
|
422
|
+
padding: 0.6rem;
|
|
423
|
+
place-items: center;
|
|
424
|
+
color: inherit;
|
|
425
|
+
border: 0.125rem solid transparent;
|
|
426
|
+
border-radius: 50%;
|
|
427
|
+
}
|
|
428
|
+
.gala-icon-control {
|
|
429
|
+
transition: background var(--gala-motion-fast) var(--gala-ease),
|
|
430
|
+
color var(--gala-motion-fast) var(--gala-ease);
|
|
431
|
+
color: var(--gala-color-muted);
|
|
432
|
+
}
|
|
433
|
+
.gala-icon-control:hover { background: var(--gala-color-surface); color: var(--gala-color-text); }
|
|
434
|
+
.gala-icon-control:focus-visible { outline: 0.1875rem solid currentcolor; outline-offset: 0.1875rem; }
|
|
435
|
+
/* Stroked, not filled: the icons are drawn on one 24px grid at a single weight, so they read as
|
|
436
|
+
a set rather than as six unrelated silhouettes. */
|
|
437
|
+
.gala-icon-control svg { inline-size: 100%; block-size: 100%; fill: none; stroke: currentcolor; }
|
|
438
|
+
|
|
439
|
+
.gala-dialog {
|
|
440
|
+
inline-size: min(42rem, calc(100% - 2rem));
|
|
441
|
+
max-block-size: calc(100% - 2rem);
|
|
442
|
+
box-sizing: border-box;
|
|
443
|
+
padding: 1.5rem;
|
|
444
|
+
color: var(--gala-color-text);
|
|
445
|
+
background: var(--gala-color-background);
|
|
446
|
+
border: 1px solid var(--gala-surface-border);
|
|
447
|
+
border-radius: var(--gala-radius-surface);
|
|
448
|
+
box-shadow: var(--gala-shadow-high);
|
|
449
|
+
}
|
|
450
|
+
.gala-dialog::backdrop { background: rgb(0 0 0 / 65%); }
|
|
451
|
+
/* Sized to what it holds. 22rem was a box for a name and one button, and it showed. */
|
|
452
|
+
.gala-account-dialog { inline-size: min(26rem, calc(100% - 2rem)); }
|
|
453
|
+
.gala-account-dialog iframe {
|
|
454
|
+
display: block;
|
|
455
|
+
inline-size: 100%;
|
|
456
|
+
/* Height is set from the frame's own report; this is only what it shows before that arrives. */
|
|
457
|
+
block-size: 7rem;
|
|
458
|
+
border: 0;
|
|
459
|
+
/* The frame owns its layout and reports its size, so it never needs to scroll inside the box. */
|
|
460
|
+
overflow: hidden;
|
|
461
|
+
}
|
|
462
|
+
/* The close control belongs on the same line as the title, not floated above it. */
|
|
463
|
+
.gala-dialog { display: grid; gap: var(--gala-space-sm); }
|
|
464
|
+
.gala-dialog:not([open]) { display: none; }
|
|
465
|
+
.gala-dialog__close { justify-self: end; margin: 0; }
|
|
466
|
+
.gala-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: var(--gala-space-md); }
|
|
467
|
+
.gala-dialog__header h2 { margin: 0; }
|
|
468
|
+
|
|
469
|
+
main,
|
|
470
|
+
.gala-page-footer {
|
|
471
|
+
max-inline-size: var(--gala-content-width);
|
|
472
|
+
margin-inline: auto;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
a { color: var(--gala-color-accent); }
|
|
476
|
+
|
|
477
|
+
button {
|
|
478
|
+
min-block-size: 2.75rem;
|
|
479
|
+
padding-inline: var(--gala-space-md);
|
|
480
|
+
color: inherit;
|
|
481
|
+
background: var(--gala-color-surface);
|
|
482
|
+
border: 1px solid var(--gala-color-border);
|
|
483
|
+
border-radius: var(--gala-radius-control);
|
|
484
|
+
font: inherit;
|
|
485
|
+
font-size: var(--gala-text-sm);
|
|
486
|
+
cursor: pointer;
|
|
487
|
+
transition: background var(--gala-motion-fast) var(--gala-ease),
|
|
488
|
+
border-color var(--gala-motion-fast) var(--gala-ease);
|
|
489
|
+
}
|
|
490
|
+
button:hover { border-color: var(--gala-color-border-strong); background: var(--gala-color-raised); }
|
|
491
|
+
button[disabled] { opacity: 0.55; cursor: not-allowed; }
|
|
492
|
+
|
|
493
|
+
button:focus-visible {
|
|
494
|
+
outline: 0.1875rem solid currentcolor;
|
|
495
|
+
outline-offset: 0.1875rem;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.gala-button,
|
|
499
|
+
.gala-badge,
|
|
500
|
+
.gala-tag-chip {
|
|
501
|
+
display: inline-flex;
|
|
502
|
+
align-items: center;
|
|
503
|
+
min-block-size: 2.75rem;
|
|
504
|
+
border: 1px solid var(--gala-color-border);
|
|
505
|
+
border-radius: var(--gala-radius-control);
|
|
506
|
+
font-size: var(--gala-text-sm);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.gala-badge,
|
|
510
|
+
.gala-tag-chip { padding-inline: 0.75rem; }
|
|
511
|
+
.gala-tag-chip { text-decoration: none; }
|
|
512
|
+
.gala-section-heading { margin-block: 3rem 1rem; }
|
|
513
|
+
.gala-section-heading > :where(h2, p) { margin-block: 0 0.5rem; }
|
|
514
|
+
.gala-hero { display: grid; gap: 1.5rem; align-items: center; }
|
|
515
|
+
.gala-hero__image { inline-size: 100%; block-size: auto; border-radius: var(--gala-radius-control); }
|
|
516
|
+
.gala-page-content { max-inline-size: var(--gala-measure); }
|
|
517
|
+
.gala-page-content :where(img, video) { max-inline-size: 100%; block-size: auto; }
|
|
518
|
+
.gala-author-profile { display: flex; gap: 1rem; padding: 1rem; background: var(--gala-color-surface); border-radius: var(--gala-radius-control); }
|
|
519
|
+
.gala-author-profile img { border-radius: 50%; object-fit: cover; }
|
|
520
|
+
.gala-social-links,
|
|
521
|
+
.gala-page-footer ul,
|
|
522
|
+
.gala-share ul { display: flex; flex-wrap: wrap; gap: 1rem; padding: 0; list-style: none; }
|
|
523
|
+
.gala-card-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; padding: 0; list-style: none; }
|
|
524
|
+
[data-layout='portfolio'] .gala-card-index { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.5rem; }
|
|
525
|
+
[data-layout='portfolio'] .gala-card { padding: clamp(1.25rem, 3vw, 2rem); }
|
|
526
|
+
/* The surfaces are where `componentStyle` becomes visible: quiet sits on the page, outlined draws
|
|
527
|
+
its edge, raised lifts. One variable decides, so cards and dialogs cannot drift apart. */
|
|
528
|
+
.gala-card {
|
|
529
|
+
block-size: 100%;
|
|
530
|
+
box-sizing: border-box;
|
|
531
|
+
padding: var(--gala-space-lg);
|
|
532
|
+
background: var(--gala-color-surface);
|
|
533
|
+
border: 1px solid var(--gala-surface-border);
|
|
534
|
+
border-radius: var(--gala-radius-surface);
|
|
535
|
+
box-shadow: var(--gala-surface-shadow);
|
|
536
|
+
}
|
|
537
|
+
/* The one place the page moves of its own accord, and so the one place `motion` is legible:
|
|
538
|
+
`subtle` is a short settle, `expressive` a longer one, `none` no movement at all. */
|
|
539
|
+
.gala-card { transition: transform var(--gala-motion-base) var(--gala-ease),
|
|
540
|
+
box-shadow var(--gala-motion-base) var(--gala-ease); }
|
|
541
|
+
.gala-card-index li:hover .gala-card { transform: translateY(-2px); box-shadow: var(--gala-shadow-high); }
|
|
542
|
+
.gala-stats-graph { min-block-size: var(--gala-widget-min-block-size); margin-inline: 0; }
|
|
543
|
+
.gala-stats-graph svg { inline-size: 100%; block-size: 8rem; }
|
|
544
|
+
.gala-stats-graph polyline { fill: none; stroke: var(--gala-color-accent); stroke-width: 2; }
|
|
545
|
+
.gala-loading { display: grid; min-block-size: var(--gala-widget-min-block-size); place-items: center; }
|
|
546
|
+
.gala-loading__indicator { inline-size: 2rem; block-size: 2rem; border: 0.25rem solid var(--gala-color-border); border-block-start-color: var(--gala-color-accent); border-radius: 50%; animation: gala-spin 0.8s linear infinite; }
|
|
547
|
+
.gala-pagination { display: flex; justify-content: space-between; gap: 1rem; }
|
|
548
|
+
.gala-search { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; }
|
|
549
|
+
.gala-search label { grid-column: 1 / -1; }
|
|
550
|
+
.gala-search input { min-block-size: 2.75rem; font: inherit; }
|
|
551
|
+
.gala-search-results { display: grid; gap: 1rem; padding: 0; list-style: none; }
|
|
552
|
+
.gala-search-results article { padding: 1rem; background: var(--gala-color-surface); border-radius: var(--gala-radius-control); }
|
|
553
|
+
.gala-search-results h2 { margin-block-start: 0; }
|
|
554
|
+
.gala-toc {
|
|
555
|
+
box-sizing: border-box;
|
|
556
|
+
min-inline-size: 0;
|
|
557
|
+
max-inline-size: 42rem;
|
|
558
|
+
margin-inline: auto;
|
|
559
|
+
padding: 1rem;
|
|
560
|
+
background: var(--gala-color-surface);
|
|
561
|
+
}
|
|
562
|
+
.gala-toc summary { color: var(--gala-color-text); font-weight: var(--gala-weight-display); cursor: pointer; }
|
|
563
|
+
.gala-toc nav { margin-block-start: var(--gala-space-sm); overscroll-behavior: contain; }
|
|
564
|
+
.gala-toc ol { margin: 0; padding-inline-start: 1.25rem; }
|
|
565
|
+
.gala-toc a[aria-current='location'] { color: var(--gala-color-text); font-weight: 700; }
|
|
566
|
+
.gala-share__fallback { inline-size: min(100%, 36rem); }
|
|
567
|
+
.gala-engagement__placeholder { display: grid; min-block-size: var(--gala-widget-min-block-size); align-content: center; margin: 0; }
|
|
568
|
+
.gala-engagement-profile > * { margin-block: 0 0.5rem; }
|
|
569
|
+
.gala-engagement-actions { display: grid; gap: 1rem; margin-block-start: 1.5rem; }
|
|
570
|
+
.gala-engagement-actions[hidden] { display: none; }
|
|
571
|
+
/* Shown only when signing in interrupted something the reader had already decided to do, so it
|
|
572
|
+
reassures rather than sells. Hidden for anyone who opened the account dialog deliberately. */
|
|
573
|
+
.gala-account-dialog__invite { margin-block: 0 1rem; max-inline-size: 34rem; }
|
|
574
|
+
.gala-account-dialog__invite[hidden] { display: none; }
|
|
575
|
+
.gala-engagement-actions form,
|
|
576
|
+
[data-comment-editor] { display: grid; gap: 0.5rem; max-inline-size: 42rem; }
|
|
577
|
+
.gala-engagement-actions label { display: grid; gap: 0.5rem; }
|
|
578
|
+
.gala-engagement-actions textarea,
|
|
579
|
+
[data-comment-editor] textarea { min-block-size: 7rem; padding: 0.75rem; font: inherit; }
|
|
580
|
+
.gala-page-footer {
|
|
581
|
+
display: flex;
|
|
582
|
+
align-items: flex-start;
|
|
583
|
+
justify-content: space-between;
|
|
584
|
+
gap: var(--gala-space-lg);
|
|
585
|
+
margin-block-start: var(--gala-space-xl);
|
|
586
|
+
padding-block-start: var(--gala-space-md);
|
|
587
|
+
border-block-start: 0.125rem solid var(--gala-color-border);
|
|
588
|
+
}
|
|
589
|
+
.gala-page-footer__identity { display: flex; gap: var(--gala-space-sm); max-inline-size: 56rem; }
|
|
590
|
+
.gala-page-footer__identity img { flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
|
|
591
|
+
.gala-page-footer__identity p { margin: 0; color: var(--gala-color-muted); font-size: var(--gala-text-sm); }
|
|
592
|
+
.gala-page-footer__details { display: grid; gap: var(--gala-space-2xs); align-content: center; }
|
|
593
|
+
.gala-page-footer__line { display: grid; grid-template-columns: repeat(3, max-content); align-items: baseline; gap: 0 var(--gala-space-sm); }
|
|
594
|
+
.gala-page-footer__line > * + *::before { content: "·"; margin-inline-end: var(--gala-space-sm); color: var(--gala-color-border); }
|
|
595
|
+
.gala-page-footer__bio { line-height: 1.4; }
|
|
596
|
+
.gala-page-footer__author { color: var(--gala-color-text); font-weight: var(--gala-weight-display); }
|
|
597
|
+
.gala-page-footer nav { margin-inline-start: auto; }
|
|
598
|
+
.gala-page-footer ul { justify-content: flex-end; margin: 0; }
|
|
599
|
+
.gala-error-page { min-block-size: 60vh; display: grid; align-content: center; justify-items: start; }
|
|
600
|
+
.gala-code-block {
|
|
601
|
+
position: relative;
|
|
602
|
+
box-sizing: border-box;
|
|
603
|
+
min-inline-size: 0;
|
|
604
|
+
max-inline-size: 100%;
|
|
605
|
+
inline-size: 100%;
|
|
606
|
+
overflow: hidden;
|
|
607
|
+
}
|
|
608
|
+
.gala-code-block > button { position: absolute; inset-block-start: 0.5rem; inset-inline-end: 0.5rem; background: var(--gala-color-background); }
|
|
609
|
+
.gala-code-block pre {
|
|
610
|
+
box-sizing: border-box;
|
|
611
|
+
min-inline-size: 0;
|
|
612
|
+
max-inline-size: 100%;
|
|
613
|
+
inline-size: 100%;
|
|
614
|
+
overflow-x: auto;
|
|
615
|
+
overscroll-behavior-inline: contain;
|
|
616
|
+
padding: 3.5rem 1rem 1rem;
|
|
617
|
+
background: var(--gala-color-surface);
|
|
618
|
+
border-radius: var(--gala-radius-control);
|
|
619
|
+
}
|
|
620
|
+
.gala-code-block code { display: block; inline-size: max-content; min-inline-size: 100%; }
|
|
621
|
+
.gala-embed {
|
|
622
|
+
display: grid;
|
|
623
|
+
place-items: center;
|
|
624
|
+
gap: 0.75rem;
|
|
625
|
+
box-sizing: border-box;
|
|
626
|
+
inline-size: 100%;
|
|
627
|
+
margin-inline: 0;
|
|
628
|
+
padding: 1rem;
|
|
629
|
+
overflow: hidden;
|
|
630
|
+
background: var(--gala-color-surface);
|
|
631
|
+
border: 0.125rem solid var(--gala-color-border);
|
|
632
|
+
border-radius: var(--gala-radius-control);
|
|
633
|
+
}
|
|
634
|
+
.gala-embed--youtube { aspect-ratio: 16 / 9; }
|
|
635
|
+
.gala-embed--codepen { min-block-size: 25rem; }
|
|
636
|
+
.gala-embed--gist,
|
|
637
|
+
.gala-embed--x { min-block-size: 8rem; }
|
|
638
|
+
.gala-embed iframe { inline-size: 100%; block-size: 100%; border: 0; }
|
|
639
|
+
.gala-embed__icon {
|
|
640
|
+
inline-size: 2rem;
|
|
641
|
+
block-size: 2rem;
|
|
642
|
+
background: center / contain no-repeat;
|
|
643
|
+
}
|
|
644
|
+
.gala-embed--youtube .gala-embed__icon { background-image: url('../assets/embed-youtube.svg'); }
|
|
645
|
+
.gala-embed--codepen .gala-embed__icon { background-image: url('../assets/embed-codepen.svg'); }
|
|
646
|
+
.gala-embed--gist .gala-embed__icon { background-image: url('../assets/embed-gist.svg'); }
|
|
647
|
+
.gala-embed--x .gala-embed__icon { background-image: url('../assets/embed-x.svg'); }
|
|
648
|
+
.shiki,
|
|
649
|
+
.shiki span { color: inherit; background-color: var(--gala-color-surface); }
|
|
650
|
+
.gala-visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
651
|
+
.gala-contact form { display: grid; gap: 1rem; max-inline-size: 42rem; }
|
|
652
|
+
.gala-contact label { display: grid; gap: .35rem; }
|
|
653
|
+
.gala-contact input,
|
|
654
|
+
.gala-contact textarea { font: inherit; padding: .65rem; }
|
|
655
|
+
.gala-contact textarea { min-block-size: 12rem; resize: vertical; }
|
|
656
|
+
|
|
657
|
+
@keyframes gala-spin { to { transform: rotate(1turn); } }
|
|
658
|
+
|
|
659
|
+
@media (min-width: 48rem) {
|
|
660
|
+
.gala-hero { grid-template-columns: minmax(0, 1fr) minmax(18rem, 1fr); }
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
664
|
+
@view-transition { navigation: auto; }
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
/* ---------------------------------------------------------------- the conversation
|
|
668
|
+
A thread is a hierarchy, and the indent is the only thing that says so. It is drawn with a
|
|
669
|
+
rule rather than padding alone, so five levels deep still reads as five levels and not as an
|
|
670
|
+
accident of margin. */
|
|
671
|
+
.gala-comments-island { margin-block-start: var(--gala-space-xl); }
|
|
672
|
+
.gala-comments__heading {
|
|
673
|
+
font-size: var(--gala-text-lg);
|
|
674
|
+
margin-block-end: var(--gala-space-md);
|
|
675
|
+
}
|
|
676
|
+
.gala-comments, .gala-comment-replies { list-style: none; margin: 0; padding: 0; }
|
|
677
|
+
.gala-comment-replies {
|
|
678
|
+
margin-block-start: var(--gala-space-sm);
|
|
679
|
+
margin-inline-start: var(--gala-space-xs);
|
|
680
|
+
padding-inline-start: var(--gala-space-md);
|
|
681
|
+
border-inline-start: 1px solid var(--gala-color-hairline);
|
|
682
|
+
}
|
|
683
|
+
.gala-comment { padding-block: var(--gala-space-sm); }
|
|
684
|
+
.gala-comment + .gala-comment { border-block-start: 1px solid var(--gala-color-hairline); }
|
|
685
|
+
.gala-comment-replies .gala-comment + .gala-comment { border-block-start: 0; }
|
|
686
|
+
.gala-comment__meta {
|
|
687
|
+
display: flex;
|
|
688
|
+
align-items: baseline;
|
|
689
|
+
gap: var(--gala-space-xs);
|
|
690
|
+
margin-block-end: var(--gala-space-2xs);
|
|
691
|
+
font-size: var(--gala-text-sm);
|
|
692
|
+
}
|
|
693
|
+
.gala-comment__meta strong { font-weight: 600; }
|
|
694
|
+
.gala-comment__pending { font-size: var(--gala-text-xs); color: var(--gala-color-muted); }
|
|
695
|
+
.gala-comment__body { margin-block: 0; overflow-wrap: anywhere; }
|
|
696
|
+
|
|
697
|
+
/* The controls stay out of the way until the comment is worth acting on. */
|
|
698
|
+
.gala-comment-actions {
|
|
699
|
+
display: flex;
|
|
700
|
+
gap: var(--gala-space-2xs);
|
|
701
|
+
margin-block-start: var(--gala-space-2xs);
|
|
702
|
+
opacity: 0.72;
|
|
703
|
+
transition: opacity var(--gala-motion-fast) var(--gala-ease);
|
|
704
|
+
}
|
|
705
|
+
.gala-comment:hover > .gala-comment-actions,
|
|
706
|
+
.gala-comment:focus-within > .gala-comment-actions { opacity: 1; }
|
|
707
|
+
.gala-comment-actions button {
|
|
708
|
+
min-block-size: 2rem;
|
|
709
|
+
padding-inline: var(--gala-space-xs);
|
|
710
|
+
font-size: var(--gala-text-xs);
|
|
711
|
+
background: transparent;
|
|
712
|
+
border-color: transparent;
|
|
713
|
+
color: var(--gala-color-muted);
|
|
714
|
+
}
|
|
715
|
+
.gala-comment-actions button:hover { color: var(--gala-color-text); background: var(--gala-color-surface); }
|
|
716
|
+
|
|
717
|
+
.gala-comment__form { display: grid; gap: var(--gala-space-xs); margin-block: var(--gala-space-sm); }
|
|
718
|
+
.gala-comment__form textarea {
|
|
719
|
+
inline-size: 100%;
|
|
720
|
+
box-sizing: border-box;
|
|
721
|
+
padding: var(--gala-space-sm);
|
|
722
|
+
color: inherit;
|
|
723
|
+
background: var(--gala-color-raised);
|
|
724
|
+
border: 1px solid var(--gala-color-border);
|
|
725
|
+
border-radius: var(--gala-radius-control);
|
|
726
|
+
font: inherit;
|
|
727
|
+
font-size: var(--gala-text-sm);
|
|
728
|
+
line-height: var(--gala-leading-body);
|
|
729
|
+
resize: vertical;
|
|
730
|
+
}
|
|
731
|
+
.gala-comment__form textarea:focus-visible { outline: 2px solid var(--gala-color-accent); outline-offset: 1px; }
|
|
732
|
+
.gala-comment__controls { display: flex; gap: var(--gala-space-xs); }
|
|
733
|
+
.gala-comments__status, .gala-comments__empty, .gala-comments__prompt {
|
|
734
|
+
color: var(--gala-color-muted);
|
|
735
|
+
font-size: var(--gala-text-sm);
|
|
736
|
+
}
|
|
737
|
+
.gala-comments__more { margin-block-start: var(--gala-space-md); }
|
|
738
|
+
|
|
739
|
+
/* ---------------------------------------------------------------- where the article ends
|
|
740
|
+
The writing and the conversation about it are different things, and the page has to say so.
|
|
741
|
+
A footnote used to run straight into the author card with nothing between them. */
|
|
742
|
+
.gala-engagement {
|
|
743
|
+
/* Space is reserved before the counts arrive, so the page does not jump under the reader. */
|
|
744
|
+
min-block-size: var(--gala-widget-min-block-size);
|
|
745
|
+
max-inline-size: var(--gala-content-width);
|
|
746
|
+
margin-block-start: var(--gala-space-xl);
|
|
747
|
+
padding-block-start: var(--gala-space-lg);
|
|
748
|
+
border-block-start: 1px solid var(--gala-color-border);
|
|
749
|
+
}
|
|
750
|
+
.gala-engagement-profile {
|
|
751
|
+
display: flex;
|
|
752
|
+
align-items: baseline;
|
|
753
|
+
gap: var(--gala-space-sm);
|
|
754
|
+
padding: 0;
|
|
755
|
+
background: none;
|
|
756
|
+
}
|
|
757
|
+
.gala-engagement-profile h2 { font-size: var(--gala-text-lg); margin: 0; }
|
|
758
|
+
.gala-engagement-profile p { margin: 0; color: var(--gala-color-muted); font-size: var(--gala-text-sm); }
|
|
759
|
+
|
|
760
|
+
/* Counts read as data, not as three stacked paragraphs. */
|
|
761
|
+
.gala-engagement > dl {
|
|
762
|
+
display: flex;
|
|
763
|
+
flex-wrap: wrap;
|
|
764
|
+
gap: var(--gala-space-lg);
|
|
765
|
+
margin-block: var(--gala-space-md);
|
|
766
|
+
}
|
|
767
|
+
.gala-engagement > dl > div { display: flex; flex-direction: column-reverse; gap: 0.1rem; }
|
|
768
|
+
.gala-engagement > dl dt {
|
|
769
|
+
font-size: var(--gala-text-xs);
|
|
770
|
+
letter-spacing: var(--gala-tracking-wide);
|
|
771
|
+
text-transform: uppercase;
|
|
772
|
+
color: var(--gala-color-muted);
|
|
773
|
+
}
|
|
774
|
+
.gala-engagement > dl dd {
|
|
775
|
+
margin: 0;
|
|
776
|
+
font-size: var(--gala-text-lg);
|
|
777
|
+
font-variant-numeric: tabular-nums;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
.gala-reaction-actions { display: flex; flex-wrap: wrap; gap: var(--gala-space-2xs); }
|
|
781
|
+
.gala-engagement-actions { display: grid; gap: var(--gala-space-sm); justify-items: start; }
|
|
782
|
+
.gala-engagement-actions > [data-follow-article] { inline-size: auto; }
|
|
783
|
+
.gala-share { margin-block-start: var(--gala-space-lg); }
|
|
784
|
+
|
|
785
|
+
/* v2 keeps every reader action in one stable DOM region. The rail is pure CSS: no scroll
|
|
786
|
+
observer toggles competing copies, so reaching the conversation cannot cause flicker. */
|
|
787
|
+
.gala-engagement { position: relative; }
|
|
788
|
+
.gala-reading-progress {
|
|
789
|
+
position: fixed;
|
|
790
|
+
z-index: 20;
|
|
791
|
+
inset: 0 0 auto;
|
|
792
|
+
inline-size: 100%;
|
|
793
|
+
block-size: .2rem;
|
|
794
|
+
appearance: none;
|
|
795
|
+
border: 0;
|
|
796
|
+
background: transparent;
|
|
797
|
+
pointer-events: none;
|
|
798
|
+
}
|
|
799
|
+
.gala-reading-progress::-webkit-progress-bar { background: transparent; }
|
|
800
|
+
.gala-reading-progress::-webkit-progress-value { background: var(--gala-color-accent); }
|
|
801
|
+
.gala-reading-progress::-moz-progress-bar { background: var(--gala-color-accent); }
|
|
802
|
+
.gala-reading-layout { display: block; }
|
|
803
|
+
.gala-conversation {
|
|
804
|
+
max-width: var(--gala-measure);
|
|
805
|
+
margin-inline: auto;
|
|
806
|
+
padding-block: clamp(3rem, 7vw, 6rem);
|
|
807
|
+
}
|
|
808
|
+
.gala-conversation__header { margin-block-end: var(--gala-space-xl); }
|
|
809
|
+
.gala-conversation__header h2 {
|
|
810
|
+
margin: 0;
|
|
811
|
+
font: var(--gala-weight-display) var(--gala-text-2xl)/var(--gala-leading-tight) var(--gala-font-display);
|
|
812
|
+
letter-spacing: var(--gala-tracking-tight);
|
|
813
|
+
}
|
|
814
|
+
.gala-conversation__status { display: block; min-block-size: 1.5em; color: var(--gala-color-muted); }
|
|
815
|
+
.gala-conversation__status:empty { display: none; }
|
|
816
|
+
.gala-action-rail {
|
|
817
|
+
position: static;
|
|
818
|
+
z-index: 4;
|
|
819
|
+
inset-block-start: 6rem;
|
|
820
|
+
box-sizing: border-box;
|
|
821
|
+
width: min(100%, 42rem);
|
|
822
|
+
margin: var(--gala-space-xl) auto 0;
|
|
823
|
+
display: grid;
|
|
824
|
+
grid-template-columns: 1fr auto 1fr;
|
|
825
|
+
gap: var(--gala-space-md);
|
|
826
|
+
align-items: center;
|
|
827
|
+
padding: var(--gala-space-md);
|
|
828
|
+
border: 1px solid var(--gala-color-hairline);
|
|
829
|
+
border-radius: var(--gala-radius-surface);
|
|
830
|
+
background: color-mix(in srgb, var(--gala-color-background) 88%, transparent);
|
|
831
|
+
box-shadow: var(--gala-shadow-high);
|
|
832
|
+
backdrop-filter: blur(16px);
|
|
833
|
+
}
|
|
834
|
+
.gala-action-rail button,
|
|
835
|
+
.gala-action-rail a {
|
|
836
|
+
inline-size: 2.5rem;
|
|
837
|
+
min-block-size: 2.5rem;
|
|
838
|
+
display: grid;
|
|
839
|
+
place-items: center;
|
|
840
|
+
padding: 0;
|
|
841
|
+
border: 0;
|
|
842
|
+
border-radius: 50%;
|
|
843
|
+
color: var(--gala-color-muted);
|
|
844
|
+
background: transparent;
|
|
845
|
+
font: 600 var(--gala-text-xs)/1 var(--gala-font-body);
|
|
846
|
+
text-decoration: none;
|
|
847
|
+
cursor: pointer;
|
|
848
|
+
}
|
|
849
|
+
.gala-action-rail svg { inline-size: 1.2rem; block-size: 1.2rem; }
|
|
850
|
+
.gala-action-rail button:hover,
|
|
851
|
+
.gala-action-rail a:hover,
|
|
852
|
+
.gala-action-rail button[aria-pressed='true'] {
|
|
853
|
+
color: var(--gala-color-background);
|
|
854
|
+
background: var(--gala-color-accent);
|
|
855
|
+
}
|
|
856
|
+
.gala-engagement .gala-action-stats {
|
|
857
|
+
display: grid;
|
|
858
|
+
grid-template-columns: repeat(3, 1fr);
|
|
859
|
+
gap: var(--gala-space-xs);
|
|
860
|
+
margin: 0;
|
|
861
|
+
}
|
|
862
|
+
.gala-action-stats > div {
|
|
863
|
+
display: flex;
|
|
864
|
+
min-block-size: 2.5rem;
|
|
865
|
+
align-items: center;
|
|
866
|
+
justify-content: space-between;
|
|
867
|
+
gap: .4rem;
|
|
868
|
+
padding-inline: .25rem;
|
|
869
|
+
}
|
|
870
|
+
.gala-action-stats dt {
|
|
871
|
+
display: grid;
|
|
872
|
+
place-items: center;
|
|
873
|
+
color: var(--gala-color-muted);
|
|
874
|
+
}
|
|
875
|
+
.gala-action-stats dt svg { inline-size: 1.2rem; block-size: 1.2rem; }
|
|
876
|
+
.gala-action-stats dd {
|
|
877
|
+
margin: 0;
|
|
878
|
+
color: var(--gala-color-text);
|
|
879
|
+
font: 400 1.2rem/1 var(--gala-font-mono);
|
|
880
|
+
}
|
|
881
|
+
.gala-action-group { display: grid; }
|
|
882
|
+
.gala-reaction-actions,
|
|
883
|
+
.gala-utility-actions,
|
|
884
|
+
.gala-share { display: grid; grid-template-columns: repeat(6, 2.5rem); gap: var(--gala-space-2xs); justify-content: center; }
|
|
885
|
+
.gala-utility-actions > .gala-share { display: contents; }
|
|
886
|
+
.gala-action-rail__separator {
|
|
887
|
+
inline-size: 1px;
|
|
888
|
+
align-self: stretch;
|
|
889
|
+
margin-block: .25rem;
|
|
890
|
+
background: var(--gala-color-hairline);
|
|
891
|
+
}
|
|
892
|
+
.gala-action-rail .gala-share__fallback {
|
|
893
|
+
position: fixed;
|
|
894
|
+
inline-size: 1px;
|
|
895
|
+
block-size: 1px;
|
|
896
|
+
overflow: hidden;
|
|
897
|
+
clip-path: inset(50%);
|
|
898
|
+
}
|
|
899
|
+
.gala-action-rail .gala-share__fallback--visible {
|
|
900
|
+
z-index: 10;
|
|
901
|
+
inset: auto 1rem 1rem;
|
|
902
|
+
inline-size: min(32rem, calc(100vw - 2rem));
|
|
903
|
+
block-size: auto;
|
|
904
|
+
padding: .75rem;
|
|
905
|
+
overflow: visible;
|
|
906
|
+
clip-path: none;
|
|
907
|
+
}
|
|
908
|
+
.gala-action-dock { display: block; min-block-size: 4.25rem; }
|
|
909
|
+
.gala-article-boundary {
|
|
910
|
+
width: min(100%, 56rem);
|
|
911
|
+
margin: clamp(4rem, 8vw, 7rem) auto var(--gala-space-lg);
|
|
912
|
+
padding-block-start: var(--gala-space-md);
|
|
913
|
+
display: flex;
|
|
914
|
+
align-items: baseline;
|
|
915
|
+
justify-content: space-between;
|
|
916
|
+
gap: var(--gala-space-md);
|
|
917
|
+
border-block-start: .25rem solid var(--gala-color-text);
|
|
918
|
+
font-size: var(--gala-text-sm);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
@media (min-width: 75rem) {
|
|
922
|
+
.gala-reading-layout {
|
|
923
|
+
display: grid;
|
|
924
|
+
grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr) 8.5rem;
|
|
925
|
+
align-items: start;
|
|
926
|
+
justify-content: space-between;
|
|
927
|
+
gap: clamp(2rem, 4vw, 5rem);
|
|
928
|
+
}
|
|
929
|
+
.gala-reading-layout .gala-toc {
|
|
930
|
+
grid-column: 1;
|
|
931
|
+
grid-row: 1;
|
|
932
|
+
position: sticky;
|
|
933
|
+
inset-block-start: 6rem;
|
|
934
|
+
max-inline-size: none;
|
|
935
|
+
margin-inline: 0;
|
|
936
|
+
max-block-size: calc(100vh - 8rem);
|
|
937
|
+
transition: box-shadow var(--gala-motion-fast) var(--gala-ease);
|
|
938
|
+
}
|
|
939
|
+
.gala-reading-layout .gala-toc--floating { box-shadow: var(--gala-shadow-high); }
|
|
940
|
+
.gala-reading-layout .gala-toc > summary { display: none; }
|
|
941
|
+
.gala-reading-layout .gala-toc > nav {
|
|
942
|
+
display: block;
|
|
943
|
+
max-block-size: calc(100vh - 10rem);
|
|
944
|
+
margin-block-start: 0;
|
|
945
|
+
overflow-y: auto;
|
|
946
|
+
scrollbar-width: thin;
|
|
947
|
+
}
|
|
948
|
+
.gala-reading-layout .gala-toc--overflowing ol {
|
|
949
|
+
padding-block: max(1rem, calc((100vh - 11.5rem) / 2));
|
|
950
|
+
}
|
|
951
|
+
.gala-reading-layout .gala-markdown { grid-column: 2; grid-row: 1; max-inline-size: 56rem; inline-size: 100%; margin: 0; }
|
|
952
|
+
.gala-article-boundary { grid-column: 2; grid-row: 2; margin-inline: 0; }
|
|
953
|
+
.gala-action-dock { grid-column: 2; grid-row: 3; }
|
|
954
|
+
.gala-action-rail {
|
|
955
|
+
grid-column: 3;
|
|
956
|
+
grid-row: 1;
|
|
957
|
+
position: sticky;
|
|
958
|
+
inset-block-start: 6rem;
|
|
959
|
+
width: 8.5rem;
|
|
960
|
+
margin: 0;
|
|
961
|
+
display: grid;
|
|
962
|
+
grid-template-columns: 1fr;
|
|
963
|
+
gap: var(--gala-space-sm);
|
|
964
|
+
padding: var(--gala-space-sm);
|
|
965
|
+
border-radius: var(--gala-radius-surface);
|
|
966
|
+
}
|
|
967
|
+
.gala-action-rail .gala-action-stats { gap: var(--gala-space-2xs); }
|
|
968
|
+
.gala-action-rail:not(.gala-action-rail--integrated) .gala-action-stats { grid-template-columns: 1fr; }
|
|
969
|
+
.gala-action-rail .gala-action-stats > div {
|
|
970
|
+
min-block-size: 2.5rem;
|
|
971
|
+
display: grid;
|
|
972
|
+
grid-template-columns: repeat(2, 2.5rem);
|
|
973
|
+
justify-content: center;
|
|
974
|
+
gap: .25rem;
|
|
975
|
+
padding-inline: 0;
|
|
976
|
+
}
|
|
977
|
+
.gala-action-rail .gala-action-stats dd { justify-self: center; }
|
|
978
|
+
.gala-action-rail .gala-reaction-actions,
|
|
979
|
+
.gala-action-rail .gala-utility-actions,
|
|
980
|
+
.gala-action-rail .gala-share { grid-template-columns: repeat(2, 2.5rem); }
|
|
981
|
+
.gala-action-rail__separator {
|
|
982
|
+
inline-size: auto;
|
|
983
|
+
block-size: 1px;
|
|
984
|
+
margin: .25rem;
|
|
985
|
+
}
|
|
986
|
+
.gala-action-rail--integrated {
|
|
987
|
+
grid-column: 2;
|
|
988
|
+
grid-row: 3;
|
|
989
|
+
position: static;
|
|
990
|
+
align-self: start;
|
|
991
|
+
width: 100%;
|
|
992
|
+
margin: 0;
|
|
993
|
+
display: grid;
|
|
994
|
+
grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
|
|
995
|
+
grid-template-rows: auto 1px auto;
|
|
996
|
+
grid-template-areas:
|
|
997
|
+
"reactions utility-separator utilities"
|
|
998
|
+
"stats-separator stats-separator stats-separator"
|
|
999
|
+
"stats stats stats";
|
|
1000
|
+
justify-content: stretch;
|
|
1001
|
+
gap: clamp(var(--gala-space-2xs), 1vw, var(--gala-space-md));
|
|
1002
|
+
align-items: center;
|
|
1003
|
+
padding: var(--gala-space-md);
|
|
1004
|
+
border-radius: var(--gala-radius-surface);
|
|
1005
|
+
}
|
|
1006
|
+
.gala-action-rail--integrated .gala-action-rail__separator {
|
|
1007
|
+
grid-area: utility-separator;
|
|
1008
|
+
inline-size: 1px;
|
|
1009
|
+
block-size: auto;
|
|
1010
|
+
margin: .25rem 0;
|
|
1011
|
+
}
|
|
1012
|
+
.gala-action-rail--integrated .gala-action-rail__separator--stats {
|
|
1013
|
+
grid-area: stats-separator;
|
|
1014
|
+
inline-size: auto;
|
|
1015
|
+
block-size: 1px;
|
|
1016
|
+
margin: 0;
|
|
1017
|
+
}
|
|
1018
|
+
.gala-action-rail--integrated .gala-action-group--reactions { grid-area: reactions; }
|
|
1019
|
+
.gala-action-rail--integrated .gala-action-group--utilities { grid-area: utilities; }
|
|
1020
|
+
.gala-action-rail--integrated .gala-reaction-actions { grid-template-columns: repeat(6, 2.5rem); }
|
|
1021
|
+
.gala-action-rail--integrated .gala-utility-actions { grid-template-columns: repeat(4, 2.5rem); }
|
|
1022
|
+
.gala-action-rail--integrated .gala-action-stats > div {
|
|
1023
|
+
min-block-size: 2.5rem;
|
|
1024
|
+
display: flex;
|
|
1025
|
+
flex-direction: row;
|
|
1026
|
+
gap: .4rem;
|
|
1027
|
+
padding-inline: .25rem;
|
|
1028
|
+
}
|
|
1029
|
+
.gala-action-rail--integrated .gala-action-stats {
|
|
1030
|
+
grid-area: stats;
|
|
1031
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
@media (max-width: 74.99rem) {
|
|
1036
|
+
.gala-action-rail {
|
|
1037
|
+
grid-template-columns: 1fr;
|
|
1038
|
+
width: min(100%, 42rem);
|
|
1039
|
+
}
|
|
1040
|
+
.gala-action-rail__separator {
|
|
1041
|
+
inline-size: auto;
|
|
1042
|
+
block-size: 1px;
|
|
1043
|
+
margin: 0;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
@media (max-width: 47.99rem) {
|
|
1048
|
+
.gala-page-footer { flex-direction: column; }
|
|
1049
|
+
.gala-page-footer__line { grid-template-columns: minmax(0, 1fr); gap: var(--gala-space-2xs); }
|
|
1050
|
+
.gala-page-footer__line > * + *::before { content: none; }
|
|
1051
|
+
.gala-page-footer nav { margin-inline-start: 0; }
|
|
1052
|
+
.gala-page-footer ul { justify-content: flex-start; }
|
|
1053
|
+
.gala-site-name { flex: 1 1 auto; min-inline-size: 4rem; font-size: var(--gala-text-base); }
|
|
1054
|
+
.gala-header-link { display: none; }
|
|
1055
|
+
.gala-site-header__actions { flex: 0 0 auto; gap: .125rem; }
|
|
1056
|
+
.gala-account-control { inline-size: 2.75rem; padding: 0; justify-content: center; }
|
|
1057
|
+
.gala-account-control [data-user-label] { display: none; }
|
|
1058
|
+
}
|