baseline-foundry 0.1.3 → 0.1.5
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/README.md +577 -553
- package/config/experiments/ibm-plex-engine-smoke.json +115 -115
- package/config/experiments/ubuntu-engine-smoke.json +115 -115
- package/config/foundation-theme.json +110 -110
- package/config/tiers/app.json +116 -116
- package/config/tiers/documentation.json +116 -116
- package/config/tiers/editorial.json +116 -116
- package/config/tiers/os.json +116 -116
- package/dist/baseline-grid-overlay.js +43 -43
- package/dist/build.js +4 -4
- package/dist/code-snippet.js +1 -1
- package/dist/css-app-tier.js +78 -73
- package/dist/css-components/article-pagination.js +141 -140
- package/dist/css-components/button-actions.js +181 -161
- package/dist/css-components/cards-options.js +176 -176
- package/dist/css-components/chip-badge-status.d.ts +0 -3
- package/dist/css-components/chip-badge-status.js +174 -159
- package/dist/css-components/content-card.d.ts +7 -7
- package/dist/css-components/content-card.js +498 -497
- package/dist/css-components/control-row.d.ts +1 -1
- package/dist/css-components/control-row.js +15 -15
- package/dist/css-components/cta-figure-aspect.js +120 -120
- package/dist/css-components/document-navigation.js +427 -390
- package/dist/css-components/editorial-content.js +42 -42
- package/dist/css-components/icon.js +72 -72
- package/dist/css-components/interactive-feedback.js +239 -217
- package/dist/css-components/interactive-tables.js +160 -155
- package/dist/css-components/legacy-navigation.d.ts +8 -0
- package/dist/css-components/legacy-navigation.js +816 -0
- package/dist/css-components/linked-logo-site-layout.d.ts +3 -3
- package/dist/css-components/linked-logo-site-layout.js +177 -180
- package/dist/css-components/list-tree.js +96 -94
- package/dist/css-components/list.js +9 -7
- package/dist/css-components/logo-media.d.ts +6 -6
- package/dist/css-components/logo-media.js +218 -207
- package/dist/css-components/navigation-layout.js +144 -144
- package/dist/css-components/panel.js +148 -144
- package/dist/css-components/search-box-and-filter.d.ts +0 -1
- package/dist/css-components/search-box-and-filter.js +263 -264
- package/dist/css-components/sites-editorial-ports.d.ts +3 -4
- package/dist/css-components/sites-editorial-ports.js +279 -247
- package/dist/css-components/sites-foundation.js +142 -146
- package/dist/css-components/sites-rich-lists.d.ts +5 -5
- package/dist/css-components/sites-rich-lists.js +339 -349
- package/dist/css-components/static-content-ports.d.ts +3 -3
- package/dist/css-components/static-content-ports.js +200 -186
- package/dist/css-components/tab-section.d.ts +3 -3
- package/dist/css-components/tab-section.js +93 -85
- package/dist/css-components/table.js +76 -75
- package/dist/css-components/tabs-choice-breadcrumbs.js +307 -303
- package/dist/css-components/tiered-list-equal-height-row.js +271 -271
- package/dist/css-components.js +1881 -2554
- package/dist/css-grid.d.ts +1 -1
- package/dist/css-grid.js +183 -173
- package/dist/css.js +317 -241
- package/dist/experiments/ibm-plex-engine-smoke/styles.css +894 -538
- package/dist/experiments/ibm-plex-engine-smoke/surfaces.json +2 -2
- package/dist/experiments/ibm-plex-engine-smoke/tokens.json +1 -1
- package/dist/in-page-navigation.js +1 -1
- package/dist/presets/app-tier/styles.css +928 -568
- package/dist/presets/app-tier/surfaces.json +17 -17
- package/dist/presets/app-tier/tokens.json +7 -7
- package/dist/presets/prose/styles.css +919 -562
- package/dist/presets/prose/surfaces.json +17 -17
- package/dist/presets/prose/tokens.json +1 -1
- package/dist/resizable-aside.js +12 -4
- package/dist/styles.css +919 -562
- package/dist/surfaces.json +17 -17
- package/dist/tiers/app/styles.css +928 -568
- package/dist/tiers/app/surfaces.json +17 -17
- package/dist/tiers/app/tokens.json +7 -7
- package/dist/tiers/documentation/styles.css +920 -563
- package/dist/tiers/documentation/surfaces.json +17 -17
- package/dist/tiers/documentation/tokens.json +2 -2
- package/dist/tiers/editorial/styles.css +919 -562
- package/dist/tiers/editorial/surfaces.json +17 -17
- package/dist/tiers/editorial/tokens.json +1 -1
- package/dist/tiers/os/styles.css +925 -568
- package/dist/tiers/os/surfaces.json +17 -17
- package/dist/tiers/os/tokens.json +7 -7
- package/dist/tokens.json +1 -1
- package/dist/types.d.ts +1 -1
- package/docs/publishing.md +31 -14
- package/package.json +119 -108
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Static Vanilla parity ports: data spotlight and divided section. The
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* allocated inline size.
|
|
3
|
+
* Components use an intrinsic medium threshold for their density changes and
|
|
4
|
+
* the shared 45rem readable-split threshold for default balanced content,
|
|
5
|
+
* while responding to their allocated inline size.
|
|
6
6
|
*
|
|
7
7
|
* Vanilla → BF token mapping:
|
|
8
8
|
* - `$spv--strip-shallow` (1.5rem) → `--bf-section-space-shallow`.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Static Vanilla parity ports: data spotlight and divided section. The
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* allocated inline size.
|
|
3
|
+
* Components use an intrinsic medium threshold for their density changes and
|
|
4
|
+
* the shared 45rem readable-split threshold for default balanced content,
|
|
5
|
+
* while responding to their allocated inline size.
|
|
6
6
|
*
|
|
7
7
|
* Vanilla → BF token mapping:
|
|
8
8
|
* - `$spv--strip-shallow` (1.5rem) → `--bf-section-space-shallow`.
|
|
@@ -12,195 +12,209 @@
|
|
|
12
12
|
* classes to receive correct four-tier typography.
|
|
13
13
|
*/
|
|
14
14
|
export function staticContentPortsCss() {
|
|
15
|
-
return `/* ------------------------------------------------------------------ */
|
|
16
|
-
/* Static content ports — Vanilla data spotlight and divided section. */
|
|
17
|
-
/* Their children retain role-owned rhythm; these layout */
|
|
18
|
-
/* wrappers add only structural columns, rules, and
|
|
19
|
-
/* ------------------------------------------------------------------ */
|
|
20
|
-
|
|
21
|
-
/* Data spotlight: Vanilla's equal-height wrap becomes an intrinsic grid.
|
|
22
|
-
Each item begins with a public highlighted rule using the shared emphasis
|
|
23
|
-
thickness.
|
|
24
|
-
|
|
25
|
-
:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
:where(.bf-theme) :where(.bf-data-spotlight-item) {
|
|
43
|
-
min-inline-size: 0;
|
|
44
|
-
overflow-wrap: anywhere;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
font-
|
|
55
|
-
font-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
:
|
|
69
|
-
font-
|
|
70
|
-
font-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
grid-row:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
:where(.bf-theme) :where(.bf-data-spotlight.is-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
:where(.bf-theme) :where(.bf-data-spotlight
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
:
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
:where(.bf-theme) :where(.bf-divided-section-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
15
|
+
return `/* ------------------------------------------------------------------ */
|
|
16
|
+
/* Static content ports — Vanilla data spotlight and divided section. */
|
|
17
|
+
/* Their children retain role-owned rhythm; these layout */
|
|
18
|
+
/* wrappers add only structural columns, rules, and internal gaps. */
|
|
19
|
+
/* ------------------------------------------------------------------ */
|
|
20
|
+
|
|
21
|
+
/* Data spotlight: Vanilla's equal-height wrap becomes an intrinsic grid.
|
|
22
|
+
Each item begins with a public highlighted rule using the shared emphasis
|
|
23
|
+
thickness. The items container owns every inter-row gap. */
|
|
24
|
+
:where(.bf-theme) :where(.bf-data-spotlight) {
|
|
25
|
+
container-type: inline-size;
|
|
26
|
+
margin: 0;
|
|
27
|
+
min-inline-size: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where(.bf-theme) :where(.bf-data-spotlight-header) {
|
|
31
|
+
min-inline-size: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:where(.bf-theme) :where(.bf-data-spotlight-items) {
|
|
35
|
+
column-gap: var(--bf-grid-gap-inline);
|
|
36
|
+
display: grid;
|
|
37
|
+
grid-template-columns: minmax(0, 1fr);
|
|
38
|
+
min-inline-size: 0;
|
|
39
|
+
row-gap: var(--bf-section-space-shallow);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where(.bf-theme) :where(.bf-data-spotlight-item) {
|
|
43
|
+
min-inline-size: 0;
|
|
44
|
+
overflow-wrap: anywhere;
|
|
45
|
+
padding: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:where(.bf-theme) :where(.bf-data-spotlight-stat) {
|
|
49
|
+
color: var(--bf-color-text-default);
|
|
50
|
+
display: block;
|
|
51
|
+
font-family: var(--bf-h1-font-family);
|
|
52
|
+
font-size: var(--bf-h1-font-size);
|
|
53
|
+
font-style: var(--bf-h1-font-style);
|
|
54
|
+
font-variant-caps: var(--bf-h1-font-variant-caps);
|
|
55
|
+
font-weight: var(--bf-h1-font-weight);
|
|
56
|
+
letter-spacing: var(--bf-h1-letter-spacing);
|
|
57
|
+
line-height: var(--bf-h1-line-height);
|
|
58
|
+
margin-block: 0 var(--bf-h1-margin-bottom);
|
|
59
|
+
overflow-wrap: anywhere;
|
|
60
|
+
padding-block-end: 0;
|
|
61
|
+
padding-block-start: var(--bf-h1-nudge-start);
|
|
62
|
+
text-transform: var(--bf-h1-text-transform);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:where(.bf-theme) :where(.bf-data-spotlight-headline) {
|
|
66
|
+
font-family: var(--bf-h3-font-family);
|
|
67
|
+
font-size: var(--bf-h3-font-size);
|
|
68
|
+
font-style: var(--bf-h3-font-style);
|
|
69
|
+
font-variant-caps: var(--bf-h3-font-variant-caps);
|
|
70
|
+
font-weight: var(--bf-h3-font-weight);
|
|
71
|
+
letter-spacing: var(--bf-h3-letter-spacing);
|
|
72
|
+
line-height: var(--bf-h3-line-height);
|
|
73
|
+
margin-block: 0 var(--bf-h3-margin-bottom);
|
|
74
|
+
min-inline-size: 0;
|
|
75
|
+
padding-block-end: 0;
|
|
76
|
+
padding-block-start: var(--bf-h3-nudge-start);
|
|
77
|
+
text-transform: var(--bf-h3-text-transform);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:where(.bf-theme) :where(.bf-data-spotlight-description, .bf-data-spotlight-action) {
|
|
81
|
+
min-inline-size: 0;
|
|
82
|
+
overflow-wrap: anywhere;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:where(.bf-theme) :where(.bf-data-spotlight-action) {
|
|
86
|
+
display: block;
|
|
87
|
+
margin-block: 0 var(--bf-body-margin-bottom);
|
|
88
|
+
padding-block-end: 0;
|
|
89
|
+
padding-block-start: var(--bf-body-nudge-start);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Vanilla's tablet wrap has two equal items per row. For three items the
|
|
93
|
+
in-grid title shares the first row; its first statistic owns the shallow
|
|
94
|
+
row separation. Four items give both first-row statistics that separation. */
|
|
95
|
+
@container (width >= 38.75rem) {
|
|
96
|
+
:where(.bf-theme) :where(.bf-data-spotlight-items) {
|
|
97
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
98
|
+
row-gap: var(--bf-space-1);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:where(.bf-theme) :where(.bf-data-spotlight-items)::after {
|
|
102
|
+
block-size: calc(var(--bf-section-space-shallow) - (var(--bf-space-1) * 2));
|
|
103
|
+
content: "";
|
|
104
|
+
grid-column: 1 / -1;
|
|
105
|
+
grid-row: 6;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:where(.bf-theme) :where(.bf-data-spotlight-header, .bf-data-spotlight-item) {
|
|
109
|
+
display: grid;
|
|
110
|
+
grid-row: span 5;
|
|
111
|
+
grid-template-rows: subgrid;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:where(.bf-theme) :where(.bf-data-spotlight.is-three-blocks) :where(.bf-data-spotlight-header) {
|
|
115
|
+
block-size: 0;
|
|
116
|
+
overflow: visible;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:where(.bf-theme) :where(.bf-data-spotlight.is-three-blocks) :where(.bf-data-spotlight-item:first-of-type),
|
|
120
|
+
:where(.bf-theme) :where(.bf-data-spotlight.is-four-blocks) :where(.bf-data-spotlight-item:nth-child(-n + 2)) {
|
|
121
|
+
grid-row: span 5;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:where(.bf-theme) :where(.bf-data-spotlight.is-two-blocks) :where(.bf-data-spotlight-item:nth-of-type(2)),
|
|
125
|
+
:where(.bf-theme) :where(.bf-data-spotlight.is-three-blocks) :where(.bf-data-spotlight-item:nth-of-type(n + 2)),
|
|
126
|
+
:where(.bf-theme) :where(.bf-data-spotlight.is-four-blocks) :where(.bf-data-spotlight-item:nth-of-type(n + 3)) {
|
|
127
|
+
grid-row: 7 / span 5;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* At Vanilla's large threshold the four stat blocks align in one row. Two
|
|
132
|
+
blocks reserve the leading half for the overhanging title; three reserve a
|
|
133
|
+
single leading column. The zero block-size matches Vanilla's height: 0
|
|
134
|
+
title cell without hiding its readable text. */
|
|
135
|
+
@container (width >= 64.75rem) {
|
|
136
|
+
:where(.bf-theme) :where(.bf-data-spotlight-items) {
|
|
137
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:where(.bf-theme) :where(.bf-data-spotlight-items)::after {
|
|
141
|
+
content: none;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:where(.bf-theme) :where(.bf-data-spotlight.is-two-blocks) :where(.bf-data-spotlight-header) {
|
|
145
|
+
block-size: 0;
|
|
146
|
+
grid-column: span 2;
|
|
147
|
+
overflow: visible;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
:where(.bf-theme) :where(.bf-data-spotlight-item) {
|
|
151
|
+
grid-row: span 5;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* Divided section: Vanilla's ruled 50/50 section is a one-column composition
|
|
156
|
+
until the relevant container can support the split. The rule is structural;
|
|
157
|
+
headings, copy, and content items keep their own metric-derived rhythm. */
|
|
158
|
+
:where(.bf-theme) :where(.bf-divided-section) {
|
|
159
|
+
container-type: inline-size;
|
|
160
|
+
margin: 0;
|
|
161
|
+
min-inline-size: 0;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:where(.bf-theme) :where(.bf-divided-section-layout) {
|
|
165
|
+
display: grid;
|
|
166
|
+
grid-template-columns: minmax(0, 1fr);
|
|
167
|
+
min-inline-size: 0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
:where(.bf-theme) :where(.bf-divided-section-rule) {
|
|
171
|
+
grid-column: 1 / -1;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:where(.bf-theme) :where(.bf-divided-section-header, .bf-divided-section-content) {
|
|
175
|
+
min-inline-size: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
168
178
|
:where(.bf-theme) :where(.bf-divided-section-list) {
|
|
179
|
+
--bf-divided-section-rule-to-content: calc(0.5rem - var(--bf-border-width));
|
|
180
|
+
--bf-stack-space: 1.5rem;
|
|
181
|
+
list-style: none;
|
|
182
|
+
margin: 0;
|
|
183
|
+
padding: 0;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* Preserve the pre-0.1.5 list markup; canonical composition also carries
|
|
187
|
+
bf-stack so the container remains the explicit owner of item spacing. */
|
|
188
|
+
:where(.bf-theme) :where(.bf-divided-section-list:not(.bf-stack)) {
|
|
169
189
|
align-content: start;
|
|
170
190
|
display: grid;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
|
|
191
|
+
gap: var(--bf-stack-space);
|
|
192
|
+
}
|
|
193
|
+
|
|
176
194
|
:where(.bf-theme) :where(.bf-divided-section-item) {
|
|
177
195
|
align-content: start;
|
|
178
196
|
display: grid;
|
|
197
|
+
margin: 0;
|
|
179
198
|
min-inline-size: 0;
|
|
180
|
-
overflow-wrap: anywhere;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
:
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
:where(.bf-theme) :where(.bf-divided-section) :where(.bf-divided-section-layout) {
|
|
201
|
-
column-gap: var(--bf-grid-gap-inline);
|
|
202
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
203
|
-
}
|
|
204
|
-
}
|
|
199
|
+
overflow-wrap: anywhere;
|
|
200
|
+
padding: 0;
|
|
201
|
+
position: relative;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:where(.bf-theme) :where(.bf-divided-section-item + .bf-divided-section-item)::before {
|
|
205
|
+
background: var(--bf-color-border-low-contrast);
|
|
206
|
+
block-size: var(--bf-border-width);
|
|
207
|
+
content: "";
|
|
208
|
+
inset-block-start: calc((var(--bf-divided-section-rule-to-content) + var(--bf-border-width)) * -1);
|
|
209
|
+
inset-inline: 0;
|
|
210
|
+
position: absolute;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@container (width >= 45rem) {
|
|
214
|
+
:where(.bf-theme) :where(.bf-divided-section) :where(.bf-divided-section-layout) {
|
|
215
|
+
column-gap: var(--bf-grid-gap-inline);
|
|
216
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
217
|
+
}
|
|
218
|
+
}
|
|
205
219
|
`;
|
|
206
220
|
}
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
* divided-section and basic-section remain independent BF components.
|
|
8
8
|
*
|
|
9
9
|
* Vanilla → BF mapping:
|
|
10
|
-
* -
|
|
11
|
-
* -
|
|
10
|
+
* - 45rem readable split switch → the 45rem descendant container query.
|
|
11
|
+
* - section boundaries → the parent stack selected by the composition.
|
|
12
12
|
* - the intermediate p-section--shallow before a separate tab rail →
|
|
13
|
-
*
|
|
13
|
+
* a shallow gap owned by the tab-section body.
|
|
14
14
|
* - 8-column 4/4 and 2/6 spans → intrinsic 1/1 and 1/3 tracks.
|
|
15
15
|
*
|
|
16
16
|
* Heading type and content rhythm remain owned by semantic BF elements. The
|
|
@@ -7,97 +7,105 @@
|
|
|
7
7
|
* divided-section and basic-section remain independent BF components.
|
|
8
8
|
*
|
|
9
9
|
* Vanilla → BF mapping:
|
|
10
|
-
* -
|
|
11
|
-
* -
|
|
10
|
+
* - 45rem readable split switch → the 45rem descendant container query.
|
|
11
|
+
* - section boundaries → the parent stack selected by the composition.
|
|
12
12
|
* - the intermediate p-section--shallow before a separate tab rail →
|
|
13
|
-
*
|
|
13
|
+
* a shallow gap owned by the tab-section body.
|
|
14
14
|
* - 8-column 4/4 and 2/6 spans → intrinsic 1/1 and 1/3 tracks.
|
|
15
15
|
*
|
|
16
16
|
* Heading type and content rhythm remain owned by semantic BF elements. The
|
|
17
17
|
* root establishes the container; every query styles descendants only.
|
|
18
18
|
*/
|
|
19
19
|
export function tabSectionCss() {
|
|
20
|
-
return `/* ------------------------------------------------------------------ */
|
|
21
|
-
/* Sites tab section — structural layout over the existing BF tabs API. */
|
|
22
|
-
/* ------------------------------------------------------------------ */
|
|
23
|
-
|
|
24
|
-
:where(.bf-theme) :where(.bf-tab-section) {
|
|
25
|
-
container-name: bf-tab-section;
|
|
26
|
-
container-type: inline-size;
|
|
27
|
-
margin
|
|
28
|
-
min-inline-size: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
:where(.bf-theme) :where(.bf-tab-section
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
:
|
|
46
|
-
grid-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
:where(.bf-theme) :where(.bf-tab-section
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
:where(.bf-theme) :where(.bf-tab-section
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
20
|
+
return `/* ------------------------------------------------------------------ */
|
|
21
|
+
/* Sites tab section — structural layout over the existing BF tabs API. */
|
|
22
|
+
/* ------------------------------------------------------------------ */
|
|
23
|
+
|
|
24
|
+
:where(.bf-theme) :where(.bf-tab-section) {
|
|
25
|
+
container-name: bf-tab-section;
|
|
26
|
+
container-type: inline-size;
|
|
27
|
+
margin: 0;
|
|
28
|
+
min-inline-size: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:where(.bf-theme) :where(.bf-tab-section-layout) {
|
|
32
|
+
display: grid;
|
|
33
|
+
grid-template-columns: minmax(0, 1fr);
|
|
34
|
+
min-inline-size: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:where(.bf-theme) :where(.bf-tab-section-rule) {
|
|
38
|
+
grid-column: 1 / -1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where(.bf-theme) :where(.bf-tab-section-body) {
|
|
42
|
+
--bf-stack-space: var(--bf-section-space-shallow);
|
|
43
|
+
align-content: start;
|
|
44
|
+
display: grid;
|
|
45
|
+
gap: var(--bf-stack-space);
|
|
46
|
+
grid-template-columns: minmax(0, 1fr);
|
|
47
|
+
min-inline-size: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:where(.bf-theme) :where(.bf-tab-section-copy) {
|
|
51
|
+
align-content: start;
|
|
52
|
+
display: grid;
|
|
53
|
+
grid-template-columns: minmax(0, 1fr);
|
|
54
|
+
min-inline-size: 0;
|
|
55
|
+
row-gap: var(--bf-space-1);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:where(.bf-theme) :where(.bf-tab-section-header, .bf-tab-section-intro, .bf-tab-section-tabs) {
|
|
59
|
+
min-inline-size: 0;
|
|
60
|
+
overflow-wrap: anywhere;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:where(.bf-theme) :where(.bf-tab-section-tabs) {
|
|
64
|
+
align-self: start;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@container bf-tab-section (width >= 45rem) {
|
|
68
|
+
:where(.bf-theme) :where(.bf-tab-section-body) {
|
|
69
|
+
column-gap: var(--bf-grid-gap-inline);
|
|
70
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where(.bf-theme) :where(.bf-tab-section-copy) {
|
|
74
|
+
grid-column: 1 / -1;
|
|
75
|
+
grid-template-columns: subgrid;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* With supporting copy or actions, Vanilla's heading row is 50/50 for all
|
|
79
|
+
three section layouts. The following tab rail retains its own requested
|
|
80
|
+
full, half or three-quarter span. */
|
|
81
|
+
:where(.bf-theme) :where(.bf-tab-section-copy:has(> .bf-tab-section-intro)) > :where(.bf-tab-section-header) {
|
|
82
|
+
grid-column: 1 / 3;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:where(.bf-theme) :where(.bf-tab-section-copy) > :where(.bf-tab-section-intro) {
|
|
86
|
+
grid-column: 3 / -1;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where(.bf-theme) :where(.bf-tab-section-body) > :where(.bf-tab-section-tabs) {
|
|
90
|
+
grid-column: 1 / -1;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* An unadorned 50/50 section lets auto-placement put the heading and tabs
|
|
94
|
+
in the same row. If an intro exists, it occupies that right-hand cell and
|
|
95
|
+
the tabs move to the following row, matching the upstream rendering. */
|
|
96
|
+
:where(.bf-theme) :where(.bf-tab-section.is-50-50) :where(.bf-tab-section-copy:not(:has(> .bf-tab-section-intro))) {
|
|
97
|
+
grid-column: 1 / 3;
|
|
98
|
+
grid-row: 1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:where(.bf-theme) :where(.bf-tab-section.is-50-50) :where(.bf-tab-section-copy:not(:has(> .bf-tab-section-intro))) + :where(.bf-tab-section-tabs) {
|
|
102
|
+
grid-column: 3 / -1;
|
|
103
|
+
grid-row: 1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:where(.bf-theme) :where(.bf-tab-section.is-25-75) :where(.bf-tab-section-body) > :where(.bf-tab-section-tabs) {
|
|
107
|
+
grid-column: 2 / -1;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
102
110
|
`;
|
|
103
111
|
}
|