@bwui/css 0.1.9 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/brickwork.css +3187 -756
- package/package.json +2 -2
- package/src/components.css +4 -5
- package/src/layers/components.css +2579 -441
- package/src/layers/marketing.css +52 -49
- package/src/layout.css +253 -5
- package/src/reset.css +1 -1
- package/src/wave-b.css +9 -44
- package/src/wave-e.css +40 -11
package/src/layers/marketing.css
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
.bw-marketing {
|
|
23
23
|
display: flex;
|
|
24
24
|
flex-direction: column;
|
|
25
|
-
min-
|
|
25
|
+
min-block-size: 100vh;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/* --- Overlay mode (ADR-105, icvoss/django-brickwork#565) --------------------
|
|
@@ -75,7 +75,11 @@
|
|
|
75
75
|
);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
/* Enhanced: transparent until scrolled; ink follows panel context.
|
|
78
|
+
/* Enhanced: transparent until scrolled; ink follows panel context.
|
|
79
|
+
* Context ink is theme-stable via light-dark() against --bw-color-fg /
|
|
80
|
+
* --bw-color-surface (ADR-128 / CB-16: no raw oklch literals).
|
|
81
|
+
* nav-context="dark" = dark band behind the chrome (need light ink).
|
|
82
|
+
* nav-context="light" = light band behind the chrome (need dark ink). */
|
|
79
83
|
.bw-site-header--overlay[data-bw-overlay-ready]:not([data-bw-scrolled="true"]) {
|
|
80
84
|
background: transparent;
|
|
81
85
|
border-block-end-color: transparent;
|
|
@@ -83,27 +87,40 @@
|
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
.bw-site-header--overlay[data-bw-overlay-ready][data-bw-nav-context="dark"] {
|
|
86
|
-
--bw-overlay-ink:
|
|
87
|
-
--bw-overlay-ink-muted: color-mix(in oklab,
|
|
88
|
-
--bw-overlay-frost: color-mix(
|
|
89
|
-
|
|
90
|
+
--bw-overlay-ink: light-dark(var(--bw-color-surface), var(--bw-color-fg));
|
|
91
|
+
--bw-overlay-ink-muted: color-mix(in oklab, var(--bw-overlay-ink) 72%, transparent);
|
|
92
|
+
--bw-overlay-frost: color-mix(
|
|
93
|
+
in oklab,
|
|
94
|
+
light-dark(var(--bw-color-fg), var(--bw-color-surface)) 78%,
|
|
95
|
+
transparent
|
|
96
|
+
);
|
|
97
|
+
--bw-overlay-line: color-mix(in oklab, var(--bw-overlay-ink) 14%, transparent);
|
|
90
98
|
}
|
|
91
99
|
|
|
92
100
|
.bw-site-header--overlay[data-bw-overlay-ready][data-bw-nav-context="light"] {
|
|
93
|
-
--bw-overlay-ink:
|
|
94
|
-
--bw-overlay-ink-muted: color-mix(in oklab,
|
|
95
|
-
--bw-overlay-frost: color-mix(in oklab,
|
|
96
|
-
--bw-overlay-line:
|
|
101
|
+
--bw-overlay-ink: light-dark(var(--bw-color-fg), var(--bw-color-surface));
|
|
102
|
+
--bw-overlay-ink-muted: color-mix(in oklab, var(--bw-overlay-ink) 68%, transparent);
|
|
103
|
+
--bw-overlay-frost: color-mix(in oklab, var(--bw-color-surface) 82%, transparent);
|
|
104
|
+
--bw-overlay-line: color-mix(in oklab, var(--bw-overlay-ink) 14%, transparent);
|
|
97
105
|
}
|
|
98
106
|
|
|
99
107
|
.bw-site-header--overlay[data-bw-overlay-ready][data-bw-scrolled="true"] {
|
|
100
|
-
background: var(--bw-overlay-frost
|
|
101
|
-
border-block-end-color: var(--bw-overlay-line
|
|
108
|
+
background: var(--bw-overlay-frost);
|
|
109
|
+
border-block-end-color: var(--bw-overlay-line);
|
|
102
110
|
box-shadow: var(--bw-elevation-1);
|
|
103
111
|
-webkit-backdrop-filter: blur(12px) saturate(140%);
|
|
104
112
|
backdrop-filter: blur(12px) saturate(140%);
|
|
105
113
|
}
|
|
106
114
|
|
|
115
|
+
.bw-site-header--overlay[data-bw-overlay-ready] {
|
|
116
|
+
color: var(--bw-overlay-ink);
|
|
117
|
+
transition:
|
|
118
|
+
background var(--bw-duration-normal) var(--bw-ease-standard),
|
|
119
|
+
border-color var(--bw-duration-normal) var(--bw-ease-standard),
|
|
120
|
+
box-shadow var(--bw-duration-normal) var(--bw-ease-standard),
|
|
121
|
+
color var(--bw-duration-normal) var(--bw-ease-standard);
|
|
122
|
+
}
|
|
123
|
+
|
|
107
124
|
@media (prefers-reduced-motion: reduce) {
|
|
108
125
|
.bw-site-header--overlay[data-bw-overlay-ready] {
|
|
109
126
|
transition: none;
|
|
@@ -114,15 +131,6 @@
|
|
|
114
131
|
}
|
|
115
132
|
}
|
|
116
133
|
|
|
117
|
-
.bw-site-header--overlay[data-bw-overlay-ready] {
|
|
118
|
-
color: var(--bw-overlay-ink, oklch(0.205 0.005 265));
|
|
119
|
-
transition:
|
|
120
|
-
background var(--bw-duration-normal) var(--bw-ease-standard),
|
|
121
|
-
border-color var(--bw-duration-normal) var(--bw-ease-standard),
|
|
122
|
-
box-shadow var(--bw-duration-normal) var(--bw-ease-standard),
|
|
123
|
-
color var(--bw-duration-normal) var(--bw-ease-standard);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
134
|
.bw-site-header--overlay[data-bw-overlay-ready] .bw-site-header__brand-wordmark,
|
|
127
135
|
.bw-site-header--overlay[data-bw-overlay-ready]
|
|
128
136
|
.bw-site-header__nav
|
|
@@ -130,10 +138,7 @@
|
|
|
130
138
|
.bw-site-header--overlay[data-bw-overlay-ready]
|
|
131
139
|
.bw-site-header__actions
|
|
132
140
|
> :where(a):not(.bw-btn) {
|
|
133
|
-
color: var(
|
|
134
|
-
--bw-overlay-ink-muted,
|
|
135
|
-
color-mix(in oklab, oklch(0.205 0.005 265) 68%, transparent)
|
|
136
|
-
);
|
|
141
|
+
color: var(--bw-overlay-ink-muted);
|
|
137
142
|
}
|
|
138
143
|
|
|
139
144
|
.bw-site-header--overlay[data-bw-overlay-ready]
|
|
@@ -143,7 +148,7 @@
|
|
|
143
148
|
.bw-site-header__actions
|
|
144
149
|
> :where(a:hover):not(.bw-btn),
|
|
145
150
|
.bw-site-header--overlay[data-bw-overlay-ready] .bw-site-header__brand-wordmark:hover {
|
|
146
|
-
color: var(--bw-overlay-ink
|
|
151
|
+
color: var(--bw-overlay-ink);
|
|
147
152
|
}
|
|
148
153
|
|
|
149
154
|
/* Open mobile disclosure under overlay: keep opaque panel readable. */
|
|
@@ -491,7 +496,7 @@ so the slot's layout does not shift there. */
|
|
|
491
496
|
.bw-marketing-footer__groups {
|
|
492
497
|
display: grid;
|
|
493
498
|
grid-template-columns: 1fr;
|
|
494
|
-
gap: var(--bw-
|
|
499
|
+
gap: var(--bw-size-gap-lg);
|
|
495
500
|
}
|
|
496
501
|
|
|
497
502
|
@media (width >= --theme(--breakpoint-sm)) {
|
|
@@ -503,7 +508,7 @@ so the slot's layout does not shift there. */
|
|
|
503
508
|
.bw-marketing-footer__group {
|
|
504
509
|
display: flex;
|
|
505
510
|
flex-direction: column;
|
|
506
|
-
gap: var(--bw-
|
|
511
|
+
gap: var(--bw-size-gap-sm);
|
|
507
512
|
align-items: flex-start;
|
|
508
513
|
}
|
|
509
514
|
|
|
@@ -1254,11 +1259,9 @@ so the narrow case needs no rule (ADR-057 section 1: a section
|
|
|
1254
1259
|
gap: var(--bw-space-6);
|
|
1255
1260
|
}
|
|
1256
1261
|
|
|
1257
|
-
/* Bordered gap-less variant (
|
|
1258
|
-
* border colour,
|
|
1259
|
-
|
|
1260
|
-
no per-card radius or shadow). The
|
|
1261
|
-
* default gapped cards stay byte-identical when variant is omitted. */
|
|
1262
|
+
/* Bordered gap-less variant (django-brickwork issue 646): cells share one rule
|
|
1263
|
+
* (1px gap over the border colour, strong outer border, no per-card radius or
|
|
1264
|
+
* shadow). The default gapped cards stay byte-identical when variant is omitted. */
|
|
1262
1265
|
.bw-feature-grid--bordered {
|
|
1263
1266
|
gap: var(--bw-size-border-hairline);
|
|
1264
1267
|
background: var(--bw-color-border);
|
|
@@ -1287,8 +1290,7 @@ no per-card radius or shadow). The
|
|
|
1287
1290
|
}
|
|
1288
1291
|
|
|
1289
1292
|
/* Feature cards inside a feature grid carry a quiet surface role
|
|
1290
|
-
* (icvoss/django-brickwork
|
|
1291
|
-
not bare
|
|
1293
|
+
* (icvoss/django-brickwork issue 510): hairline + elevation-1, not bare
|
|
1292
1294
|
* icon-plus-copy. Scoped to the grid so footer link groups that reuse
|
|
1293
1295
|
* .bw-feature-card for stacking do not pick up card chrome. Edge and
|
|
1294
1296
|
* ambient mirror the zero-kwargs .bw-card craft so tiles read on white. */
|
|
@@ -1385,9 +1387,8 @@ not a stack of cards. Hover shifts surface
|
|
|
1385
1387
|
}
|
|
1386
1388
|
|
|
1387
1389
|
/* Meta and CTA sit on a shared baseline at the foot of the card when the
|
|
1388
|
-
* body lengths differ across a row (
|
|
1389
|
-
meta
|
|
1390
|
-
* takes the auto push and CTA follows under the card gap. */
|
|
1390
|
+
* body lengths differ across a row (django-brickwork issue 641). When both are
|
|
1391
|
+
* present, meta takes the auto push and CTA follows under the card gap. */
|
|
1391
1392
|
.bw-feature-card__meta,
|
|
1392
1393
|
.bw-feature-card__cta {
|
|
1393
1394
|
margin-block-start: auto;
|
|
@@ -1413,8 +1414,9 @@ meta
|
|
|
1413
1414
|
text-transform: uppercase;
|
|
1414
1415
|
}
|
|
1415
1416
|
|
|
1416
|
-
/* Pending (
|
|
1417
|
-
* url the card is already non-interactive; with a url it stays
|
|
1417
|
+
/* Pending (django-brickwork issue 641): reduced emphasis via the muted opacity
|
|
1418
|
+
* token. Without a url the card is already non-interactive; with a url it stays
|
|
1419
|
+
* a link. Opacity drops below AA text contrast by design (visual hold state). */
|
|
1418
1420
|
.bw-feature-card--pending {
|
|
1419
1421
|
opacity: var(--bw-opacity-muted);
|
|
1420
1422
|
}
|
|
@@ -1424,11 +1426,10 @@ meta
|
|
|
1424
1426
|
background: var(--bw-color-surface);
|
|
1425
1427
|
}
|
|
1426
1428
|
|
|
1427
|
-
/* Linked feature card (
|
|
1428
|
-
* contract: content keeps its own ink,
|
|
1429
|
-
|
|
1430
|
-
* the
|
|
1431
|
-
* grid the card also carries the quiet surface chrome above; the hover
|
|
1429
|
+
/* Linked feature card (django-brickwork issue 99): the whole card is an anchor
|
|
1430
|
+
* (a.bw-card's contract: content keeps its own ink, no underline smears across
|
|
1431
|
+
* the card; the focus ring comes from the global :focus-visible rule). Inside a
|
|
1432
|
+
* feature grid the card also carries the quiet surface chrome above; the hover
|
|
1432
1433
|
* affordance remains the marketing kit's link ink treatment on the heading
|
|
1433
1434
|
* (accent ink with the standard colour transition). Colour is reinforcement
|
|
1434
1435
|
* only; the pointer cursor and focus ring carry the interactivity signal. */
|
|
@@ -1625,7 +1626,7 @@ contrast-checked
|
|
|
1625
1626
|
}
|
|
1626
1627
|
|
|
1627
1628
|
/* width="bleed" CTA extras on top of the shared .bw-section--bleed /
|
|
1628
|
-
* .bw-cta--bleed escape (
|
|
1629
|
+
* .bw-cta--bleed escape (issue 667). Declared AFTER .bw-cta--tint so a tinted
|
|
1629
1630
|
* full-bleed band takes THIS rule's inline gutter rather than tint's
|
|
1630
1631
|
* --bw-space-8 (specificity-tie / source-order,
|
|
1631
1632
|
ADR-057 §1a). CTA keeps
|
|
@@ -1670,7 +1671,7 @@ not the
|
|
|
1670
1671
|
gap: var(--bw-space-3);
|
|
1671
1672
|
}
|
|
1672
1673
|
|
|
1673
|
-
/* align="start" (
|
|
1674
|
+
/* align="start" (issue 697): quiet contact-foot stack. Centre remains the
|
|
1674
1675
|
* default (no modifier). Pair with band="plain" for a soft left close. */
|
|
1675
1676
|
.bw-cta--align-start {
|
|
1676
1677
|
text-align: start;
|
|
@@ -2116,7 +2117,7 @@ BR-BW-MKT-004). */
|
|
|
2116
2117
|
/* CTA / full-bleed --------------------------------------------------------- */
|
|
2117
2118
|
|
|
2118
2119
|
/* Escape size/margin come from the shared .bw-section--bleed / .bw-cta-bleed
|
|
2119
|
-
* rule (
|
|
2120
|
+
* rule (issue 667). This block keeps the inverse band treatment and its own
|
|
2120
2121
|
* gutter (prose __inner,
|
|
2121
2122
|
same shape as .bw-cta--bleed). */
|
|
2122
2123
|
.bw-cta-bleed {
|
|
@@ -2385,7 +2386,9 @@ where a naked number
|
|
|
2385
2386
|
display: flex;
|
|
2386
2387
|
flex-direction: column;
|
|
2387
2388
|
gap: var(--bw-space-2);
|
|
2388
|
-
|
|
2389
|
+
/* D06 raise (STA-R33): padding raised from raw --bw-space-8 to the
|
|
2390
|
+
inset scale (ADR-126 section 5, CB-17). md matches the app stat tile. */
|
|
2391
|
+
padding: var(--bw-size-inset-md);
|
|
2389
2392
|
border: var(--bw-size-border-hairline) solid var(--bw-color-border);
|
|
2390
2393
|
border-radius: var(--bw-radius-lg);
|
|
2391
2394
|
background: var(--bw-color-surface-raised);
|
package/src/layout.css
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
padding: var(--bw-space-2) var(--bw-space-3);
|
|
12
12
|
border-radius: var(--bw-radius-md);
|
|
13
13
|
background: var(--bw-color-accent);
|
|
14
|
-
color: var(--bw-color-accent
|
|
14
|
+
color: var(--bw-color-fg-on-accent);
|
|
15
15
|
transform: translateY(-200%);
|
|
16
16
|
transition: transform var(--bw-duration-fast, 0.15s) ease;
|
|
17
17
|
}
|
|
@@ -23,35 +23,283 @@
|
|
|
23
23
|
outline-offset: var(--bw-focus-ring-offset, 2px);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
/* ADR-126 section 6: unmodified primitives take md (= --bw-density-stack-gap).
|
|
27
|
+
* bw-<primitive>--gap-<step> selects --bw-size-gap-<step>. */
|
|
26
28
|
.bw-stack {
|
|
27
29
|
display: flex;
|
|
28
30
|
flex-direction: column;
|
|
29
|
-
gap: var(--bw-
|
|
31
|
+
gap: var(--bw-size-gap-md);
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
.bw-cluster {
|
|
33
35
|
display: flex;
|
|
34
36
|
flex-wrap: wrap;
|
|
35
37
|
align-items: center;
|
|
36
|
-
gap: var(--bw-
|
|
38
|
+
gap: var(--bw-size-gap-md);
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
.bw-grid {
|
|
40
42
|
display: grid;
|
|
41
|
-
gap: var(--bw-
|
|
43
|
+
gap: var(--bw-size-gap-md);
|
|
42
44
|
}
|
|
43
45
|
|
|
46
|
+
.bw-stack--gap-xs,
|
|
47
|
+
.bw-cluster--gap-xs,
|
|
48
|
+
.bw-grid--gap-xs {
|
|
49
|
+
gap: var(--bw-size-gap-xs);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.bw-stack--gap-sm,
|
|
53
|
+
.bw-cluster--gap-sm,
|
|
54
|
+
.bw-grid--gap-sm {
|
|
55
|
+
gap: var(--bw-size-gap-sm);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.bw-stack--gap-md,
|
|
59
|
+
.bw-cluster--gap-md,
|
|
60
|
+
.bw-grid--gap-md {
|
|
61
|
+
gap: var(--bw-size-gap-md);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.bw-stack--gap-lg,
|
|
65
|
+
.bw-cluster--gap-lg,
|
|
66
|
+
.bw-grid--gap-lg {
|
|
67
|
+
gap: var(--bw-size-gap-lg);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.bw-stack--gap-xl,
|
|
71
|
+
.bw-cluster--gap-xl,
|
|
72
|
+
|
|
73
|
+
.bw-grid--gap-xl {
|
|
74
|
+
gap: var(--bw-size-gap-xl);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Column templates (closed grammar). Equal columns and auto-fill minima
|
|
78
|
+
* read --bw-size-grid-min-* tokens; pages never set grid-template-columns
|
|
79
|
+
* inline. */
|
|
80
|
+
.bw-grid--cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
|
|
81
|
+
.bw-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
82
|
+
.bw-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
83
|
+
.bw-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
84
|
+
.bw-grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
|
|
85
|
+
.bw-grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
|
|
86
|
+
|
|
87
|
+
.bw-grid--fill-xs {
|
|
88
|
+
grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--bw-size-grid-min-xs)), 1fr));
|
|
89
|
+
}
|
|
90
|
+
.bw-grid--fill-sm {
|
|
91
|
+
grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--bw-size-grid-min-sm)), 1fr));
|
|
92
|
+
}
|
|
93
|
+
.bw-grid--fill-md {
|
|
94
|
+
grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--bw-size-grid-min-md)), 1fr));
|
|
95
|
+
}
|
|
96
|
+
.bw-grid--fill-lg {
|
|
97
|
+
grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--bw-size-grid-min-lg)), 1fr));
|
|
98
|
+
}
|
|
99
|
+
.bw-grid--fill-xl {
|
|
100
|
+
grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--bw-size-grid-min-xl)), 1fr));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.bw-grid--align-start {
|
|
104
|
+
align-items: start;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Review specimen frame: kit chrome around a unit under test. Paint only;
|
|
108
|
+
* compose with bw-stack / bw-inset for gap and padding. */
|
|
109
|
+
.bw-specimen {
|
|
110
|
+
background: var(--bw-color-surface-sunken);
|
|
111
|
+
color: var(--bw-color-fg);
|
|
112
|
+
border: var(--bw-size-border-hairline) dashed var(--bw-color-border);
|
|
113
|
+
border-radius: var(--bw-radius-lg);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.bw-specimen--solid {
|
|
117
|
+
border-style: solid;
|
|
118
|
+
background: var(--bw-color-surface);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.bw-specimen--narrow {
|
|
122
|
+
max-inline-size: 320px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Transparent open-listbox host: reserves room for the panel without
|
|
126
|
+
* painting a second sunken frame over the card. Contrast measures the
|
|
127
|
+
* control against this outside colour (CB-18 / CMB-053). */
|
|
128
|
+
.bw-specimen--open {
|
|
129
|
+
background: transparent;
|
|
130
|
+
border: 0;
|
|
131
|
+
border-radius: 0;
|
|
132
|
+
min-block-size: 17rem;
|
|
133
|
+
}
|
|
134
|
+
.bw-specimen--open-short {
|
|
135
|
+
min-block-size: 11rem;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.bw-specimen--stage {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: flex-start;
|
|
141
|
+
justify-content: flex-start;
|
|
142
|
+
min-block-size: 16rem;
|
|
143
|
+
min-inline-size: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.bw-specimen--stage-shell {
|
|
147
|
+
display: flex;
|
|
148
|
+
block-size: 20rem;
|
|
149
|
+
min-inline-size: 0;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.bw-specimen--stage-shell > .bw-slide-over {
|
|
153
|
+
flex: 1 1 auto;
|
|
154
|
+
min-inline-size: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.bw-specimen--stage-short {
|
|
158
|
+
min-block-size: 12rem;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.bw-specimen--stage-tall {
|
|
162
|
+
min-block-size: 24rem;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.bw-specimen--stage-end {
|
|
166
|
+
align-items: flex-end;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.bw-specimen--stage-inline-end {
|
|
170
|
+
justify-content: flex-end;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* Review / demo hosts for app shells and drawers (CB-18). */
|
|
174
|
+
.bw-specimen--shell {
|
|
175
|
+
block-size: 22rem;
|
|
176
|
+
overflow: hidden;
|
|
177
|
+
position: relative;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.bw-specimen--shell .bw-app {
|
|
181
|
+
block-size: 100%;
|
|
182
|
+
min-block-size: 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.bw-specimen--shell .bw-workspace {
|
|
186
|
+
padding: var(--bw-size-inset-md) var(--bw-size-inset-lg);
|
|
187
|
+
overflow-y: auto;
|
|
188
|
+
block-size: 100%;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.bw-specimen--drawer-host {
|
|
192
|
+
position: relative;
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
gap: var(--bw-size-gap-sm);
|
|
196
|
+
min-block-size: var(--bw-density-topbar-height);
|
|
197
|
+
padding: var(--bw-size-inset-xs) var(--bw-size-inset-sm);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.bw-specimen--drawer-host .bw-drawer {
|
|
201
|
+
display: block;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.bw-specimen__filler {
|
|
205
|
+
block-size: 2.5rem;
|
|
206
|
+
border-radius: var(--bw-radius-md);
|
|
207
|
+
background: var(--bw-color-border);
|
|
208
|
+
opacity: 0.5;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.bw-specimen--rail-host {
|
|
212
|
+
display: flex;
|
|
213
|
+
block-size: 18rem;
|
|
214
|
+
overflow: hidden;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.bw-specimen--rail-host > .bw-rail {
|
|
218
|
+
display: flex;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
.bw-specimen__cell {
|
|
225
|
+
display: grid;
|
|
226
|
+
place-items: center;
|
|
227
|
+
min-block-size: var(--bw-size-inset-xl);
|
|
228
|
+
padding: var(--bw-size-inset-xs);
|
|
229
|
+
background: var(--bw-color-accent-subtle, var(--bw-color-surface-sunken));
|
|
230
|
+
border: var(--bw-size-border-hairline) solid var(--bw-color-border);
|
|
231
|
+
border-radius: var(--bw-radius-md);
|
|
232
|
+
font-size: var(--bw-text-body-sm-size);
|
|
233
|
+
color: var(--bw-color-fg);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.bw-measure-intro {
|
|
237
|
+
max-inline-size: var(--bw-size-max-width-intro);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.bw-surface-sunken {
|
|
241
|
+
background: var(--bw-color-surface-sunken);
|
|
242
|
+
color: var(--bw-color-fg);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
/* ADR-126 sections 5 and 6: inset primitive on the container inset scale. */
|
|
247
|
+
.bw-inset {
|
|
248
|
+
padding: var(--bw-size-inset-md);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.bw-inset--size-xs {
|
|
252
|
+
padding: var(--bw-size-inset-xs);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.bw-inset--size-sm {
|
|
256
|
+
padding: var(--bw-size-inset-sm);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.bw-inset--size-md {
|
|
260
|
+
padding: var(--bw-size-inset-md);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.bw-inset--size-lg {
|
|
264
|
+
padding: var(--bw-size-inset-lg);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.bw-inset--size-xl {
|
|
268
|
+
padding: var(--bw-size-inset-xl);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/* British spelling is canonical (COMPONENT-LADDER section 5); bw-center is
|
|
272
|
+
* a retained alias so existing markup keeps working. */
|
|
44
273
|
.bw-centre,
|
|
45
274
|
.bw-center {
|
|
46
275
|
margin-inline: auto;
|
|
47
276
|
max-inline-size: var(--bw-size-max-width-content, 72rem);
|
|
48
277
|
}
|
|
49
278
|
|
|
279
|
+
/* Page gutter is density-owned (SIZE-COVERAGE): tracks
|
|
280
|
+
* --bw-density-page-gutter-inline at every data-density. */
|
|
50
281
|
.bw-container {
|
|
51
|
-
width: min(
|
|
282
|
+
width: min(
|
|
283
|
+
100% - 2 * var(--bw-density-page-gutter-inline),
|
|
284
|
+
var(--bw-size-max-width-content, 72rem)
|
|
285
|
+
);
|
|
52
286
|
margin-inline: auto;
|
|
53
287
|
}
|
|
54
288
|
|
|
289
|
+
/* Screen-reader-only text (F01). Standard clip pattern; the px token keeps
|
|
290
|
+
* the rule out of the literal dimension ban. */
|
|
291
|
+
.bw-visually-hidden {
|
|
292
|
+
position: absolute;
|
|
293
|
+
inline-size: var(--bw-space-px);
|
|
294
|
+
block-size: var(--bw-space-px);
|
|
295
|
+
margin: calc(var(--bw-space-px) * -1);
|
|
296
|
+
padding: 0;
|
|
297
|
+
overflow: hidden;
|
|
298
|
+
clip-path: inset(50%);
|
|
299
|
+
white-space: nowrap;
|
|
300
|
+
border: 0;
|
|
301
|
+
}
|
|
302
|
+
|
|
55
303
|
.bw-divider,
|
|
56
304
|
.bw-separator {
|
|
57
305
|
border: 0;
|
package/src/reset.css
CHANGED
package/src/wave-b.css
CHANGED
|
@@ -18,37 +18,8 @@
|
|
|
18
18
|
line-height: 1.2;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.
|
|
22
|
-
|
|
23
|
-
padding: var(--bw-space-1);
|
|
24
|
-
gap: var(--bw-space-1);
|
|
25
|
-
border-radius: var(--bw-radius-md);
|
|
26
|
-
border: var(--bw-size-border-hairline, 1px) solid var(--bw-color-border);
|
|
27
|
-
background: var(--bw-color-surface);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.bw-segmented__item {
|
|
31
|
-
appearance: none;
|
|
32
|
-
border: 0;
|
|
33
|
-
background: transparent;
|
|
34
|
-
color: var(--bw-color-fg-muted);
|
|
35
|
-
padding: var(--bw-space-2) var(--bw-space-3);
|
|
36
|
-
border-radius: calc(var(--bw-radius-md) - 2px);
|
|
37
|
-
font: inherit;
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.bw-segmented__item[aria-pressed="true"],
|
|
42
|
-
.bw-segmented__item[data-bw-active] {
|
|
43
|
-
background: var(--bw-color-surface-raised);
|
|
44
|
-
color: var(--bw-color-fg);
|
|
45
|
-
box-shadow: var(--bw-elevation-1, none);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.bw-segmented__item:focus-visible {
|
|
49
|
-
outline: var(--bw-focus-ring-width, 2px) solid var(--bw-color-focus-ring, var(--bw-color-accent));
|
|
50
|
-
outline-offset: 1px;
|
|
51
|
-
}
|
|
21
|
+
/* Segmented control raised into layers/components.css (docs/components/segmented.md).
|
|
22
|
+
* The wave-b stub is retired so the pressed grammar cannot diverge. */
|
|
52
23
|
|
|
53
24
|
.bw-tags {
|
|
54
25
|
display: flex;
|
|
@@ -181,9 +152,10 @@
|
|
|
181
152
|
background: var(--bw-state-hover-overlay, color-mix(in srgb, var(--bw-color-fg) 8%, transparent));
|
|
182
153
|
}
|
|
183
154
|
|
|
184
|
-
.bw-calendar__day[aria-selected="true"]
|
|
155
|
+
.bw-calendar__day[aria-selected="true"],
|
|
156
|
+
.bw-calendar__day[aria-pressed="true"] {
|
|
185
157
|
background: var(--bw-color-accent);
|
|
186
|
-
color: var(--bw-color-accent
|
|
158
|
+
color: var(--bw-color-fg-on-accent);
|
|
187
159
|
}
|
|
188
160
|
|
|
189
161
|
.bw-calendar__day[data-bw-in-range] {
|
|
@@ -329,15 +301,8 @@
|
|
|
329
301
|
color: var(--bw-color-fg-muted);
|
|
330
302
|
}
|
|
331
303
|
|
|
332
|
-
.bw-field__hint
|
|
333
|
-
|
|
334
|
-
color: var(--bw-color-fg-muted);
|
|
335
|
-
font-size: var(--bw-text-body-sm-size);
|
|
336
|
-
}
|
|
304
|
+
/* .bw-field__hint is an alias of .bw-field__help; both paint from
|
|
305
|
+
* layers/components.css (Field chrome R02). Do not restyle here. */
|
|
337
306
|
|
|
338
|
-
.bw-sheet
|
|
339
|
-
|
|
340
|
-
}
|
|
341
|
-
.bw-sheet.bw-slide-over--end .bw-slide-over__panel {
|
|
342
|
-
max-inline-size: min(100vw, 24rem);
|
|
343
|
-
}
|
|
307
|
+
/* .bw-sheet (the mobile sheet mode of .bw-slide-over) is authored with the
|
|
308
|
+
* slide-over block in layers/components.css (docs/components/sheet.md). */
|
package/src/wave-e.css
CHANGED
|
@@ -8,31 +8,60 @@
|
|
|
8
8
|
min-block-size: 100vh;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
/* --- Sidebar rail (H04, SBR, R58) -----------------------------------------
|
|
12
|
+
* A narrow aside combining brand identity with an icon-labelled nav list,
|
|
13
|
+
* for use with the bw-app-shell two-column layout. Inner nav items must use
|
|
14
|
+
* bw-nav-rail__list--icons (H03) to get correct accessible label hiding via
|
|
15
|
+
* clip-path. Using bw-btn directly for nav items is not supported (SBR-003).
|
|
16
|
+
*
|
|
17
|
+
* Width follows density tokens (SBR-011); transition uses bw-ease-standard
|
|
18
|
+
* (SBR-012). Hides below --bw-breakpoint-md like bw-sidebar and bw-rail
|
|
19
|
+
* (SBR-032).
|
|
20
|
+
*/
|
|
11
21
|
.bw-sidebar-rail {
|
|
12
22
|
display: flex;
|
|
13
23
|
flex-direction: column;
|
|
14
24
|
gap: var(--bw-space-2);
|
|
15
25
|
padding: var(--bw-space-4);
|
|
16
|
-
border-inline-end: var(--bw-size-border-hairline
|
|
26
|
+
border-inline-end: var(--bw-size-border-hairline) solid var(--bw-color-border);
|
|
17
27
|
background: var(--bw-color-surface);
|
|
18
|
-
min-inline-size:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
min-inline-size: 4.5rem;
|
|
28
|
+
min-inline-size: var(--bw-density-sidebar-width);
|
|
29
|
+
inline-size: var(--bw-density-sidebar-width);
|
|
30
|
+
transition:
|
|
31
|
+
inline-size var(--bw-duration-fast) var(--bw-ease-standard),
|
|
32
|
+
min-inline-size var(--bw-duration-fast) var(--bw-ease-standard);
|
|
24
33
|
}
|
|
25
34
|
|
|
26
|
-
.bw-sidebar
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
35
|
+
/* Presence attribute matches .bw-sidebar (empty or "true"). Cap width so
|
|
36
|
+
* content cannot keep the expanded min-size (SBR-011 / SBR-030). */
|
|
37
|
+
.bw-sidebar-rail[data-bw-collapsed] {
|
|
38
|
+
flex: 0 0 var(--bw-density-sidebar-width-collapsed);
|
|
39
|
+
min-inline-size: 0;
|
|
40
|
+
inline-size: var(--bw-density-sidebar-width-collapsed);
|
|
41
|
+
max-inline-size: var(--bw-density-sidebar-width-collapsed);
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
padding-inline: var(--bw-space-2);
|
|
30
44
|
}
|
|
31
45
|
|
|
46
|
+
/* The toggle button seats at the block-start of the rail. */
|
|
32
47
|
.bw-sidebar-rail__toggle {
|
|
33
48
|
align-self: flex-start;
|
|
34
49
|
}
|
|
35
50
|
|
|
51
|
+
/* Hide at mobile: the drawer (bw-drawer inside bw-topbar) takes over as the
|
|
52
|
+
* primary nav entry point. Same breakpoint as bw-sidebar and bw-rail. */
|
|
53
|
+
@media (width < --theme(--breakpoint-md)) { /* SBR-032: same breakpoint as bw-sidebar and bw-rail in shell.css */
|
|
54
|
+
.bw-sidebar-rail {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@media (prefers-reduced-motion: reduce) {
|
|
60
|
+
.bw-sidebar-rail {
|
|
61
|
+
transition: none;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
36
65
|
.bw-menubar {
|
|
37
66
|
display: flex;
|
|
38
67
|
flex-wrap: wrap;
|