@vectoriox/iox-ui 5.110.0 → 5.111.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/fesm2022/vectoriox-iox-ui-generation-core.mjs +263 -119
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/generation-core/index.d.ts +263 -43
- package/package.json +1 -1
- package/src/generation-core/check-list.ts +8 -7
- package/src/generation-core/compose-layout.ts +54 -10
- package/src/generation-core/layout-wire.ts +8 -15
- package/src/generation-core/list-table.ts +39 -0
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/site-spec.generated.ts +160 -76
- package/styles/iox-design.css +103 -0
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
LayoutListHow, LayoutListItem, LayoutListMix, LayoutListPhone, LayoutListWho, LayoutPage, LayoutSection, LayoutTrack,
|
|
5
5
|
} from './layout-language';
|
|
6
6
|
import { isPlainObject, PlainObject } from './shape-check';
|
|
7
|
+
import { LIST_INGREDIENTS, LIST_TABLE, listBuiltWords, listIngredientWords } from './list-table';
|
|
7
8
|
import { SPEC_SITE_LAYOUT } from './site-spec.generated';
|
|
8
9
|
|
|
9
10
|
/**
|
|
@@ -35,7 +36,6 @@ const VARIANT_ON_WIRE: ReadonlyArray<string> = [NONE, ...V.buttonVariants, ...V.
|
|
|
35
36
|
* request stays inside the 40 the budget allows, and the parts enum is generated from the plan's own lists: a model
|
|
36
37
|
* cannot name a part its list does not have (R-H2).
|
|
37
38
|
*/
|
|
38
|
-
const L = SPEC_SITE_LAYOUT.list;
|
|
39
39
|
export enum LayoutMixIngredient {
|
|
40
40
|
Item = 'item',
|
|
41
41
|
Arrange = 'arrange',
|
|
@@ -46,21 +46,14 @@ export enum LayoutMixIngredient {
|
|
|
46
46
|
Arrive = 'arrive',
|
|
47
47
|
Phone = 'phone',
|
|
48
48
|
}
|
|
49
|
-
const MIX_WORDS: Readonly<Record<LayoutMixIngredient, ReadonlyArray<string>>> = {
|
|
50
|
-
[LayoutMixIngredient.Item]: L.items,
|
|
51
|
-
[LayoutMixIngredient.Arrange]: L.arranges,
|
|
52
|
-
[LayoutMixIngredient.Who]: L.standoutWho,
|
|
53
|
-
[LayoutMixIngredient.How]: L.standoutHow,
|
|
54
|
-
[LayoutMixIngredient.Move]: L.moves,
|
|
55
|
-
[LayoutMixIngredient.Hover]: L.hovers,
|
|
56
|
-
[LayoutMixIngredient.Arrive]: L.arrives,
|
|
57
|
-
[LayoutMixIngredient.Phone]: L.phones,
|
|
58
|
-
};
|
|
59
49
|
const MIX_SEPARATOR = ':';
|
|
60
50
|
const PART_SEPARATOR = '.';
|
|
61
|
-
/** Every word
|
|
62
|
-
export const LAYOUT_MIX_WORDS: ReadonlyArray<string> = (
|
|
63
|
-
|
|
51
|
+
/** Every word a stored mix may hold, ingredient by ingredient (a waiting word too: a stored answer still reads). */
|
|
52
|
+
export const LAYOUT_MIX_WORDS: ReadonlyArray<string> = LIST_INGREDIENTS.flatMap(k => listIngredientWords(k).map(w => `${k}${MIX_SEPARATOR}${w}`));
|
|
53
|
+
/** The words the wire OFFERS — the built ones only (ingredients.md §3.3): a waiting word would put its stand-in on every
|
|
54
|
+
* site that asked for it. */
|
|
55
|
+
export const LAYOUT_MIX_OFFERED: ReadonlyArray<string> = LIST_INGREDIENTS.flatMap(k => listBuiltWords(k).map(w => `${k}${MIX_SEPARATOR}${w}`));
|
|
56
|
+
const MIX_HINT = LIST_INGREDIENTS.map(k => `${k}:${listBuiltWords(k).join('|')}${(LIST_TABLE.many as ReadonlyArray<string>).includes(k) ? ' (any)' : ''}`).join(' · ');
|
|
64
57
|
|
|
65
58
|
/** A list a composed page may show, as the wire's parts enum needs it (`layoutListShapes` gives these). */
|
|
66
59
|
export interface LayoutWireList { alias: string; roles: ReadonlyArray<string> }
|
|
@@ -103,7 +96,7 @@ export function layoutWireJsonSchema(options: LayoutWireOptions = {}): JsonSchem
|
|
|
103
96
|
const partWords = options.lists ? layoutWirePartWords(options.lists) : [];
|
|
104
97
|
const lists: Record<string, JsonSchema> = options.lists
|
|
105
98
|
? {
|
|
106
|
-
mix: listOf(jsonOneOf(
|
|
99
|
+
mix: listOf(jsonOneOf(LAYOUT_MIX_OFFERED), `gallery showing a list (source): how its items are shown, one word per choice — ${MIX_HINT}; [] for none`),
|
|
107
100
|
parts: listOf(jsonOneOf(partWords.length ? partWords : [NONE]), "gallery showing a list as cards: the list's fields each card shows, <list>.<role>, the source's own; [] for none"),
|
|
108
101
|
}
|
|
109
102
|
: {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { SPEC_SITE_LAYOUT } from './site-spec.generated';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* THE LIST TABLE (list-ingredients-plan.md; the contract's `layout.mjs` `LIST`, in the shape every mixed part shares —
|
|
5
|
+
* ingredients.md §2): the words of each ingredient, what each means, and which wait for a later phase and are drawn as
|
|
6
|
+
* a built word meanwhile. Everything that offers, says or draws a list word reads it here; nothing retypes one.
|
|
7
|
+
*/
|
|
8
|
+
export const LIST_TABLE = SPEC_SITE_LAYOUT.list;
|
|
9
|
+
|
|
10
|
+
export type ListIngredient = keyof typeof LIST_TABLE.ingredients;
|
|
11
|
+
|
|
12
|
+
/** The ingredients, in the table's order. */
|
|
13
|
+
export const LIST_INGREDIENTS = Object.keys(LIST_TABLE.ingredients) as ListIngredient[];
|
|
14
|
+
|
|
15
|
+
/** A word that is not drawn yet: the phase it waits for and the built word it is drawn as (null: drawn without it). */
|
|
16
|
+
export interface ListWait { phase: string; drawnAs: string | null }
|
|
17
|
+
|
|
18
|
+
const WAITS = LIST_TABLE.waits as Readonly<Record<string, ListWait>>;
|
|
19
|
+
const MEANINGS = LIST_TABLE.meanings as Readonly<Record<string, string>>;
|
|
20
|
+
|
|
21
|
+
/** Every word of an ingredient. */
|
|
22
|
+
export function listIngredientWords(k: ListIngredient): ReadonlyArray<string> {
|
|
23
|
+
return LIST_TABLE.ingredients[k] as ReadonlyArray<string>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** The wait of a word, or null when the product draws it. */
|
|
27
|
+
export function listWait(k: ListIngredient, word: string): ListWait | null {
|
|
28
|
+
return WAITS[`${k}.${word}`] ?? null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** The words of an ingredient the product draws — the only ones the wire offers (ingredients.md §3.3). */
|
|
32
|
+
export function listBuiltWords(k: ListIngredient): string[] {
|
|
33
|
+
return listIngredientWords(k).filter(w => !listWait(k, w));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** What a word means, in the words the model and the owner read (the word itself when the table has none). */
|
|
37
|
+
export function listMeaning(k: ListIngredient, word: string): string {
|
|
38
|
+
return MEANINGS[`${k}.${word}`] ?? word;
|
|
39
|
+
}
|
|
@@ -52,6 +52,7 @@ export * from './layout-photos';
|
|
|
52
52
|
export * from './photo-inventory';
|
|
53
53
|
export * from './check-layout';
|
|
54
54
|
export * from './check-list';
|
|
55
|
+
export * from './list-table';
|
|
55
56
|
export * from './layout-space';
|
|
56
57
|
export * from './layout-fingerprint';
|
|
57
58
|
export * from './header-mix';
|
|
@@ -7019,81 +7019,165 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7019
7019
|
"fresh-market": "warm-craft"
|
|
7020
7020
|
},
|
|
7021
7021
|
"list": {
|
|
7022
|
-
"
|
|
7023
|
-
"
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
"
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
"
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
"
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
"
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
"
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
"
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
"
|
|
7064
|
-
|
|
7065
|
-
|
|
7022
|
+
"ingredients": {
|
|
7023
|
+
"item": [
|
|
7024
|
+
"photo",
|
|
7025
|
+
"card"
|
|
7026
|
+
],
|
|
7027
|
+
"arrange": [
|
|
7028
|
+
"row",
|
|
7029
|
+
"grid",
|
|
7030
|
+
"masonry",
|
|
7031
|
+
"strips",
|
|
7032
|
+
"deck"
|
|
7033
|
+
],
|
|
7034
|
+
"who": [
|
|
7035
|
+
"none",
|
|
7036
|
+
"middle",
|
|
7037
|
+
"first",
|
|
7038
|
+
"pointed"
|
|
7039
|
+
],
|
|
7040
|
+
"how": [
|
|
7041
|
+
"bigger",
|
|
7042
|
+
"wider",
|
|
7043
|
+
"raised",
|
|
7044
|
+
"brighter"
|
|
7045
|
+
],
|
|
7046
|
+
"move": [
|
|
7047
|
+
"arrows",
|
|
7048
|
+
"drag",
|
|
7049
|
+
"auto",
|
|
7050
|
+
"page"
|
|
7051
|
+
],
|
|
7052
|
+
"hover": [
|
|
7053
|
+
"rise",
|
|
7054
|
+
"open",
|
|
7055
|
+
"zoom",
|
|
7056
|
+
"dim"
|
|
7057
|
+
],
|
|
7058
|
+
"arrive": [
|
|
7059
|
+
"together",
|
|
7060
|
+
"one-by-one",
|
|
7061
|
+
"slide-in"
|
|
7062
|
+
],
|
|
7063
|
+
"phone": [
|
|
7064
|
+
"swipe",
|
|
7065
|
+
"stack",
|
|
7066
|
+
"two-up"
|
|
7067
|
+
]
|
|
7068
|
+
},
|
|
7069
|
+
"many": [
|
|
7070
|
+
"move",
|
|
7071
|
+
"hover"
|
|
7066
7072
|
],
|
|
7067
7073
|
"meanings": {
|
|
7068
|
-
"photo": "pictures only",
|
|
7069
|
-
"card": "a card built from the list's own fields (its parts)",
|
|
7070
|
-
"row": "side by side in one line you move through",
|
|
7071
|
-
"grid": "a still grid",
|
|
7072
|
-
"masonry": "a still wall that keeps every picture's own shape",
|
|
7073
|
-
"strips": "tall strips, one always open wide with its whole story",
|
|
7074
|
-
"deck": "a stack, one card on top, the rest waiting behind",
|
|
7075
|
-
"
|
|
7076
|
-
"
|
|
7077
|
-
"
|
|
7078
|
-
"
|
|
7079
|
-
"
|
|
7080
|
-
"
|
|
7081
|
-
"
|
|
7082
|
-
"
|
|
7083
|
-
"
|
|
7084
|
-
"
|
|
7085
|
-
"
|
|
7086
|
-
"
|
|
7087
|
-
"
|
|
7088
|
-
"
|
|
7089
|
-
"
|
|
7090
|
-
"
|
|
7091
|
-
"
|
|
7092
|
-
"
|
|
7093
|
-
"
|
|
7094
|
-
"
|
|
7095
|
-
"
|
|
7074
|
+
"item.photo": "pictures only",
|
|
7075
|
+
"item.card": "a card built from the list's own fields (its parts)",
|
|
7076
|
+
"arrange.row": "side by side in one line you move through",
|
|
7077
|
+
"arrange.grid": "a still grid",
|
|
7078
|
+
"arrange.masonry": "a still wall that keeps every picture's own shape",
|
|
7079
|
+
"arrange.strips": "tall strips, one always open wide with its whole story",
|
|
7080
|
+
"arrange.deck": "a stack, one card on top, the rest waiting behind",
|
|
7081
|
+
"who.none": "none stands out",
|
|
7082
|
+
"who.middle": "the one in the middle of the row",
|
|
7083
|
+
"who.first": "the first one",
|
|
7084
|
+
"who.pointed": "the one the visitor points at or taps",
|
|
7085
|
+
"how.bigger": "larger than the rest",
|
|
7086
|
+
"how.wider": "open wide (strips only)",
|
|
7087
|
+
"how.raised": "lifted above the rest",
|
|
7088
|
+
"how.brighter": "the rest dimmed",
|
|
7089
|
+
"move.arrows": "arrow buttons",
|
|
7090
|
+
"move.drag": "dragged with a mouse or a finger",
|
|
7091
|
+
"move.auto": "turns by itself (pauses under a mouse)",
|
|
7092
|
+
"move.page": "the page's scroll carries it sideways (alone)",
|
|
7093
|
+
"hover.rise": "an item rises under the mouse",
|
|
7094
|
+
"hover.open": "a strip opens under the mouse (strips only)",
|
|
7095
|
+
"hover.zoom": "the picture grows inside its frame",
|
|
7096
|
+
"hover.dim": "the others dim",
|
|
7097
|
+
"arrive.together": "all at once",
|
|
7098
|
+
"arrive.one-by-one": "one after another",
|
|
7099
|
+
"arrive.slide-in": "sliding in from the side",
|
|
7100
|
+
"phone.swipe": "a row you swipe",
|
|
7101
|
+
"phone.stack": "one under another",
|
|
7102
|
+
"phone.two-up": "two across"
|
|
7096
7103
|
},
|
|
7104
|
+
"waits": {
|
|
7105
|
+
"arrange.deck": {
|
|
7106
|
+
"phase": "LI4",
|
|
7107
|
+
"drawnAs": "row"
|
|
7108
|
+
},
|
|
7109
|
+
"who.middle": {
|
|
7110
|
+
"phase": "LI4",
|
|
7111
|
+
"drawnAs": "none"
|
|
7112
|
+
},
|
|
7113
|
+
"how.bigger": {
|
|
7114
|
+
"phase": "LI4",
|
|
7115
|
+
"drawnAs": null
|
|
7116
|
+
},
|
|
7117
|
+
"how.raised": {
|
|
7118
|
+
"phase": "LI4",
|
|
7119
|
+
"drawnAs": null
|
|
7120
|
+
},
|
|
7121
|
+
"how.brighter": {
|
|
7122
|
+
"phase": "LI4",
|
|
7123
|
+
"drawnAs": null
|
|
7124
|
+
}
|
|
7125
|
+
},
|
|
7126
|
+
"defaults": {
|
|
7127
|
+
"item": "card",
|
|
7128
|
+
"arrange": "grid",
|
|
7129
|
+
"who": "none",
|
|
7130
|
+
"how": "wider",
|
|
7131
|
+
"move": [],
|
|
7132
|
+
"hover": [],
|
|
7133
|
+
"arrive": "together",
|
|
7134
|
+
"phone": "stack"
|
|
7135
|
+
},
|
|
7136
|
+
"fingerprint": [
|
|
7137
|
+
"arrange",
|
|
7138
|
+
"who",
|
|
7139
|
+
"how",
|
|
7140
|
+
"move"
|
|
7141
|
+
],
|
|
7142
|
+
"references": [
|
|
7143
|
+
{
|
|
7144
|
+
"id": "stories-strips",
|
|
7145
|
+
"after": "Doron's client-stories screenshot",
|
|
7146
|
+
"added": "2026-11-18",
|
|
7147
|
+
"mix": {
|
|
7148
|
+
"item": "card",
|
|
7149
|
+
"arrange": "strips",
|
|
7150
|
+
"who": "pointed",
|
|
7151
|
+
"how": "wider",
|
|
7152
|
+
"hover": [
|
|
7153
|
+
"open",
|
|
7154
|
+
"dim"
|
|
7155
|
+
],
|
|
7156
|
+
"arrive": "one-by-one",
|
|
7157
|
+
"phone": "stack"
|
|
7158
|
+
}
|
|
7159
|
+
},
|
|
7160
|
+
{
|
|
7161
|
+
"id": "products-row-middle-raised",
|
|
7162
|
+
"after": "Doron's product-cards screenshot",
|
|
7163
|
+
"added": "2026-11-18",
|
|
7164
|
+
"mix": {
|
|
7165
|
+
"item": "card",
|
|
7166
|
+
"arrange": "row",
|
|
7167
|
+
"who": "middle",
|
|
7168
|
+
"how": "raised",
|
|
7169
|
+
"move": [
|
|
7170
|
+
"arrows",
|
|
7171
|
+
"drag"
|
|
7172
|
+
],
|
|
7173
|
+
"hover": [
|
|
7174
|
+
"rise"
|
|
7175
|
+
],
|
|
7176
|
+
"arrive": "slide-in",
|
|
7177
|
+
"phone": "swipe"
|
|
7178
|
+
}
|
|
7179
|
+
}
|
|
7180
|
+
],
|
|
7097
7181
|
"rules": {
|
|
7098
7182
|
"minItems": 3,
|
|
7099
7183
|
"strips": [
|
|
@@ -7101,18 +7185,18 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7101
7185
|
6
|
|
7102
7186
|
],
|
|
7103
7187
|
"onlyStrips": {
|
|
7104
|
-
"
|
|
7188
|
+
"how": [
|
|
7105
7189
|
"wider"
|
|
7106
7190
|
],
|
|
7107
|
-
"
|
|
7191
|
+
"hover": [
|
|
7108
7192
|
"open"
|
|
7109
7193
|
]
|
|
7110
7194
|
},
|
|
7111
7195
|
"onlyRow": {
|
|
7112
|
-
"
|
|
7196
|
+
"who": [
|
|
7113
7197
|
"middle"
|
|
7114
7198
|
],
|
|
7115
|
-
"
|
|
7199
|
+
"move": [
|
|
7116
7200
|
"page"
|
|
7117
7201
|
]
|
|
7118
7202
|
},
|
package/styles/iox-design.css
CHANGED
|
@@ -124,6 +124,109 @@ iox-gallery.iox-es-media[data-iox-empty] > .iox-gallery {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
/* LI3 (list-ingredients-plan.md §5): STRIPS — tall strips side by side, one always open wide with its whole story.
|
|
128
|
+
An arrangement of a Repeater's rows (its role `list.strips`, `-two` / `-swipe` for the phone), drawn by THIS CSS
|
|
129
|
+
alone: no runtime, so the canvas, both engine paths and the raw SSR (every item's words are in the page) agree.
|
|
130
|
+
The open strip WIDENS BY TRANSFORM + CLIP-PATH, never by width (T1, Emil: compositor only): every row is as wide as an
|
|
131
|
+
open strip and sits in the same grid cell, moved along by its index and cut to a strip's width while closed. The
|
|
132
|
+
open one is the one pointed at (a mouse) or holding the focus (a keyboard), else the first. Six strips at most.
|
|
133
|
+
Where there is no room (the list's frame under 640px — a container query, so the canvas's phone frame agrees) or no
|
|
134
|
+
mouse to point with (T4), every item is open: one under another, two across, or a row to swipe. */
|
|
135
|
+
:where(.iox-role-list, .iox-role-list-dim):has([class*="iox-role-list-strips"]) {
|
|
136
|
+
container: iox-strips / inline-size;
|
|
137
|
+
}
|
|
138
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root {
|
|
139
|
+
--strip-n: 1;
|
|
140
|
+
--strip-k: 0;
|
|
141
|
+
--strip-dir: 1;
|
|
142
|
+
--strip-gap: var(--iox-space-gap);
|
|
143
|
+
/* A closed strip's width, and an open one's: the open strip takes what the closed ones leave. */
|
|
144
|
+
--strip-c: calc((100cqi - (var(--strip-n) - 1) * var(--strip-gap)) / (var(--strip-n) + 2.5));
|
|
145
|
+
--strip-o: calc(100cqi - (var(--strip-n) - 1) * (var(--strip-c) + var(--strip-gap)));
|
|
146
|
+
display: grid;
|
|
147
|
+
grid-template-columns: minmax(0, 1fr);
|
|
148
|
+
grid-template-rows: minmax(0, 1fr);
|
|
149
|
+
height: clamp(380px, 44cqi, 640px);
|
|
150
|
+
overflow: clip;
|
|
151
|
+
}
|
|
152
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:dir(rtl) { --strip-dir: -1; }
|
|
153
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > * {
|
|
154
|
+
/* 1 after the open strip, else 0; 1 for the open strip itself, else 0 (integers, so clamp is a step). */
|
|
155
|
+
--strip-after: clamp(0, var(--strip-i) - var(--strip-k), 1);
|
|
156
|
+
--strip-open: calc(1 - clamp(0, var(--strip-i) - var(--strip-k), 1) - clamp(0, var(--strip-k) - var(--strip-i), 1));
|
|
157
|
+
--strip-cut: calc((1 - var(--strip-open)) * (var(--strip-o) - var(--strip-c)));
|
|
158
|
+
grid-area: 1 / 1;
|
|
159
|
+
justify-self: start;
|
|
160
|
+
width: var(--strip-o);
|
|
161
|
+
min-width: 0;
|
|
162
|
+
margin: 0;
|
|
163
|
+
transform: translateX(calc(var(--strip-dir) * (var(--strip-i) * (var(--strip-c) + var(--strip-gap)) + var(--strip-after) * (var(--strip-o) - var(--strip-c)))));
|
|
164
|
+
/* 8px outside the box stays painted: the focus ring and the card's own shadow. */
|
|
165
|
+
clip-path: inset(-8px calc(var(--strip-cut) - 8px) -8px -8px);
|
|
166
|
+
transition-property: transform, clip-path;
|
|
167
|
+
transition-duration: var(--iox-dur-base);
|
|
168
|
+
transition-timing-function: var(--iox-ease-standard);
|
|
169
|
+
}
|
|
170
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:dir(rtl) > * { clip-path: inset(-8px -8px -8px calc(var(--strip-cut) - 8px)); }
|
|
171
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > :nth-child(n+7) { display: none; }
|
|
172
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > :nth-child(1) { --strip-i: 0; }
|
|
173
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > :nth-child(2) { --strip-i: 1; }
|
|
174
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > :nth-child(3) { --strip-i: 2; }
|
|
175
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > :nth-child(4) { --strip-i: 3; }
|
|
176
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > :nth-child(5) { --strip-i: 4; }
|
|
177
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > :nth-child(6) { --strip-i: 5; }
|
|
178
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(1):last-child) { --strip-n: 1; }
|
|
179
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(2):last-child) { --strip-n: 2; }
|
|
180
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(3):last-child) { --strip-n: 3; }
|
|
181
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(4):last-child) { --strip-n: 4; }
|
|
182
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(5):last-child) { --strip-n: 5; }
|
|
183
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(6)) { --strip-n: 6; }
|
|
184
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(1):focus-within) { --strip-k: 0; }
|
|
185
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(2):focus-within) { --strip-k: 1; }
|
|
186
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(3):focus-within) { --strip-k: 2; }
|
|
187
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(4):focus-within) { --strip-k: 3; }
|
|
188
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(5):focus-within) { --strip-k: 4; }
|
|
189
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(6):focus-within) { --strip-k: 5; }
|
|
190
|
+
@media (hover: hover) and (pointer: fine) {
|
|
191
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(1):hover) { --strip-k: 0; }
|
|
192
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(2):hover) { --strip-k: 1; }
|
|
193
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(3):hover) { --strip-k: 2; }
|
|
194
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(4):hover) { --strip-k: 3; }
|
|
195
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(5):hover) { --strip-k: 4; }
|
|
196
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root:has(> :nth-child(6):hover) { --strip-k: 5; }
|
|
197
|
+
}
|
|
198
|
+
/* A closed strip shows the middle of its picture, and its words wait: they fade in once the strip has opened, and out
|
|
199
|
+
at once when it closes. Words stay in the page (and read aloud) — only their paint goes. */
|
|
200
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > * :is(.iox-role-card-media, .iox-role-list-item) {
|
|
201
|
+
translate: calc(var(--strip-dir) * -0.5 * var(--strip-cut)) 0;
|
|
202
|
+
transition: translate var(--iox-dur-base) var(--iox-ease-standard), scale var(--iox-dur-ui, 200ms) var(--iox-ease-standard);
|
|
203
|
+
}
|
|
204
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > * .iox-role-card-content {
|
|
205
|
+
opacity: var(--strip-open);
|
|
206
|
+
transition: opacity var(--iox-dur-ui) var(--iox-ease-standard) calc(var(--strip-open) * var(--iox-dur-ui));
|
|
207
|
+
}
|
|
208
|
+
@media (prefers-reduced-motion: reduce) {
|
|
209
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > *, :is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > * :is(.iox-role-card-media, .iox-role-list-item) { transition-duration: 0ms; }
|
|
210
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > * .iox-role-card-content { transition: opacity 160ms linear; }
|
|
211
|
+
}
|
|
212
|
+
/* No room, or no mouse: every item open. (The same rules twice — a size query and a media query cannot share a block.) */
|
|
213
|
+
@container iox-strips (max-width: 640px) {
|
|
214
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; gap: var(--iox-space-gap); overflow: visible; }
|
|
215
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > * { --strip-open: 1; --strip-cut: 0px; grid-area: auto; width: auto; height: auto; aspect-ratio: 4 / 5; transform: none; clip-path: none; }
|
|
216
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > * :is(.iox-role-card-media, .iox-role-list-item) { translate: none; }
|
|
217
|
+
:is(.iox-role-list-strips-two, .iox-role-list-strips-two > .repeater-wrapper) > .repeater-root { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
218
|
+
:is(.iox-role-list-strips-swipe, .iox-role-list-strips-swipe > .repeater-wrapper) > .repeater-root { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
|
|
219
|
+
:is(.iox-role-list-strips-swipe, .iox-role-list-strips-swipe > .repeater-wrapper) > .repeater-root > * { flex: 0 0 82%; scroll-snap-align: start; }
|
|
220
|
+
}
|
|
221
|
+
@media (hover: none) {
|
|
222
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; gap: var(--iox-space-gap); overflow: visible; }
|
|
223
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > * { --strip-open: 1; --strip-cut: 0px; grid-area: auto; width: auto; height: auto; aspect-ratio: 4 / 5; transform: none; clip-path: none; }
|
|
224
|
+
:is([class*="iox-role-list-strips"], [class*="iox-role-list-strips"] > .repeater-wrapper) > .repeater-root > * :is(.iox-role-card-media, .iox-role-list-item) { translate: none; }
|
|
225
|
+
:is(.iox-role-list-strips-two, .iox-role-list-strips-two > .repeater-wrapper) > .repeater-root { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
226
|
+
:is(.iox-role-list-strips-swipe, .iox-role-list-strips-swipe > .repeater-wrapper) > .repeater-root { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
|
|
227
|
+
:is(.iox-role-list-strips-swipe, .iox-role-list-strips-swipe > .repeater-wrapper) > .repeater-root > * { flex: 0 0 82%; scroll-snap-align: start; }
|
|
228
|
+
}
|
|
229
|
+
|
|
127
230
|
/* Link the whole card — the stretched link. The title's <a> is the card's ONE link (its words are the
|
|
128
231
|
link's name); its ::after covers the card, so a click anywhere on it navigates. The Buttons sit above
|
|
129
232
|
it and keep their own actions; the focus ring is drawn on the card. Never a link inside a link. On the
|