@plus234feed/ds 0.11.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 +25 -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
|
@@ -1455,10 +1455,31 @@ textarea.p234-field__control {
|
|
|
1455
1455
|
color: var(--p234-color-ink);
|
|
1456
1456
|
}
|
|
1457
1457
|
|
|
1458
|
-
/*
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
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
|
+
|
|
1462
1483
|
@container (max-width: 26rem) {
|
|
1463
1484
|
.p234-directory__row {
|
|
1464
1485
|
display: grid;
|