@metacensus/library-ui 0.18.0 → 0.19.0
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/README.md +2 -2
- package/dist/site/links.js +7 -5
- package/dist/site/links.js.map +1 -1
- package/package.json +1 -1
- package/src/chrome/Footer.astro +5 -2
- package/src/css/styles.css +11 -2
- package/src/css/tokens.css +1 -1
package/README.md
CHANGED
|
@@ -216,7 +216,7 @@ A step is `--mc-<family>-<step>`, as `--mc-purple-bold`. `--mc-white` and `--mc-
|
|
|
216
216
|
| `--mc-surface` | grey tint | grey bold, deeper |
|
|
217
217
|
| `--mc-hairline` | grey tint | grey bold, deepest |
|
|
218
218
|
| `--mc-ink` | grey bold | grey tint |
|
|
219
|
-
| `--mc-ink-secondary` | grey
|
|
219
|
+
| `--mc-ink-secondary` | grey bold | grey mid |
|
|
220
220
|
| `--mc-line-input` | grey mid | grey mid |
|
|
221
221
|
| `--mc-series` | blue bold | blue mid |
|
|
222
222
|
| `--mc-ink-accent` | purple bold | purple tint |
|
|
@@ -245,7 +245,7 @@ The default for a chip, pill, badge or callout: the family's tint as the fill, i
|
|
|
245
245
|
|
|
246
246
|
### Slate Mist
|
|
247
247
|
|
|
248
|
-
`--mc-grey-mid` is for text demoted in place: copy that stops being the subject and becomes context for what replaced it. Copy that is merely secondary starts in Charcoal, which is `--mc-ink`.
|
|
248
|
+
`--mc-grey-mid` is for text demoted in place: copy that stops being the subject and becomes context for what replaced it. Copy that is merely secondary starts in Charcoal, which is `--mc-ink`. `--mc-ink-secondary` is Charcoal in light, where Slate Mist is about 3.2:1 on white, and Slate Mist in dark, where it clears 4.5:1 on the night ground, so it holds small text in both. For an outline, use `--mc-line-input`.
|
|
249
249
|
|
|
250
250
|
### Shape (provisional)
|
|
251
251
|
|
package/dist/site/links.js
CHANGED
|
@@ -16,7 +16,7 @@ export const SECTION_LINKS = [
|
|
|
16
16
|
];
|
|
17
17
|
export const FOOTER_COLUMNS = [
|
|
18
18
|
{
|
|
19
|
-
label: '
|
|
19
|
+
label: 'Explore',
|
|
20
20
|
links: [
|
|
21
21
|
...SECTION_LINKS,
|
|
22
22
|
BLOG_LINK,
|
|
@@ -24,7 +24,7 @@ export const FOOTER_COLUMNS = [
|
|
|
24
24
|
],
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
label: '
|
|
27
|
+
label: 'Get involved',
|
|
28
28
|
links: [
|
|
29
29
|
{ label: 'Join us', href: JOIN_PATH },
|
|
30
30
|
{
|
|
@@ -36,9 +36,11 @@ export const FOOTER_COLUMNS = [
|
|
|
36
36
|
],
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
label: '
|
|
40
|
-
links: [
|
|
39
|
+
label: 'About',
|
|
40
|
+
links: [
|
|
41
|
+
{ label: 'GitHub', href: 'https://github.com/metacensus' },
|
|
42
|
+
{ label: 'Legal', href: LEGAL_PATH },
|
|
43
|
+
],
|
|
41
44
|
},
|
|
42
|
-
{ label: 'About this site', links: [{ label: 'Legal', href: LEGAL_PATH }] },
|
|
43
45
|
];
|
|
44
46
|
//# sourceMappingURL=links.js.map
|
package/dist/site/links.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"links.js","sourceRoot":"","sources":["../../src/site/links.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAA;AACnC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAA;AAEpC,kEAAkE;AAClE,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAA;AAEnC,MAAM,SAAS,GAAa,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA;AAE7D,MAAM,CAAC,MAAM,YAAY,GAAwB;IAC/C,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE;IAC3B,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,kCAAkC,EAAE;IAC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,SAAS;QAChB,KAAK,EAAE;YACL,GAAG,aAAa;YAChB,SAAS;YACT,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,EAAE;SAC/C;KACF;IACD;QACE,KAAK,EAAE,cAAc;QACrB,KAAK,EAAE;YACL,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;YACrC;gBACE,KAAK,EAAE,sBAAsB;gBAC7B,IAAI,EAAE,iCAAiC;aACxC;YACD,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE;YACvC,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE;SACtC;KACF;IACD;QACE,KAAK,EAAE,OAAO;QACd,KAAK,EAAE;YACL,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,+BAA+B,EAAE;YAC1D,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE;SACrC;KACF;CACF,CAAA"}
|
package/package.json
CHANGED
package/src/chrome/Footer.astro
CHANGED
|
@@ -13,8 +13,11 @@ import { FOOTER_COLUMNS } from '@metacensus/library-ui/site-links'
|
|
|
13
13
|
</div>
|
|
14
14
|
<div class="mc-footer-columns">
|
|
15
15
|
{
|
|
16
|
-
FOOTER_COLUMNS.map((column) => (
|
|
17
|
-
<nav class="mc-footer-column" aria-
|
|
16
|
+
FOOTER_COLUMNS.map((column, i) => (
|
|
17
|
+
<nav class="mc-footer-column" aria-labelledby={`mc-footer-column-${i}`}>
|
|
18
|
+
<h2 class="mc-footer-heading" id={`mc-footer-column-${i}`}>
|
|
19
|
+
{column.label}
|
|
20
|
+
</h2>
|
|
18
21
|
{column.links.map((link) => (
|
|
19
22
|
<a href={link.href}>{link.label}</a>
|
|
20
23
|
))}
|
package/src/css/styles.css
CHANGED
|
@@ -227,16 +227,25 @@
|
|
|
227
227
|
.mc-footer-tagline {
|
|
228
228
|
margin: 0.75rem 0 0;
|
|
229
229
|
}
|
|
230
|
+
/* The columns share the row beside the brand in equal tracks, and wrap to as many as fit under it. */
|
|
230
231
|
.mc-footer-columns {
|
|
231
|
-
display:
|
|
232
|
-
flex
|
|
232
|
+
display: grid;
|
|
233
|
+
flex: 1 1 24rem;
|
|
234
|
+
min-width: 0;
|
|
235
|
+
grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
|
|
233
236
|
gap: 2rem;
|
|
237
|
+
max-width: 40rem;
|
|
234
238
|
}
|
|
235
239
|
.mc-footer-column {
|
|
236
240
|
display: flex;
|
|
237
241
|
flex-direction: column;
|
|
238
242
|
gap: 0.75rem;
|
|
239
243
|
}
|
|
244
|
+
.mc-footer-heading {
|
|
245
|
+
margin: 0;
|
|
246
|
+
font-size: 1rem;
|
|
247
|
+
font-weight: 600;
|
|
248
|
+
}
|
|
240
249
|
.mc-footer a {
|
|
241
250
|
color: var(--mc-ink);
|
|
242
251
|
}
|
package/src/css/tokens.css
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
color-mix(in srgb, var(--mc-grey-bold) 55%, var(--mc-ground))
|
|
41
41
|
);
|
|
42
42
|
--mc-ink: light-dark(var(--mc-grey-bold), var(--mc-grey-tint));
|
|
43
|
-
--mc-ink-secondary: var(--mc-grey-mid);
|
|
43
|
+
--mc-ink-secondary: light-dark(var(--mc-grey-bold), var(--mc-grey-mid));
|
|
44
44
|
--mc-line-input: var(--mc-grey-mid);
|
|
45
45
|
--mc-series: light-dark(var(--mc-blue-bold), var(--mc-blue-mid));
|
|
46
46
|
--mc-ink-accent: light-dark(var(--mc-purple-bold), var(--mc-purple-tint));
|