@webority/theme 0.161.0 → 0.164.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 +23 -23
- package/dist/purge-safelist.json +10 -11
- package/dist/webority-theme.css +3 -3
- package/package.json +8 -7
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_components.scss +38 -34
- package/scss/_flags.scss +3 -3
- package/scss/_marketing.scss +6 -6
- package/scss/_tokens.generated.scss +1 -1
- package/scss/_variables.scss +19 -19
- package/scss/_wui-components.scss +2 -0
- package/scss/_wui-core.scss +2 -0
- package/scss/wui/_card.scss +20 -12
- package/scss/wui/_choice.scss +4 -4
- package/scss/wui/_command-palette.scss +7 -2
- package/scss/wui/_comment-thread.scss +3 -3
- package/scss/wui/_context-menu.scss +14 -10
- package/scss/wui/_controls.scss +80 -74
- package/scss/wui/_data.scss +19 -33
- package/scss/wui/_dialog-motion.scss +14 -19
- package/scss/wui/_disclosure.scss +3 -3
- package/scss/wui/_display.scss +56 -56
- package/scss/wui/_dock.scss +4 -4
- package/scss/wui/_drawer.scss +18 -15
- package/scss/wui/_empty-state.scss +4 -4
- package/scss/wui/_file-viewer.scss +14 -2
- package/scss/wui/_filter-popover.scss +1 -1
- package/scss/wui/_floating.scss +1 -1
- package/scss/wui/_flow.scss +35 -35
- package/scss/wui/_hover-card.scss +6 -5
- package/scss/wui/_inline-edit.scss +1 -1
- package/scss/wui/_kanban.scss +1 -1
- package/scss/wui/_lightbox.scss +20 -9
- package/scss/wui/_media.scss +1 -1
- package/scss/wui/_mention-input.scss +3 -3
- package/scss/wui/_menu-motion.scss +23 -23
- package/scss/wui/_modal-remote.scss +3 -3
- package/scss/wui/_native-overlay.scss +76 -0
- package/scss/wui/_navigation-menu.scss +13 -17
- package/scss/wui/_navigation.scss +25 -1
- package/scss/wui/_notification-center.scss +6 -9
- package/scss/wui/_overlay-reset.scss +15 -0
- package/scss/wui/_overlays.scss +139 -99
- package/scss/wui/_page-header-bar.scss +24 -0
- package/scss/wui/_scrollbar.scss +1 -1
- package/scss/wui/_sections.scss +3 -3
- package/scss/wui/_select.scss +16 -10
- package/scss/wui/_shell-parts.scss +2 -2
- package/scss/wui/_shell.scss +131 -28
- package/scss/wui/_shortcuts.scss +3 -15
- package/scss/wui/_sortable.scss +1 -1
- package/scss/wui/_tone-pill.scss +2 -2
- package/scss/wui/_toolbar.scss +3 -3
- package/scss/wui/_truncate.scss +2 -2
- package/scss/wui/_typography.scss +8 -8
- package/scss/wui/_utilities.scss +4 -5
- package/scss/wui/_whats-new.scss +6 -7
- package/scss/wui/_workspace.scss +34 -9
- package/scss/wui/tour/_base.scss +11 -1
- package/scss/wui/tour/_end.scss +6 -0
- package/scss/wui/tour/_media.scss +1 -1
- package/scss/wui/tour/_placement.scss +6 -0
package/scss/wui/_workspace.scss
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
// Every class here is namespaced `.workspace-switcher*`, and the rules that have to beat
|
|
4
4
|
// Bootstrap's own .dropdown-item/.dropdown-menu specificity are additionally scoped under
|
|
5
|
-
// the .workspace-switcher root
|
|
5
|
+
// the .workspace-switcher root, so this file cannot reach anything a product owns unless
|
|
6
6
|
// the product claims that same prefix (see the CHANGELOG's claimed-class-names section).
|
|
7
|
-
// Tenant / workspace switcher
|
|
7
|
+
// Tenant / workspace switcher: shared by React <AppWorkspaceSwitcher> and Razor
|
|
8
8
|
// <app-workspace-switcher>. Both render a Bootstrap dropdown, so the menu chrome below
|
|
9
9
|
// keys on the shared classes rather than on either surface's own wrapper.
|
|
10
10
|
//
|
|
11
|
-
// Part of the wui-components layer
|
|
11
|
+
// Part of the wui-components layer: see _wui-components.scss for the whole picture and the
|
|
12
12
|
// load order. Order within the layer is LOAD-BEARING: these partials are a split of one
|
|
13
13
|
// stylesheet, not independent modules. Never reorder the imports.
|
|
14
14
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
padding: 6px 10px;
|
|
30
30
|
// Border / fill / hover / focus match AppInput exactly: a muted resting fill, a grey
|
|
31
31
|
// border, hover to a strong border, and focus/open onto a clean surface with the soft
|
|
32
|
-
// brand border (border is the cue
|
|
32
|
+
// brand border (border is the cue; no ring, no shadow). The pill shape stays.
|
|
33
33
|
background: var(--color-bg-muted);
|
|
34
34
|
border: 1px solid var(--color-border);
|
|
35
35
|
border-radius: 999px;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
justify-content: center;
|
|
96
96
|
width: 30px;
|
|
97
97
|
height: 30px;
|
|
98
|
-
// A round logo chip on a clean white ring
|
|
98
|
+
// A round logo chip on a clean white ring: the same avatar look in the trigger and the menu.
|
|
99
99
|
border-radius: 50%;
|
|
100
100
|
background: var(--color-surface);
|
|
101
101
|
border: 1px solid var(--color-border-subtle);
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
// ── Size tiers ──
|
|
112
112
|
// md is the base above. sm/lg scale the TRIGGER (the card / compact square, its mark, its name)
|
|
113
113
|
// AND the dropdown menu (width, row padding, avatar, the "+" chip and the footer), so the whole
|
|
114
|
-
// switcher
|
|
114
|
+
// switcher (trigger and panel) reads at one size.
|
|
115
115
|
.workspace-switcher-sm .workspace-switcher-trigger {
|
|
116
116
|
min-height: 40px;
|
|
117
117
|
padding: 4px 8px;
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
// The rows are Bootstrap dropdown items on both surfaces, so the shared item chrome has to
|
|
223
|
-
// be re-stated here
|
|
223
|
+
// be re-stated here: an identity row is a three-column grid, not a text line with a glyph.
|
|
224
224
|
.workspace-switcher .workspace-switcher-option,
|
|
225
225
|
.workspace-switcher .workspace-switcher-create {
|
|
226
226
|
display: flex;
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
text-decoration: none;
|
|
240
240
|
cursor: pointer;
|
|
241
241
|
}
|
|
242
|
-
// Compact menu avatars
|
|
242
|
+
// Compact menu avatars: small identity chips, close to the trigger mark.
|
|
243
243
|
.workspace-switcher .workspace-switcher-option .workspace-switcher-mark {
|
|
244
244
|
width: 28px;
|
|
245
245
|
height: 28px;
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
color: var(--color-primary-text);
|
|
297
297
|
font-weight: 600;
|
|
298
298
|
}
|
|
299
|
-
// Dashed divider above the create row
|
|
299
|
+
// Dashed divider above the create row; the list and the "Add …" action read as two zones,
|
|
300
300
|
// matching the design. A ::before (not a border) keeps the row's hover pill radius intact.
|
|
301
301
|
.workspace-switcher .workspace-switcher-create::before {
|
|
302
302
|
content: "";
|
|
@@ -409,6 +409,31 @@
|
|
|
409
409
|
font-size: 14px;
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
+
// On a brand-toned shell the switcher is a translucent pill on the sidebar; its menu keeps the light surface.
|
|
413
|
+
.app-shell[data-shell-tone="brand"] {
|
|
414
|
+
.app-sidebar .workspace-switcher-trigger {
|
|
415
|
+
background: var(--color-shell-fill-subtle);
|
|
416
|
+
border-color: var(--color-shell-rule);
|
|
417
|
+
color: var(--color-shell-text-strong);
|
|
418
|
+
}
|
|
419
|
+
.app-sidebar .workspace-switcher-trigger:hover:not(:focus):not([aria-expanded="true"]) {
|
|
420
|
+
border-color: var(--color-shell-border);
|
|
421
|
+
}
|
|
422
|
+
.app-sidebar .workspace-switcher-trigger:focus-visible,
|
|
423
|
+
.app-sidebar .workspace-switcher-trigger[aria-expanded="true"] {
|
|
424
|
+
background: var(--color-shell-fill);
|
|
425
|
+
border-color: var(--color-shell-border-strong);
|
|
426
|
+
}
|
|
427
|
+
.app-sidebar .workspace-switcher-chevron {
|
|
428
|
+
color: var(--color-shell-text-muted);
|
|
429
|
+
}
|
|
430
|
+
.app-sidebar .workspace-switcher-mark {
|
|
431
|
+
background: var(--color-shell-accent);
|
|
432
|
+
border-color: transparent;
|
|
433
|
+
color: var(--color-shell-bg-deep);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
412
437
|
@media (prefers-reduced-motion: reduce) {
|
|
413
438
|
.workspace-switcher-trigger {
|
|
414
439
|
transition: none;
|
package/scss/wui/tour/_base.scss
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// ── Product tour: layer, spotlight and card ──
|
|
4
4
|
// AppTour / <app-tour> / <wui-tour>: a dimmed page with one highlighted element and a card
|
|
5
|
-
// holding the step text and Back / Next / Skip. The element appends .wui-tour-layer to
|
|
5
|
+
// holding the step text and Back / Next / Skip. The element appends .wui-tour-layer to overlayRoot();
|
|
6
6
|
// tourPlacement.js fits .wui-tour-spot to the target's box and corners and places .wui-tour-card
|
|
7
7
|
// beside the target, over its lower part, or centred for a message, setting both inline. Every
|
|
8
8
|
// colour is a theme token.
|
|
@@ -13,10 +13,20 @@ wui-tour-step {
|
|
|
13
13
|
display: none;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
// The layer is a popover: the browser's popover sheet would paint a canvas and a border over the page.
|
|
16
17
|
.wui-tour-layer {
|
|
17
18
|
position: fixed;
|
|
18
19
|
inset: 0;
|
|
19
20
|
z-index: var(--wui-z-tour);
|
|
21
|
+
width: auto;
|
|
22
|
+
height: auto;
|
|
23
|
+
max-width: none;
|
|
24
|
+
max-height: none;
|
|
25
|
+
margin: 0;
|
|
26
|
+
padding: 0;
|
|
27
|
+
border: 0;
|
|
28
|
+
overflow: visible;
|
|
29
|
+
background: none;
|
|
20
30
|
}
|
|
21
31
|
|
|
22
32
|
// The dim is the spot's own shadow, so the hole around the target needs no clip-path. The spot
|
package/scss/wui/tour/_end.scss
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
@use "../../config" as *;
|
|
2
|
+
@use "../overlay-reset" as *;
|
|
3
|
+
|
|
4
|
+
// The closing dialog is a native <dialog>: clear the browser's dialog box, as wui/_native-overlay.scss does for core panels.
|
|
5
|
+
:where(dialog.wui-tour-end) {
|
|
6
|
+
@include wui-native-overlay-reset;
|
|
7
|
+
}
|
|
2
8
|
|
|
3
9
|
// ── Product tour: closing dialog ──
|
|
4
10
|
// The "You're all set" dialog after the last step (.wui-tour-end), shown by tourEnd.js. It is a
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
@use "../../config" as *;
|
|
2
|
+
@use "../overlay-reset" as *;
|
|
3
|
+
|
|
4
|
+
// The layer is a popover: clear the browser's popover box, as wui/_native-overlay.scss does for core panels.
|
|
5
|
+
:where([popover].wui-tour-layer) {
|
|
6
|
+
@include wui-native-overlay-reset;
|
|
7
|
+
}
|
|
2
8
|
|
|
3
9
|
// ── Product tour: placement ──
|
|
4
10
|
// Where the card sits against its target: the card's `data-placement` (top | bottom | left |
|