@vectoriox/iox-ui 5.168.0 → 5.170.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/commerce-core/index.d.ts +32 -3
- package/design-core/index.d.ts +91 -5
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +52 -1
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +147 -15
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +76 -11
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +30 -5
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +34 -4
- package/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/commerce-core/shop-display.ts +35 -1
- package/src/commerce-core/variants.ts +25 -0
- package/src/design-core/flavor-spec.generated.ts +24 -0
- package/src/design-core/font-metrics.ts +28 -8
- package/src/design-core/footer-classes.ts +14 -3
- package/src/design-core/header-behaviour.ts +87 -5
- package/src/generation-core/compose-site.ts +3 -0
- package/src/generation-core/contact-facts.ts +61 -0
- package/src/generation-core/footer-mix.ts +16 -8
- package/src/generation-core/layout-language.ts +6 -2
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/site-build-run.ts +12 -0
- package/styles/iox-design.css +53 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DesignChoices, designTokenRows, elementStyleFace, FOOTER_MIX_PROP, resolveDesignChoices, SECTION_SHAPE_TRAIT, SectionShape, textWidthEm } from '@vectoriox/iox-ui/design-core';
|
|
1
|
+
import { DesignChoices, designTokenRows, elementStyleFace, FOOTER_MIX_PROP, OpticalSize, resolveDesignChoices, SECTION_SHAPE_TRAIT, SectionShape, textWidthEm } from '@vectoriox/iox-ui/design-core';
|
|
2
2
|
|
|
3
3
|
import { layoutColumnPx, layoutGutterPx } from './layout-column';
|
|
4
4
|
import { layoutRoomPx, screenFontSize, screenWordOverflowPx } from './layout-language';
|
|
@@ -330,7 +330,8 @@ const rule = (k: string): number => Number(RULES[k]);
|
|
|
330
330
|
/** How wide `text` stands at 1em in an element style's face. */
|
|
331
331
|
const widthEm = (text: string, ctx: FooterContext, style = 'display'): number => textWidthEm(text, elementStyleFace(ctx.design, style));
|
|
332
332
|
/** How wide the name stands at 1em in the look's display face. */
|
|
333
|
-
|
|
333
|
+
/** R-H-AW12-5: the closing name wears its face's largest optical size (iox-design.css pins it), so it is measured there. */
|
|
334
|
+
const nameWidthEm = (ctx: FooterContext): number => textWidthEm(ctx.name, elementStyleFace(ctx.design, 'display'), OpticalSize.Display);
|
|
334
335
|
/** True when a word `em` wide runs past a phone's room at the smallest screen size. */
|
|
335
336
|
const overflowsPhone = (em: number, ctx: FooterContext): boolean =>
|
|
336
337
|
screenWordOverflowPx(em, 12, PHONE_WIDTH, true, { gutter: layoutGutterPx(ctx.design.density) }) > 0;
|
|
@@ -374,6 +375,10 @@ function wordTooWide(word: string, ctx: FooterContext): boolean {
|
|
|
374
375
|
/** True when the business name stands across a phone at the smallest screen size. */
|
|
375
376
|
export const footerNameFits = (ctx: FooterContext): boolean => !overflowsPhone(nameWidthEm(ctx), ctx);
|
|
376
377
|
|
|
378
|
+
/** The word with its article, as a sentence says it ("an emboss name", "an inset", "a word"). */
|
|
379
|
+
const an = (word: string): string => `${/^[aeiou]/.test(word) ? 'an' : 'a'} ${word}`;
|
|
380
|
+
const capital = (said: string): string => said.charAt(0).toUpperCase() + said.slice(1);
|
|
381
|
+
|
|
377
382
|
/**
|
|
378
383
|
* The ONE judge of a footer mix: what the table's rules refuse is mended to the nearest mix that keeps them, and each mend
|
|
379
384
|
* is said. Never throws on a well-formed mix. Pure.
|
|
@@ -392,11 +397,11 @@ export function checkFooter(given: FooterMix, ctx: FooterContext): { mix: Footer
|
|
|
392
397
|
let ground = mix.ground;
|
|
393
398
|
const why = ctx.never?.say?.length ? ` — ${(ctx.locale === 'he' && ctx.never.sayHe?.length ? ctx.never.sayHe : ctx.never.say).join(' ')}` : '';
|
|
394
399
|
if (ctx.never?.closings.includes(closing)) {
|
|
395
|
-
say(FooterRepairCode.TypeNever, `this kind of business never closes its footer with
|
|
400
|
+
say(FooterRepairCode.TypeNever, `this kind of business never closes its footer with ${an(closing)}: the call${why}`);
|
|
396
401
|
closing = FooterClosing.Call;
|
|
397
402
|
}
|
|
398
403
|
if (ctx.never?.grounds.includes(ground)) {
|
|
399
|
-
say(FooterRepairCode.TypeNever, `this kind of business never stands its footer on
|
|
404
|
+
say(FooterRepairCode.TypeNever, `this kind of business never stands its footer on ${an(ground)}: the dark band${why}`);
|
|
400
405
|
ground = FooterGround.Inverse;
|
|
401
406
|
}
|
|
402
407
|
if (arrange === FooterArrange.Line) {
|
|
@@ -442,7 +447,7 @@ export function checkFooter(given: FooterMix, ctx: FooterContext): { mix: Footer
|
|
|
442
447
|
}
|
|
443
448
|
const kept = { ...mix, holds, closing, arrange, nameStyle, ground };
|
|
444
449
|
if ((nameStyle === FooterNameStyle.Gradient || nameStyle === FooterNameStyle.Emboss) && !holdsBrand(kept)) {
|
|
445
|
-
say(FooterRepairCode.EmbossNeedsBrand,
|
|
450
|
+
say(FooterRepairCode.EmbossNeedsBrand, `${capital(an(nameStyle))} name is a copy of the name the brand block says, and this footer has none: plain`);
|
|
446
451
|
nameStyle = FooterNameStyle.Plain;
|
|
447
452
|
}
|
|
448
453
|
if (holds.length < F.rules.minHolds && closing === FooterClosing.None) {
|
|
@@ -486,8 +491,8 @@ function columnsOf(count: number): Pick<PatternNode, 'lay' | 'resp'> {
|
|
|
486
491
|
/** A word fitted to the column as a layout's screen word is (`screenFontSize`, the 12-column room), never under the
|
|
487
492
|
* smallest or over the largest screen word. Award §0c CW2 / iox-ui#117: the column of the PAGE it is on (`content-cap`),
|
|
488
493
|
* the site's word only its fallback — a global footer fits a narrow page of a contained site. */
|
|
489
|
-
const columnSize = (em: number, ctx: FooterContext, cols = 12): string =>
|
|
490
|
-
screenFontSize(em, cols, 0, 0, 0, layoutColumnPx(ctx.design.column, ctx.design.density), true);
|
|
494
|
+
const columnSize = (em: number, ctx: FooterContext, cols = 12, typeCap = true): string =>
|
|
495
|
+
screenFontSize(em, cols, 0, 0, 0, layoutColumnPx(ctx.design.column, ctx.design.density), true, typeCap);
|
|
491
496
|
|
|
492
497
|
/** The closing name: the business name across the width, fitted to the name in the look's display face. A gradient or an
|
|
493
498
|
* embossed name is the decorative copy (AW12-D12). */
|
|
@@ -496,7 +501,10 @@ function closingName(ctx: FooterContext, mix: FooterMix): PatternNode {
|
|
|
496
501
|
const copy = style === FooterNameStyle.Gradient || style === FooterNameStyle.Emboss;
|
|
497
502
|
// An offset name starts at the second of twelve columns (iox-design.css), so it is fitted to eleven.
|
|
498
503
|
const cols = style === FooterNameStyle.Offset ? 11 : 12;
|
|
499
|
-
|
|
504
|
+
// R-H-AW12-5 (decided 2026-11-25): name-and-action's name stands on both column edges, so it takes no type-scale
|
|
505
|
+
// ceiling — a short name ("Nord", a four-letter Hebrew name) would otherwise stop at 560px, well short of the edge.
|
|
506
|
+
const edgeToEdge = mix.closing === FooterClosing.NameAndAction;
|
|
507
|
+
return { ...laid(part('name'), { fontSize: columnSize(nameWidthEm(ctx), ctx, cols, !edgeToEdge) }), ...(copy ? { role: FooterRole.NameCopy } : {}) };
|
|
500
508
|
}
|
|
501
509
|
|
|
502
510
|
/** The call word (AW12 `closing.word`): closed copy for the business, fitted to the column. */
|
|
@@ -783,8 +783,12 @@ function columnCapCss(cols: number, widthEm: number, fallback: string): string {
|
|
|
783
783
|
*/
|
|
784
784
|
export function screenFontSize(
|
|
785
785
|
widthEm: number, cols: number, rows: number, sectionRows: number, screens: number, columnPx: number | null = null, capAlways = false,
|
|
786
|
+
typeCap = true,
|
|
786
787
|
): string {
|
|
787
788
|
const [min, max] = LAYOUT_SCREEN_PX;
|
|
789
|
+
// `typeCap` false (R-H-AW12-5, decided 2026-11-25: name-and-action's closing name stands edge to edge): no 560px ceiling
|
|
790
|
+
// — the word is sized to its column alone, never to a type scale; the 36px floor stays.
|
|
791
|
+
const clamped = (inner: string): string => (typeCap ? `clamp(${min}px, ${inner}, ${max}px)` : `max(${min}px, ${inner})`);
|
|
788
792
|
const widthVw = round2((layoutColumnsVw(cols) / Math.max(widthEm, 0.01)) * SCREEN_FILL);
|
|
789
793
|
// T-CW3: in a column the word never runs past its columns — capped at the column in force, read as `content-cap` (a
|
|
790
794
|
// `%` in font-size is the parent's size, so never `content-width`), the page's word stamped as px its fallback.
|
|
@@ -795,9 +799,9 @@ export function screenFontSize(
|
|
|
795
799
|
const room = cols >= GRID_COLUMNS ? [`calc((100vw - 2 * var(--iox-space-gutter, ${LEGACY_GUTTER_PX}px)) * ${round4(SCREEN_FILL / Math.max(widthEm, 0.01))})`] : [];
|
|
796
800
|
const capFallback = columnPx ? `${columnPx}px` : capAlways ? WIDE_CAP : null;
|
|
797
801
|
const width = [`${widthVw}vw`, ...(capFallback ? [columnCapCss(cols, widthEm, capFallback)] : []), ...room];
|
|
798
|
-
if (!rows || !sectionRows) return width.length > 1 ? `
|
|
802
|
+
if (!rows || !sectionRows) return clamped(width.length > 1 ? `min(${width.join(', ')})` : `${widthVw}vw`);
|
|
799
803
|
const heightSvh = round2((((rows / sectionRows) * screens * 100) / 0.92) * SCREEN_FILL);
|
|
800
|
-
return `
|
|
804
|
+
return clamped(`min(${[...width, `${heightSvh}svh`].join(', ')})`);
|
|
801
805
|
}
|
|
802
806
|
|
|
803
807
|
/** How many px a `screen` word `widthEm` wide runs past its room at its smallest size, on a screen `width` px wide — 0
|
|
@@ -26,6 +26,7 @@ export * from './shape-check';
|
|
|
26
26
|
export * from './json-schema';
|
|
27
27
|
export * from './validate-site-plan';
|
|
28
28
|
export * from './compose-site';
|
|
29
|
+
export * from './contact-facts';
|
|
29
30
|
export * from './nav-shape';
|
|
30
31
|
export * from './entrances';
|
|
31
32
|
export * from './text-scroll';
|
|
@@ -2,6 +2,7 @@ import { ComposedPlaceholder, ComposeIssue, ComposeIssueCode } from './compose-s
|
|
|
2
2
|
import { GenerationTier, SitePlan, SitePlanSource } from './site-plan.model';
|
|
3
3
|
import { SitePlanIssueCode } from './validate-site-plan';
|
|
4
4
|
import { planSells } from './shop-plan';
|
|
5
|
+
import type { TypeLed } from './type-led';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* A site build's WIRE vocabulary (AI plan §3b, W2): what iox-cms's `site-builds` API answers and what every
|
|
@@ -188,6 +189,10 @@ export enum BuildNoticeCode {
|
|
|
188
189
|
/** AW6: the body the plan asked for was mended (a section edge that comes with the award plan, on a basic build) —
|
|
189
190
|
* said like the header's, the opening's and the footer's. */
|
|
190
191
|
BodyMended = 'body-mended',
|
|
192
|
+
/** iox-ui#129: pictures nothing fills were not drawn as empty boxes — those sections were composed type-led (the home
|
|
193
|
+
* page opening on its words, a list's cards without their picture). Said once, so the owner knows a photo of theirs
|
|
194
|
+
* brings the picture-led section back (a Re-fit, or the next build). */
|
|
195
|
+
TypeLed = 'type-led',
|
|
191
196
|
}
|
|
192
197
|
|
|
193
198
|
/** RD3-D3 (a): what a build does with a page an earlier Undo kept at an address its plan builds — the header and footer's
|
|
@@ -245,6 +250,13 @@ export function mendNotices(issues: ReadonlyArray<ComposeIssue>): BuildNotice[]
|
|
|
245
250
|
});
|
|
246
251
|
}
|
|
247
252
|
|
|
253
|
+
/** iox-ui#129: what a composition made type-led, said once (`BuildNoticeCode.TypeLed`) — every change's words joined,
|
|
254
|
+
* for the log and the API; the screen shows the code's own sentence. Nothing type-led: nothing said. */
|
|
255
|
+
export function typeLedNotices(typeLed: Pick<TypeLed, 'changes'> | undefined): BuildNotice[] {
|
|
256
|
+
const said = [...new Set((typeLed?.changes ?? []).map(c => c.said))];
|
|
257
|
+
return said.length ? [{ code: BuildNoticeCode.TypeLed, detail: said.join('; ') }] : [];
|
|
258
|
+
}
|
|
259
|
+
|
|
248
260
|
export interface BuildNotice {
|
|
249
261
|
code: string;
|
|
250
262
|
detail: string;
|
package/styles/iox-design.css
CHANGED
|
@@ -573,6 +573,30 @@ dialog[data-iox-dialog]:has(> .iox-dialog-close),
|
|
|
573
573
|
.iox-role-nav :is(.iox-role-nav-brand[data-iox-name='longest'], .iox-role-nav-brand > [data-iox-name='longest']) :is(h1, h2, h3, h4, h5, h6, p) { font-size: var(--iox-size-small); }
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
+
/* vectoriox/iox-ui#143 — a CROWDED phone bar: three controls or more beside the name (a store's account and bag beside the
|
|
577
|
+
menu). The name's own step (`data-iox-name`) counts its characters and cannot see its neighbours: on a 390 store header
|
|
578
|
+
"Homeware shop in Tel Aviv" kept 77px at `size-lead` and broke inside "Homeware". The navigation root says the bar is
|
|
579
|
+
crowded (design-core `navBarAttributes`): an empty side cell gives back its gap, the controls sit at a quarter of the
|
|
580
|
+
look's gap, a worded menu button keeps half the gap on each side (still well over a 44px target), and the name takes the
|
|
581
|
+
crowded step (`data-iox-bar-name`) — never larger type than its own step (equal specificity, written after it).
|
|
582
|
+
Both carriers, as for the brand (#135): the attribute on the role's element or on its direct child. */
|
|
583
|
+
@media (max-width: 767px) {
|
|
584
|
+
:is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-cell:empty { display: none; }
|
|
585
|
+
:is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-cell { column-gap: calc(var(--iox-space-gap) / 4); }
|
|
586
|
+
:is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-menu-button[data-iox-menu-button='word'] { padding-inline: calc(var(--iox-space-gap) / 2); }
|
|
587
|
+
:is(.iox-role-nav[data-iox-bar-name='long'], .iox-role-nav > [data-iox-bar-name='long']) .iox-role-nav-brand :is(h1, h2, h3, h4, h5, h6, p) { font-size: var(--iox-size-lead); }
|
|
588
|
+
:is(.iox-role-nav[data-iox-bar-name='longer'], .iox-role-nav > [data-iox-bar-name='longer']) .iox-role-nav-brand :is(h1, h2, h3, h4, h5, h6, p) { font-size: var(--iox-size-body); }
|
|
589
|
+
:is(.iox-role-nav[data-iox-bar-name='longest'], .iox-role-nav > [data-iox-bar-name='longest']) .iox-role-nav-brand :is(h1, h2, h3, h4, h5, h6, p) { font-size: var(--iox-size-small); }
|
|
590
|
+
}
|
|
591
|
+
@container iox-canvas (max-width: 767px) {
|
|
592
|
+
:is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-cell:empty { display: none; }
|
|
593
|
+
:is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-cell { column-gap: calc(var(--iox-space-gap) / 4); }
|
|
594
|
+
:is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-menu-button[data-iox-menu-button='word'] { padding-inline: calc(var(--iox-space-gap) / 2); }
|
|
595
|
+
:is(.iox-role-nav[data-iox-bar-name='long'], .iox-role-nav > [data-iox-bar-name='long']) .iox-role-nav-brand :is(h1, h2, h3, h4, h5, h6, p) { font-size: var(--iox-size-lead); }
|
|
596
|
+
:is(.iox-role-nav[data-iox-bar-name='longer'], .iox-role-nav > [data-iox-bar-name='longer']) .iox-role-nav-brand :is(h1, h2, h3, h4, h5, h6, p) { font-size: var(--iox-size-body); }
|
|
597
|
+
:is(.iox-role-nav[data-iox-bar-name='longest'], .iox-role-nav > [data-iox-bar-name='longest']) .iox-role-nav-brand :is(h1, h2, h3, h4, h5, h6, p) { font-size: var(--iox-size-small); }
|
|
598
|
+
}
|
|
599
|
+
|
|
576
600
|
/* ── Header ingredients HI2a: the MENU's forms, reveals, buttons and hover (header-builder board v2, HB-D1/HB-D2) ─────────
|
|
577
601
|
A menu is the navigation's drawer Dialog wearing design-core `menuDialogAttributes`; its button and its Close wear
|
|
578
602
|
`menuButtonAttributes`. A menu with none of them is the drawer it always was (R-H4). Board 2: only transform, opacity,
|
|
@@ -1880,20 +1904,28 @@ span.iox-video__play { pointer-events: none; }
|
|
|
1880
1904
|
A product's price is one unbreakable line (the money pipe joins number and currency with a no-break space) at the price
|
|
1881
1905
|
style's heading size, inside a card padded as a full-width one: at 320 a half tile kept 46px for its words, and the
|
|
1882
1906
|
price ran 9px past its card at 390, 24 at 360, the ₪ cut by the card's clip (vectoriox/iox-ui#127). In a half tile a
|
|
1883
|
-
card that sells keeps half its padding (only it: a turned or colour-block card keeps its own)
|
|
1884
|
-
|
|
1885
|
-
(`1,249.00 ₪`) — never above the lead size, never under the small one. */
|
|
1907
|
+
card that sells keeps half its padding (only it: a turned or colour-block card keeps its own). The price itself is sized
|
|
1908
|
+
against its CARD (below), so a list with no arrangement word steps it too. */
|
|
1886
1909
|
@container iox-list (max-width: 640px) {
|
|
1887
1910
|
:is(.iox-role-list-grid-two, .iox-role-list-tilted-two, .iox-role-list-grid-two > .repeater-wrapper, .iox-role-list-tilted-two > .repeater-wrapper) > .repeater-root .iox-role-card-title { font-size: var(--iox-size-lead); }
|
|
1888
1911
|
:is(.iox-role-list-grid-two, .iox-role-list-tilted-two, .iox-role-list-grid-two > .repeater-wrapper, .iox-role-list-tilted-two > .repeater-wrapper) > .repeater-root .iox-role-card:has(.iox-role-shop-price-amount) { padding: calc(var(--iox-card-pad) / 2); }
|
|
1889
|
-
:is(.iox-role-list-grid-two, .iox-role-list-tilted-two, .iox-role-list-grid-two > .repeater-wrapper, .iox-role-list-tilted-two > .repeater-wrapper) > .repeater-root .iox-role-shop-price-amount { font-size: clamp(var(--iox-size-small), calc((50cqi - var(--iox-space-gap) / 2 - var(--iox-card-pad)) * 0.19), var(--iox-size-lead)); }
|
|
1890
1912
|
}
|
|
1891
1913
|
@container iox-strips (max-width: 640px) {
|
|
1892
1914
|
:is(.iox-role-list-strips-two, .iox-role-list-strips-two > .repeater-wrapper) > .repeater-root .iox-role-card-title { font-size: var(--iox-size-lead); }
|
|
1893
1915
|
:is(.iox-role-list-strips-two, .iox-role-list-strips-two > .repeater-wrapper) > .repeater-root .iox-role-card:has(.iox-role-shop-price-amount) { padding: calc(var(--iox-card-pad) / 2); }
|
|
1894
|
-
:is(.iox-role-list-strips-two, .iox-role-list-strips-two > .repeater-wrapper) > .repeater-root .iox-role-shop-price-amount { font-size: clamp(var(--iox-size-small), calc((50cqi - var(--iox-space-gap) / 2 - var(--iox-card-pad)) * 0.19), var(--iox-size-lead)); }
|
|
1895
1916
|
}
|
|
1896
1917
|
|
|
1918
|
+
/* vectoriox/iox-ui#127: a card that sells is the container its price measures. A two-across list made by its own stored
|
|
1919
|
+
grid (an older build, a list placed by hand) carries no arrangement word and no `iox-list` container, so a step written
|
|
1920
|
+
against the list never reached it and the price ran 9px past a 163px card at 390, 24 at 360, the ₪ cut. Against the
|
|
1921
|
+
CARD it reaches every narrow card that sells: once the card's content box is under 220px (a half tile on any phone; a
|
|
1922
|
+
one-across card keeps its own size down to 320) the price is sized to that box (100cqi) over the ~5.2em an eleven-glyph
|
|
1923
|
+
price stands (`1,249.00 ₪`) — never above the lead size, never under the small one. "From ₪89.00" (#142) breaks at its
|
|
1924
|
+
space. The card's own width comes from its cell (Card v2 is `width: 100%`), so inline-size containment changes no size. */
|
|
1925
|
+
.iox-role-card:has(.iox-role-shop-price-amount) { container: iox-price-card / inline-size; }
|
|
1926
|
+
@container iox-price-card (max-width: 220px) {
|
|
1927
|
+
.iox-role-card .iox-role-shop-price-amount { font-size: clamp(var(--iox-size-small), calc(100cqi * 0.19), var(--iox-size-lead)); }
|
|
1928
|
+
}
|
|
1897
1929
|
|
|
1898
1930
|
/* ITEM WORDS — what each item is, carried by the frame (`iox-list-item-<word>`). */
|
|
1899
1931
|
/* Packshot: the thing on the look's plain tile (`list-tile`), whole (never cropped), grown 6% under a mouse. */
|
|
@@ -2577,8 +2609,10 @@ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing],
|
|
|
2577
2609
|
|
|
2578
2610
|
/* arrange:ruled — cells divided by hairlines in the divider's colour, drawn on the cell's START side (logical: a
|
|
2579
2611
|
right-to-left footer mirrors by itself). The first cell of each row draws none and pads none, so the footer's words start
|
|
2580
|
-
on the column (R-H-AW12-2): four cells a row on a laptop, two on a tablet, one under another on a phone (a top line).
|
|
2581
|
-
|
|
2612
|
+
on the column (R-H-AW12-2): four cells a row on a laptop, two on a tablet, one under another on a phone (a top line).
|
|
2613
|
+
`:nth-child(n)`, never `> *`: a cell's own node rule (`.iox-node-<id>`, its border and padding literals) is one class
|
|
2614
|
+
and comes later, so a one-class rule here lost on a laptop and the cells drew no hairline (e2e:footerproof). */
|
|
2615
|
+
.iox-role-footer-ruled > :nth-child(n) {
|
|
2582
2616
|
border-inline-start: var(--iox-border-width, 1px) solid var(--iox-divider-color);
|
|
2583
2617
|
padding-inline: var(--iox-space-gap);
|
|
2584
2618
|
}
|
|
@@ -2613,14 +2647,25 @@ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing],
|
|
|
2613
2647
|
margin-block-end: calc(-1 * var(--iox-footer-name-cut, 0.12em));
|
|
2614
2648
|
}
|
|
2615
2649
|
|
|
2650
|
+
/* R-H-AW12-5 — the closing name wears its face's LARGEST optical size at any size: the composer sizes it from the widths
|
|
2651
|
+
measured there (fontMetrics.display), so it reaches its column's end edge. A value past the axis is clamped to the axis's
|
|
2652
|
+
largest; a face with no optical-size axis ignores it. */
|
|
2653
|
+
:is(.iox-role-footer-name, .iox-role-footer-name-copy) {
|
|
2654
|
+
font-optical-sizing: none;
|
|
2655
|
+
font-variation-settings: 'opsz' 1000;
|
|
2656
|
+
}
|
|
2657
|
+
|
|
2616
2658
|
/* nameStyle (AW12-D12) — how the closing name is worn. A gradient or embossed name is a decorative copy (aria-hidden — the
|
|
2617
2659
|
brand block says the name), so its stops may be quieter than a word's; each stop is the scheme's own ink or accent. */
|
|
2618
2660
|
.iox-footer-namestyle-gradient :is(.iox-role-footer-name, .iox-role-footer-name-copy) {
|
|
2619
|
-
background-image: linear-gradient(90deg, var(--iox-heading-color, currentColor), var(--iox-accent-text));
|
|
2661
|
+
background-image: linear-gradient(var(--footer-name-turn, 90deg), var(--iox-heading-color, currentColor), var(--iox-accent-text));
|
|
2620
2662
|
-webkit-background-clip: text;
|
|
2621
2663
|
background-clip: text;
|
|
2622
2664
|
color: transparent;
|
|
2623
2665
|
}
|
|
2666
|
+
/* A right-to-left footer (design-core `iox-footer-mirrored`, from the node's own direction) runs the gradient from the
|
|
2667
|
+
reading start: ink at the start, the accent at the end, in both directions. */
|
|
2668
|
+
.iox-footer-mirrored { --footer-name-turn: 270deg; }
|
|
2624
2669
|
.iox-footer-namestyle-emboss :is(.iox-role-footer-name, .iox-role-footer-name-copy) {
|
|
2625
2670
|
color: color-mix(in srgb, var(--iox-section-bg) 86%, var(--iox-text));
|
|
2626
2671
|
text-shadow: 0 1px 0 color-mix(in srgb, var(--iox-text) 22%, transparent), 0 -1px 0 color-mix(in srgb, var(--iox-section-bg) 70%, transparent);
|