@webority/theme 0.168.0 → 0.169.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.
Files changed (73) hide show
  1. package/README.md +12 -1
  2. package/dist/postcss/rtl-mirror.d.mts +10 -0
  3. package/dist/postcss/rtl-mirror.mjs +1 -0
  4. package/dist/purge-safelist.json +49 -1
  5. package/dist/webority-modes.css +1 -1
  6. package/dist/webority-theme.css +1 -1
  7. package/dist/webority-tokens.css +1 -1
  8. package/package.json +8 -4
  9. package/scss/_bootstrap-css.scss +1 -0
  10. package/scss/_bootstrap.generated.scss +1 -1
  11. package/scss/_components.scss +28 -7
  12. package/scss/_config.scss +22 -0
  13. package/scss/_marketing.scss +7 -0
  14. package/scss/_modes.scss +1 -0
  15. package/scss/_tokens-modes.generated.scss +1 -1
  16. package/scss/_tokens.generated.scss +2 -2
  17. package/scss/_wui-components.scss +4 -0
  18. package/scss/_wui-core.scss +2 -0
  19. package/scss/wui/_avatar-picker.scss +1 -1
  20. package/scss/wui/_calendar.scss +2 -2
  21. package/scss/wui/_card.scss +3 -3
  22. package/scss/wui/_cell.scss +1 -1
  23. package/scss/wui/_chart.scss +6 -5
  24. package/scss/wui/_choice.scss +56 -24
  25. package/scss/wui/_code-block.scss +2 -1
  26. package/scss/wui/_compare-table.scss +8 -5
  27. package/scss/wui/_consent-banner.scss +4 -1
  28. package/scss/wui/_controls.scss +66 -39
  29. package/scss/wui/_data.scss +58 -45
  30. package/scss/wui/_disclosure.scss +11 -5
  31. package/scss/wui/_display.scss +67 -39
  32. package/scss/wui/_drawer.scss +9 -3
  33. package/scss/wui/_due-date.scss +1 -1
  34. package/scss/wui/_empty-state.scss +1 -1
  35. package/scss/wui/_entry-grid.scss +23 -0
  36. package/scss/wui/_field-busy.scss +6 -0
  37. package/scss/wui/_file-viewer.scss +4 -4
  38. package/scss/wui/_flow.scss +26 -22
  39. package/scss/wui/_gantt.scss +498 -0
  40. package/scss/wui/_kanban.scss +1 -1
  41. package/scss/wui/_lightbox.scss +2 -2
  42. package/scss/wui/_markdown.scss +3 -3
  43. package/scss/wui/_media.scss +13 -13
  44. package/scss/wui/_menu-motion.scss +3 -0
  45. package/scss/wui/_metric-strip.scss +1 -1
  46. package/scss/wui/_modal-remote.scss +8 -1
  47. package/scss/wui/_native-overlay.scss +12 -0
  48. package/scss/wui/_navigation-menu.scss +4 -3
  49. package/scss/wui/_navigation.scss +28 -24
  50. package/scss/wui/_notification-center.scss +2 -2
  51. package/scss/wui/_onboarding-checklist.scss +3 -0
  52. package/scss/wui/_org-tree.scss +9 -6
  53. package/scss/wui/_overlays.scss +11 -7
  54. package/scss/wui/_pagination.scss +5 -1
  55. package/scss/wui/_query-builder.scss +91 -0
  56. package/scss/wui/_rating.scss +1 -1
  57. package/scss/wui/_record-pager.scss +1 -1
  58. package/scss/wui/_rich-text.scss +6 -6
  59. package/scss/wui/_select.scss +5 -5
  60. package/scss/wui/_shell-parts.scss +9 -8
  61. package/scss/wui/_shell.scss +34 -10
  62. package/scss/wui/_shortcuts.scss +5 -4
  63. package/scss/wui/_sortable.scss +2 -1
  64. package/scss/wui/_split-view.scss +11 -9
  65. package/scss/wui/_toolbar.scss +2 -2
  66. package/scss/wui/_transfer-list.scss +24 -0
  67. package/scss/wui/_tree-picker.scss +219 -0
  68. package/scss/wui/_typography.scss +5 -4
  69. package/scss/wui/_utilities.scss +38 -18
  70. package/scss/wui/_whats-new.scss +7 -1
  71. package/scss/wui/_workspace.scss +3 -3
  72. package/scss/wui/modes/_gantt.scss +44 -0
  73. package/scss/wui/tour/_advance.scss +12 -0
@@ -0,0 +1,498 @@
1
+ @use "../config" as *;
2
+
3
+ // ── Gantt ──
4
+ // AppGantt / <app-gantt> over <wui-gantt>. The element draws the plan once, inside .wui-gantt-lane,
5
+ // and writes the positions inline; this partial gives the drawing its colours and its paint order.
6
+ // The element draws one of two layouts: data-layout="table" (a task table beside the plan) or "lanes".
7
+ //
8
+ // Paint order is the element's DOM order plus these z-indexes: the Today line (0) sits under every bar,
9
+ // label, milestone and arrow (1), the sticky head (4), the Today flag (5) and the sticky task table (5)
10
+ // sit above them. The table is above the head because the plan's head scrolls under it. The lane is
11
+ // its own stacking context, so nothing in it paints over the sticky table or the head. The details card
12
+ // is a popover in the top layer, above all of it and the page chrome.
13
+ //
14
+ // Part of the wui-components layer, see _wui-components.scss for load order.
15
+
16
+ wui-gantt {
17
+ display: block;
18
+ position: relative;
19
+ isolation: isolate;
20
+ min-width: 0;
21
+ max-width: 100%;
22
+ color: var(--color-text);
23
+ font-size: var(--wui-fs-sm);
24
+ }
25
+
26
+ .wui-gantt-toolbar {
27
+ display: flex;
28
+ flex-wrap: wrap;
29
+ align-items: center;
30
+ gap: var(--wui-space-sm) var(--wui-space-md);
31
+ margin-bottom: var(--wui-space-md);
32
+ }
33
+ .wui-gantt-count {
34
+ color: var(--color-text-muted);
35
+ font-size: var(--wui-fs-xs);
36
+ font-variant-numeric: tabular-nums;
37
+ }
38
+ .wui-gantt-scale {
39
+ display: inline-flex;
40
+ max-width: 100%;
41
+ }
42
+ .wui-gantt-nav {
43
+ display: inline-flex;
44
+ flex-wrap: wrap;
45
+ align-items: center;
46
+ gap: var(--wui-space-xs);
47
+ }
48
+
49
+ // The page never widens: a plan wider than the card scrolls inside it.
50
+ .wui-gantt-scroller {
51
+ position: relative;
52
+ display: flex;
53
+ align-items: flex-start;
54
+ max-width: 100%;
55
+ overflow-x: auto;
56
+ overscroll-behavior-x: contain;
57
+ }
58
+ .wui-gantt-plot {
59
+ flex: none;
60
+ }
61
+
62
+ .wui-gantt-head {
63
+ position: sticky;
64
+ top: 0;
65
+ z-index: 4;
66
+ background: var(--color-surface);
67
+ border-bottom: 1px solid var(--color-border);
68
+ }
69
+ .wui-gantt-tier {
70
+ position: relative;
71
+ height: 28px;
72
+ color: var(--color-text-muted);
73
+ font-size: var(--wui-fs-xs);
74
+ }
75
+ .wui-gantt-tier-top {
76
+ color: var(--color-text);
77
+ font-weight: var(--wui-fw-semibold);
78
+ }
79
+ .wui-gantt-cell {
80
+ position: absolute;
81
+ top: 0;
82
+ height: 100%;
83
+ display: flex;
84
+ align-items: center;
85
+ padding-inline-start: var(--wui-space-sm);
86
+ border-inline-start: 1px solid var(--color-border-subtle);
87
+ white-space: nowrap;
88
+ font-variant-numeric: tabular-nums;
89
+ }
90
+ .wui-gantt-cell-weekend {
91
+ color: var(--color-text-subtle);
92
+ }
93
+ // A day cell carries its weekday under the date, centred in a narrow column.
94
+ .wui-gantt[data-zoom="day"] .wui-gantt-tier-bottom .wui-gantt-cell {
95
+ justify-content: center;
96
+ flex-direction: column;
97
+ gap: var(--wui-space-xxs);
98
+ padding: 0;
99
+ line-height: var(--wui-lh-display);
100
+ }
101
+ .wui-gantt[data-zoom="day"] .wui-gantt-cell small {
102
+ color: var(--color-text-subtle);
103
+ font-size: var(--wui-fs-xs);
104
+ }
105
+
106
+ .wui-gantt-lane {
107
+ position: relative;
108
+ z-index: 0;
109
+ overflow: hidden;
110
+ }
111
+ .wui-gantt-item {
112
+ display: contents;
113
+ }
114
+ .wui-gantt-row {
115
+ position: absolute;
116
+ border-bottom: 1px solid var(--color-border-subtle);
117
+ }
118
+ .wui-gantt-row[data-selected="true"] {
119
+ background: var(--color-primary-soft);
120
+ }
121
+ .wui-gantt-grid {
122
+ position: absolute;
123
+ top: 0;
124
+ bottom: 0;
125
+ width: 1px;
126
+ background: var(--color-border-subtle);
127
+ }
128
+ .wui-gantt-weekend {
129
+ position: absolute;
130
+ top: 0;
131
+ bottom: 0;
132
+ background: var(--color-bg-subtle);
133
+ }
134
+ .wui-gantt-today {
135
+ position: absolute;
136
+ top: 0;
137
+ bottom: 0;
138
+ z-index: 0;
139
+ width: 2px;
140
+ background: var(--color-text);
141
+ pointer-events: none;
142
+ }
143
+ .wui-gantt-today-flag {
144
+ position: absolute;
145
+ top: var(--wui-space-xs);
146
+ z-index: 5;
147
+ padding: var(--wui-space-xxs) var(--wui-space-sm);
148
+ transform: translateX(-50%);
149
+ background: var(--color-text);
150
+ color: var(--color-text-inverse);
151
+ font-size: var(--wui-fs-xs);
152
+ font-weight: var(--wui-fw-semibold);
153
+ white-space: nowrap;
154
+ }
155
+
156
+ // Bars, labels, milestones, groups and arrows sit above the Today line (see the header note).
157
+ .wui-gantt-bar,
158
+ .wui-gantt-milestone,
159
+ .wui-gantt-label,
160
+ .wui-gantt-group,
161
+ .wui-gantt-group-summary,
162
+ .wui-gantt-deps {
163
+ position: absolute;
164
+ z-index: 1;
165
+ }
166
+
167
+ // The fill is the status colour and its text is that colour's on-colour, so the label reads on the bar.
168
+ // A bar is a button: the reset keeps the element's own colours and sizes.
169
+ .wui-gantt-bar {
170
+ display: flex;
171
+ align-items: center;
172
+ overflow: hidden;
173
+ appearance: none;
174
+ padding: 0;
175
+ border: 0;
176
+ font: inherit;
177
+ cursor: pointer;
178
+ background: var(--color-chart-neutral);
179
+ color: var(--color-on-neutral);
180
+ }
181
+ .wui-gantt-bar[data-status="done"] {
182
+ background: var(--color-success);
183
+ color: var(--color-on-success);
184
+ }
185
+ .wui-gantt-bar[data-status="inProgress"] {
186
+ background: var(--color-primary);
187
+ color: var(--color-on-primary);
188
+ }
189
+ .wui-gantt-bar[data-status="atRisk"] {
190
+ background: var(--color-warning);
191
+ color: var(--color-on-warning);
192
+ }
193
+ .wui-gantt-bar-label {
194
+ position: relative;
195
+ z-index: 1;
196
+ min-width: 0;
197
+ overflow: hidden;
198
+ padding-inline: var(--wui-space-sm);
199
+ font-size: var(--wui-fs-sm);
200
+ font-weight: var(--wui-fw-medium);
201
+ text-overflow: ellipsis;
202
+ white-space: nowrap;
203
+ }
204
+ // The share of the work done runs along the bar foot, in the bar's own on-colour.
205
+ .wui-gantt-bar-progress {
206
+ position: absolute;
207
+ bottom: 0;
208
+ left: 0;
209
+ height: 4px;
210
+ background: currentColor;
211
+ opacity: 0.6;
212
+ }
213
+
214
+ // The table layout's bar is opaque, outlined in its status colour, so the Today line cannot show through.
215
+ .wui-gantt[data-layout="table"] .wui-gantt-bar {
216
+ border: 1px solid var(--color-chart-neutral);
217
+ background: linear-gradient(var(--color-neutral-soft), var(--color-neutral-soft)), var(--color-surface);
218
+ }
219
+ .wui-gantt[data-layout="table"] .wui-gantt-bar[data-status="done"] {
220
+ border: 1px solid var(--color-success);
221
+ background: linear-gradient(var(--color-success-soft), var(--color-success-soft)), var(--color-surface);
222
+ }
223
+ .wui-gantt[data-layout="table"] .wui-gantt-bar[data-status="inProgress"] {
224
+ border: 1px solid var(--color-primary);
225
+ background: linear-gradient(var(--color-primary-soft), var(--color-primary-soft)), var(--color-surface);
226
+ }
227
+ .wui-gantt[data-layout="table"] .wui-gantt-bar[data-status="atRisk"] {
228
+ border: 1px solid var(--color-warning);
229
+ background: linear-gradient(var(--color-warning-soft), var(--color-warning-soft)), var(--color-surface);
230
+ }
231
+ .wui-gantt[data-layout="table"] .wui-gantt-bar-progress {
232
+ top: 0;
233
+ height: auto;
234
+ opacity: 1;
235
+ background: var(--color-chart-neutral);
236
+ }
237
+ .wui-gantt[data-layout="table"] .wui-gantt-bar[data-status="done"] .wui-gantt-bar-progress {
238
+ background: var(--color-success);
239
+ }
240
+ .wui-gantt[data-layout="table"] .wui-gantt-bar[data-status="inProgress"] .wui-gantt-bar-progress {
241
+ background: var(--color-primary);
242
+ }
243
+ .wui-gantt[data-layout="table"] .wui-gantt-bar[data-status="atRisk"] .wui-gantt-bar-progress {
244
+ background: var(--color-warning);
245
+ }
246
+
247
+ // A label outside a bar gets the surface behind it, so the Today line passes behind the words.
248
+ .wui-gantt-label,
249
+ .wui-gantt-label-surface {
250
+ background: var(--color-surface);
251
+ }
252
+ .wui-gantt-label {
253
+ display: flex;
254
+ align-items: center;
255
+ padding-inline: var(--wui-space-xs);
256
+ color: var(--color-text-body);
257
+ font-size: var(--wui-fs-sm);
258
+ white-space: nowrap;
259
+ }
260
+
261
+ // Milestones are a 14 px square turned 45 degrees: a row with a start date and no end.
262
+ .wui-gantt-milestone {
263
+ appearance: none;
264
+ padding: 0;
265
+ border: 0;
266
+ font: inherit;
267
+ color: inherit;
268
+ width: 14px;
269
+ height: 14px;
270
+ transform: rotate(45deg);
271
+ background: var(--color-text);
272
+ cursor: pointer;
273
+ }
274
+
275
+ .wui-gantt-group {
276
+ display: flex;
277
+ align-items: center;
278
+ gap: var(--wui-space-xs);
279
+ padding-inline: var(--wui-space-xs);
280
+ background: var(--color-surface);
281
+ color: var(--color-text);
282
+ font-size: var(--wui-fs-xs);
283
+ font-weight: var(--wui-fw-semibold);
284
+ white-space: nowrap;
285
+ }
286
+ .wui-gantt-group-toggle {
287
+ display: inline-flex;
288
+ align-items: center;
289
+ padding: 0;
290
+ border: 0;
291
+ background: transparent;
292
+ color: inherit;
293
+ font: inherit;
294
+ cursor: pointer;
295
+ }
296
+ .wui-gantt-group-summary {
297
+ height: 6px;
298
+ background: var(--color-text-subtle);
299
+ }
300
+
301
+ // Arrows are one SVG over the lane: a stroke and a head in the subtle text colour.
302
+ .wui-gantt-deps {
303
+ left: 0;
304
+ top: 0;
305
+ overflow: visible;
306
+ pointer-events: none;
307
+ }
308
+ .wui-gantt-deps path {
309
+ fill: none;
310
+ stroke: var(--color-text-subtle);
311
+ stroke-width: 1.25px;
312
+ }
313
+ .wui-gantt-deps polygon {
314
+ fill: var(--color-text-subtle);
315
+ }
316
+
317
+ // The selected bar or milestone keeps the focus ring; the element writes data-selected on it.
318
+ .wui-gantt-bar:focus-visible,
319
+ .wui-gantt-bar[data-selected="true"],
320
+ .wui-gantt-milestone:focus-visible,
321
+ .wui-gantt-milestone[data-selected="true"],
322
+ .wui-gantt-group-toggle:focus-visible {
323
+ outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
324
+ outline-offset: 1px;
325
+ }
326
+
327
+ // The details card is the floating surface of the widget: the elevation token, the border and a radius.
328
+ .wui-gantt-details {
329
+ margin: 0;
330
+ inset: auto;
331
+ width: 280px;
332
+ max-width: 100%;
333
+ padding: var(--wui-space-md) var(--wui-space-lg);
334
+ border: 1px solid var(--color-border);
335
+ border-radius: var(--wui-radius-md);
336
+ background: var(--color-surface);
337
+ box-shadow: var(--wui-shadow-elevated);
338
+ color: var(--color-text);
339
+ font-size: var(--wui-fs-sm);
340
+ }
341
+ .wui-gantt-details dl {
342
+ display: grid;
343
+ grid-template-columns: 84px minmax(0, 1fr);
344
+ gap: var(--wui-space-xs) var(--wui-space-sm);
345
+ margin: var(--wui-space-sm) 0 0;
346
+ }
347
+ .wui-gantt-details dt {
348
+ color: var(--color-text-muted);
349
+ font-weight: var(--wui-fw-normal);
350
+ }
351
+ .wui-gantt-details dd {
352
+ margin: 0;
353
+ }
354
+
355
+ // The task table beside the plan: its rows take the lane rows' heights, so the two line up.
356
+ .wui-gantt-table {
357
+ flex: none;
358
+ width: 512px;
359
+ background: var(--color-surface);
360
+ border-inline-end: 1px solid var(--color-border);
361
+ font-size: var(--wui-fs-sm);
362
+ }
363
+ // Below md the table scrolls away with the plan: a sticky 512px pane would hide every bar on a phone.
364
+ @include media-breakpoint-up(md) {
365
+ .wui-gantt-table {
366
+ position: sticky;
367
+ inset-inline-start: 0;
368
+ z-index: 5;
369
+ }
370
+ }
371
+ .wui-gantt-table-row {
372
+ display: grid;
373
+ grid-template-columns: minmax(0, 1fr) 44px 96px 108px 52px;
374
+ align-items: center;
375
+ box-sizing: border-box;
376
+ padding-inline-start: var(--wui-space-lg);
377
+ border-bottom: 1px solid var(--color-border-subtle);
378
+ }
379
+ // content-box: the head row is as tall as the two tiers plus the head's own border, so the rows below start level with the lane.
380
+ .wui-gantt-table-row[data-kind="head"] {
381
+ box-sizing: content-box;
382
+ align-items: end;
383
+ border-bottom-color: var(--color-border);
384
+ color: var(--color-text-muted);
385
+ font-size: var(--wui-fs-xs);
386
+ }
387
+ .wui-gantt-table-row[data-kind="head"] .wui-gantt-table-cell {
388
+ padding-bottom: var(--wui-space-xs);
389
+ }
390
+ .wui-gantt-table-row[data-selected="true"] {
391
+ background: var(--color-primary-soft);
392
+ }
393
+ .wui-gantt-table-row[data-wui-gantt-pick] {
394
+ cursor: pointer;
395
+ }
396
+ .wui-gantt-table-cell {
397
+ min-width: 0;
398
+ overflow: hidden;
399
+ white-space: nowrap;
400
+ }
401
+ .wui-gantt-table-cell[data-col="name"] {
402
+ text-overflow: ellipsis;
403
+ }
404
+ // The date and percent cells show their value whole at the fixed column widths, so they never ellipsize.
405
+ .wui-gantt-table-cell[data-col="start"],
406
+ .wui-gantt-table-cell[data-col="end"],
407
+ .wui-gantt-table-cell[data-col="done"] {
408
+ font-variant-numeric: tabular-nums;
409
+ color: var(--color-text-body);
410
+ }
411
+ .wui-gantt-table-row:not([data-kind="head"]) > :is([data-col="start"], [data-col="end"], [data-col="done"]) {
412
+ font-size: var(--wui-fs-xs);
413
+ }
414
+ .wui-gantt-table-cell[data-col="start"],
415
+ .wui-gantt-table-cell[data-col="end"] {
416
+ padding-inline: var(--wui-space-xs) 0;
417
+ }
418
+ .wui-gantt-table-cell[data-col="done"] {
419
+ padding-inline-end: var(--wui-space-md);
420
+ text-align: end;
421
+ }
422
+ .wui-gantt-table-cell[data-col="owner"] {
423
+ display: flex;
424
+ align-items: center;
425
+ }
426
+ .wui-gantt-table-row:not([data-kind="head"]) > [data-col="name"] {
427
+ padding-inline: var(--wui-space-xl) var(--wui-space-sm);
428
+ }
429
+ .wui-gantt-table-row[data-kind="milestone"] > [data-col="name"] {
430
+ font-weight: var(--wui-fw-semibold);
431
+ }
432
+ .wui-gantt-table-group {
433
+ grid-column: 1 / -1;
434
+ display: flex;
435
+ align-items: center;
436
+ gap: var(--wui-space-sm);
437
+ font-weight: var(--wui-fw-semibold);
438
+ }
439
+ .wui-gantt-table-group > span:last-child {
440
+ color: var(--color-text-muted);
441
+ font-weight: var(--wui-fw-normal);
442
+ }
443
+
444
+ .wui-gantt-legend {
445
+ display: flex;
446
+ flex-wrap: wrap;
447
+ align-items: center;
448
+ gap: var(--wui-space-xs) var(--wui-space-lg);
449
+ color: var(--color-text-muted);
450
+ font-size: var(--wui-fs-xs);
451
+ }
452
+ .wui-gantt-swatch {
453
+ display: inline-block;
454
+ width: 12px;
455
+ height: 8px;
456
+ margin-inline-end: var(--wui-space-xs);
457
+ vertical-align: baseline;
458
+ }
459
+ .wui-gantt-swatch[data-status="done"] {
460
+ background: var(--color-success);
461
+ }
462
+ .wui-gantt-swatch[data-status="inProgress"] {
463
+ background: var(--color-primary);
464
+ }
465
+ .wui-gantt-swatch[data-status="atRisk"] {
466
+ background: var(--color-warning);
467
+ }
468
+ .wui-gantt-swatch[data-status="notStarted"] {
469
+ background: var(--color-chart-neutral);
470
+ }
471
+ .wui-gantt-swatch[data-kind="milestone"] {
472
+ width: 10px;
473
+ height: 10px;
474
+ transform: rotate(45deg);
475
+ background: var(--color-text);
476
+ }
477
+ .wui-gantt-legend-note {
478
+ margin-inline-start: var(--wui-space-sm);
479
+ }
480
+
481
+ .wui-gantt-state {
482
+ padding: var(--wui-space-xl) var(--wui-space-lg);
483
+ color: var(--color-text-muted);
484
+ text-align: center;
485
+ }
486
+ // The task table's loading rows: one placeholder bar across the row, at the lane row's height.
487
+ .wui-gantt-table-row[data-kind="skeleton"] .wui-gantt-skeleton {
488
+ grid-column: 1 / -1;
489
+ margin: 0;
490
+ margin-inline-end: var(--wui-space-lg);
491
+ }
492
+ .wui-gantt-skeleton {
493
+ display: block;
494
+ height: 28px;
495
+ margin: var(--wui-space-sm) 0;
496
+ border-radius: var(--wui-radius-sm);
497
+ background: var(--color-bg-muted);
498
+ }
@@ -229,7 +229,7 @@
229
229
 
230
230
  .wui-kanban-summary {
231
231
  flex: 1 0 100%;
232
- padding-left: 18px;
232
+ padding-inline-start: 18px;
233
233
  color: var(--color-text-muted);
234
234
  font-size: 0.8125rem;
235
235
  font-weight: 500;
@@ -172,10 +172,10 @@ dialog.wui-lightbox-overlay {
172
172
  }
173
173
  }
174
174
  .wui-lightbox-prev {
175
- left: 12px;
175
+ inset-inline-start: 12px;
176
176
  }
177
177
  .wui-lightbox-next {
178
- right: 12px;
178
+ inset-inline-end: 12px;
179
179
  }
180
180
  .wui-lightbox-caption {
181
181
  flex: 0 0 auto;
@@ -44,7 +44,7 @@
44
44
  .wui-markdown ul,
45
45
  .wui-markdown ol {
46
46
  margin: 0 0 0.75em;
47
- padding-left: 1.5em;
47
+ padding-inline-start: 1.5em;
48
48
  }
49
49
  .wui-markdown li > ul,
50
50
  .wui-markdown li > ol {
@@ -67,8 +67,8 @@
67
67
  }
68
68
  .wui-markdown blockquote {
69
69
  margin: 0 0 var(--wui-space-md);
70
- padding-left: var(--wui-space-md);
71
- border-left: 3px solid var(--color-border);
70
+ padding-inline-start: var(--wui-space-md);
71
+ border-inline-start: 3px solid var(--color-border);
72
72
  color: var(--color-text-muted);
73
73
  }
74
74
  .wui-markdown p.fw-semibold {
@@ -123,7 +123,7 @@
123
123
  .avatar-badge {
124
124
  position: absolute;
125
125
  top: -2px;
126
- right: -2px;
126
+ inset-inline-end: -2px;
127
127
  display: inline-flex;
128
128
  align-items: center;
129
129
  justify-content: center;
@@ -165,7 +165,7 @@
165
165
  // colour so it reads on a photo. Online quietly pulses.
166
166
  .avatar-status {
167
167
  position: absolute;
168
- right: 2%;
168
+ inset-inline-end: 2%;
169
169
  bottom: 2%;
170
170
  width: 28%;
171
171
  height: 28%;
@@ -241,22 +241,22 @@
241
241
  align-items: center;
242
242
  }
243
243
  .avatar-group > .avatar {
244
- margin-left: -10px;
244
+ margin-inline-start: -10px;
245
245
  box-shadow: 0 0 0 2px var(--color-surface);
246
246
  transition: transform var(--wui-duration-fast) var(--wui-ease-out, ease);
247
247
  }
248
248
  .avatar-group > .avatar:first-child {
249
- margin-left: 0;
249
+ margin-inline-start: 0;
250
250
  }
251
251
  .avatar-group > .avatar:hover {
252
252
  z-index: 1;
253
253
  transform: translateY(-2px);
254
254
  }
255
255
  .avatar-group-tight > .avatar {
256
- margin-left: -14px;
256
+ margin-inline-start: -14px;
257
257
  }
258
258
  .avatar-group-loose > .avatar {
259
- margin-left: -4px;
259
+ margin-inline-start: -4px;
260
260
  }
261
261
  // The "+N" overflow chip — a muted avatar-shaped tail.
262
262
  .avatar-more {
@@ -432,7 +432,7 @@
432
432
  .attach-remove {
433
433
  position: absolute;
434
434
  top: 8px;
435
- right: 8px;
435
+ inset-inline-end: 8px;
436
436
  display: inline-flex;
437
437
  align-items: center;
438
438
  justify-content: center;
@@ -589,7 +589,7 @@
589
589
  font-weight: 600;
590
590
  color: var(--color-text);
591
591
  background: var(--color-bg-muted);
592
- border-right: 1px solid var(--color-border);
592
+ border-inline-end: 1px solid var(--color-border);
593
593
  }
594
594
  .file-input-text {
595
595
  display: inline-flex;
@@ -679,7 +679,7 @@
679
679
  overflow-y: auto;
680
680
  // The dropzone sets text-align:center for the centred prompt; the file rows must not
681
681
  // inherit it — name and size read left-aligned next to the thumbnail.
682
- text-align: left;
682
+ text-align: start;
683
683
  }
684
684
  // While managing files, keep the border calm on hover/focus (it is no longer just a
685
685
  // "click to upload" affordance); still highlight when a file is actually dragged over.
@@ -823,7 +823,7 @@
823
823
  position: relative;
824
824
  font: inherit;
825
825
  color: inherit;
826
- text-align: left;
826
+ text-align: start;
827
827
  }
828
828
  .file-preview-img {
829
829
  display: block;
@@ -894,7 +894,7 @@
894
894
  .file-preview-remove {
895
895
  position: absolute;
896
896
  top: 8px;
897
- right: 8px;
897
+ inset-inline-end: 8px;
898
898
  z-index: 2;
899
899
  box-sizing: border-box;
900
900
  display: inline-flex;
@@ -1199,8 +1199,8 @@
1199
1199
  .wui-image-picker-remove {
1200
1200
  position: absolute;
1201
1201
  top: 2px;
1202
- right: 2px;
1203
- display: inline-flex;
1202
+ inset-inline-end: 2px;
1203
+ display: var(--wui-image-picker-remove-display, inline-flex);
1204
1204
  align-items: center;
1205
1205
  justify-content: center;
1206
1206
  // Scales with the ring (~23% of the diameter reads well) so it stays proportional at every
@@ -108,6 +108,9 @@
108
108
  .dropdown-menu-end:popover-open {
109
109
  transform-origin: top right;
110
110
  }
111
+ .dropdown-menu-end:popover-open:dir(rtl) {
112
+ transform-origin: top left;
113
+ }
111
114
 
112
115
  // Opening upward: origin flips to the bottom edge and the drop comes from below.
113
116
  .wui-select-menu.drop-up,
@@ -96,6 +96,6 @@ a.wui-metric:hover .wui-metric-value {
96
96
  }
97
97
  @media (min-width: 768px) {
98
98
  .wui-metric-strip-divided .wui-metric + .wui-metric {
99
- border-left: 1px solid var(--color-border);
99
+ border-inline-start: 1px solid var(--color-border);
100
100
  }
101
101
  }
@@ -64,7 +64,8 @@
64
64
  padding: 0;
65
65
  }
66
66
  .modal.wui-remote-drawer .modal-dialog.wui-remote-drawer-dialog {
67
- margin: 0 0 0 auto;
67
+ margin-block: 0;
68
+ margin-inline: auto 0;
68
69
  max-width: none;
69
70
  width: min(var(--wui-modal-max-width, 480px), 100%);
70
71
  height: 100%;
@@ -73,6 +74,9 @@
73
74
  transform: translateX(100%);
74
75
  transition: transform var(--wui-duration-default) var(--wui-ease-ui);
75
76
  }
77
+ .modal.wui-remote-drawer .modal-dialog.wui-remote-drawer-dialog:dir(rtl) {
78
+ transform: translateX(-100%);
79
+ }
76
80
  dialog.wui-modal-shell.wui-remote-drawer[open] .modal-dialog.wui-remote-drawer-dialog {
77
81
  transform: none;
78
82
  }
@@ -101,6 +105,9 @@ dialog.wui-modal-shell.wui-remote-drawer[open] .modal-dialog.wui-remote-drawer-d
101
105
  margin: 0;
102
106
  transform: translateY(100%);
103
107
  }
108
+ .modal.wui-remote-drawer .modal-dialog.wui-remote-drawer-dialog:dir(rtl) {
109
+ transform: translateY(100%);
110
+ }
104
111
  dialog.wui-modal-shell.wui-remote-drawer[open] .modal-dialog.wui-remote-drawer-dialog {
105
112
  transform: none;
106
113
  }
@@ -60,6 +60,18 @@ wui-popover {
60
60
  display: none;
61
61
  }
62
62
 
63
+ // A popover taller than the room on its side is capped by its placement; the body scrolls and the title stays. The
64
+ // panel itself never scrolls, because its arrow sits outside its box.
65
+ [data-wui-popover-panel]:popover-open {
66
+ display: flex;
67
+ flex-direction: column;
68
+ }
69
+ [data-wui-popover-panel] > .popover-body {
70
+ min-height: 0;
71
+ overflow-y: auto;
72
+ overscroll-behavior-y: contain;
73
+ }
74
+
63
75
  // The page behind an open modal does not scroll.
64
76
  html:has(dialog:modal) {
65
77
  overflow: hidden;