@classic-homes/slides 0.5.4 → 0.5.6
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/dist/{chunk-WTC2VV5C.js → chunk-36736WP4.js} +13 -10
- package/dist/chunk-36736WP4.js.map +1 -0
- package/dist/{chunk-RIKOLCES.js → chunk-73QTNWG4.js} +2 -2
- package/dist/{chunk-7GFFKI3D.js → chunk-BNRC4EI3.js} +2 -2
- package/dist/cli.js +4 -4
- package/dist/index.js +2 -2
- package/dist/{mcp-DCNNWEFX.js → mcp-C65N7OUL.js} +4 -4
- package/dist/node.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-WTC2VV5C.js.map +0 -1
- /package/dist/{chunk-RIKOLCES.js.map → chunk-73QTNWG4.js.map} +0 -0
- /package/dist/{chunk-7GFFKI3D.js.map → chunk-BNRC4EI3.js.map} +0 -0
- /package/dist/{mcp-DCNNWEFX.js.map → mcp-C65N7OUL.js.map} +0 -0
|
@@ -195,7 +195,9 @@ function tokensCss(palette) {
|
|
|
195
195
|
--font-display:"Spectral",Georgia,"Times New Roman",serif;
|
|
196
196
|
--font-body:"Figtree",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
|
|
197
197
|
--font-mono:ui-monospace,"SF Mono","Cascadia Code","Roboto Mono",Menlo,Consolas,monospace;
|
|
198
|
-
--
|
|
198
|
+
--slide-pad-x:clamp(24px,4vw,96px);--slide-pad-y:clamp(28px,4vh,56px);
|
|
199
|
+
/* Grow with the screen, reserving height for titles and footers on wide, short windows. */
|
|
200
|
+
--maxw:calc(200vh - 176px)}`;
|
|
199
201
|
}
|
|
200
202
|
function fontsCss() {
|
|
201
203
|
const face = (family, style, weight, key) => `@font-face{font-family:'${family}';font-style:${style};font-weight:${weight};font-display:swap;src:url(data:font/woff2;base64,${FONTS[key]}) format('woff2')}`;
|
|
@@ -923,11 +925,13 @@ var cards = defineLayout({
|
|
|
923
925
|
])
|
|
924
926
|
],
|
|
925
927
|
render: (s, ctx) => ({
|
|
926
|
-
html: `${eyebrow(s.eyebrow, s.eyebrowSub)}${heading(s.title)}${lead(s.lead)}<div class="cardgrid cards--${s.style}"${s.build ? " data-build" : ""} style="--cols:${s.columns}">${s.cards.map(
|
|
927
|
-
|
|
928
|
+
html: `${eyebrow(s.eyebrow, s.eyebrowSub)}${heading(s.title)}${lead(s.lead)}<div class="cardgrid cards--${s.style}"${s.build ? " data-build" : ""} style="--cols:${s.columns}">${s.cards.map((c) => {
|
|
929
|
+
const hasCopy = Boolean(c.tag?.trim() || c.title.trim() || c.body?.trim());
|
|
930
|
+
const copy = c.image && !hasCopy ? "" : s.style === "banner" ? `<div class="card-band">${inline(c.tag ?? c.title)}</div><div class="card-b">${c.tag ? `<h3>${inline(c.title)}</h3>` : ""}${c.body ? `<p>${inline(c.body)}</p>` : ""}</div>` : `<div class="card-b">${c.tag ? `<span class="tag">${inline(c.tag)}</span>` : ""}<h3>${inline(
|
|
928
931
|
c.title
|
|
929
|
-
)}</h3>${c.body ? `<p>${inline(c.body)}</p>` : ""}</div
|
|
930
|
-
|
|
932
|
+
)}</h3>${c.body ? `<p>${inline(c.body)}</p>` : ""}</div>`;
|
|
933
|
+
return `<div class="card b-item">${c.image ? img(c.image, ctx, "card-img") : ""}${copy}</div>`;
|
|
934
|
+
}).join("")}</div>${footnote(s.footnote)}`
|
|
931
935
|
})
|
|
932
936
|
});
|
|
933
937
|
var stats = defineLayout({
|
|
@@ -2844,7 +2848,7 @@ img{display:block;max-width:100%}
|
|
|
2844
2848
|
.deck{height:100vh;overflow-y:scroll;scroll-snap-type:y mandatory;scroll-behavior:smooth}
|
|
2845
2849
|
@media (prefers-reduced-motion:reduce){.deck{scroll-behavior:auto}}
|
|
2846
2850
|
.slide{height:100vh;scroll-snap-align:start;scroll-snap-stop:always;position:relative;display:flex;flex-direction:column;justify-content:center;
|
|
2847
|
-
padding:
|
|
2851
|
+
--slide-pad-left:var(--slide-pad-x);padding:var(--slide-pad-y) var(--slide-pad-x) var(--slide-pad-y) var(--slide-pad-left);overflow:hidden;
|
|
2848
2852
|
background:linear-gradient(var(--grid) 1px,transparent 1px) 0 0/100% 46px,linear-gradient(90deg,var(--grid) 1px,transparent 1px) 0 0/46px 100%,var(--paper)}
|
|
2849
2853
|
.slide__inner{width:100%;max-width:var(--maxw);margin:0 auto;position:relative}
|
|
2850
2854
|
.slide::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--red)}
|
|
@@ -3092,7 +3096,7 @@ img.natural,.media img.natural,.photo-grid img.natural{width:auto;max-width:min(
|
|
|
3092
3096
|
.slide.solid .roadmap.mini .rn{background:transparent;border-color:rgba(255,255,255,.55);color:rgba(255,255,255,.85)}
|
|
3093
3097
|
.slide.solid .roadmap.mini .rstep::before{background:rgba(255,255,255,.3)}
|
|
3094
3098
|
.slide.solid .roadmap.mini .rstep.active .rn{background:#fff;border-color:#fff;color:var(--red)}
|
|
3095
|
-
.slide.has-step{
|
|
3099
|
+
.slide.has-step{--slide-pad-left:calc(clamp(60px,6.5vw,100px) + var(--slide-pad-x))}
|
|
3096
3100
|
.slide.has-step::before{display:none}
|
|
3097
3101
|
.steprail{position:absolute;left:0;top:0;bottom:0;width:clamp(60px,6.5vw,100px);background:var(--red);display:flex;flex-direction:column;align-items:center;z-index:3}
|
|
3098
3102
|
.slide[data-track="build"] .steprail{background:var(--teal-fill)}
|
|
@@ -3157,8 +3161,7 @@ var DECK_CSS_EXTRA = String.raw`
|
|
|
3157
3161
|
.slide.has-bg.solid .lead{color:#fff}
|
|
3158
3162
|
|
|
3159
3163
|
/* ---------- footer, hidden ---------- */
|
|
3160
|
-
.slide-foot{position:absolute;left:
|
|
3161
|
-
.slide.has-step .slide-foot{left:clamp(92px,10vw,168px)}
|
|
3164
|
+
.slide-foot{position:absolute;left:var(--slide-pad-left);right:var(--slide-pad-x);max-width:var(--maxw);margin:0 auto;bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-family:var(--font-mono);font-size:11px;letter-spacing:.04em;color:var(--ink-faint);pointer-events:none}
|
|
3162
3165
|
.slide-foot .foot-l{display:flex;align-items:center;gap:16px}
|
|
3163
3166
|
.slide-foot .foot-l>span+span::before{content:"·";margin-right:16px}
|
|
3164
3167
|
.slide-foot .foot-logo .logo{font-size:12px}
|
|
@@ -3960,4 +3963,4 @@ export {
|
|
|
3960
3963
|
inlineDeckImages,
|
|
3961
3964
|
externalizeDeckImages
|
|
3962
3965
|
};
|
|
3963
|
-
//# sourceMappingURL=chunk-
|
|
3966
|
+
//# sourceMappingURL=chunk-36736WP4.js.map
|