@repobit/dex-system-design 2.0.1 → 2.1.1
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/CHANGELOG.md +16 -0
- package/package.json +2 -2
- package/schemas/component-manifest.json +1 -1
- package/src/components/accordion/accordion-bg.js +1 -1
- package/src/components/cards/card.css.js +6 -0
- package/src/components/features/features.css.js +5 -1
- package/src/components/header/header.css.js +21 -30
- package/src/components/header/header.stories.js +3 -2
- package/src/components/paragraph/paragraph.css.js +12 -1
- package/src/components/shared/ensemble.css.js +10 -1
- package/src/components/shared/token-scales.js +13 -10
- package/src/tokens/layout.css +2 -1
- package/src/tokens/tokens-grid.stories.js +5 -4
- package/src/tokens/tokens.css +18 -7
- package/src/tokens/tokens.js +18 -7
- package/src/tokens/typography.stories.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.1.1](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@2.1.0...@repobit/dex-system-design@2.1.1) (2026-10-19)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **DEX-28949:** bd-features inside tabs lands on the other sections' edges
|
|
11
|
+
* **DEX-28949:** bd-p's flow margin can be turned off, and is at the end of a card
|
|
12
|
+
* **DEX-28949:** the terms-of-use accordion sits in the page column again
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [2.1.0](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@2.0.1...@repobit/dex-system-design@2.1.0) (2026-10-16)
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **DEX-28949:** the page column's top steps land on the site menu and footer edges
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [2.0.1](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@2.0.0...@repobit/dex-system-design@2.0.1) (2026-10-15)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @repobit/dex-system-design
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repobit/dex-system-design",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Design system based on Web Components.",
|
|
5
5
|
"author": "Iordache Matei Cezar <miordache@bitdefender.com>",
|
|
6
6
|
"homepage": "https://github.com/bitdefender/dex-core#readme",
|
|
@@ -179,5 +179,5 @@
|
|
|
179
179
|
"volta": {
|
|
180
180
|
"node": "24.14.0"
|
|
181
181
|
},
|
|
182
|
-
"gitHead": "
|
|
182
|
+
"gitHead": "543f46ab9cfdf4943d3c1b9839eb414fd12bd835"
|
|
183
183
|
}
|
|
@@ -88,7 +88,7 @@ class BdAccordionBg extends LitElement {
|
|
|
88
88
|
_renderTerms() {
|
|
89
89
|
return html`
|
|
90
90
|
<div class="bd-accordion-section-container">
|
|
91
|
-
<div class="bd-accordion-section-inner">
|
|
91
|
+
<div class="bd-ensemble bd-accordion-section-inner">
|
|
92
92
|
${this.title
|
|
93
93
|
? html`<bd-h as="h6" paddingBottom="32" fontWeight="bold" class="section-title">${this.title}</bd-h>`
|
|
94
94
|
: ""}
|
|
@@ -215,6 +215,12 @@ export default css`
|
|
|
215
215
|
width: 100%;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
/* The card's own padding ends it; a closing paragraph's flow margin would
|
|
219
|
+
add 16px inside that padding. Paragraphs before it keep theirs. */
|
|
220
|
+
.bd-card-content-wrapper ::slotted(bd-p:last-child) {
|
|
221
|
+
--bd-paragraph-margin-bottom: 0;
|
|
222
|
+
}
|
|
223
|
+
|
|
218
224
|
.bd-card-cta-wrapper {
|
|
219
225
|
margin-top: var(--spacing-16);
|
|
220
226
|
padding-top: var(--spacing-8);
|
|
@@ -19,7 +19,11 @@ export default css`
|
|
|
19
19
|
padding-top: var(--spacing-64);
|
|
20
20
|
/* A host that nests the section (bd-tabs) can shorten the closing pad. */
|
|
21
21
|
padding-bottom: var(--bd-features-padding-bottom, var(--spacing-64));
|
|
22
|
-
padding-inline:
|
|
22
|
+
/* No padding-inline here: the gutter is the column's, inside the shadow
|
|
23
|
+
root. A host pad was 24px on top of it standing alone, and inside
|
|
24
|
+
bd-tabs -- where the nested column collapses to its parent's edges --
|
|
25
|
+
it was the one inset left, putting the features 24px inside every
|
|
26
|
+
other section's edge. */
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
/* Columns grid: its own measure -- N columns of 400 -- centred inside the column */
|
|
@@ -268,21 +268,20 @@ export default css`
|
|
|
268
268
|
and the element finally says what it is. */
|
|
269
269
|
|
|
270
270
|
/* The one thing this rule still has to do, and it is not typography. bd-p's
|
|
271
|
-
inner <p> carries margin
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
271
|
+
inner <p> carries a 16px flow margin, and a bd-p in a flex row is a flex
|
|
272
|
+
item, so it establishes a block formatting context and that margin cannot
|
|
273
|
+
collapse through the host -- it is trapped inside the host's box.
|
|
274
|
+
Measured: the host renders 37px where its text is 21px, which grew this
|
|
275
|
+
zone from 28px to 37px and shifted the struck price 6px against the
|
|
276
|
+
discount badge beside it.
|
|
277
277
|
.
|
|
278
278
|
The pricing cards do not show this because both of their siblings are bd-p
|
|
279
279
|
and the offset cancels; here the badge is a bare span, so it does not.
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
margin" would be better and is not this change's to add. */
|
|
280
|
+
This used to cancel the margin with a negative one, because the <p> could
|
|
281
|
+
not be reached from outside; the atom now takes
|
|
282
|
+
--bd-paragraph-margin-bottom, so the margin is simply turned off. */
|
|
284
283
|
.original-price {
|
|
285
|
-
margin-bottom:
|
|
284
|
+
--bd-paragraph-margin-bottom: 0;
|
|
286
285
|
/* text/muted, which is what Header / v2 gives the struck price. bd-p's own
|
|
287
286
|
:host sets text/primary; colour on the host is LIVE (see the note on
|
|
288
287
|
.bd-description), so this reaches it. A former price is the one number
|
|
@@ -369,25 +368,17 @@ export default css`
|
|
|
369
368
|
display: block;
|
|
370
369
|
/* the actions frame's gap, 8 -- down from 16. */
|
|
371
370
|
margin-top: var(--spacing-8);
|
|
372
|
-
/*
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
own margin and leaves the atom's untouched.
|
|
378
|
-
.
|
|
379
|
-
Same cancellation, same reason and the same token as .original-price
|
|
380
|
-
above, which hit this in a flex row where the margin could not collapse
|
|
381
|
-
at all. bd-p exposes padding but no margin, so there is no way to reach
|
|
382
|
-
it from outside; using the same token it is set from keeps the two in
|
|
383
|
-
step if that token moves. An atom-level "no flow margin" would be better
|
|
384
|
-
and is not this change's to add.
|
|
371
|
+
/* The atom's flow margin, off. Setting the host's margin to zero was never
|
|
372
|
+
enough: bd-p's inner <p> carries a 16px margin that collapses straight
|
|
373
|
+
through the host's bottom edge, and the two lines still sat 16px apart.
|
|
374
|
+
This cancelled it with a negative 16 until the atom took
|
|
375
|
+
--bd-paragraph-margin-bottom.
|
|
385
376
|
.
|
|
386
377
|
Zero is right because the design has these as two consecutive lines of
|
|
387
378
|
ONE paragraph -- Header / v2 draws a single 12/1.45 text node of two
|
|
388
379
|
lines -- rather than two blocks with air between them. Measured after:
|
|
389
380
|
8px from the CTA row, 0 between the lines. */
|
|
390
|
-
margin-bottom:
|
|
381
|
+
--bd-paragraph-margin-bottom: 0;
|
|
391
382
|
color: var(--color-text-muted);
|
|
392
383
|
}
|
|
393
384
|
.bd-header-image-wrapper {
|
|
@@ -520,10 +511,9 @@ export default css`
|
|
|
520
511
|
.bd-disclaimer-bottom {
|
|
521
512
|
display: block;
|
|
522
513
|
color: var(--color-text-muted);
|
|
523
|
-
/* the
|
|
524
|
-
the last block in the column, so the atom's trailing flow margin was
|
|
514
|
+
/* the last block in the column, so the atom's trailing flow margin was
|
|
525
515
|
adding 16px inside the content frame's own 24px bottom padding. */
|
|
526
|
-
margin-bottom:
|
|
516
|
+
--bd-paragraph-margin-bottom: 0;
|
|
527
517
|
}
|
|
528
518
|
|
|
529
519
|
/* A "bd-header a" rule stood here and could never match. It is the bare
|
|
@@ -578,13 +568,14 @@ export default css`
|
|
|
578
568
|
width per step is fixed and so is the two-column arithmetic once the 64px
|
|
579
569
|
gap comes out of it:
|
|
580
570
|
|
|
581
|
-
|
|
571
|
+
xxxl 1372 - 80 = 1292 -> 614 per column
|
|
572
|
+
xxl 1280 - 80 = 1200 -> 568
|
|
582
573
|
xl 1140 - 80 = 1060 -> 498
|
|
583
574
|
lg 960 - 80 = 880 -> 408
|
|
584
575
|
md 720 - 64 = 656 -> 296
|
|
585
576
|
sm 540 - 48 = 492 -> 214
|
|
586
577
|
|
|
587
|
-
The CTA row is 446px wide. It fits at xl and
|
|
578
|
+
The CTA row is 446px wide. It fits at xl and above, wraps at lg, and at md
|
|
588
579
|
there is less room than one button needs. lg is therefore the last step
|
|
589
580
|
where two columns are even arguable, and it is arguable rather than good --
|
|
590
581
|
measured, two columns at lg cost the description a fourth line, the CTA
|
|
@@ -179,13 +179,14 @@ two-column arithmetic is fixed:
|
|
|
179
179
|
|
|
180
180
|
| step | content width | per column |
|
|
181
181
|
|---|---|---|
|
|
182
|
-
|
|
|
182
|
+
| xxxl | 1372 − 80 = 1292 | 614 |
|
|
183
|
+
| xxl | 1280 − 80 = 1200 | 568 |
|
|
183
184
|
| xl | 1140 − 80 = 1060 | 498 |
|
|
184
185
|
| lg | 960 − 80 = 880 | 408 |
|
|
185
186
|
| md | 720 − 64 = 656 | 296 |
|
|
186
187
|
| sm | 540 − 48 = 492 | 214 |
|
|
187
188
|
|
|
188
|
-
The CTA row is **446px**. It fits at xl and
|
|
189
|
+
The CTA row is **446px**. It fits at xl and above, wraps at lg, and at md there
|
|
189
190
|
is less room than one button needs. So:
|
|
190
191
|
|
|
191
192
|
- **\`below('lg')\` — stack.** One column, 32px row gap.
|
|
@@ -17,7 +17,18 @@ export default css`
|
|
|
17
17
|
all: unset;
|
|
18
18
|
display: block;
|
|
19
19
|
font-family: var(--typography-body-regular-fontFamily);
|
|
20
|
-
margin
|
|
20
|
+
/* The flow margin between consecutive paragraphs, and the switch to turn
|
|
21
|
+
it off: --bd-paragraph-margin-bottom: 0 on the host or any ancestor.
|
|
22
|
+
It inherits into this shadow root, which the margin itself never did --
|
|
23
|
+
the <p> is unreachable from outside, so a paragraph that ends a card or
|
|
24
|
+
a column carried 16px nobody could remove, and the header cancelled it
|
|
25
|
+
three times with a negative margin.
|
|
26
|
+
|
|
27
|
+
It was a no-op until 0.26.0: it read --spacing-md, which no longer
|
|
28
|
+
existed, so every page built on 0.25 was laid out with zero here. The
|
|
29
|
+
rename to --spacing-16 made it live, which is how the step cards on
|
|
30
|
+
security-for-creators gained 16px under each description. */
|
|
31
|
+
margin-bottom: var(--bd-paragraph-margin-bottom, var(--spacing-16));
|
|
21
32
|
}
|
|
22
33
|
|
|
23
34
|
/* === Font Size Variants === */
|
|
@@ -18,7 +18,10 @@ import { above } from "./token-scales.js";
|
|
|
18
18
|
* section whose width depended on the viewport.
|
|
19
19
|
*
|
|
20
20
|
* This is that container, implemented once, on the scale the docs promised:
|
|
21
|
-
* --grid-container-max-* with --grid-padding-* per breakpoint.
|
|
21
|
+
* --grid-container-max-* with --grid-padding-* per breakpoint. The top two
|
|
22
|
+
* steps, xxl and xxxl, are not the grid's own progression: they put the
|
|
23
|
+
* column's content edges on the site menu's and footer's -- 1200 wide up to
|
|
24
|
+
* 1599, 1292 from 1600 (see --grid-container-max-* in tokens.js). A module
|
|
22
25
|
* imports it first and puts the class on the element that holds its content:
|
|
23
26
|
*
|
|
24
27
|
* static styles = [ensembleCSS, ownCSS];
|
|
@@ -90,4 +93,10 @@ export const ensembleCSS = css`
|
|
|
90
93
|
max-width: var(--bd-ensemble-max-width, var(--grid-container-max-xxl));
|
|
91
94
|
}
|
|
92
95
|
}
|
|
96
|
+
|
|
97
|
+
@media ${unsafeCSS(above('xxxl'))} {
|
|
98
|
+
.bd-ensemble {
|
|
99
|
+
max-width: var(--bd-ensemble-max-width, var(--grid-container-max-xxxl));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
93
102
|
`;
|
|
@@ -198,12 +198,12 @@ export const spacingShorthand = value => {
|
|
|
198
198
|
/* ================================================================
|
|
199
199
|
BREAKPOINTS
|
|
200
200
|
================================================================
|
|
201
|
-
The
|
|
201
|
+
The seven viewport widths, and the only place a media condition is built
|
|
202
202
|
from them.
|
|
203
203
|
|
|
204
204
|
This lives in JS rather than in the token file because a media condition
|
|
205
205
|
cannot read a custom property — `@media (max-width: var(--breakpoint-md))`
|
|
206
|
-
is not valid CSS — so the
|
|
206
|
+
is not valid CSS — so the seven values have to be interpolated into the
|
|
207
207
|
stylesheet at author time. `--breakpoint-*` in src/tokens/tokens.js stays
|
|
208
208
|
the published record of the scale; this is how a component consumes it.
|
|
209
209
|
|
|
@@ -246,18 +246,21 @@ export const spacingShorthand = value => {
|
|
|
246
246
|
0.02 rather than 0.01 is the long-standing convention, from Safari having
|
|
247
247
|
rounded a hundredth away.
|
|
248
248
|
|
|
249
|
-
The
|
|
250
|
-
1199.98 and
|
|
249
|
+
The six subtractions are exact in IEEE 754 — 575.98, 767.98, 991.98,
|
|
250
|
+
1199.98, 1399.98 and 1599.98 all round-trip — so no rounding is needed here. If a
|
|
251
251
|
value is ever added to the scale whose complement does not, this is where
|
|
252
252
|
the rounding belongs. */
|
|
253
253
|
|
|
254
254
|
export const BREAKPOINTS = {
|
|
255
|
-
xs
|
|
256
|
-
sm
|
|
257
|
-
md
|
|
258
|
-
lg
|
|
259
|
-
xl
|
|
260
|
-
xxl: 1400
|
|
255
|
+
xs : 0,
|
|
256
|
+
sm : 576,
|
|
257
|
+
md : 768,
|
|
258
|
+
lg : 992,
|
|
259
|
+
xl : 1200,
|
|
260
|
+
xxl : 1400,
|
|
261
|
+
/* Not a grid-progression step: the site's menu and footer widen here, and
|
|
262
|
+
the page column has to widen with them. See --grid-container-max-xxxl. */
|
|
263
|
+
xxxl: 1600
|
|
261
264
|
};
|
|
262
265
|
|
|
263
266
|
export const BREAKPOINT_NAMES = Object.keys(BREAKPOINTS);
|
package/src/tokens/layout.css
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
/* The page column for light-DOM markup: the twin of .bd-ensemble in
|
|
32
32
|
src/components/shared/ensemble.css.js, which is the source of truth. A page
|
|
33
33
|
that lays out its own sections gets the same edges the modules draw. The
|
|
34
|
-
breakpoints are the scale's own values (576 / 768 / 992 / 1200 / 1400). */
|
|
34
|
+
breakpoints are the scale's own values (576 / 768 / 992 / 1200 / 1400 / 1600). */
|
|
35
35
|
.bd-container {
|
|
36
36
|
box-sizing: border-box;
|
|
37
37
|
width: 100%;
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
@media (min-width: 992px) { .bd-container { max-width: var(--grid-container-max-lg); padding-inline: var(--grid-padding-lg); } }
|
|
45
45
|
@media (min-width: 1200px) { .bd-container { max-width: var(--grid-container-max-xl); } }
|
|
46
46
|
@media (min-width: 1400px) { .bd-container { max-width: var(--grid-container-max-xxl); } }
|
|
47
|
+
@media (min-width: 1600px) { .bd-container { max-width: var(--grid-container-max-xxxl); } }
|
|
47
48
|
|
|
48
49
|
.bd-container-fluid {
|
|
49
50
|
width: 100%;
|
|
@@ -134,7 +134,8 @@ const COLUMN_TABLE = [
|
|
|
134
134
|
['768', 'md', '720px', 32],
|
|
135
135
|
['992', 'lg', '960px', 40],
|
|
136
136
|
['1200', 'xl', '1140px', 40],
|
|
137
|
-
['1400', 'xxl', '
|
|
137
|
+
['1400', 'xxl', '1280px', 40],
|
|
138
|
+
['1600', 'xxxl', '1372px', 40]
|
|
138
139
|
];
|
|
139
140
|
const columnOf = (vw, cmax, padding) => {
|
|
140
141
|
const box = cmax === '100%' ? Number(vw) : parseInt(cmax, 10);
|
|
@@ -157,7 +158,7 @@ export const TheColumn = () => html`
|
|
|
157
158
|
children: html`
|
|
158
159
|
${refSection({
|
|
159
160
|
name : 'Viewport to column',
|
|
160
|
-
meta : '
|
|
161
|
+
meta : '8 widths · container − 2 × gutter',
|
|
161
162
|
children: html`
|
|
162
163
|
<div style="overflow-x: auto">
|
|
163
164
|
<table class="tokens-table">
|
|
@@ -186,7 +187,7 @@ export const TheColumn = () => html`
|
|
|
186
187
|
</table>
|
|
187
188
|
</div>
|
|
188
189
|
<p>
|
|
189
|
-
<b><code>xl</code> and <code>
|
|
190
|
+
<b><code>xl</code>, <code>xxl</code> and <code>xxxl</code> inherit <code>--grid-padding-lg</code>.</b>
|
|
190
191
|
<code>ensemble.css.js</code> raises <code>max-width</code> above <code>lg</code> but
|
|
191
192
|
never the padding, so <b>40px is the widest gutter this system has</b> — and the
|
|
192
193
|
column therefore grows more slowly than the screen does. At 320 the gutters are 10%
|
|
@@ -245,7 +246,7 @@ export const GridTokens = () => {
|
|
|
245
246
|
};
|
|
246
247
|
|
|
247
248
|
export const GridContainer = () => {
|
|
248
|
-
const sizes = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
249
|
+
const sizes = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl', 'xxxl'];
|
|
249
250
|
|
|
250
251
|
return html`
|
|
251
252
|
${gridStyles}
|
package/src/tokens/tokens.css
CHANGED
|
@@ -1635,7 +1635,7 @@
|
|
|
1635
1635
|
deliberately. A media condition cannot read a custom property — @media
|
|
1636
1636
|
(max-width: var(--breakpoint-sm)) is not valid CSS — so a breakpoint
|
|
1637
1637
|
token can never be referenced the way a colour is. It exists so the
|
|
1638
|
-
|
|
1638
|
+
seven values have one place to be read from, by the lint that checks
|
|
1639
1639
|
media queries against them and by anything generating CSS. The grid
|
|
1640
1640
|
tokens below are read: --grid-container-max-* and --grid-padding-*
|
|
1641
1641
|
are the page column, through shared/ensemble.css.js and layout.css,
|
|
@@ -1647,13 +1647,24 @@
|
|
|
1647
1647
|
references is dead weight, and the OLD VALUES and FONT TOKENS blocks
|
|
1648
1648
|
that used to sit below were removed for exactly that reason.
|
|
1649
1649
|
*/
|
|
1650
|
-
/* Grid container max widths
|
|
1650
|
+
/* Grid container max widths
|
|
1651
|
+
|
|
1652
|
+
The top two steps are set by the site's menu and footer, not by the
|
|
1653
|
+
grid's own progression: a page built from these modules sits between
|
|
1654
|
+
the two, so its content edges have to land on theirs. Measured on
|
|
1655
|
+
bitdefender.com on 2026-10-16, the menu and footer share one container
|
|
1656
|
+
whose content is 1200px wide from 1300 to 1599 (1300 max, 50px gutter)
|
|
1657
|
+
and 1292px from 1600 up (1332 max, 20px gutter). The column keeps its
|
|
1658
|
+
own 40px gutter, so each cap is that content plus 80: xxl 1280 gives
|
|
1659
|
+
1200 and xxxl 1372 gives 1292. xxl was 1320, a 1240 column that sat
|
|
1660
|
+
20px outside the menu's edges at 1440 and 26px inside them at 1920. */
|
|
1651
1661
|
--grid-container-max-xs: 100%; /* mobile full width */
|
|
1652
1662
|
--grid-container-max-sm: 540px;
|
|
1653
1663
|
--grid-container-max-md: 720px;
|
|
1654
1664
|
--grid-container-max-lg: 960px;
|
|
1655
1665
|
--grid-container-max-xl: 1140px;
|
|
1656
|
-
--grid-container-max-xxl:
|
|
1666
|
+
--grid-container-max-xxl: 1280px;
|
|
1667
|
+
--grid-container-max-xxxl: 1372px;
|
|
1657
1668
|
|
|
1658
1669
|
/* Column count (usually 12) */
|
|
1659
1670
|
--grid-columns: 12;
|
|
@@ -1677,6 +1688,7 @@
|
|
|
1677
1688
|
--breakpoint-lg: 992px;
|
|
1678
1689
|
--breakpoint-xl: 1200px;
|
|
1679
1690
|
--breakpoint-xxl: 1400px;
|
|
1691
|
+
--breakpoint-xxxl: 1600px; /* the site menu and footer widen here */
|
|
1680
1692
|
/* =====================
|
|
1681
1693
|
FONT-FACE DEFINITIONS
|
|
1682
1694
|
Intentionally NOT here. @font-face nested inside a :host rule is
|
|
@@ -1703,10 +1715,9 @@
|
|
|
1703
1715
|
above (--grid-container-max-* with --grid-padding-*), which is what
|
|
1704
1716
|
Foundations/Grid System documented and nothing had built. A width token
|
|
1705
1717
|
here is how six ensembles came to hold one literal each and seven other
|
|
1706
|
-
modules a different one.
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
--layout-ensemble-inline-padding: var(--spacing-24);
|
|
1718
|
+
modules a different one. --layout-ensemble-inline-padding went the
|
|
1719
|
+
same way once bd-features, its last reader, stopped padding its host;
|
|
1720
|
+
the blog declares its own copy. */
|
|
1710
1721
|
|
|
1711
1722
|
|
|
1712
1723
|
}
|
package/src/tokens/tokens.js
CHANGED
|
@@ -1648,7 +1648,7 @@ const declarations = `
|
|
|
1648
1648
|
deliberately. A media condition cannot read a custom property — @media
|
|
1649
1649
|
(max-width: var(--breakpoint-sm)) is not valid CSS — so a breakpoint
|
|
1650
1650
|
token can never be referenced the way a colour is. It exists so the
|
|
1651
|
-
|
|
1651
|
+
seven values have one place to be read from, by the lint that checks
|
|
1652
1652
|
media queries against them and by anything generating CSS. The grid
|
|
1653
1653
|
tokens below are read: --grid-container-max-* and --grid-padding-*
|
|
1654
1654
|
are the page column, through shared/ensemble.css.js and layout.css,
|
|
@@ -1660,13 +1660,24 @@ const declarations = `
|
|
|
1660
1660
|
references is dead weight, and the OLD VALUES and FONT TOKENS blocks
|
|
1661
1661
|
that used to sit below were removed for exactly that reason.
|
|
1662
1662
|
*/
|
|
1663
|
-
/* Grid container max widths
|
|
1663
|
+
/* Grid container max widths
|
|
1664
|
+
|
|
1665
|
+
The top two steps are set by the site's menu and footer, not by the
|
|
1666
|
+
grid's own progression: a page built from these modules sits between
|
|
1667
|
+
the two, so its content edges have to land on theirs. Measured on
|
|
1668
|
+
bitdefender.com on 2026-10-16, the menu and footer share one container
|
|
1669
|
+
whose content is 1200px wide from 1300 to 1599 (1300 max, 50px gutter)
|
|
1670
|
+
and 1292px from 1600 up (1332 max, 20px gutter). The column keeps its
|
|
1671
|
+
own 40px gutter, so each cap is that content plus 80: xxl 1280 gives
|
|
1672
|
+
1200 and xxxl 1372 gives 1292. xxl was 1320, a 1240 column that sat
|
|
1673
|
+
20px outside the menu's edges at 1440 and 26px inside them at 1920. */
|
|
1664
1674
|
--grid-container-max-xs: 100%; /* mobile full width */
|
|
1665
1675
|
--grid-container-max-sm: 540px;
|
|
1666
1676
|
--grid-container-max-md: 720px;
|
|
1667
1677
|
--grid-container-max-lg: 960px;
|
|
1668
1678
|
--grid-container-max-xl: 1140px;
|
|
1669
|
-
--grid-container-max-xxl:
|
|
1679
|
+
--grid-container-max-xxl: 1280px;
|
|
1680
|
+
--grid-container-max-xxxl: 1372px;
|
|
1670
1681
|
|
|
1671
1682
|
/* Column count (usually 12) */
|
|
1672
1683
|
--grid-columns: 12;
|
|
@@ -1690,6 +1701,7 @@ const declarations = `
|
|
|
1690
1701
|
--breakpoint-lg: 992px;
|
|
1691
1702
|
--breakpoint-xl: 1200px;
|
|
1692
1703
|
--breakpoint-xxl: 1400px;
|
|
1704
|
+
--breakpoint-xxxl: 1600px; /* the site menu and footer widen here */
|
|
1693
1705
|
/* =====================
|
|
1694
1706
|
FONT-FACE DEFINITIONS
|
|
1695
1707
|
Intentionally NOT here. @font-face nested inside a :host rule is
|
|
@@ -1716,10 +1728,9 @@ const declarations = `
|
|
|
1716
1728
|
above (--grid-container-max-* with --grid-padding-*), which is what
|
|
1717
1729
|
Foundations/Grid System documented and nothing had built. A width token
|
|
1718
1730
|
here is how six ensembles came to hold one literal each and seven other
|
|
1719
|
-
modules a different one.
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
--layout-ensemble-inline-padding: var(--spacing-24);
|
|
1731
|
+
modules a different one. --layout-ensemble-inline-padding went the
|
|
1732
|
+
same way once bd-features, its last reader, stopped padding its host;
|
|
1733
|
+
the blog declares its own copy. */
|
|
1723
1734
|
|
|
1724
1735
|
`;
|
|
1725
1736
|
|
|
@@ -190,7 +190,7 @@ const FLUID = [
|
|
|
190
190
|
['body-lead', 20, 18, 'Regular']
|
|
191
191
|
];
|
|
192
192
|
/* viewport -> column, from --grid-container-max-* minus 2x --grid-padding-* */
|
|
193
|
-
const COLUMNS = [[320, 288], [375, 343], [576, 492], [768, 656], [992, 880], [1200, 1060], [1400,
|
|
193
|
+
const COLUMNS = [[320, 288], [375, 343], [576, 492], [768, 656], [992, 880], [1200, 1060], [1400, 1200], [1600, 1292]];
|
|
194
194
|
const WINDOW = [320, 992];
|
|
195
195
|
|
|
196
196
|
/** What the clamp resolves to at a given viewport width, in px. */
|