@webority/theme 0.150.0 → 0.153.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -17
- package/dist/purge-safelist.json +20 -0
- package/dist/webority-theme.css +1 -1
- package/dist/webority-tokens.css +1 -1
- package/index.scss +11 -13
- package/package.json +3 -2
- package/scss/_bootstrap-css.scss +40 -0
- package/scss/_bootstrap.generated.scss +1 -2
- package/scss/_components.scss +157 -55
- package/scss/_config.scss +16 -0
- package/scss/_marketing.scss +15 -15
- package/scss/_tokens.generated.scss +26 -1
- package/scss/_tokens.scss +3 -3
- package/scss/_variables.scss +13 -35
- package/scss/_wui-components.scss +91 -95
- package/scss/_wui-core.scss +80 -84
- package/scss/wui/_account-switcher.scss +2 -0
- package/scss/wui/_auth-layout.scss +2 -0
- package/scss/wui/_avatar-picker.scss +2 -0
- package/scss/wui/_calendar.scss +8 -6
- package/scss/wui/_card-options.scss +2 -0
- package/scss/wui/_card.scss +6 -4
- package/scss/wui/_carousel.scss +5 -3
- package/scss/wui/_cell.scss +2 -0
- package/scss/wui/_chart-card.scss +2 -0
- package/scss/wui/_chart.scss +6 -4
- package/scss/wui/_choice.scss +50 -43
- package/scss/wui/_code-block.scss +2 -0
- package/scss/wui/_command-palette.scss +4 -2
- package/scss/wui/_comment-thread.scss +4 -2
- package/scss/wui/_compare-table.scss +29 -0
- package/scss/wui/_consent-banner.scss +2 -0
- package/scss/wui/_context-menu.scss +2 -0
- package/scss/wui/_controls.scss +53 -51
- package/scss/wui/_data.scss +28 -16
- package/scss/wui/_detail-pane.scss +2 -0
- package/scss/wui/_dialog-motion.scss +6 -4
- package/scss/wui/_disclosure.scss +6 -4
- package/scss/wui/_display.scss +39 -23
- package/scss/wui/_dock.scss +8 -6
- package/scss/wui/_drawer.scss +4 -2
- package/scss/wui/_due-date.scss +2 -0
- package/scss/wui/_empty-state.scss +2 -0
- package/scss/wui/_field-busy.scss +3 -1
- package/scss/wui/_field-floor.scss +4 -1
- package/scss/wui/_field-sizes.scss +2 -0
- package/scss/wui/_file-tiles.scss +2 -0
- package/scss/wui/_file-viewer.scss +9 -5
- package/scss/wui/_filter-popover.scss +2 -0
- package/scss/wui/_floating.scss +2 -0
- package/scss/wui/_flow.scss +17 -13
- package/scss/wui/_groups.scss +2 -0
- package/scss/wui/_hover-card.scss +2 -0
- package/scss/wui/_illustration.scss +2 -0
- package/scss/wui/_image-crop.scss +2 -0
- package/scss/wui/_inline-edit.scss +4 -2
- package/scss/wui/_interaction.scss +3 -2
- package/scss/wui/_kanban.scss +18 -6
- package/scss/wui/_lightbox.scss +4 -2
- package/scss/wui/_list-card.scss +2 -0
- package/scss/wui/_markdown.scss +4 -1
- package/scss/wui/_media.scss +50 -48
- package/scss/wui/_mention-input.scss +2 -0
- package/scss/wui/_menu-motion.scss +2 -0
- package/scss/wui/_metric-strip.scss +2 -0
- package/scss/wui/_modal-remote.scss +3 -1
- package/scss/wui/_money.scss +2 -0
- package/scss/wui/_nav-list.scss +2 -0
- package/scss/wui/_navigation-menu.scss +3 -1
- package/scss/wui/_navigation.scss +70 -18
- package/scss/wui/_notification-center.scss +5 -3
- package/scss/wui/_onboarding-checklist.scss +3 -1
- package/scss/wui/_org-tree.scss +2 -0
- package/scss/wui/_overlays.scss +30 -40
- package/scss/wui/_page-header-bar.scss +2 -0
- package/scss/wui/_pagination.scss +6 -4
- package/scss/wui/_pending.scss +2 -0
- package/scss/wui/_period-picker.scss +2 -0
- package/scss/wui/_rating.scss +3 -1
- package/scss/wui/_record-pager.scss +2 -0
- package/scss/wui/_relative-time.scss +2 -0
- package/scss/wui/_resizable.scss +3 -1
- package/scss/wui/_rich-text.scss +13 -7
- package/scss/wui/_rolling-number.scss +2 -0
- package/scss/wui/_score-scale.scss +5 -3
- package/scss/wui/_scrollbar.scss +2 -0
- package/scss/wui/_section-lead-capture.scss +2 -0
- package/scss/wui/_sections.scss +5 -2
- package/scss/wui/_select.scss +2 -0
- package/scss/wui/_shell-parts.scss +55 -5
- package/scss/wui/_shell.scss +58 -57
- package/scss/wui/_shortcuts.scss +2 -0
- package/scss/wui/_show-more.scss +2 -0
- package/scss/wui/_sortable.scss +4 -2
- package/scss/wui/_split-view.scss +4 -2
- package/scss/wui/_support.scss +2 -0
- package/scss/wui/_table-server.scss +3 -1
- package/scss/wui/_theme-toggle.scss +3 -1
- package/scss/wui/_tone-pill.scss +2 -0
- package/scss/wui/_toolbar.scss +9 -7
- package/scss/wui/_tour.scss +9 -9
- package/scss/wui/_tree.scss +5 -3
- package/scss/wui/_truncate.scss +2 -0
- package/scss/wui/_typography.scss +3 -0
- package/scss/wui/_utilities.scss +31 -11
- package/scss/wui/_whats-new.scss +2 -0
- package/scss/wui/_workspace.scss +4 -2
- package/scss/wui/tour/_advance.scss +2 -0
- package/scss/wui/tour/_base.scss +2 -0
- package/scss/wui/tour/_end.scss +3 -1
- package/scss/wui/tour/_media.scss +2 -0
- package/scss/wui/tour/_motion.scss +6 -4
- package/scss/wui/tour/_placement.scss +2 -0
- package/scss/wui/tour/_progress.scss +2 -0
- package/token-meanings.json +2 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// Shell parts: notification bell, topbar search, phone tab bar, user menu.
|
|
2
4
|
//
|
|
3
5
|
// Part of the wui-components layer; imported after its base partial (see _wui-components.scss).
|
|
@@ -33,9 +35,9 @@
|
|
|
33
35
|
border-top: 1px solid var(--color-border);
|
|
34
36
|
background: var(--color-surface);
|
|
35
37
|
}
|
|
36
|
-
// The last content must scroll clear of the bar
|
|
38
|
+
// The last content must scroll clear of the bar.
|
|
37
39
|
.app-shell:has(> .wui-tabbar) .app-content {
|
|
38
|
-
padding-bottom: calc(var(--wui-tabbar-h) + 28px + env(safe-area-inset-bottom)
|
|
40
|
+
padding-bottom: calc(var(--wui-tabbar-h) + 28px + env(safe-area-inset-bottom));
|
|
39
41
|
}
|
|
40
42
|
.app-shell:has(> .wui-tabbar) .app-footer {
|
|
41
43
|
bottom: calc(var(--wui-tabbar-h) + env(safe-area-inset-bottom));
|
|
@@ -178,12 +180,12 @@
|
|
|
178
180
|
border: 0;
|
|
179
181
|
border-radius: 999px;
|
|
180
182
|
background: transparent;
|
|
181
|
-
color: var(--color-text);
|
|
183
|
+
color: var(--wui-usermenu-color, var(--color-text));
|
|
182
184
|
font: inherit;
|
|
183
185
|
cursor: pointer;
|
|
184
186
|
}
|
|
185
187
|
.wui-usermenu-trigger:hover {
|
|
186
|
-
background: var(--color-bg-muted);
|
|
188
|
+
background: var(--wui-usermenu-hover-bg, var(--color-bg-muted));
|
|
187
189
|
}
|
|
188
190
|
.wui-usermenu-trigger:focus-visible {
|
|
189
191
|
outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
|
|
@@ -207,6 +209,17 @@
|
|
|
207
209
|
.wui-usermenu-caret {
|
|
208
210
|
color: var(--color-text-muted);
|
|
209
211
|
}
|
|
212
|
+
// The settings are read only inside the trigger, because the open menu repeats the name and role on a light surface.
|
|
213
|
+
.wui-usermenu-trigger .wui-usermenu-name {
|
|
214
|
+
color: var(--wui-usermenu-color, var(--color-text));
|
|
215
|
+
}
|
|
216
|
+
.wui-usermenu-trigger :is(.wui-usermenu-role, .wui-usermenu-caret) {
|
|
217
|
+
color: var(--wui-usermenu-muted-color, var(--color-text-muted));
|
|
218
|
+
}
|
|
219
|
+
.wui-usermenu-trigger .avatar {
|
|
220
|
+
background: var(--wui-usermenu-avatar-bg, var(--avatar-bg, color-mix(in srgb, var(--color-primary) 15%, var(--color-surface))));
|
|
221
|
+
color: var(--wui-usermenu-avatar-color, var(--avatar-fg, var(--color-primary-text)));
|
|
222
|
+
}
|
|
210
223
|
// Below xl the name and role give way to the avatar alone.
|
|
211
224
|
@include media-breakpoint-down(xl) {
|
|
212
225
|
.wui-usermenu-text,
|
|
@@ -436,13 +449,22 @@ a.wui-bell-item:focus-visible {
|
|
|
436
449
|
// ── Topbar search ───────────────────────────────────────────────────────────────────────────
|
|
437
450
|
// A field after the topbar-start content above md; an icon button that opens the field as a
|
|
438
451
|
// full-width panel under the topbar below it.
|
|
439
|
-
.app-topbar-start:has(> .wui-topsearch) {
|
|
452
|
+
.app-topbar-start:has(> .wui-topsearch-host) {
|
|
440
453
|
flex: 1 1 auto;
|
|
441
454
|
}
|
|
442
455
|
.wui-topsearch {
|
|
443
456
|
position: relative;
|
|
444
457
|
width: min(380px, 38vw);
|
|
445
458
|
}
|
|
459
|
+
.wui-topsearch-host {
|
|
460
|
+
flex: 1 1 auto;
|
|
461
|
+
min-width: 0;
|
|
462
|
+
}
|
|
463
|
+
.wui-topsearch-host > .wui-topsearch-row {
|
|
464
|
+
display: flex;
|
|
465
|
+
align-items: center;
|
|
466
|
+
min-width: 0;
|
|
467
|
+
}
|
|
446
468
|
.wui-topsearch-open {
|
|
447
469
|
display: none;
|
|
448
470
|
}
|
|
@@ -561,3 +583,31 @@ a.wui-bell-item:focus-visible {
|
|
|
561
583
|
box-shadow: none;
|
|
562
584
|
}
|
|
563
585
|
}
|
|
586
|
+
@include media-breakpoint-up(md) {
|
|
587
|
+
.wui-topsearch-host > .wui-overflow-more {
|
|
588
|
+
display: none;
|
|
589
|
+
}
|
|
590
|
+
.app-topbar-start > .wui-topsearch-host > [data-wui-overflow-list] > .wui-topsearch[data-wui-overflow-hidden] {
|
|
591
|
+
display: block !important;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
@include media-breakpoint-down(md) {
|
|
595
|
+
// The host keeps room for the 44px More button; squeezed to zero by the end group, More would paint over it.
|
|
596
|
+
.app-topbar-start > .wui-topsearch-host {
|
|
597
|
+
flex-shrink: 0;
|
|
598
|
+
min-width: 44px;
|
|
599
|
+
}
|
|
600
|
+
.app-topbar-start > .wui-topsearch-host > .wui-overflow-more {
|
|
601
|
+
width: 44px;
|
|
602
|
+
height: 44px;
|
|
603
|
+
padding: 0;
|
|
604
|
+
justify-content: center;
|
|
605
|
+
font-size: 0;
|
|
606
|
+
}
|
|
607
|
+
.app-topbar-start > .wui-topsearch-host > [data-wui-overflow-list] > .wui-topsearch[data-wui-overflow-hidden] {
|
|
608
|
+
display: contents !important;
|
|
609
|
+
}
|
|
610
|
+
.app-topbar-start > .wui-topsearch-host > [data-wui-overflow-list] > .wui-topsearch[data-wui-overflow-hidden] > .wui-topsearch-open {
|
|
611
|
+
display: none;
|
|
612
|
+
}
|
|
613
|
+
}
|
package/scss/wui/_shell.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// Splash / boot loader, persistent app shell.
|
|
2
4
|
//
|
|
3
5
|
// Part of the wui-components layer — see _wui-components.scss for the whole
|
|
@@ -26,7 +28,7 @@
|
|
|
26
28
|
gap: 18px;
|
|
27
29
|
text-align: center;
|
|
28
30
|
// Ease in on mount so the boot screen settles rather than snapping into place.
|
|
29
|
-
animation: wui-splash-enter
|
|
31
|
+
animation: wui-splash-enter var(--wui-duration-slow) var(--wui-ease-ui) both;
|
|
30
32
|
}
|
|
31
33
|
// One diameter drives the mark, its initials, the logo cap, and the bar width — the `size`
|
|
32
34
|
// preset or a custom pixel value resolves to `--wui-splash-size` (set inline by App*/<app-*>).
|
|
@@ -34,7 +36,7 @@
|
|
|
34
36
|
max-width: calc(var(--wui-splash-size, 56px) * 3.2);
|
|
35
37
|
height: auto;
|
|
36
38
|
// A slow breath keeps the brand mark feeling alive through the wait.
|
|
37
|
-
animation: wui-splash-breathe
|
|
39
|
+
animation: wui-splash-breathe calc(var(--wui-duration-slow) * 7) var(--wui-ease-in-out) infinite;
|
|
38
40
|
}
|
|
39
41
|
.splash-mark {
|
|
40
42
|
width: var(--wui-splash-size, 56px);
|
|
@@ -46,7 +48,7 @@
|
|
|
46
48
|
color: var(--color-on-primary);
|
|
47
49
|
font-size: calc(var(--wui-splash-size, 56px) * 0.39);
|
|
48
50
|
font-weight: 700;
|
|
49
|
-
animation: wui-splash-breathe
|
|
51
|
+
animation: wui-splash-breathe calc(var(--wui-duration-slow) * 7) var(--wui-ease-in-out) infinite;
|
|
50
52
|
}
|
|
51
53
|
.splash-text {
|
|
52
54
|
font-size: 14px;
|
|
@@ -86,7 +88,7 @@
|
|
|
86
88
|
var(--color-primary) 65%,
|
|
87
89
|
transparent
|
|
88
90
|
);
|
|
89
|
-
animation: wui-splash-sweep
|
|
91
|
+
animation: wui-splash-sweep calc(var(--wui-duration-slow) * 3) var(--wui-ease-ui) infinite;
|
|
90
92
|
}
|
|
91
93
|
// A spinning arc — the circular take on the same "working, no percentage" idea.
|
|
92
94
|
.splash-ring {
|
|
@@ -95,7 +97,7 @@
|
|
|
95
97
|
border-radius: 50%;
|
|
96
98
|
border: 3px solid var(--color-bg-muted);
|
|
97
99
|
border-top-color: var(--color-primary);
|
|
98
|
-
animation: wui-splash-spin
|
|
100
|
+
animation: wui-splash-spin calc(var(--wui-duration-slow) * 2) var(--wui-ease-linear) infinite;
|
|
99
101
|
}
|
|
100
102
|
// Three dots taking turns rising — a lighter, friendlier wait.
|
|
101
103
|
.splash-dots {
|
|
@@ -107,13 +109,13 @@
|
|
|
107
109
|
height: 9px;
|
|
108
110
|
border-radius: 50%;
|
|
109
111
|
background: var(--color-primary);
|
|
110
|
-
animation: wui-splash-dot
|
|
112
|
+
animation: wui-splash-dot calc(var(--wui-duration-slow) * 3) var(--wui-ease-in-out) infinite;
|
|
111
113
|
}
|
|
112
114
|
.splash-dots i:nth-child(2) {
|
|
113
|
-
animation-delay: 0.
|
|
115
|
+
animation-delay: calc(var(--wui-duration-slow) * 0.4);
|
|
114
116
|
}
|
|
115
117
|
.splash-dots i:nth-child(3) {
|
|
116
|
-
animation-delay: 0.
|
|
118
|
+
animation-delay: calc(var(--wui-duration-slow) * 0.8);
|
|
117
119
|
}
|
|
118
120
|
@keyframes wui-splash-enter {
|
|
119
121
|
from {
|
|
@@ -208,7 +210,7 @@
|
|
|
208
210
|
grid-template-columns: var(--app-sidebar-w) 1fr;
|
|
209
211
|
min-height: 100vh;
|
|
210
212
|
background: var(--color-bg);
|
|
211
|
-
transition: grid-template-columns
|
|
213
|
+
transition: grid-template-columns var(--wui-duration-default) var(--wui-ease-ui);
|
|
212
214
|
}
|
|
213
215
|
.app-shell.collapsed {
|
|
214
216
|
grid-template-columns: var(--app-sidebar-rail-w) 1fr;
|
|
@@ -221,20 +223,31 @@
|
|
|
221
223
|
.app-shell.no-sidebar .app-sidebar-toggle {
|
|
222
224
|
display: none;
|
|
223
225
|
}
|
|
224
|
-
.app-shell.no-sidebar .app-footer {
|
|
225
|
-
left: 0;
|
|
226
|
-
}
|
|
227
226
|
// Below lg the drawer and the phone tab bar carry the navigation, so the topbar menu waits for lg.
|
|
228
227
|
.app-shell.wui-shell-top .wui-shell-top-nav {
|
|
229
228
|
display: none;
|
|
230
229
|
}
|
|
230
|
+
// The top bar brand slot's size hook. A product sets --wui-shell-top-brand-height (and
|
|
231
|
+
// --wui-shell-top-brand-height-phone, below md) on any ancestor; its own brand node reads
|
|
232
|
+
// --wui-shell-top-brand-size. The inputs are never declared here, so an ancestor's value wins.
|
|
231
233
|
.wui-shell-top-brand {
|
|
234
|
+
--wui-shell-top-brand-size: var(--wui-shell-top-brand-height, 32px);
|
|
232
235
|
display: flex;
|
|
233
236
|
align-items: center;
|
|
234
237
|
flex: none;
|
|
235
238
|
// A text brand reads at the root size; body text runs a step smaller.
|
|
236
239
|
font-size: $font-size-base;
|
|
237
240
|
}
|
|
241
|
+
.wui-shell-top-brand :is(.wui-brand-logo, .wui-brand-mark) {
|
|
242
|
+
display: block;
|
|
243
|
+
height: var(--wui-shell-top-brand-size);
|
|
244
|
+
width: auto;
|
|
245
|
+
}
|
|
246
|
+
@include media-breakpoint-down(md) {
|
|
247
|
+
.wui-shell-top-brand {
|
|
248
|
+
--wui-shell-top-brand-size: var(--wui-shell-top-brand-height-phone, 28px);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
238
251
|
|
|
239
252
|
// Sticky always makes a stacking context, so without a z-index here the page content after the
|
|
240
253
|
// sidebar paints over anything the sidebar lets out, such as an open workspace switcher menu.
|
|
@@ -260,7 +273,7 @@
|
|
|
260
273
|
// a shell set in a fixed-height box at the box's height, with the nav scrolling inside it.
|
|
261
274
|
min-height: 0;
|
|
262
275
|
background: var(--color-surface);
|
|
263
|
-
transition: padding
|
|
276
|
+
transition: padding var(--wui-duration-default) var(--wui-ease-ui);
|
|
264
277
|
}
|
|
265
278
|
.app-shell.collapsed .app-sidebar {
|
|
266
279
|
padding: 20px 12px var(--app-sidebar-toggle-gap);
|
|
@@ -367,8 +380,8 @@
|
|
|
367
380
|
visibility: hidden;
|
|
368
381
|
opacity: 0;
|
|
369
382
|
pointer-events: none;
|
|
370
|
-
transition: opacity
|
|
371
|
-
animation: wui-sidebar-thumb linear both;
|
|
383
|
+
transition: opacity var(--wui-duration-default) var(--wui-ease-ui);
|
|
384
|
+
animation: wui-sidebar-thumb var(--wui-ease-linear) both;
|
|
372
385
|
animation-timeline: scroll(nearest);
|
|
373
386
|
}
|
|
374
387
|
@container scroll-state(scrollable: y) {
|
|
@@ -411,6 +424,11 @@
|
|
|
411
424
|
padding-top: 12px;
|
|
412
425
|
overflow-x: clip;
|
|
413
426
|
}
|
|
427
|
+
.wui-sidebar-foot-links {
|
|
428
|
+
display: flex;
|
|
429
|
+
flex-direction: column;
|
|
430
|
+
gap: var(--wui-space-xxs);
|
|
431
|
+
}
|
|
414
432
|
|
|
415
433
|
.app-nav-group {
|
|
416
434
|
display: flex;
|
|
@@ -472,7 +490,7 @@
|
|
|
472
490
|
flex: none;
|
|
473
491
|
display: inline-grid;
|
|
474
492
|
place-items: center;
|
|
475
|
-
transition: transform
|
|
493
|
+
transition: transform var(--wui-duration-default) var(--wui-ease-ui);
|
|
476
494
|
}
|
|
477
495
|
.wui-nav-group-folded > .wui-nav-group-toggle .wui-nav-group-caret {
|
|
478
496
|
transform: rotate(-90deg);
|
|
@@ -504,10 +522,10 @@
|
|
|
504
522
|
color: var(--color-text-muted);
|
|
505
523
|
text-decoration: none;
|
|
506
524
|
transition:
|
|
507
|
-
background
|
|
508
|
-
color
|
|
509
|
-
padding
|
|
510
|
-
gap
|
|
525
|
+
background var(--wui-duration-fast) var(--wui-ease-ui),
|
|
526
|
+
color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
527
|
+
padding var(--wui-duration-default) var(--wui-ease-ui),
|
|
528
|
+
gap var(--wui-duration-default) var(--wui-ease-ui);
|
|
511
529
|
}
|
|
512
530
|
// Compact: 40px rows, a 42px pitch. The touch floor holds on a coarse pointer whatever the density.
|
|
513
531
|
.app-shell[data-density="compact"] .app-nav-item:not(.app-nav-subitem) {
|
|
@@ -703,7 +721,7 @@
|
|
|
703
721
|
display: inline-grid;
|
|
704
722
|
place-items: center;
|
|
705
723
|
color: var(--color-text-subtle);
|
|
706
|
-
transition: transform
|
|
724
|
+
transition: transform var(--wui-duration-default) var(--wui-ease-ui);
|
|
707
725
|
}
|
|
708
726
|
.app-nav-item.has-children[aria-expanded="true"] .app-nav-caret {
|
|
709
727
|
transform: rotate(90deg);
|
|
@@ -711,7 +729,7 @@
|
|
|
711
729
|
.app-nav-sub {
|
|
712
730
|
display: grid;
|
|
713
731
|
grid-template-rows: 0fr;
|
|
714
|
-
transition: grid-template-rows
|
|
732
|
+
transition: grid-template-rows var(--wui-duration-default) var(--wui-ease-ui);
|
|
715
733
|
}
|
|
716
734
|
.app-nav-sub-inner {
|
|
717
735
|
overflow: hidden;
|
|
@@ -805,9 +823,6 @@
|
|
|
805
823
|
.app-shell.wui-shell-top .app-sidebar-toggle {
|
|
806
824
|
display: none;
|
|
807
825
|
}
|
|
808
|
-
.app-shell.wui-shell-top .app-footer {
|
|
809
|
-
left: 0;
|
|
810
|
-
}
|
|
811
826
|
.app-shell.wui-shell-top .wui-shell-top-nav {
|
|
812
827
|
display: flex;
|
|
813
828
|
align-items: center;
|
|
@@ -832,8 +847,8 @@
|
|
|
832
847
|
transform-origin: left center;
|
|
833
848
|
pointer-events: none;
|
|
834
849
|
transition:
|
|
835
|
-
opacity
|
|
836
|
-
transform
|
|
850
|
+
opacity var(--wui-duration-fast) var(--wui-ease-ui),
|
|
851
|
+
transform var(--wui-duration-fast) var(--wui-ease-ui);
|
|
837
852
|
}
|
|
838
853
|
.app-shell.collapsed .app-nav-item[data-label]:hover::after,
|
|
839
854
|
.app-shell.collapsed .app-nav-item[data-label]:focus-visible::after {
|
|
@@ -868,8 +883,8 @@
|
|
|
868
883
|
color: var(--color-text-muted);
|
|
869
884
|
cursor: pointer;
|
|
870
885
|
transition:
|
|
871
|
-
color
|
|
872
|
-
background-color
|
|
886
|
+
color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
887
|
+
background-color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
873
888
|
}
|
|
874
889
|
.app-sidebar-toggle::before {
|
|
875
890
|
// A rule marking the toggle off from the nav, matching the rule between nav groups. It is a
|
|
@@ -895,7 +910,7 @@
|
|
|
895
910
|
// `block` kills the inline-block baseline gap (.wui-icon is inline-block), which otherwise
|
|
896
911
|
// pushes the glyph a hair down in the button, so the grid can centre it exactly.
|
|
897
912
|
display: block;
|
|
898
|
-
transition: transform
|
|
913
|
+
transition: transform var(--wui-duration-default) var(--wui-ease-ui);
|
|
899
914
|
}
|
|
900
915
|
// The double-chevron glyph is a left/right MIRROR pair, not a point-symmetric shape, so a
|
|
901
916
|
// 180deg rotate (used for the old single-chevron glyph) would flip it upside down too;
|
|
@@ -928,26 +943,24 @@
|
|
|
928
943
|
// topbar reads once the page moves is a per-surface art-direction call.
|
|
929
944
|
border-bottom: 1px solid transparent;
|
|
930
945
|
transition:
|
|
931
|
-
border-color
|
|
932
|
-
box-shadow
|
|
946
|
+
border-color var(--wui-duration-default) var(--wui-ease-ui),
|
|
947
|
+
box-shadow var(--wui-duration-default) var(--wui-ease-ui);
|
|
933
948
|
}
|
|
934
949
|
.app-topbar[data-tone="primary"] {
|
|
935
950
|
background: var(--color-primary);
|
|
936
951
|
color: var(--color-on-primary);
|
|
952
|
+
--wui-usermenu-color: var(--color-on-primary);
|
|
953
|
+
--wui-usermenu-muted-color: var(--color-on-primary);
|
|
954
|
+
--wui-usermenu-hover-bg: color-mix(in srgb, var(--color-on-primary) 12%, transparent);
|
|
937
955
|
}
|
|
938
|
-
.app-topbar[data-tone="primary"] :is(.app-topbar-menu, .topbar-icon-btn
|
|
939
|
-
color: inherit;
|
|
940
|
-
}
|
|
941
|
-
// The trigger's name, role and caret take the ink too. Scoped to the trigger, because the open
|
|
942
|
-
// menu repeats the name and role on its surface, where the ink would be unreadable.
|
|
943
|
-
.app-topbar[data-tone="primary"] .wui-usermenu-trigger :is(.wui-usermenu-name, .wui-usermenu-role, .wui-usermenu-caret) {
|
|
956
|
+
.app-topbar[data-tone="primary"] :is(.app-topbar-menu, .topbar-icon-btn) {
|
|
944
957
|
color: inherit;
|
|
945
958
|
}
|
|
946
959
|
.app-topbar[data-tone="primary"] .app-topbar-menu {
|
|
947
960
|
background: transparent;
|
|
948
961
|
border-color: color-mix(in srgb, var(--color-on-primary) 60%, transparent);
|
|
949
962
|
}
|
|
950
|
-
.app-topbar[data-tone="primary"] :is(.app-topbar-menu, .topbar-icon-btn
|
|
963
|
+
.app-topbar[data-tone="primary"] :is(.app-topbar-menu, .topbar-icon-btn):hover {
|
|
951
964
|
background: color-mix(in srgb, var(--color-on-primary) 12%, transparent);
|
|
952
965
|
}
|
|
953
966
|
// Two groups: the leading one shrinks and ellipsises a long page title, the
|
|
@@ -981,12 +994,11 @@
|
|
|
981
994
|
outline-offset: var(--wui-focus-ring-offset);
|
|
982
995
|
}
|
|
983
996
|
|
|
984
|
-
// --app-footer-h is set on .app-shell by the shell runtime while a footer is rendered; it is unset without one.
|
|
985
997
|
.app-content {
|
|
986
998
|
--app-content-padding-top: 24px;
|
|
987
999
|
flex: 1 1 auto;
|
|
988
1000
|
min-width: 0;
|
|
989
|
-
padding: var(--app-content-padding-top) 28px
|
|
1001
|
+
padding: var(--app-content-padding-top) 28px 24px;
|
|
990
1002
|
}
|
|
991
1003
|
[data-density="compact"] .app-content {
|
|
992
1004
|
--app-content-padding-top: 12px;
|
|
@@ -1020,18 +1032,12 @@
|
|
|
1020
1032
|
outline-offset: var(--wui-focus-ring-offset);
|
|
1021
1033
|
}
|
|
1022
1034
|
.app-footer {
|
|
1023
|
-
position:
|
|
1024
|
-
right: 0;
|
|
1035
|
+
position: sticky;
|
|
1025
1036
|
bottom: 0;
|
|
1026
|
-
left: var(--app-sidebar-w);
|
|
1027
1037
|
z-index: var(--wui-z-fixed);
|
|
1028
1038
|
background: color-mix(in srgb, var(--color-surface) 90%, transparent);
|
|
1029
1039
|
backdrop-filter: blur(50px);
|
|
1030
1040
|
-webkit-backdrop-filter: blur(50px);
|
|
1031
|
-
transition: left 0.2s var(--wui-ease-ui);
|
|
1032
|
-
}
|
|
1033
|
-
.app-shell.collapsed .app-footer {
|
|
1034
|
-
left: var(--app-sidebar-rail-w);
|
|
1035
1041
|
}
|
|
1036
1042
|
|
|
1037
1043
|
// Below lg the sidebar becomes a drawer: off-canvas by default, slid in over a
|
|
@@ -1053,15 +1059,15 @@
|
|
|
1053
1059
|
// Hidden once the slide-out ends so a closed drawer's links leave the Tab order.
|
|
1054
1060
|
visibility: hidden;
|
|
1055
1061
|
transition:
|
|
1056
|
-
transform
|
|
1057
|
-
visibility 0s linear
|
|
1062
|
+
transform var(--wui-duration-default) var(--wui-ease-out),
|
|
1063
|
+
visibility 0s var(--wui-ease-linear) var(--wui-duration-default);
|
|
1058
1064
|
box-shadow: var(--wui-shadow-modal);
|
|
1059
1065
|
}
|
|
1060
1066
|
.app-shell.app-shell.mobile-open .app-sidebar {
|
|
1061
1067
|
transform: translateX(0);
|
|
1062
1068
|
visibility: visible;
|
|
1063
1069
|
transition:
|
|
1064
|
-
transform
|
|
1070
|
+
transform var(--wui-duration-default) var(--wui-ease-out),
|
|
1065
1071
|
visibility 0s;
|
|
1066
1072
|
}
|
|
1067
1073
|
// The rail is a desktop affordance; on a drawer it makes no sense, so the
|
|
@@ -1105,17 +1111,13 @@
|
|
|
1105
1111
|
.app-shell.app-shell .app-topbar-menu {
|
|
1106
1112
|
display: inline-grid;
|
|
1107
1113
|
}
|
|
1108
|
-
.app-shell.app-shell .app-footer,
|
|
1109
|
-
.app-shell.app-shell.collapsed .app-footer {
|
|
1110
|
-
left: 0;
|
|
1111
|
-
}
|
|
1112
1114
|
.app-shell.app-shell .app-content,
|
|
1113
1115
|
.app-shell.app-shell .app-topbar {
|
|
1114
1116
|
padding-inline: 16px;
|
|
1115
1117
|
}
|
|
1116
1118
|
.app-shell.app-shell .app-content {
|
|
1117
1119
|
--app-content-padding-top: 16px;
|
|
1118
|
-
padding-block: var(--app-content-padding-top)
|
|
1120
|
+
padding-block: var(--app-content-padding-top) 32px;
|
|
1119
1121
|
}
|
|
1120
1122
|
.app-shell.app-shell[data-density="compact"] .app-content {
|
|
1121
1123
|
--app-content-padding-top: 12px;
|
|
@@ -1152,7 +1154,6 @@
|
|
|
1152
1154
|
.app-nav-item,
|
|
1153
1155
|
.app-sidebar-toggle,
|
|
1154
1156
|
.app-sidebar-toggle > *,
|
|
1155
|
-
.app-footer,
|
|
1156
1157
|
.app-topbar {
|
|
1157
1158
|
transition: none;
|
|
1158
1159
|
}
|
package/scss/wui/_shortcuts.scss
CHANGED
package/scss/wui/_show-more.scss
CHANGED
package/scss/wui/_sortable.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// ── Sortable list ──
|
|
2
4
|
// AppSortableList / <app-sortable-list> / <wui-sortable>. The element moves the real items
|
|
3
5
|
// while the person drags and shows a `.wui-sortable-ghost` copy under the pointer; everything
|
|
@@ -62,8 +64,8 @@ wui-sortable[borderless] .wui-sortable-item {
|
|
|
62
64
|
cursor: grab;
|
|
63
65
|
touch-action: none;
|
|
64
66
|
transition:
|
|
65
|
-
background-color
|
|
66
|
-
color
|
|
67
|
+
background-color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
68
|
+
color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
67
69
|
}
|
|
68
70
|
.wui-sortable-handle:hover {
|
|
69
71
|
background: var(--color-bg-muted);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// ── Split view ──
|
|
2
4
|
// AppSplitView / <app-split-view>: a list beside a reading pane. Mobile-first: one screen at a
|
|
3
5
|
// time (the list, or the pane once an item is open, `.wui-split-reading`) until the tier in
|
|
@@ -319,7 +321,7 @@
|
|
|
319
321
|
.wui-split-item,
|
|
320
322
|
.wui-split-pane-body {
|
|
321
323
|
transition:
|
|
322
|
-
background-color
|
|
323
|
-
opacity
|
|
324
|
+
background-color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
325
|
+
opacity var(--wui-duration-fast) var(--wui-ease-ui);
|
|
324
326
|
}
|
|
325
327
|
}
|
package/scss/wui/_support.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// ============================================================================
|
|
2
4
|
// Help desk (@webority/support-react): the ticket list toolbar and subject cell,
|
|
3
5
|
// and the ticket page's reply rows and composer. Everything else on those pages
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// Server-paged data table: loading, empty and error states, the busy dim and the server sort affordance.
|
|
2
4
|
//
|
|
3
5
|
// Part of the wui-components layer; imported after its base partial (see _wui-components.scss).
|
|
@@ -16,7 +18,7 @@
|
|
|
16
18
|
.wui-table-server > .table-wrap[aria-busy="true"] > .table > tbody:not(:has(> tr[data-wui-skeleton])) {
|
|
17
19
|
opacity: 0.55;
|
|
18
20
|
pointer-events: none;
|
|
19
|
-
transition: opacity
|
|
21
|
+
transition: opacity var(--wui-duration-fast) var(--wui-ease-ui);
|
|
20
22
|
}
|
|
21
23
|
.wui-skeleton-cell {
|
|
22
24
|
display: block;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// AppThemeToggle / <app-theme-toggle>: the light/dark switch and its page-wide transition.
|
|
2
4
|
//
|
|
3
5
|
// The button is the .u-action disc (see _data.scss). While a switch runs, the page is a View
|
|
@@ -34,7 +36,7 @@ html.wui-theme-switching *::after {
|
|
|
34
36
|
// The disc's glyph turns a touch on hover, the one cue that it changes something page-wide. The
|
|
35
37
|
// segmented variant (one option per mode) keeps AppSegmented's own look.
|
|
36
38
|
.u-action.wui-theme-toggle .wui-icon {
|
|
37
|
-
transition: transform
|
|
39
|
+
transition: transform var(--wui-duration-default) var(--wui-ease-out, ease-out);
|
|
38
40
|
}
|
|
39
41
|
.u-action.wui-theme-toggle:hover .wui-icon {
|
|
40
42
|
transform: rotate(24deg);
|
package/scss/wui/_tone-pill.scss
CHANGED
package/scss/wui/_toolbar.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// ── Toolbar ──
|
|
2
4
|
// AppToolbar / <app-toolbar> — a Figma-style tool strip: a pill of icon tools where
|
|
3
5
|
// the active tool expands to reveal its label. Radio-backed (no JS needed on Razor);
|
|
@@ -31,8 +33,8 @@
|
|
|
31
33
|
cursor: pointer;
|
|
32
34
|
margin-bottom: 0;
|
|
33
35
|
transition:
|
|
34
|
-
background-color
|
|
35
|
-
color
|
|
36
|
+
background-color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
37
|
+
color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
36
38
|
}
|
|
37
39
|
.toolbar-item:hover {
|
|
38
40
|
background: var(--color-bg-muted);
|
|
@@ -82,9 +84,9 @@
|
|
|
82
84
|
font-size: 0.875rem;
|
|
83
85
|
font-weight: 500;
|
|
84
86
|
transition:
|
|
85
|
-
max-width
|
|
86
|
-
margin-left
|
|
87
|
-
opacity
|
|
87
|
+
max-width var(--wui-duration-default) var(--wui-ease-ui),
|
|
88
|
+
margin-left var(--wui-duration-default) var(--wui-ease-ui),
|
|
89
|
+
opacity var(--wui-duration-default) var(--wui-ease-ui);
|
|
88
90
|
}
|
|
89
91
|
.toolbar-item:has(.toolbar-input:checked) .toolbar-item-label {
|
|
90
92
|
max-width: 10rem;
|
|
@@ -113,8 +115,8 @@
|
|
|
113
115
|
color: var(--color-text-muted);
|
|
114
116
|
cursor: pointer;
|
|
115
117
|
transition:
|
|
116
|
-
background-color
|
|
117
|
-
color
|
|
118
|
+
background-color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
119
|
+
color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
118
120
|
}
|
|
119
121
|
.toolbar-action:hover:not(:disabled) {
|
|
120
122
|
background: var(--color-bg-muted);
|
package/scss/wui/_tour.scss
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// ── Product tour ──
|
|
2
2
|
// AppTour / <app-tour> / <wui-tour>. The one entry for every tour rule: the partials under
|
|
3
3
|
// wui/tour/ hold one concern each, matching the element's modules (tourMotion.js, tourProgress.js,
|
|
4
|
-
// tourPlacement.js, tourMedia.js, tourAdvance.js, tourEnd.js). Nothing else
|
|
5
|
-
// tour's styles move as a whole by moving this one
|
|
4
|
+
// tourPlacement.js, tourMedia.js, tourAdvance.js, tourEnd.js). Nothing else loads them, so the
|
|
5
|
+
// tour's styles move as a whole by moving this one @use.
|
|
6
6
|
//
|
|
7
7
|
// Isolated tours carry a sealed copy of every .wui-tour-* rule (packages/elements/src/tourIsolated.js),
|
|
8
8
|
// and a test pins that copy to the compiled theme.
|
|
9
9
|
//
|
|
10
10
|
// Part of the wui-components layer, see _wui-components.scss for load order.
|
|
11
11
|
|
|
12
|
-
@
|
|
13
|
-
@
|
|
14
|
-
@
|
|
15
|
-
@
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
12
|
+
@use "tour/base";
|
|
13
|
+
@use "tour/motion";
|
|
14
|
+
@use "tour/progress";
|
|
15
|
+
@use "tour/placement";
|
|
16
|
+
@use "tour/media";
|
|
17
|
+
@use "tour/advance";
|
|
18
|
+
@use "tour/end";
|
package/scss/wui/_tree.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// ── Tree view ──
|
|
2
4
|
// AppTreeView / <app-tree-view> / <wui-tree>: a hierarchy in the WAI-ARIA tree pattern. The element
|
|
3
5
|
// draws the markup and keeps the state on ARIA attributes (aria-expanded on an item,
|
|
@@ -67,7 +69,7 @@ wui-tree {
|
|
|
67
69
|
color: var(--color-text-muted);
|
|
68
70
|
}
|
|
69
71
|
.wui-tree-toggle .wui-icon {
|
|
70
|
-
transition: transform
|
|
72
|
+
transition: transform var(--wui-duration-fast) var(--wui-ease-ui);
|
|
71
73
|
}
|
|
72
74
|
.wui-tree-item[aria-expanded="true"] > .wui-tree-row .wui-tree-toggle .wui-icon {
|
|
73
75
|
transform: rotate(90deg);
|
|
@@ -106,7 +108,7 @@ wui-tree {
|
|
|
106
108
|
border: 2px solid var(--color-border-strong);
|
|
107
109
|
border-top-color: var(--color-primary);
|
|
108
110
|
border-radius: 50%;
|
|
109
|
-
animation: wui-tree-spin
|
|
111
|
+
animation: wui-tree-spin calc(var(--wui-duration-slow) * 2) var(--wui-ease-linear) infinite;
|
|
110
112
|
}
|
|
111
113
|
@keyframes wui-tree-spin {
|
|
112
114
|
to {
|
|
@@ -119,7 +121,7 @@ wui-tree {
|
|
|
119
121
|
transition: none;
|
|
120
122
|
}
|
|
121
123
|
.wui-tree-spinner {
|
|
122
|
-
animation-duration:
|
|
124
|
+
animation-duration: calc(var(--wui-duration-slow) * 5);
|
|
123
125
|
}
|
|
124
126
|
}
|
|
125
127
|
|
package/scss/wui/_truncate.scss
CHANGED