@rxova/brand 0.14.2 → 0.15.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 +3 -3
- package/src/astro.css +22 -0
- package/src/chrome.css +9 -1
- package/src/sites.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxova/brand",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Design tokens, Starlight theme and shared site chrome for rxova.org",
|
|
6
6
|
"keywords": [
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"homepage": "https://rxova.org",
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/rxova/
|
|
18
|
+
"url": "git+https://github.com/rxova/rxova-website.git",
|
|
19
19
|
"directory": "packages/brand"
|
|
20
20
|
},
|
|
21
|
-
"bugs": "https://github.com/rxova/
|
|
21
|
+
"bugs": "https://github.com/rxova/rxova-website/issues",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=24.0.0"
|
|
24
24
|
},
|
package/src/astro.css
CHANGED
|
@@ -50,6 +50,28 @@ body {
|
|
|
50
50
|
transition:
|
|
51
51
|
background-color 0.2s ease,
|
|
52
52
|
color 0.2s ease;
|
|
53
|
+
|
|
54
|
+
/* At least a screen tall, with `main` taking the slack, so a short page —
|
|
55
|
+
/blog with two posts — keeps its footer at the bottom of the window instead
|
|
56
|
+
of halfway up it. A column of flex items rather than a grid because the
|
|
57
|
+
number of children varies: the shell's header and footer are spliced
|
|
58
|
+
around a producer's `main` at deploy time. */
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
min-height: 100dvh;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* A flex item with `margin: 0 auto` shrinks to its content instead of filling
|
|
65
|
+
the row the way a block does, so a short `main` or footer would narrow and
|
|
66
|
+
drift off the header's edges. Full width restores the block behaviour, and
|
|
67
|
+
`max-width` plus the auto margins centre it as before. `:where()` keeps both
|
|
68
|
+
rules at zero specificity, so any component's own width still wins. */
|
|
69
|
+
:where(body > *) {
|
|
70
|
+
width: 100%;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where(body > main) {
|
|
74
|
+
flex-grow: 1;
|
|
53
75
|
}
|
|
54
76
|
|
|
55
77
|
a {
|
package/src/chrome.css
CHANGED
|
@@ -41,7 +41,15 @@
|
|
|
41
41
|
--glow-tint: var(--rx-glow-tint);
|
|
42
42
|
--font: var(--rx-font-sans);
|
|
43
43
|
--mono: var(--rx-font-mono);
|
|
44
|
-
|
|
44
|
+
|
|
45
|
+
/* The page width: the header, the page and the footer all centre on it, so
|
|
46
|
+
it is the wide bound rather than the prose one. It was `--rx-max` (44rem),
|
|
47
|
+
which put /blog, /updates and /about in a narrow column under a header that
|
|
48
|
+
spans the landing's 72rem — narrow on a large screen, and a different
|
|
49
|
+
width from one page to the next. Running text keeps its own measure inside
|
|
50
|
+
it (the blog's 62–68ch, the updates stream's 68ch), so widening the page
|
|
51
|
+
does not lengthen a line of prose. */
|
|
52
|
+
--max: var(--rx-max-wide);
|
|
45
53
|
|
|
46
54
|
/* The landing's `--accent` is the foreground, not the brand violet: its
|
|
47
55
|
design is deliberately monochrome and uses the gradient only as an accent
|
package/src/sites.ts
CHANGED