@plus234feed/ds 0.13.0 → 0.14.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 +22 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plus234feed/ds",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.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
|
@@ -333,18 +333,30 @@
|
|
|
333
333
|
.p234-tiles {
|
|
334
334
|
display: grid;
|
|
335
335
|
gap: var(--p234-space-6);
|
|
336
|
-
grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
|
|
337
336
|
}
|
|
338
337
|
|
|
339
|
-
/*
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
.p234-
|
|
347
|
-
|
|
338
|
+
/* One column on a phone, a row once there is space for one.
|
|
339
|
+
*
|
|
340
|
+
* The first version used `minmax(min(100%, 11rem), 1fr)` to get the single
|
|
341
|
+
* column without a media query. A percentage inside minmax under auto-fit is
|
|
342
|
+
* treated as indefinite while tracks are being sized, so the track falls back
|
|
343
|
+
* to sizing from its contents, and a row of three tiles with labels as long
|
|
344
|
+
* as "Parallel market, USD" came out as three rows. The same mistake cost
|
|
345
|
+
* four pages their layout in .p234-split: the clever form loses to the
|
|
346
|
+
* explicit one. */
|
|
347
|
+
@media (min-width: 40rem) {
|
|
348
|
+
.p234-tiles { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
|
|
349
|
+
|
|
350
|
+
/* Quantity queries. At the page measure an 11rem minimum fits three
|
|
351
|
+
across, so four tiles break as three and one, and seven as three, three
|
|
352
|
+
and one. A wider minimum drops those to two and four across, which
|
|
353
|
+
divide evenly. */
|
|
354
|
+
.p234-tiles:has(> :nth-child(4):last-child) {
|
|
355
|
+
grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
|
|
356
|
+
}
|
|
357
|
+
.p234-tiles:has(> :nth-child(7):last-child) {
|
|
358
|
+
grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
|
|
359
|
+
}
|
|
348
360
|
}
|
|
349
361
|
|
|
350
362
|
/* --- meter -------------------------------------------------------------
|