@lets-ship/site 3.0.0 → 3.1.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 +2 -2
- package/styles.css +15 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lets-ship/site",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The white-label site engine of SHIP Sites: a website, blog and docs on Next.js and fumadocs, themed entirely by a brand DNA.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"unist-util-visit": "^5.1.0",
|
|
149
149
|
"zbsearch": "^4.0.1",
|
|
150
150
|
"zod": "^4.4.3",
|
|
151
|
-
"@lets-ship/brand-dna": "^3.
|
|
151
|
+
"@lets-ship/brand-dna": "^3.1.0"
|
|
152
152
|
},
|
|
153
153
|
"peerDependencies": {
|
|
154
154
|
"fumadocs-core": "16.17.5",
|
package/styles.css
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
.site-container {
|
|
37
37
|
max-width: var(--site-container-width);
|
|
38
38
|
margin: 0 auto;
|
|
39
|
-
padding-inline:
|
|
39
|
+
padding-inline: var(--dna-grid-margin);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.site-page-top {
|
|
@@ -49,9 +49,10 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
/* A phone keeps the brand's margin up to 20px, so the content keeps its width. */
|
|
52
53
|
@media (max-width: 760px) {
|
|
53
54
|
.site-container {
|
|
54
|
-
padding-inline: 20px;
|
|
55
|
+
padding-inline: min(var(--dna-grid-margin), 20px);
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
|
|
@@ -338,7 +339,7 @@
|
|
|
338
339
|
grid cannot centre its last row. */
|
|
339
340
|
.site-grid {
|
|
340
341
|
--site-grid-cols: 1;
|
|
341
|
-
--site-grid-gap:
|
|
342
|
+
--site-grid-gap: var(--dna-grid-gutter);
|
|
342
343
|
display: flex;
|
|
343
344
|
flex-wrap: wrap;
|
|
344
345
|
justify-content: center;
|
|
@@ -351,11 +352,11 @@
|
|
|
351
352
|
}
|
|
352
353
|
|
|
353
354
|
.site-grid-roomy {
|
|
354
|
-
--site-grid-gap:
|
|
355
|
+
--site-grid-gap: calc(var(--dna-grid-gutter) * 4 / 3);
|
|
355
356
|
}
|
|
356
357
|
|
|
357
358
|
.site-grid-tight {
|
|
358
|
-
--site-grid-gap:
|
|
359
|
+
--site-grid-gap: calc(var(--dna-grid-gutter) * 2 / 3);
|
|
359
360
|
}
|
|
360
361
|
|
|
361
362
|
.site-grid-hairline {
|
|
@@ -408,7 +409,7 @@
|
|
|
408
409
|
margin, so a ring on a link in it is not cut off by the scrolling box; it keeps the width of
|
|
409
410
|
the container, so its first item lines up with the heading. */
|
|
410
411
|
.site-carousel-track {
|
|
411
|
-
--site-carousel-gap:
|
|
412
|
+
--site-carousel-gap: var(--dna-grid-gutter);
|
|
412
413
|
display: flex;
|
|
413
414
|
gap: var(--site-carousel-gap);
|
|
414
415
|
margin-block: -4px;
|
|
@@ -1167,14 +1168,14 @@ details[open] > .site-faq-summary .site-faq-caret {
|
|
|
1167
1168
|
.site-website > :not(.site-block, .site-announcement) {
|
|
1168
1169
|
max-width: var(--site-container-width);
|
|
1169
1170
|
margin-inline: auto;
|
|
1170
|
-
padding-inline:
|
|
1171
|
+
padding-inline: var(--dna-grid-margin);
|
|
1171
1172
|
color: var(--site-fg);
|
|
1172
1173
|
line-height: var(--dna-type-body-line-height);
|
|
1173
1174
|
}
|
|
1174
1175
|
|
|
1175
1176
|
@media (max-width: 760px) {
|
|
1176
1177
|
.site-website > :not(.site-block, .site-announcement) {
|
|
1177
|
-
padding-inline: 20px;
|
|
1178
|
+
padding-inline: min(var(--dna-grid-margin), 20px);
|
|
1178
1179
|
}
|
|
1179
1180
|
}
|
|
1180
1181
|
|
|
@@ -1249,6 +1250,8 @@ details[open] > .site-faq-summary .site-faq-caret {
|
|
|
1249
1250
|
/* Section tones: a block's `tone` prop sets data-tone. A band re-points the engine's colours, so
|
|
1250
1251
|
everything inside it (cards, buttons, links, Tailwind's fd colours) follows the band. */
|
|
1251
1252
|
.site-block[data-tone="tint"] {
|
|
1253
|
+
--site-border: color-mix(in oklab, var(--dna-color-on-surface) 24%, var(--dna-color-surface-tint));
|
|
1254
|
+
--color-fd-border: var(--site-border);
|
|
1252
1255
|
background: var(--dna-texture-tint), var(--dna-color-surface-tint);
|
|
1253
1256
|
}
|
|
1254
1257
|
|
|
@@ -1399,7 +1402,10 @@ details[open] > .site-faq-summary .site-faq-caret {
|
|
|
1399
1402
|
|
|
1400
1403
|
@media (min-width: 48rem) {
|
|
1401
1404
|
.site-container:has(> .site-media-bleed) {
|
|
1402
|
-
--site-gutter: max(
|
|
1405
|
+
--site-gutter: max(
|
|
1406
|
+
var(--dna-grid-margin),
|
|
1407
|
+
calc((100cqw - var(--site-container-width)) / 2 + var(--dna-grid-margin))
|
|
1408
|
+
);
|
|
1403
1409
|
max-width: none;
|
|
1404
1410
|
padding-inline-start: var(--site-gutter);
|
|
1405
1411
|
padding-inline-end: calc(var(--site-gutter) * (1 - var(--dna-media-bleed)));
|