@n1kname/components 0.68.0 → 0.68.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.68.0",
3
+ "version": "0.68.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -9,9 +9,9 @@
9
9
  *
10
10
  * `rule` puts the house signature, a short accent bar, under the title (and answer). `mark`
11
11
  * names the words that answer the question, such as "6,5% lower": the first place they appear,
12
- * in the title, the answer or else the lede, gets a highlighter that sweeps in once. A page that writes its title
13
- * or lede once its data arrives wraps those words in <mark> itself; the sweep plays as they
14
- * land.
12
+ * in the title, the answer or else the lede, gets a highlighter, already there: a page that
13
+ * answers a question is a working page, and those stay still. A page that writes its title or
14
+ * lede once its data arrives wraps those words in <mark> itself.
15
15
  *
16
16
  * `compact` is the header made small enough to float over a map (MapStage fill mode): the title
17
17
  * at the h3 size, a shorter rule, and the actions beside it in one row while there is room.
package/src/highlight.css CHANGED
@@ -2,6 +2,8 @@
2
2
  * The highlighter: a band behind the words a page is about. It sits low, like a pen, wraps line
3
3
  * by line, and is mixed into the page colour rather than see-through, so it holds up in dark. It
4
4
  * sweeps in once, a moment after the words land; several marks go one after the other, by --n.
5
+ * In a page header it is simply there: a page that answers a question is a working page, and
6
+ * those stay still.
5
7
  *
6
8
  * `mark.highlight.glow` is the quiet look: a soft blue light behind the words that fades in once
7
9
  * and then holds still. It reaches past the line, so it never stops in a hard edge.
@@ -9,8 +11,9 @@
9
11
  * `mark.highlight.spotlight` passes a slanted band of blue light through the letters once, then
10
12
  * rests as plain text. It needs `--chars` (Highlight sets it) to keep one speed.
11
13
  *
12
- * Used by Highlight and PageHeader. A page that writes its words once its data arrives can wrap
13
- * them in <mark class="highlight"> itself, and the sweep plays as they land.
14
+ * Used by Highlight, Facts and PageHeader. A page that writes its words once its data arrives can
15
+ * wrap them in <mark class="highlight"> itself, and the sweep plays as they land; in a page
16
+ * header, a plain <mark> takes the band without the sweep.
14
17
  *
15
18
  * --highlight the band colour
16
19
  * --highlight-band its height
@@ -29,7 +32,7 @@
29
32
  }
30
33
 
31
34
  @media (prefers-reduced-motion: no-preference) {
32
- :where(mark.highlight, .page-header .text mark) {
35
+ :where(mark.highlight:not(.page-header .text mark)) {
33
36
  animation: highlight calc(var(--motion-draw, 1000ms) * 0.7) var(--ease-out)
34
37
  calc(var(--highlight-delay, 300ms) + var(--n, 0) * var(--highlight-step, 450ms)) both;
35
38
  }