@burdenoff/fe-libs 2026.1119.9 → 2026.1120.2
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/chrome/shell/SidebarProfileMenu.js +292 -286
- package/dist/shared/providers/AppShellProvider.d.ts +9 -0
- package/dist/shared/providers/AppShellProvider.js +183 -178
- package/dist/ui/empty-state-art-loader.d.ts +13 -0
- package/dist/ui/empty-state-art-loader.js +25 -0
- package/dist/ui/empty-state-art.d.ts +19 -0
- package/dist/ui/empty-state-art.js +530 -0
- package/dist/ui/empty-state-glass.d.ts +25 -0
- package/dist/ui/empty-state-glass.js +210 -0
- package/dist/ui/empty-state-legacy.d.ts +10 -0
- package/dist/ui/empty-state-legacy.js +29 -0
- package/dist/ui/empty-state-map.d.ts +31 -0
- package/dist/ui/empty-state-map.js +351 -0
- package/dist/ui/empty-state.d.ts +29 -1
- package/dist/ui/empty-state.js +33 -18
- package/dist/ui/glass-empty-states.d.ts +9 -0
- package/dist/ui/glass-empty-states.js +15 -0
- package/dist/ui/illustration.d.ts +20 -1
- package/dist/ui/illustration.js +43 -26
- package/dist/ui/index.d.ts +2 -1
- package/dist/ui.js +45 -44
- package/package.json +1 -1
- package/src/shared/tokens/empty-states.css +605 -0
- package/src/shared/tokens/tokens.css +5 -0
|
@@ -0,0 +1,605 @@
|
|
|
1
|
+
/* BOFF-15560: the glass empty states (`EmptyState` and `IllustratedEmptyState` under
|
|
2
|
+
* `AppShellConfig.glassEmptyStates`; FluidGrids).
|
|
3
|
+
*
|
|
4
|
+
* Inert unless the opt-in renders the markup: every selector below names
|
|
5
|
+
* [data-empty-state='glass'], which only the glass empty state carries
|
|
6
|
+
* (shared/utils/emptyStatesCss.test.ts fails on any rule that does not), so a product that
|
|
7
|
+
* does not opt in renders exactly as before.
|
|
8
|
+
*
|
|
9
|
+
* The art holds no colour. Everything here is read from the theme's tokens: the accent
|
|
10
|
+
* (--color-action-primary-bg), the accent as ink (--color-text-link), the text, canvas,
|
|
11
|
+
* surface and border tokens, and three glows. The FluidGrids palette brings its own glows
|
|
12
|
+
* (BOFF-15524); any other theme, and a person's own accent, derives them from the accent's hue
|
|
13
|
+
* (a brand may set --color-empty-state-glow-1..3 instead).
|
|
14
|
+
*
|
|
15
|
+
* One drawing, four renderings, picked here alone:
|
|
16
|
+
* glass the default: a frosted tile, soft orbs, iridescent fills (Light and Dark);
|
|
17
|
+
* opaque Reduce transparency, or the app's Glass setting at Off: opaque fills, no blur;
|
|
18
|
+
* solid High contrast: the accent ink as a solid outline on an opaque tile;
|
|
19
|
+
* system forced colours: the system's Canvas and CanvasText.
|
|
20
|
+
* Motion (a slow float, one shimmer when it appears) runs only without a reduced-motion
|
|
21
|
+
* preference, from the OS or the app (data-reduce-motion).
|
|
22
|
+
*
|
|
23
|
+
* Unlayered like tokens.css's other rules. */
|
|
24
|
+
|
|
25
|
+
/* ---------- The material: Light (Dark follows) ---------- */
|
|
26
|
+
[data-empty-state='glass'] {
|
|
27
|
+
--es-accent: var(--color-action-primary-bg);
|
|
28
|
+
--es-ink: var(--color-text-link);
|
|
29
|
+
--es-fg: var(--color-text-primary);
|
|
30
|
+
--es-canvas: var(--color-bg-canvas);
|
|
31
|
+
--es-surface: var(--color-bg-surface);
|
|
32
|
+
--es-elevated: var(--color-bg-elevated);
|
|
33
|
+
--es-border: var(--color-border-default);
|
|
34
|
+
--es-spec: var(--palette-white);
|
|
35
|
+
/* The glows: a brand's own, else from the accent's hue. Without relative colour syntax the
|
|
36
|
+
* accent's own hue, lighter and deeper (the @supports block below turns the hue). */
|
|
37
|
+
--es-hue-1: var(--es-accent);
|
|
38
|
+
--es-hue-2: color-mix(in oklab, var(--es-accent) 78%, var(--palette-black));
|
|
39
|
+
--es-hue-3: color-mix(in oklab, var(--es-accent) 55%, var(--palette-white));
|
|
40
|
+
--es-g1: var(--color-empty-state-glow-1, var(--es-hue-1));
|
|
41
|
+
--es-g2: var(--color-empty-state-glow-2, var(--es-hue-2));
|
|
42
|
+
--es-g3: var(--color-empty-state-glow-3, var(--es-hue-3));
|
|
43
|
+
/* Light: softer glows, darker strokes. */
|
|
44
|
+
--es-line: color-mix(in oklab, var(--es-ink) 82%, var(--es-fg));
|
|
45
|
+
--es-glyph: color-mix(in oklab, var(--es-ink) 88%, var(--es-fg));
|
|
46
|
+
--es-frost-a: color-mix(in srgb, var(--palette-white) 96%, transparent);
|
|
47
|
+
--es-frost-b: color-mix(in srgb, var(--palette-white) 60%, transparent);
|
|
48
|
+
--es-a1: 0.74;
|
|
49
|
+
--es-a2: 0.58;
|
|
50
|
+
--es-a3: 0.42;
|
|
51
|
+
--es-b1: 0.5;
|
|
52
|
+
--es-b2: 0.24;
|
|
53
|
+
--es-c1: 0.7;
|
|
54
|
+
--es-c2: 0.44;
|
|
55
|
+
--es-rim-a: 0.95;
|
|
56
|
+
--es-rim-b: 0.28;
|
|
57
|
+
--es-rim-c: var(--es-accent);
|
|
58
|
+
--es-rim-co: 0.7;
|
|
59
|
+
--es-h-o: 0.85;
|
|
60
|
+
--es-hl-o: 0.9;
|
|
61
|
+
--es-dot: color-mix(in oklab, var(--es-g3) 70%, var(--es-accent));
|
|
62
|
+
--es-orb-o: 0.55;
|
|
63
|
+
--es-orb1: color-mix(in oklab, var(--es-g1) 55%, var(--es-canvas));
|
|
64
|
+
--es-orb2: color-mix(in oklab, var(--es-g2) 50%, var(--es-canvas));
|
|
65
|
+
--es-orb3: color-mix(in oklab, var(--es-g3) 45%, var(--es-canvas));
|
|
66
|
+
--es-tile-a: color-mix(in srgb, var(--palette-white) 90%, transparent);
|
|
67
|
+
--es-tile-b: color-mix(in srgb, var(--palette-white) 50%, transparent);
|
|
68
|
+
--es-tile-bd: color-mix(in oklab, var(--es-accent) 16%, transparent);
|
|
69
|
+
--es-tile-hl: color-mix(in srgb, var(--palette-white) 95%, transparent);
|
|
70
|
+
--es-tile-sh: color-mix(in oklab, var(--es-accent) 30%, transparent);
|
|
71
|
+
--es-shine: color-mix(in srgb, var(--palette-white) 16%, transparent);
|
|
72
|
+
--es-shadow-o: 0.35;
|
|
73
|
+
--es-glyph-body-o: 0.22;
|
|
74
|
+
--es-glyph-spec-o: 0.9;
|
|
75
|
+
/* The tile's blur follows the Glass setting: 10px at the default 16px. */
|
|
76
|
+
--es-blur: calc(var(--blur-glass, 16px) * 0.625);
|
|
77
|
+
/* How much colour the opaque fills keep. */
|
|
78
|
+
--es-op-a: 46%;
|
|
79
|
+
--es-op-b: 30%;
|
|
80
|
+
--es-op-c: 52%;
|
|
81
|
+
--es-op-f: 8%;
|
|
82
|
+
--es-art-size: 176px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Dark: luminous glass on a dark page. */
|
|
86
|
+
.dark [data-empty-state='glass'] {
|
|
87
|
+
--es-hue-1: color-mix(in oklab, var(--es-accent) 75%, var(--palette-white));
|
|
88
|
+
--es-hue-2: color-mix(in oklab, var(--es-accent) 85%, var(--palette-white));
|
|
89
|
+
--es-hue-3: color-mix(in oklab, var(--es-accent) 45%, var(--palette-white));
|
|
90
|
+
--es-line: color-mix(in srgb, var(--palette-white) 92%, transparent);
|
|
91
|
+
--es-frost-a: color-mix(in srgb, var(--palette-white) 50%, transparent);
|
|
92
|
+
--es-frost-b: color-mix(in srgb, var(--palette-white) 8%, transparent);
|
|
93
|
+
--es-a1: 0.95;
|
|
94
|
+
--es-a2: 0.72;
|
|
95
|
+
--es-a3: 0.5;
|
|
96
|
+
--es-b1: 0.78;
|
|
97
|
+
--es-b2: 0.32;
|
|
98
|
+
--es-c1: 0.92;
|
|
99
|
+
--es-c2: 0.6;
|
|
100
|
+
--es-rim-b: 0.12;
|
|
101
|
+
--es-rim-c: var(--es-g1);
|
|
102
|
+
--es-rim-co: 0.85;
|
|
103
|
+
--es-h-o: 0.55;
|
|
104
|
+
--es-hl-o: 0.7;
|
|
105
|
+
--es-dot: var(--es-g3);
|
|
106
|
+
--es-orb-o: 0.62;
|
|
107
|
+
--es-orb1: var(--es-g1);
|
|
108
|
+
--es-orb2: var(--es-g2);
|
|
109
|
+
--es-orb3: var(--es-g3);
|
|
110
|
+
--es-tile-a: color-mix(in srgb, var(--palette-white) 11%, transparent);
|
|
111
|
+
--es-tile-b: color-mix(in srgb, var(--palette-white) 2.5%, transparent);
|
|
112
|
+
--es-tile-bd: color-mix(in srgb, var(--palette-white) 13%, transparent);
|
|
113
|
+
--es-tile-hl: color-mix(in srgb, var(--palette-white) 22%, transparent);
|
|
114
|
+
--es-tile-sh: color-mix(in oklab, var(--es-accent) 50%, transparent);
|
|
115
|
+
--es-shadow-o: 0.55;
|
|
116
|
+
--es-glyph-body-o: 0.32;
|
|
117
|
+
--es-glyph-spec-o: 0.75;
|
|
118
|
+
--es-op-a: 70%;
|
|
119
|
+
--es-op-b: 44%;
|
|
120
|
+
--es-op-c: 68%;
|
|
121
|
+
--es-op-f: 14%;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* The glows from the accent's hue: the second turned 28° and the third 85–90° towards cool,
|
|
125
|
+
* as the FluidGrids palette's indigo and cyan sit from its purple. */
|
|
126
|
+
@supports (color: oklch(from red l c h)) {
|
|
127
|
+
[data-empty-state='glass'] {
|
|
128
|
+
--es-hue-2: oklch(from var(--es-accent) calc(l - 0.05) calc(c * 0.9) calc(h - 28));
|
|
129
|
+
--es-hue-3: oklch(from var(--es-accent) calc(l - 0.04) calc(c * 0.45) calc(h - 85));
|
|
130
|
+
}
|
|
131
|
+
.dark [data-empty-state='glass'] {
|
|
132
|
+
--es-hue-1: oklch(from var(--es-accent) calc(l + 0.09) calc(c * 0.75) h);
|
|
133
|
+
--es-hue-2: oklch(from var(--es-accent) calc(l + 0.05) calc(c * 0.65) calc(h - 28));
|
|
134
|
+
--es-hue-3: oklch(from var(--es-accent) calc(l + 0.16) calc(c * 0.55) calc(h - 90));
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* The FluidGrids palette's own glows (BOFF-15524), unless the person chose their own accent. */
|
|
139
|
+
:root[data-theme='fluidgrids']:not([data-accent='custom']) [data-empty-state='glass'] {
|
|
140
|
+
--es-g1: var(--color-accent-glow);
|
|
141
|
+
--es-g2: var(--color-accent-glow-alt);
|
|
142
|
+
--es-g3: var(--color-accent-glow-3);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* ---------- Sizes: the picture's box (always reserved, so nothing moves when the art loads) ---------- */
|
|
146
|
+
[data-empty-state='glass'][data-size='panel'] {
|
|
147
|
+
--es-art-size: 120px;
|
|
148
|
+
}
|
|
149
|
+
[data-empty-state='glass'][data-size='table'] {
|
|
150
|
+
--es-art-size: 92px;
|
|
151
|
+
}
|
|
152
|
+
[data-empty-state='glass'][data-size='inline'] {
|
|
153
|
+
--es-art-size: 44px;
|
|
154
|
+
}
|
|
155
|
+
[data-empty-state='glass'][data-size='menu'] {
|
|
156
|
+
--es-art-size: 34px;
|
|
157
|
+
}
|
|
158
|
+
@media (max-width: 480px) {
|
|
159
|
+
[data-empty-state='glass'][data-size='page'] {
|
|
160
|
+
--es-art-size: 148px;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
[data-empty-state='glass'] .es-art {
|
|
165
|
+
position: relative;
|
|
166
|
+
display: block;
|
|
167
|
+
flex: none;
|
|
168
|
+
width: min(var(--es-art-size), 100%);
|
|
169
|
+
aspect-ratio: 1;
|
|
170
|
+
isolation: isolate;
|
|
171
|
+
pointer-events: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* ---------- The spot: orbs, a frosted tile, the drawing or the glass icon ---------- */
|
|
175
|
+
[data-empty-state='glass'] .es-orb {
|
|
176
|
+
position: absolute;
|
|
177
|
+
z-index: -1;
|
|
178
|
+
border-radius: 50%;
|
|
179
|
+
opacity: var(--es-orb-o);
|
|
180
|
+
}
|
|
181
|
+
[data-empty-state='glass'] .es-o1 {
|
|
182
|
+
inset-inline-start: -10%;
|
|
183
|
+
top: 2%;
|
|
184
|
+
width: 66%;
|
|
185
|
+
height: 66%;
|
|
186
|
+
background: radial-gradient(closest-side, var(--es-orb1), transparent);
|
|
187
|
+
}
|
|
188
|
+
[data-empty-state='glass'] .es-o2 {
|
|
189
|
+
inset-inline-end: -10%;
|
|
190
|
+
bottom: -2%;
|
|
191
|
+
width: 62%;
|
|
192
|
+
height: 62%;
|
|
193
|
+
background: radial-gradient(closest-side, var(--es-orb2), transparent);
|
|
194
|
+
}
|
|
195
|
+
[data-empty-state='glass'] .es-o3 {
|
|
196
|
+
inset-inline-end: 2%;
|
|
197
|
+
top: -8%;
|
|
198
|
+
width: 44%;
|
|
199
|
+
height: 44%;
|
|
200
|
+
background: radial-gradient(closest-side, var(--es-orb3), transparent);
|
|
201
|
+
opacity: calc(var(--es-orb-o) * 0.85);
|
|
202
|
+
}
|
|
203
|
+
[data-empty-state='glass'] .es-tile {
|
|
204
|
+
position: absolute;
|
|
205
|
+
inset: 17% 17% 14% 17%;
|
|
206
|
+
overflow: hidden;
|
|
207
|
+
border-radius: 27%;
|
|
208
|
+
background: linear-gradient(160deg, var(--es-tile-a), var(--es-tile-b));
|
|
209
|
+
-webkit-backdrop-filter: blur(var(--es-blur)) saturate(1.35);
|
|
210
|
+
backdrop-filter: blur(var(--es-blur)) saturate(1.35);
|
|
211
|
+
box-shadow:
|
|
212
|
+
inset 0 1px 0 var(--es-tile-hl),
|
|
213
|
+
inset 0 0 0 1px var(--es-tile-bd),
|
|
214
|
+
0 18px 36px -16px var(--es-tile-sh);
|
|
215
|
+
}
|
|
216
|
+
[data-empty-state='glass'] .es-tile::after {
|
|
217
|
+
content: '';
|
|
218
|
+
position: absolute;
|
|
219
|
+
inset: -40% -60%;
|
|
220
|
+
background: linear-gradient(105deg, transparent 42%, var(--es-shine) 50%, transparent 58%);
|
|
221
|
+
opacity: 0;
|
|
222
|
+
transform: translateX(-60%);
|
|
223
|
+
}
|
|
224
|
+
[data-empty-state='glass'] .es-art[data-state='icon'] .es-tile {
|
|
225
|
+
inset: 12%;
|
|
226
|
+
border-radius: 30%;
|
|
227
|
+
}
|
|
228
|
+
[data-empty-state='glass']:is([data-size='inline'], [data-size='menu']) .es-tile {
|
|
229
|
+
inset: 4%;
|
|
230
|
+
}
|
|
231
|
+
[data-empty-state='glass']:is([data-size='inline'], [data-size='menu']) .es-orb {
|
|
232
|
+
opacity: calc(var(--es-orb-o) * 0.7);
|
|
233
|
+
}
|
|
234
|
+
[data-empty-state='glass'] .es-svg {
|
|
235
|
+
position: absolute;
|
|
236
|
+
inset: 0;
|
|
237
|
+
width: 100%;
|
|
238
|
+
height: 100%;
|
|
239
|
+
overflow: visible;
|
|
240
|
+
}
|
|
241
|
+
[data-empty-state='glass'] .es-fig {
|
|
242
|
+
transform-box: view-box;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* Paint servers: each instance's own gradients, coloured here. */
|
|
246
|
+
[data-empty-state='glass'] .es-q1 {
|
|
247
|
+
stop-color: var(--es-g1);
|
|
248
|
+
stop-opacity: var(--es-a1);
|
|
249
|
+
}
|
|
250
|
+
[data-empty-state='glass'] .es-q2 {
|
|
251
|
+
stop-color: var(--es-accent);
|
|
252
|
+
stop-opacity: var(--es-a2);
|
|
253
|
+
}
|
|
254
|
+
[data-empty-state='glass'] .es-q3 {
|
|
255
|
+
stop-color: var(--es-g3);
|
|
256
|
+
stop-opacity: var(--es-a3);
|
|
257
|
+
}
|
|
258
|
+
[data-empty-state='glass'] .es-q4 {
|
|
259
|
+
stop-color: var(--es-g2);
|
|
260
|
+
stop-opacity: var(--es-b1);
|
|
261
|
+
}
|
|
262
|
+
[data-empty-state='glass'] .es-q5 {
|
|
263
|
+
stop-color: var(--es-g3);
|
|
264
|
+
stop-opacity: var(--es-b2);
|
|
265
|
+
}
|
|
266
|
+
[data-empty-state='glass'] .es-q6 {
|
|
267
|
+
stop-color: var(--es-g3);
|
|
268
|
+
stop-opacity: var(--es-c1);
|
|
269
|
+
}
|
|
270
|
+
[data-empty-state='glass'] .es-q7 {
|
|
271
|
+
stop-color: var(--es-accent);
|
|
272
|
+
stop-opacity: var(--es-c2);
|
|
273
|
+
}
|
|
274
|
+
[data-empty-state='glass'] .es-q8 {
|
|
275
|
+
stop-color: var(--es-frost-a);
|
|
276
|
+
}
|
|
277
|
+
[data-empty-state='glass'] .es-q9 {
|
|
278
|
+
stop-color: var(--es-frost-b);
|
|
279
|
+
}
|
|
280
|
+
[data-empty-state='glass'] .es-r1 {
|
|
281
|
+
stop-color: var(--es-spec);
|
|
282
|
+
stop-opacity: var(--es-rim-a);
|
|
283
|
+
}
|
|
284
|
+
[data-empty-state='glass'] .es-r2 {
|
|
285
|
+
stop-color: var(--es-spec);
|
|
286
|
+
stop-opacity: var(--es-rim-b);
|
|
287
|
+
}
|
|
288
|
+
[data-empty-state='glass'] .es-r3 {
|
|
289
|
+
stop-color: var(--es-rim-c);
|
|
290
|
+
stop-opacity: var(--es-rim-co);
|
|
291
|
+
}
|
|
292
|
+
[data-empty-state='glass'] .es-s1 {
|
|
293
|
+
stop-color: var(--es-accent);
|
|
294
|
+
stop-opacity: var(--es-shadow-o);
|
|
295
|
+
}
|
|
296
|
+
[data-empty-state='glass'] .es-s2 {
|
|
297
|
+
stop-color: var(--es-accent);
|
|
298
|
+
stop-opacity: 0;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/* Roles (the glass fills and strokes come from each shape's own paint servers). */
|
|
302
|
+
[data-empty-state='glass'] :is(.es-a, .es-b, .es-c, .es-f) {
|
|
303
|
+
stroke-width: 1;
|
|
304
|
+
}
|
|
305
|
+
[data-empty-state='glass'] .es-i {
|
|
306
|
+
opacity: 0.6;
|
|
307
|
+
}
|
|
308
|
+
[data-empty-state='glass'] :is(.es-l, .es-ld) {
|
|
309
|
+
fill: none;
|
|
310
|
+
stroke: var(--es-line);
|
|
311
|
+
stroke-width: 3;
|
|
312
|
+
stroke-linecap: round;
|
|
313
|
+
stroke-linejoin: round;
|
|
314
|
+
}
|
|
315
|
+
[data-empty-state='glass'] .es-ld {
|
|
316
|
+
stroke-dasharray: 0.1 6;
|
|
317
|
+
stroke-width: 2.6;
|
|
318
|
+
opacity: 0.8;
|
|
319
|
+
}
|
|
320
|
+
[data-empty-state='glass'] .es-k {
|
|
321
|
+
fill: var(--es-line);
|
|
322
|
+
}
|
|
323
|
+
[data-empty-state='glass'] .es-h {
|
|
324
|
+
fill: var(--es-spec);
|
|
325
|
+
opacity: var(--es-h-o);
|
|
326
|
+
}
|
|
327
|
+
[data-empty-state='glass'] .es-hl {
|
|
328
|
+
fill: none;
|
|
329
|
+
stroke: var(--es-spec);
|
|
330
|
+
stroke-width: 1.8;
|
|
331
|
+
stroke-linecap: round;
|
|
332
|
+
opacity: var(--es-hl-o);
|
|
333
|
+
}
|
|
334
|
+
[data-empty-state='glass'] .es-x {
|
|
335
|
+
fill: var(--es-dot);
|
|
336
|
+
}
|
|
337
|
+
[data-empty-state='glass'] :is(.es-ga, .es-gc) {
|
|
338
|
+
fill: none;
|
|
339
|
+
stroke-linecap: round;
|
|
340
|
+
stroke-linejoin: round;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* The glass icon: the page's own icon three times (a soft body, the stroke, a specular edge). */
|
|
344
|
+
[data-empty-state='glass'] .es-gi {
|
|
345
|
+
position: absolute;
|
|
346
|
+
inset: 0;
|
|
347
|
+
}
|
|
348
|
+
[data-empty-state='glass'] .es-gi-defs {
|
|
349
|
+
position: absolute;
|
|
350
|
+
width: 0;
|
|
351
|
+
height: 0;
|
|
352
|
+
overflow: hidden;
|
|
353
|
+
}
|
|
354
|
+
[data-empty-state='glass'] .es-gl {
|
|
355
|
+
position: absolute;
|
|
356
|
+
inset: 16.667%;
|
|
357
|
+
display: flex;
|
|
358
|
+
align-items: center;
|
|
359
|
+
justify-content: center;
|
|
360
|
+
color: var(--es-line);
|
|
361
|
+
}
|
|
362
|
+
[data-empty-state='glass'] .es-art[data-state='loading'] .es-gl {
|
|
363
|
+
inset: 33%;
|
|
364
|
+
}
|
|
365
|
+
[data-empty-state='glass'] .es-gl > :is(svg, img) {
|
|
366
|
+
display: block;
|
|
367
|
+
width: 100%;
|
|
368
|
+
height: 100%;
|
|
369
|
+
overflow: visible;
|
|
370
|
+
}
|
|
371
|
+
/* The glass treatment reaches only the copies of an icon component (class es-gl-svg): an
|
|
372
|
+
* <svg> element, an image or text the page passed is drawn once, in its own paint. */
|
|
373
|
+
[data-empty-state='glass'] .es-gl-body {
|
|
374
|
+
opacity: var(--es-glyph-body-o);
|
|
375
|
+
}
|
|
376
|
+
[data-empty-state='glass'] .es-gl-body > .es-gl-svg {
|
|
377
|
+
stroke-width: 5;
|
|
378
|
+
}
|
|
379
|
+
[data-empty-state='glass'] .es-gl-main > .es-gl-svg {
|
|
380
|
+
stroke-width: 2.1;
|
|
381
|
+
}
|
|
382
|
+
/* Light draws the glyph in ink. :where() keeps it below the opaque and solid rules. */
|
|
383
|
+
@media (forced-colors: none) {
|
|
384
|
+
[data-empty-state='glass']:where(:not(.dark *)) .es-gl-main > .es-gl-svg {
|
|
385
|
+
stroke: var(--es-glyph);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
[data-empty-state='glass'] .es-gl-spec {
|
|
389
|
+
opacity: var(--es-glyph-spec-o);
|
|
390
|
+
transform: translate(-1.875%, -1.875%);
|
|
391
|
+
}
|
|
392
|
+
[data-empty-state='glass'] .es-gl-spec > .es-gl-svg {
|
|
393
|
+
stroke: var(--es-spec);
|
|
394
|
+
stroke-width: 0.75;
|
|
395
|
+
}
|
|
396
|
+
[data-empty-state='glass'] :is(.es-gl-body, .es-gl-spec) > :not(.es-gl-svg) {
|
|
397
|
+
display: none;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/* ---------- Opaque: Reduce transparency (no blur, no see-through glass) ----------
|
|
401
|
+
* Lines and dots keep the theme's line colour: in Light it is the dark ink, which reads on the
|
|
402
|
+
* opaque fills and on the tile alike (the surface colour vanished on the frosted panels). */
|
|
403
|
+
@media (prefers-reduced-transparency: reduce) and (forced-colors: none) {
|
|
404
|
+
[data-empty-state='glass'] :is(.es-orb, .es-s, .es-gl-body),
|
|
405
|
+
[data-empty-state='glass'] .es-tile::after {
|
|
406
|
+
display: none;
|
|
407
|
+
}
|
|
408
|
+
[data-empty-state='glass'] .es-tile {
|
|
409
|
+
-webkit-backdrop-filter: none;
|
|
410
|
+
backdrop-filter: none;
|
|
411
|
+
background: var(--es-elevated);
|
|
412
|
+
box-shadow: inset 0 0 0 1px var(--es-border);
|
|
413
|
+
}
|
|
414
|
+
[data-empty-state='glass'] .es-a {
|
|
415
|
+
fill: color-mix(in oklab, var(--es-accent) var(--es-op-a), var(--es-surface));
|
|
416
|
+
}
|
|
417
|
+
[data-empty-state='glass'] .es-b {
|
|
418
|
+
fill: color-mix(in oklab, var(--es-g2) var(--es-op-b), var(--es-surface));
|
|
419
|
+
}
|
|
420
|
+
[data-empty-state='glass'] .es-c {
|
|
421
|
+
fill: color-mix(in oklab, var(--es-g3) var(--es-op-c), var(--es-surface));
|
|
422
|
+
}
|
|
423
|
+
[data-empty-state='glass'] .es-f {
|
|
424
|
+
fill: color-mix(in oklab, var(--es-fg) var(--es-op-f), var(--es-surface));
|
|
425
|
+
}
|
|
426
|
+
[data-empty-state='glass'] .es-i {
|
|
427
|
+
fill: color-mix(in oklab, var(--es-g2) 40%, var(--es-surface));
|
|
428
|
+
opacity: 1;
|
|
429
|
+
}
|
|
430
|
+
[data-empty-state='glass'] :is(.es-a, .es-b, .es-c, .es-f) {
|
|
431
|
+
stroke: color-mix(in oklab, var(--es-accent) 55%, var(--es-fg));
|
|
432
|
+
stroke-width: 1.2;
|
|
433
|
+
}
|
|
434
|
+
[data-empty-state='glass'] .es-ga {
|
|
435
|
+
stroke: color-mix(in oklab, var(--es-accent) 60%, var(--es-surface));
|
|
436
|
+
}
|
|
437
|
+
[data-empty-state='glass'] .es-gc {
|
|
438
|
+
stroke: color-mix(in oklab, var(--es-g3) 60%, var(--es-surface));
|
|
439
|
+
}
|
|
440
|
+
[data-empty-state='glass'] .es-h {
|
|
441
|
+
opacity: 0.5;
|
|
442
|
+
}
|
|
443
|
+
[data-empty-state='glass'] .es-gl-main > .es-gl-svg {
|
|
444
|
+
stroke: var(--es-ink);
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/* The same, for the app's Glass setting at Off. */
|
|
449
|
+
@media (forced-colors: none) {
|
|
450
|
+
:root[data-glass='off'] [data-empty-state='glass'] :is(.es-orb, .es-s, .es-gl-body),
|
|
451
|
+
:root[data-glass='off'] [data-empty-state='glass'] .es-tile::after {
|
|
452
|
+
display: none;
|
|
453
|
+
}
|
|
454
|
+
:root[data-glass='off'] [data-empty-state='glass'] .es-tile {
|
|
455
|
+
-webkit-backdrop-filter: none;
|
|
456
|
+
backdrop-filter: none;
|
|
457
|
+
background: var(--es-elevated);
|
|
458
|
+
box-shadow: inset 0 0 0 1px var(--es-border);
|
|
459
|
+
}
|
|
460
|
+
:root[data-glass='off'] [data-empty-state='glass'] .es-a {
|
|
461
|
+
fill: color-mix(in oklab, var(--es-accent) var(--es-op-a), var(--es-surface));
|
|
462
|
+
}
|
|
463
|
+
:root[data-glass='off'] [data-empty-state='glass'] .es-b {
|
|
464
|
+
fill: color-mix(in oklab, var(--es-g2) var(--es-op-b), var(--es-surface));
|
|
465
|
+
}
|
|
466
|
+
:root[data-glass='off'] [data-empty-state='glass'] .es-c {
|
|
467
|
+
fill: color-mix(in oklab, var(--es-g3) var(--es-op-c), var(--es-surface));
|
|
468
|
+
}
|
|
469
|
+
:root[data-glass='off'] [data-empty-state='glass'] .es-f {
|
|
470
|
+
fill: color-mix(in oklab, var(--es-fg) var(--es-op-f), var(--es-surface));
|
|
471
|
+
}
|
|
472
|
+
:root[data-glass='off'] [data-empty-state='glass'] .es-i {
|
|
473
|
+
fill: color-mix(in oklab, var(--es-g2) 40%, var(--es-surface));
|
|
474
|
+
opacity: 1;
|
|
475
|
+
}
|
|
476
|
+
:root[data-glass='off'] [data-empty-state='glass'] :is(.es-a, .es-b, .es-c, .es-f) {
|
|
477
|
+
stroke: color-mix(in oklab, var(--es-accent) 55%, var(--es-fg));
|
|
478
|
+
stroke-width: 1.2;
|
|
479
|
+
}
|
|
480
|
+
:root[data-glass='off'] [data-empty-state='glass'] .es-ga {
|
|
481
|
+
stroke: color-mix(in oklab, var(--es-accent) 60%, var(--es-surface));
|
|
482
|
+
}
|
|
483
|
+
:root[data-glass='off'] [data-empty-state='glass'] .es-gc {
|
|
484
|
+
stroke: color-mix(in oklab, var(--es-g3) 60%, var(--es-surface));
|
|
485
|
+
}
|
|
486
|
+
:root[data-glass='off'] [data-empty-state='glass'] .es-h {
|
|
487
|
+
opacity: 0.5;
|
|
488
|
+
}
|
|
489
|
+
:root[data-glass='off'] [data-empty-state='glass'] .es-gl-main > .es-gl-svg {
|
|
490
|
+
stroke: var(--es-ink);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/* ---------- Solid: High contrast (no glass, no blur; the accent ink as an outline) ---------- */
|
|
495
|
+
@media (forced-colors: none) {
|
|
496
|
+
:root[data-theme='high-contrast']
|
|
497
|
+
[data-empty-state='glass']
|
|
498
|
+
:is(.es-orb, .es-s, .es-h, .es-hl, .es-i),
|
|
499
|
+
:root[data-theme='high-contrast'] [data-empty-state='glass'] :is(.es-gl-body, .es-gl-spec),
|
|
500
|
+
:root[data-theme='high-contrast'] [data-empty-state='glass'] .es-tile::after {
|
|
501
|
+
display: none;
|
|
502
|
+
}
|
|
503
|
+
:root[data-theme='high-contrast'] [data-empty-state='glass'] .es-tile {
|
|
504
|
+
-webkit-backdrop-filter: none;
|
|
505
|
+
backdrop-filter: none;
|
|
506
|
+
background: var(--es-surface);
|
|
507
|
+
box-shadow: inset 0 0 0 2px var(--es-ink);
|
|
508
|
+
}
|
|
509
|
+
:root[data-theme='high-contrast'] [data-empty-state='glass'] :is(.es-a, .es-b, .es-c, .es-f) {
|
|
510
|
+
fill: var(--es-surface);
|
|
511
|
+
stroke: var(--es-ink);
|
|
512
|
+
stroke-width: 2.4;
|
|
513
|
+
}
|
|
514
|
+
:root[data-theme='high-contrast'] [data-empty-state='glass'] :is(.es-l, .es-ld, .es-ga, .es-gc) {
|
|
515
|
+
stroke: var(--es-ink);
|
|
516
|
+
}
|
|
517
|
+
:root[data-theme='high-contrast'] [data-empty-state='glass'] :is(.es-k, .es-x) {
|
|
518
|
+
fill: var(--es-ink);
|
|
519
|
+
}
|
|
520
|
+
:root[data-theme='high-contrast'] [data-empty-state='glass'] .es-gl-main > .es-gl-svg {
|
|
521
|
+
stroke: var(--es-ink);
|
|
522
|
+
stroke-width: 2.2;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/* ---------- Forced colours: the system's own two ----------
|
|
527
|
+
* Every rule that would outrank these (Light's glyph ink, opaque, solid) sits in
|
|
528
|
+
* @media (forced-colors: none), so the system's colours always win here. */
|
|
529
|
+
@media (forced-colors: active) {
|
|
530
|
+
[data-empty-state='glass'] :is(.es-orb, .es-s, .es-h, .es-hl, .es-i, .es-gl-body, .es-gl-spec),
|
|
531
|
+
[data-empty-state='glass'] .es-tile::after {
|
|
532
|
+
display: none;
|
|
533
|
+
}
|
|
534
|
+
[data-empty-state='glass'] :is(.es-tile, .es-svg, .es-gl) {
|
|
535
|
+
forced-color-adjust: none;
|
|
536
|
+
}
|
|
537
|
+
[data-empty-state='glass'] .es-tile {
|
|
538
|
+
-webkit-backdrop-filter: none;
|
|
539
|
+
backdrop-filter: none;
|
|
540
|
+
background: Canvas;
|
|
541
|
+
box-shadow: inset 0 0 0 2px CanvasText;
|
|
542
|
+
}
|
|
543
|
+
[data-empty-state='glass'] :is(.es-a, .es-b, .es-c, .es-f) {
|
|
544
|
+
fill: Canvas;
|
|
545
|
+
stroke: CanvasText;
|
|
546
|
+
stroke-width: 2.4;
|
|
547
|
+
}
|
|
548
|
+
[data-empty-state='glass'] :is(.es-l, .es-ld, .es-ga, .es-gc) {
|
|
549
|
+
stroke: CanvasText;
|
|
550
|
+
}
|
|
551
|
+
[data-empty-state='glass'] :is(.es-k, .es-x) {
|
|
552
|
+
fill: CanvasText;
|
|
553
|
+
}
|
|
554
|
+
[data-empty-state='glass'] .es-gl {
|
|
555
|
+
color: CanvasText;
|
|
556
|
+
}
|
|
557
|
+
[data-empty-state='glass'] .es-gl-main > .es-gl-svg {
|
|
558
|
+
stroke: CanvasText;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
/* ---------- Motion: a slow float and one shimmer; still under Reduce motion (OS or app) ---------- */
|
|
563
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
564
|
+
:root:not([data-reduce-motion])
|
|
565
|
+
[data-empty-state='glass']:is([data-size='page'], [data-size='panel'], [data-size='table'])
|
|
566
|
+
:is(.es-fig, .es-gi) {
|
|
567
|
+
animation: boff-es-float 6.5s ease-in-out infinite;
|
|
568
|
+
}
|
|
569
|
+
:root:not([data-reduce-motion]) [data-empty-state='glass'] .es-tile::after {
|
|
570
|
+
animation: boff-es-shine 1.6s ease-in-out 0.35s 1 both;
|
|
571
|
+
}
|
|
572
|
+
:root:not([data-reduce-motion]) [data-empty-state='glass'] .es-art[data-state='art'] .es-svg {
|
|
573
|
+
animation: boff-es-in 0.24s ease-out both;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
@keyframes boff-es-float {
|
|
577
|
+
0%,
|
|
578
|
+
100% {
|
|
579
|
+
transform: translateY(1.25%);
|
|
580
|
+
}
|
|
581
|
+
50% {
|
|
582
|
+
transform: translateY(-2.5%);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
@keyframes boff-es-shine {
|
|
586
|
+
0% {
|
|
587
|
+
opacity: 0;
|
|
588
|
+
transform: translateX(-60%);
|
|
589
|
+
}
|
|
590
|
+
20% {
|
|
591
|
+
opacity: 1;
|
|
592
|
+
}
|
|
593
|
+
100% {
|
|
594
|
+
opacity: 0;
|
|
595
|
+
transform: translateX(60%);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
@keyframes boff-es-in {
|
|
599
|
+
from {
|
|
600
|
+
opacity: 0;
|
|
601
|
+
}
|
|
602
|
+
to {
|
|
603
|
+
opacity: 1;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
@@ -41,6 +41,11 @@
|
|
|
41
41
|
* (<html data-display-settings="responsive">); every selector in it starts with that attribute. */
|
|
42
42
|
@import './display-settings.css';
|
|
43
43
|
|
|
44
|
+
/* BOFF-15560 — the glass empty states. Inert unless EmptyState / IllustratedEmptyState render
|
|
45
|
+
* under the opt-in (AppShellConfig.glassEmptyStates); every selector in it names
|
|
46
|
+
* [data-empty-state='glass'], which only that markup carries. */
|
|
47
|
+
@import './empty-states.css';
|
|
48
|
+
|
|
44
49
|
/* Boff UI 2.0 — glass-intensity preference (data-glass on <html>) + OS
|
|
45
50
|
* reduced-transparency. Unlayered so these win over foundation/semantic/
|
|
46
51
|
* brands/themes deterministically. Set by the Theme Preferences customizer. */
|