@n1kname/components 0.36.0 → 0.37.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n1kname/components",
3
- "version": "0.36.0",
3
+ "version": "0.37.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -5,16 +5,26 @@
5
5
  * filtered nothing matches: that's a result, offer a way back
6
6
  * error it failed: say what still works
7
7
  * An action goes in the slot. An error keeps showing the last good figures if there are any.
8
+ *
9
+ * An icon above the title says what would be here. For `empty` it draws itself in once, as the
10
+ * state comes into view: a place being empty is rare and worth a moment. A filter that matches
11
+ * nothing happens often and an error is no occasion, so for those it is simply there.
8
12
  */
13
+ import type { IconName } from './icons';
14
+ import Icon from './Icon.astro';
15
+
9
16
  interface Props {
10
17
  kind?: 'empty' | 'filtered' | 'error';
11
18
  title: string;
12
19
  text?: string;
20
+ /** What would be here, from the icon set. */
21
+ icon?: IconName;
13
22
  }
14
- const { kind = 'empty', title, text } = Astro.props;
23
+ const { kind = 'empty', title, text, icon } = Astro.props;
15
24
  ---
16
25
 
17
26
  <div class:list={['empty-state', kind]} role={kind === 'error' ? 'alert' : undefined}>
27
+ {icon && <Icon class="icon" name={icon} size={28} stroke={1.5} draw={kind === 'empty'} />}
18
28
  <p class="title">{title}</p>
19
29
  {text && <p class="text">{text}</p>}
20
30
  {Astro.slots.has('default') && <div class="action"><slot /></div>}
@@ -34,6 +44,16 @@ const { kind = 'empty', title, text } = Astro.props;
34
44
  border: 1px solid var(--c-status-critical);
35
45
  }
36
46
 
47
+ .empty-state :global(.icon) {
48
+ display: block;
49
+ margin-bottom: var(--sp-1);
50
+ color: var(--c-chart-2);
51
+ }
52
+
53
+ .error :global(.icon) {
54
+ color: var(--c-status-critical);
55
+ }
56
+
37
57
  .title {
38
58
  margin: 0;
39
59
  font-size: var(--text-body-sm);
package/src/Icon.astro CHANGED
@@ -1,19 +1,34 @@
1
1
  ---
2
+ /**
3
+ * An icon from the set in icons.ts, in the text colour.
4
+ *
5
+ * `draw` lets the icon draw itself in once, line by line, as it arrives: with the Reveal it sits in
6
+ * (on that Reveal's own beat) or, outside one, as it comes a third into view. Icons that arrive
7
+ * together go 110ms apart. For a moment people see rarely, such as a list of what someone does or
8
+ * an empty page; never in a toolbar or a row. Under reduced motion, or without script, the icon is
9
+ * simply there.
10
+ */
2
11
  import { ICONS, type IconName } from './icons';
3
12
 
4
13
  interface Props {
5
14
  name: IconName;
6
15
  size?: number;
7
16
  stroke?: number;
17
+ /** Draws the icon in once, as it arrives. */
18
+ draw?: boolean;
19
+ class?: string;
8
20
  }
9
21
 
10
- const { name, size = 18, stroke } = Astro.props;
22
+ const { name, size = 18, stroke, draw = false, class: className } = Astro.props;
11
23
  // Lucide is drawn at 24px with stroke 2. Below ~20px that reads heavy.
12
24
  const strokeWidth = stroke ?? (size < 20 ? 1.75 : 2);
25
+ // Every shape measured as one, so a single dash can cover it and draw it back.
26
+ const shapes = draw ? ICONS[name].replace(/<(path|circle|rect|line|polyline|polygon|ellipse)\b/g, '<$1 pathLength="1"') : ICONS[name];
13
27
  ---
14
28
 
15
29
  <svg
16
30
  xmlns="http://www.w3.org/2000/svg"
31
+ class={className}
17
32
  width={size}
18
33
  height={size}
19
34
  viewBox="0 0 24 24"
@@ -23,5 +38,55 @@ const strokeWidth = stroke ?? (size < 20 ? 1.75 : 2);
23
38
  stroke-linecap="round"
24
39
  stroke-linejoin="round"
25
40
  aria-hidden="true"
26
- set:html={ICONS[name]}
41
+ data-draw={draw ? '' : undefined}
42
+ set:html={shapes}
27
43
  />
44
+
45
+ <script>
46
+ // Arms every drawing icon (hidden only from here on, so nothing is lost without script). One
47
+ // inside a Reveal draws when that Reveal arrives, with its delay; one outside, or in a Reveal
48
+ // that was already on screen, draws as it comes into view.
49
+ if (matchMedia('(prefers-reduced-motion: no-preference)').matches) {
50
+ const go = (svg: SVGElement, delay: number) => {
51
+ if (svg.classList.contains('drawn')) return;
52
+ svg.style.setProperty('--icon-draw-delay', `${delay}ms`);
53
+ svg.classList.add('drawn');
54
+ seen.unobserve(svg);
55
+ };
56
+ const seen = new IntersectionObserver(
57
+ (entries) => {
58
+ entries
59
+ .filter((e) => e.isIntersecting)
60
+ .forEach((e, k) => {
61
+ const svg = e.target as SVGElement;
62
+ const host = svg.closest('[data-reveal]');
63
+ if (host?.classList.contains('reveal-armed') && !host.classList.contains('reveal-in')) return;
64
+ go(svg, k * 110);
65
+ });
66
+ },
67
+ { threshold: 0.33 },
68
+ );
69
+ document.querySelectorAll<SVGElement>('svg[data-draw]:not(.draw-armed)').forEach((svg) => {
70
+ svg.classList.add('draw-armed');
71
+ svg.closest('[data-reveal]')?.addEventListener('reveal', (e) => go(svg, (e as CustomEvent).detail?.delay ?? 0), { once: true });
72
+ seen.observe(svg);
73
+ });
74
+ }
75
+ </script>
76
+
77
+ <style is:global>
78
+ svg.draw-armed > * {
79
+ stroke-dasharray: 1;
80
+ stroke-dashoffset: 1;
81
+ }
82
+
83
+ svg.draw-armed.drawn > * {
84
+ animation: icon-draw var(--motion-draw, 1000ms) var(--ease-soft) var(--icon-draw-delay, 0ms) forwards;
85
+ }
86
+
87
+ @keyframes icon-draw {
88
+ to {
89
+ stroke-dashoffset: 0;
90
+ }
91
+ }
92
+ </style>
package/src/Reveal.astro CHANGED
@@ -5,6 +5,8 @@
5
5
  * Items that arrive together go 90ms apart. A jump past items (an anchor, a fast fling) shows the
6
6
  * ones it skipped at once, so nothing is left hidden above.
7
7
  *
8
+ * It rises by `--reveal-rise` (24px), so a page can make it quieter where items are small.
9
+ *
8
10
  * Hidden only once the script has armed it, so without script, or with reduced motion, it is
9
11
  * simply there. Each item fires `reveal` with its delay in `detail`, for a page that wants to
10
12
  * start something of its own as it arrives.
@@ -24,7 +26,7 @@ const { as: Element = 'div', class: className, ...rest } = Astro.props;
24
26
  <style is:global>
25
27
  [data-reveal].reveal-armed {
26
28
  opacity: 0;
27
- translate: 0 24px;
29
+ translate: 0 var(--reveal-rise, 24px);
28
30
  transition:
29
31
  opacity calc(var(--motion-reveal) * 2 / 3) var(--ease-out),
30
32
  translate var(--motion-reveal) var(--ease-soft);
package/src/SignIn.astro CHANGED
@@ -12,7 +12,12 @@
12
12
  * the address carries `errorParam` (a redirect back with ?error=1), or when a server removes its
13
13
  * `hidden` attribute ([data-sign-in-error]) on the way out. Once shown, the field is marked
14
14
  * invalid and takes focus, so typing again needs no click.
15
+ *
16
+ * The submit is the design system's primary Button, so it has the same light under the pointer
17
+ * and the same spring on a press as every other primary action.
15
18
  */
19
+ import Button from './Button.astro';
20
+
16
21
  interface Props {
17
22
  variant?: 'card' | 'page';
18
23
  /** The h1: an app's name, or what the door is in front of. */
@@ -96,7 +101,7 @@ const input =
96
101
  aria-invalid={error ? 'true' : undefined}
97
102
  {...input}
98
103
  />
99
- <button class="submit" type="submit"><span class="submit-label">{submit}</span></button>
104
+ <Button class="submit" variant="primary" type="submit"><span class="submit-label">{submit}</span></Button>
100
105
  </div>
101
106
  </form>
102
107
 
@@ -277,52 +282,25 @@ const input =
277
282
  border-color: var(--c-status-critical);
278
283
  }
279
284
 
280
- .submit {
281
- box-sizing: border-box;
282
- display: inline-flex;
283
- align-items: center;
284
- justify-content: center;
285
+ /* The Button's look; only its size here, so it stands as tall as the field beside it. */
286
+ .row :global(.submit) {
285
287
  min-height: 44px;
286
- padding: 0 var(--sp-5);
287
- border: 0;
288
- border-radius: var(--radius-md);
289
- background: var(--c-accent);
290
- color: var(--c-on-accent);
291
- font: inherit;
292
- font-size: var(--text-body-sm);
293
- font-weight: 600;
294
- cursor: pointer;
288
+ padding-inline: var(--sp-5);
295
289
  touch-action: manipulation;
296
- transition:
297
- background-color var(--motion-hover) var(--ease-hover),
298
- scale var(--motion-fast) var(--ease-out);
299
290
  }
300
291
 
301
- .card .submit {
292
+ .card :global(.submit) {
302
293
  width: 100%;
303
294
  margin-top: var(--sp-2);
304
295
  }
305
296
 
306
- .submit:hover {
307
- background: color-mix(in oklab, var(--c-accent) 88%, var(--c-text));
308
- }
309
-
310
- .submit:active {
311
- scale: 0.98;
312
- }
313
-
314
- .submit:focus-visible {
315
- outline: 2px solid var(--c-focus);
316
- outline-offset: 2px;
317
- }
318
-
319
297
  /* Sent: the words fade back while the next page loads. No spinner: it's usually under a
320
298
  second, and a spinner that flashes reads as a fault. */
321
- .submit[data-busy] {
299
+ .row :global(.submit[data-busy]) {
322
300
  cursor: progress;
323
301
  }
324
302
 
325
- .submit[data-busy] .submit-label {
303
+ .row :global(.submit[data-busy] .submit-label) {
326
304
  opacity: 0.6;
327
305
  transition: opacity var(--motion-base) var(--ease-out) 300ms;
328
306
  }
@@ -364,8 +342,7 @@ const input =
364
342
 
365
343
  @media (prefers-reduced-motion: reduce) {
366
344
  .field,
367
- .submit,
368
- .submit[data-busy] .submit-label {
345
+ .row :global(.submit[data-busy] .submit-label) {
369
346
  transition: none;
370
347
  }
371
348
  }
@@ -1,15 +1,26 @@
1
1
  ---
2
2
  /**
3
- * A project timeline: a marker and a line down the left, and each entry's period, title and text
4
- * beside it. The period sits above the title, small, so a year, a phase or a name all read the
5
- * same, and the text keeps the width.
3
+ * A timeline: a marker and a line down the left, and each entry's period, title and text beside
4
+ * it. The period sits above the title, small, so a year, a phase or a name all read the same, and
5
+ * the text keeps the width.
6
6
  *
7
7
  * Entries up to `current` are done (filled markers on a solid line); `current` is now (a marker
8
8
  * with a halo); any after it are still to come (hollow markers on a dashed line). By default the
9
- * last entry is now. An entry can carry an icon, shown in a soft disc of the accent.
9
+ * last entry is now. `order="newest-first"` turns that round for a history read from today back,
10
+ * such as a career: the first entry is now and the ones below it are done. An entry can carry an
11
+ * icon, shown in a soft disc of the accent.
10
12
  *
11
13
  * Once, as each entry comes into view, its marker settles in, its text rises and its line draws on
12
14
  * to the next. Nothing moves under reduced motion, and without script everything is simply there.
15
+ *
16
+ * `fill` is the other motion, for a long history that is read rather than glanced at: a faint rail
17
+ * that fills as the reader goes down it, to a line 60% down the window, in the accent through the
18
+ * step into now and the chart teal for the rest. Each marker it passes turns teal. The entries
19
+ * don't arrive: the fill is the one moment. Under reduced motion, or without script, the rail is
20
+ * drawn in full.
21
+ *
22
+ * Each entry takes richer content than `body` through a slot named after its place, `entry-0`,
23
+ * `entry-1` and so on: a story in paragraphs, or tags. It goes after the text.
13
24
  */
14
25
  import type { IconName } from './icons';
15
26
  import Icon from './Icon.astro';
@@ -17,33 +28,63 @@ import Icon from './Icon.astro';
17
28
  interface Entry {
18
29
  period: string;
19
30
  label: string;
20
- body: string;
31
+ /** A line under the title, such as the role held. */
32
+ meta?: string;
33
+ body?: string;
21
34
  /** What the step was, from the icon set: users, search, route, … */
22
35
  icon?: IconName;
23
36
  }
24
37
 
25
38
  interface Props {
26
39
  entries: Entry[];
27
- /** Which entry is now, 0 first. The last by default; false for a history that is over. */
40
+ /** Which entry is now, 0 first. The last by default, the first for newest-first; false for a history that is over. */
28
41
  current?: number | false;
42
+ /** How the entries run down the page. */
43
+ order?: 'oldest-first' | 'newest-first';
44
+ /** The rail fills as the reader scrolls down it. */
45
+ fill?: boolean;
46
+ /** Sets each title as a heading at this level, for a timeline that is a section's main content. */
47
+ heading?: 'h2' | 'h3' | 'h4';
48
+ class?: string;
29
49
  }
30
50
 
31
- const { entries, current = entries.length - 1 } = Astro.props;
51
+ const { entries, order = 'oldest-first', fill = false, heading, class: className } = Astro.props;
52
+ const newest = order === 'newest-first';
53
+ const current = Astro.props.current === undefined ? (newest ? 0 : entries.length - 1) : Astro.props.current;
32
54
  const icons = entries.some((e) => e.icon);
33
- const state = (i: number) => (current === false || i < current ? 'done' : i === current ? 'current' : 'next');
55
+ const state = (i: number) => {
56
+ if (current === false) return 'done';
57
+ if (i === current) return 'current';
58
+ return (newest ? i > current : i < current) ? 'done' : 'next';
59
+ };
60
+ // The line below an entry is dashed when it runs between now and what is still to come.
61
+ const dashed = (i: number) => (newest ? state(i) === 'next' : state(i + 1) === 'next');
62
+ const Title = heading ?? 'p';
63
+ const extras = await Promise.all(
64
+ entries.map((_, i) => (Astro.slots.has(`entry-${i}`) ? Astro.slots.render(`entry-${i}`) : Promise.resolve(''))),
65
+ );
34
66
  ---
35
67
 
36
- <ol class="timeline" data-icons={icons ? '' : undefined} data-timeline>
68
+ <ol
69
+ class:list={['timeline', className]}
70
+ data-icons={icons ? '' : undefined}
71
+ data-fill={fill ? '' : undefined}
72
+ data-order={order}
73
+ data-current={current === false ? undefined : current}
74
+ data-timeline
75
+ >
37
76
  {
38
77
  entries.map((e, i) => (
39
- <li data-state={state(i)} aria-current={state(i) === 'current' ? 'step' : undefined} data-to={i < entries.length - 1 ? state(i + 1) : undefined}>
78
+ <li data-state={state(i)} aria-current={state(i) === 'current' ? 'step' : undefined} data-to={i < entries.length - 1 ? (dashed(i) ? 'next' : 'done') : undefined}>
40
79
  <span class="marker" aria-hidden="true">
41
- {e.icon && <Icon name={e.icon} size={16} />}
80
+ {e.icon && <Icon name={e.icon} size={fill ? 18 : 16} stroke={fill ? 1.75 : undefined} />}
42
81
  </span>
43
82
  <div class="content">
44
83
  <p class="period">{e.period}</p>
45
- <p class="label">{e.label}</p>
46
- <p class="text">{e.body}</p>
84
+ <Title class="label">{e.label}</Title>
85
+ {e.meta && <p class="meta">{e.meta}</p>}
86
+ {e.body && <p class="text">{e.body}</p>}
87
+ {extras[i] && <div class="more"><Fragment set:html={extras[i]} /></div>}
47
88
  </div>
48
89
  </li>
49
90
  ))
@@ -52,7 +93,9 @@ const state = (i: number) => (current === false || i < current ? 'done' : i ===
52
93
  <script is:inline>
53
94
  // Before the first paint, so entries waiting to arrive never show and then vanish.
54
95
  (function (list) {
55
- if (list && 'IntersectionObserver' in window && !matchMedia('(prefers-reduced-motion: reduce)').matches) list.classList.add('arrive');
96
+ if (!list || matchMedia('(prefers-reduced-motion: reduce)').matches) return;
97
+ if (list.hasAttribute('data-fill')) list.classList.add('filling');
98
+ else if ('IntersectionObserver' in window) list.classList.add('arrive');
56
99
  })(document.currentScript && document.currentScript.previousElementSibling);
57
100
  </script>
58
101
 
@@ -75,6 +118,43 @@ const state = (i: number) => (current === false || i < current ? 'done' : i ===
75
118
  );
76
119
  list.querySelectorAll('li').forEach((li) => seen.observe(li));
77
120
  });
121
+
122
+ // The fill: from the first marker down to the line being read, 60% down the window, never past
123
+ // the last marker. The step between now and the entry before it in time is in the accent.
124
+ document.querySelectorAll<HTMLElement>('[data-timeline].filling').forEach((list) => {
125
+ const items = [...list.querySelectorAll<HTMLElement>(':scope > li')];
126
+ if (items.length < 2) return;
127
+ const now = list.dataset.current === undefined ? -1 : Number(list.dataset.current);
128
+ const before = list.dataset.order === 'newest-first' ? now + 1 : now - 1;
129
+ let queued = false;
130
+ const draw = () => {
131
+ queued = false;
132
+ const box = list.getBoundingClientRect();
133
+ const centre = (li: HTMLElement) => {
134
+ const m = li.querySelector('.marker')!.getBoundingClientRect();
135
+ return m.top + m.height / 2 - box.top;
136
+ };
137
+ const at = items.map(centre);
138
+ const first = at[0];
139
+ const end = Math.max(first, Math.min(at[at.length - 1], innerHeight * 0.6 - box.top));
140
+ const lit = now >= 0 && at[before] !== undefined ? [Math.min(at[now], at[before]), Math.max(at[now], at[before])] : [0, 0];
141
+ list.style.setProperty('--fill-top', `${first}px`);
142
+ list.style.setProperty('--fill-h', `${end - first}px`);
143
+ list.style.setProperty('--lit-from', `${lit[0] - first}px`);
144
+ list.style.setProperty('--lit-to', `${lit[1] - first}px`);
145
+ items.forEach((li, i) => li.classList.toggle('reached', at[i] <= end + 1));
146
+ };
147
+ const queue = () => {
148
+ if (!queued) {
149
+ queued = true;
150
+ requestAnimationFrame(draw);
151
+ }
152
+ };
153
+ addEventListener('scroll', queue, { passive: true });
154
+ addEventListener('resize', queue);
155
+ document.fonts?.ready.then(queue);
156
+ queue();
157
+ });
78
158
  </script>
79
159
 
80
160
  <style>
@@ -212,6 +292,25 @@ const state = (i: number) => (current === false || i < current ? 'done' : i ===
212
292
  color: var(--c-text);
213
293
  }
214
294
 
295
+ /* As a heading: the title of a section's main content, in the display face. */
296
+ :is(h2, h3, h4).label {
297
+ margin-top: var(--sp-2);
298
+ font-family: var(--font-display, var(--font-body));
299
+ font-size: var(--text-h3);
300
+ line-height: var(--leading-h3);
301
+ letter-spacing: var(--tracking-h3);
302
+ }
303
+
304
+ .meta {
305
+ margin-top: 2px;
306
+ font-weight: 600;
307
+ color: var(--c-text-secondary);
308
+ }
309
+
310
+ .more {
311
+ margin-top: var(--sp-3);
312
+ }
313
+
215
314
  .text {
216
315
  margin-top: var(--sp-1);
217
316
  color: var(--c-text-secondary);
@@ -279,6 +378,134 @@ const state = (i: number) => (current === false || i < current ? 'done' : i ===
279
378
  }
280
379
  }
281
380
 
381
+ /* ── Fill ───────────────────────────────────────────────────────────────────
382
+ The rail runs from marker centre to marker centre under the markers, which sit on discs of the
383
+ page colour so it seems to pass behind them. Faint teal, and the fill over it. Without the
384
+ script (or with reduced motion) nothing is held back: the rail and the markers are teal. */
385
+ [data-fill] {
386
+ --m: 12px;
387
+ --mt: 6px;
388
+ --col: 24px;
389
+ --gap: var(--sp-8);
390
+ --rail: var(--c-chart-2);
391
+ --rail-faint: color-mix(in oklab, var(--c-chart-2) 22%, transparent);
392
+ position: relative;
393
+ }
394
+
395
+ [data-fill][data-icons] {
396
+ --m: 26px;
397
+ --mt: -2px;
398
+ }
399
+
400
+ [data-fill] li {
401
+ column-gap: var(--sp-5);
402
+ }
403
+
404
+ [data-fill] li:not(:last-child)::before {
405
+ top: calc(var(--mt) + var(--m) / 2);
406
+ bottom: calc(-1 * (var(--mt) + var(--m) / 2));
407
+ background: var(--rail);
408
+ opacity: 1;
409
+ }
410
+
411
+ [data-fill].filling li:not(:last-child)::before {
412
+ background: var(--rail-faint);
413
+ }
414
+
415
+ /* The step into now waits in a faint accent rather than faint teal, so it reads orange before
416
+ the fill reaches it as well as after. */
417
+ [data-fill][data-order='newest-first'].filling li[data-state='current']:not(:last-child)::before,
418
+ [data-fill][data-order='oldest-first'].filling li:has(+ li[data-state='current'])::before {
419
+ background: color-mix(in oklab, var(--c-accent) 28%, transparent);
420
+ }
421
+
422
+ /* Drawn in full (no script, reduced motion): the step into now is still the accent. */
423
+ [data-fill][data-order='newest-first']:not(.filling) li[data-state='current']:not(:last-child)::before,
424
+ [data-fill][data-order='oldest-first']:not(.filling) li:has(+ li[data-state='current'])::before {
425
+ background: var(--c-accent);
426
+ }
427
+
428
+ [data-fill].filling::after {
429
+ content: '';
430
+ position: absolute;
431
+ inset-inline-start: calc(var(--col) / 2 - 1px);
432
+ top: var(--fill-top, 0px);
433
+ width: 2px;
434
+ height: var(--fill-h, 0px);
435
+ border-radius: 1px;
436
+ background: linear-gradient(to bottom,
437
+ var(--rail) 0 var(--lit-from, 0px),
438
+ var(--c-accent) var(--lit-from, 0px) var(--lit-to, 0px),
439
+ var(--rail) var(--lit-to, 0px));
440
+ }
441
+
442
+ [data-fill] .marker {
443
+ z-index: 1;
444
+ background: var(--rail);
445
+ box-shadow: 0 0 0 4px var(--c-bg);
446
+ color: var(--rail);
447
+ transition:
448
+ background-color var(--motion-base) var(--ease-out),
449
+ color var(--motion-base) var(--ease-out);
450
+ }
451
+
452
+ [data-fill].filling li:not(.reached) .marker {
453
+ background: color-mix(in oklab, var(--c-chart-2) 40%, var(--c-bg));
454
+ }
455
+
456
+ [data-fill] [data-state='current'] .marker,
457
+ [data-fill] [data-state='next'] .marker {
458
+ box-shadow: 0 0 0 4px var(--c-bg);
459
+ }
460
+
461
+ [data-fill] [data-state='current'] .marker {
462
+ background: var(--c-accent);
463
+ }
464
+
465
+ /* With icons: the icon itself on the rail, in a gap of the page colour. Now is larger, in a soft
466
+ disc of the accent. */
467
+ [data-fill][data-icons] .marker,
468
+ [data-fill][data-icons] [data-state] .marker {
469
+ background: var(--c-bg);
470
+ box-shadow: none;
471
+ color: var(--rail);
472
+ }
473
+
474
+ [data-fill][data-icons].filling li:not(.reached) .marker {
475
+ background: var(--c-bg);
476
+ color: color-mix(in oklab, var(--c-chart-2) 50%, var(--c-bg));
477
+ }
478
+
479
+ [data-fill][data-icons] [data-state='current'] .marker,
480
+ [data-fill][data-icons].filling [data-state='current']:not(.reached) .marker {
481
+ width: calc(var(--m) + 6px);
482
+ height: calc(var(--m) + 6px);
483
+ margin-top: calc(var(--mt) - 3px);
484
+ background: var(--c-surface-tint);
485
+ color: var(--c-text-accent);
486
+ }
487
+
488
+ [data-fill][data-icons] .content {
489
+ padding-top: 0;
490
+ }
491
+
492
+ @media (max-width: 560px) {
493
+ [data-fill] {
494
+ --col: 18px;
495
+ --gap: var(--sp-7);
496
+ }
497
+
498
+ [data-fill] li {
499
+ column-gap: var(--sp-3);
500
+ }
501
+ }
502
+
503
+ @media (prefers-reduced-motion: reduce) {
504
+ [data-fill] .marker {
505
+ transition: none;
506
+ }
507
+ }
508
+
282
509
  @media (forced-colors: active) {
283
510
  .marker {
284
511
  forced-color-adjust: none;