@plus234feed/ds 0.8.0 → 0.10.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/package.json +1 -1
- package/src/components.css +48 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plus234feed/ds",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Plus234Feed design system. Editorial tokens, type scale and components for a news intelligence platform: newspaper hierarchy, accessible colour in both themes, one component per job.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design-system",
|
package/src/components.css
CHANGED
|
@@ -1374,7 +1374,14 @@ textarea.p234-field__control {
|
|
|
1374
1374
|
/* --- directory ---------------------------------------------------------
|
|
1375
1375
|
A long index: every equity, every state, every seat. Grouped, with the
|
|
1376
1376
|
group letter sticking as the reader scrolls past it. */
|
|
1377
|
-
.p234-directory {
|
|
1377
|
+
.p234-directory {
|
|
1378
|
+
border-top: var(--p234-border-thick) solid var(--p234-color-ink);
|
|
1379
|
+
/* So a row can lay itself out from the width it actually has, rather than
|
|
1380
|
+
the page deciding for it. A directory in a full width column and the same
|
|
1381
|
+
directory in one half of a two-up both read correctly without the page
|
|
1382
|
+
passing a variant down. */
|
|
1383
|
+
container-type: inline-size;
|
|
1384
|
+
}
|
|
1378
1385
|
.p234-directory__letter {
|
|
1379
1386
|
position: sticky;
|
|
1380
1387
|
top: 0;
|
|
@@ -1410,6 +1417,26 @@ textarea.p234-field__control {
|
|
|
1410
1417
|
font-size: var(--p234-type-meta-size);
|
|
1411
1418
|
color: var(--p234-color-ink-muted);
|
|
1412
1419
|
}
|
|
1420
|
+
|
|
1421
|
+
/* A logo, flag or favicon beside the name.
|
|
1422
|
+
*
|
|
1423
|
+
* Left as an inline image it sits in the text flow, so a long name wraps
|
|
1424
|
+
* underneath it and the mark ends up alone on the first line. The name slot
|
|
1425
|
+
* becomes a row only when it actually contains a mark, so every directory
|
|
1426
|
+
* without one is untouched. */
|
|
1427
|
+
.p234-directory__name:has(.p234-directory__mark) {
|
|
1428
|
+
display: flex;
|
|
1429
|
+
align-items: center;
|
|
1430
|
+
gap: var(--p234-space-3);
|
|
1431
|
+
min-width: 0;
|
|
1432
|
+
}
|
|
1433
|
+
.p234-directory__mark {
|
|
1434
|
+
flex: none;
|
|
1435
|
+
width: var(--p234-icon-size-md);
|
|
1436
|
+
height: var(--p234-icon-size-md);
|
|
1437
|
+
border-radius: var(--p234-radius-sm);
|
|
1438
|
+
object-fit: contain;
|
|
1439
|
+
}
|
|
1413
1440
|
.p234-directory__value {
|
|
1414
1441
|
margin-left: auto;
|
|
1415
1442
|
font-family: var(--p234-type-data-sm-family);
|
|
@@ -1419,6 +1446,26 @@ textarea.p234-field__control {
|
|
|
1419
1446
|
color: var(--p234-color-ink);
|
|
1420
1447
|
}
|
|
1421
1448
|
|
|
1449
|
+
/* In a narrow column the three parts of a row compete for the same line and
|
|
1450
|
+
the name truncates to nothing. Below this width the detail moves under the
|
|
1451
|
+
name and the figure keeps the right edge, which is the shape a list of
|
|
1452
|
+
movers wants when two of them sit side by side. */
|
|
1453
|
+
@container (max-width: 26rem) {
|
|
1454
|
+
.p234-directory__row {
|
|
1455
|
+
display: grid;
|
|
1456
|
+
grid-template-columns: 1fr auto;
|
|
1457
|
+
column-gap: var(--p234-space-4);
|
|
1458
|
+
align-items: baseline;
|
|
1459
|
+
}
|
|
1460
|
+
.p234-directory__name { grid-area: 1 / 1; }
|
|
1461
|
+
.p234-directory__detail { grid-area: 2 / 1; }
|
|
1462
|
+
.p234-directory__value {
|
|
1463
|
+
grid-area: 1 / 2 / span 2;
|
|
1464
|
+
margin-left: 0;
|
|
1465
|
+
align-self: center;
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1422
1469
|
/* --- chart -------------------------------------------------------------
|
|
1423
1470
|
The frame around a plot: title, legend, the plot itself, and the line
|
|
1424
1471
|
saying where the numbers came from and as of when. */
|