@plus234feed/ds 0.10.0 → 0.12.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 +34 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plus234feed/ds",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.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
|
@@ -1439,6 +1439,15 @@ textarea.p234-field__control {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
.p234-directory__value {
|
|
1441
1441
|
margin-left: auto;
|
|
1442
|
+
/* A value is often a figure and its change together. A space between them
|
|
1443
|
+
in the markup collapses against the delta's arrow, which is a
|
|
1444
|
+
pseudo-element, and the two numbers run into each other as
|
|
1445
|
+
"N6.70 up 9.84%" with nothing between them. A gap cannot collapse.
|
|
1446
|
+
With a single child this behaves exactly as it did. */
|
|
1447
|
+
display: flex;
|
|
1448
|
+
align-items: baseline;
|
|
1449
|
+
gap: var(--p234-space-3);
|
|
1450
|
+
white-space: nowrap;
|
|
1442
1451
|
font-family: var(--p234-type-data-sm-family);
|
|
1443
1452
|
font-size: var(--p234-type-data-sm-size);
|
|
1444
1453
|
font-weight: var(--p234-type-data-sm-weight);
|
|
@@ -1446,10 +1455,31 @@ textarea.p234-field__control {
|
|
|
1446
1455
|
color: var(--p234-color-ink);
|
|
1447
1456
|
}
|
|
1448
1457
|
|
|
1449
|
-
/*
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1458
|
+
/* Stacked: the detail moves under the name and the figure keeps the right
|
|
1459
|
+
edge, spanning both lines.
|
|
1460
|
+
*
|
|
1461
|
+
* Two things ask for it. A narrow column, where the three parts of a row
|
|
1462
|
+
* compete for one line until the name truncates to nothing, which a container
|
|
1463
|
+
* query handles on its own. And a page that wants it at any width: in a long
|
|
1464
|
+
* list of companies the code trailing the name lands at a different place on
|
|
1465
|
+
* every row, and a column of codes under the names is far easier to scan.
|
|
1466
|
+
*
|
|
1467
|
+
* The declarations are written twice because a container query cannot share a
|
|
1468
|
+
* rule block with a plain selector. They must stay identical. */
|
|
1469
|
+
.p234-directory--stacked .p234-directory__row {
|
|
1470
|
+
display: grid;
|
|
1471
|
+
grid-template-columns: 1fr auto;
|
|
1472
|
+
column-gap: var(--p234-space-4);
|
|
1473
|
+
align-items: baseline;
|
|
1474
|
+
}
|
|
1475
|
+
.p234-directory--stacked .p234-directory__name { grid-area: 1 / 1; }
|
|
1476
|
+
.p234-directory--stacked .p234-directory__detail { grid-area: 2 / 1; }
|
|
1477
|
+
.p234-directory--stacked .p234-directory__value {
|
|
1478
|
+
grid-area: 1 / 2 / span 2;
|
|
1479
|
+
margin-left: 0;
|
|
1480
|
+
align-self: center;
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1453
1483
|
@container (max-width: 26rem) {
|
|
1454
1484
|
.p234-directory__row {
|
|
1455
1485
|
display: grid;
|