@webority/theme 0.163.0 → 0.165.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/LICENSE +1 -1
- package/README.md +21 -21
- package/dist/purge-safelist.json +47 -24
- package/dist/webority-theme.css +1 -1
- package/package.json +6 -5
- 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 +4 -2
- package/scss/_wui-core.scss +4 -2
- package/scss/wui/_card.scss +8 -8
- 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 -116
- package/scss/wui/_data.scss +71 -35
- 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/_entry-grid.scss +118 -0
- package/scss/wui/_field-sizes.scss +1 -2
- 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 +33 -33
- package/scss/wui/_formula-steps.scss +73 -0
- package/scss/wui/_hover-card.scss +6 -5
- package/scss/wui/_inline-edit.scss +1 -1
- package/scss/wui/_interaction.scss +4 -0
- 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/_metric-strip.scss +14 -0
- 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 +147 -99
- package/scss/wui/_page-header-bar.scss +24 -0
- package/scss/wui/_scrollbar.scss +1 -1
- package/scss/wui/_sections.scss +31 -3
- package/scss/wui/_select.scss +16 -10
- package/scss/wui/_shell-parts.scss +6 -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 +9 -8
- package/scss/wui/_utilities.scss +4 -12
- 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/_resizable.scss +0 -100
- package/scss/wui/_rolling-number.scss +0 -68
package/scss/wui/_choice.scss
CHANGED
|
@@ -714,12 +714,12 @@ button.datepicker-month:hover {
|
|
|
714
714
|
font-size: 12px;
|
|
715
715
|
color: var(--color-text-subtle);
|
|
716
716
|
}
|
|
717
|
-
// Quick ranges: a list beside the calendars.
|
|
718
|
-
// applies only while
|
|
717
|
+
// Quick ranges: a list beside the calendars. A closed popover stays display:none, so the flex row
|
|
718
|
+
// applies only while it is open.
|
|
719
719
|
.daterange-pop.wui-daterange-pop--presets {
|
|
720
720
|
width: 800px;
|
|
721
721
|
}
|
|
722
|
-
.daterange-pop.wui-daterange-pop--presets:
|
|
722
|
+
.daterange-pop.wui-daterange-pop--presets:popover-open {
|
|
723
723
|
display: flex;
|
|
724
724
|
gap: 18px;
|
|
725
725
|
}
|
|
@@ -774,7 +774,7 @@ button.datepicker-month:hover {
|
|
|
774
774
|
.daterange-pop.wui-daterange-pop--presets {
|
|
775
775
|
width: 320px;
|
|
776
776
|
}
|
|
777
|
-
.daterange-pop.wui-daterange-pop--presets:
|
|
777
|
+
.daterange-pop.wui-daterange-pop--presets:popover-open {
|
|
778
778
|
flex-direction: column;
|
|
779
779
|
gap: 12px;
|
|
780
780
|
}
|
|
@@ -11,10 +11,14 @@
|
|
|
11
11
|
|
|
12
12
|
// Anchored near the top rather than centred, so the input stays put while results grow and
|
|
13
13
|
// shrink underneath it.
|
|
14
|
-
.
|
|
14
|
+
dialog.wui-modal-shell[open]:has(.wui-cmd-card) {
|
|
15
15
|
align-items: flex-start;
|
|
16
16
|
padding-top: max(20px, min(12vh, 120px));
|
|
17
17
|
}
|
|
18
|
+
// As a flex item the wrapper's min-height would be its content height; zero keeps the block-box value it always had.
|
|
19
|
+
dialog.wui-modal-shell[open]:has(.wui-cmd-card) .modal-dialog.wui-rb-dialog {
|
|
20
|
+
min-height: 0;
|
|
21
|
+
}
|
|
18
22
|
.wui-modal.wui-cmd-card {
|
|
19
23
|
max-height: min(560px, calc(100vh - 2 * max(20px, min(12vh, 120px))));
|
|
20
24
|
}
|
|
@@ -198,8 +202,9 @@ button.wui-cmd-crumb:focus-visible {
|
|
|
198
202
|
scroll-margin: 6px;
|
|
199
203
|
}
|
|
200
204
|
// The active row takes the tint, which is all a pointer or a freshly opened list needs.
|
|
205
|
+
// --wui-command-item-active-bg sets that tint.
|
|
201
206
|
.wui-cmd-item[aria-selected="true"] {
|
|
202
|
-
background: var(--color-primary-soft);
|
|
207
|
+
background: var(--wui-command-item-active-bg, var(--color-primary-soft));
|
|
203
208
|
color: var(--color-primary-text);
|
|
204
209
|
}
|
|
205
210
|
// Focus stays in the input, and the tint alone marks the keyboard's row at about 1.2:1, so once an
|
|
@@ -148,7 +148,6 @@ button.wui-reaction:hover,
|
|
|
148
148
|
.wui-reaction-picker {
|
|
149
149
|
position: fixed;
|
|
150
150
|
z-index: var(--wui-z-menu);
|
|
151
|
-
display: flex;
|
|
152
151
|
gap: 2px;
|
|
153
152
|
padding: 4px;
|
|
154
153
|
background: var(--color-surface);
|
|
@@ -157,8 +156,9 @@ button.wui-reaction:hover,
|
|
|
157
156
|
corner-shape: squircle;
|
|
158
157
|
box-shadow: var(--wui-shadow-popover);
|
|
159
158
|
}
|
|
160
|
-
.
|
|
161
|
-
|
|
159
|
+
// An author display would override the closed popover's display: none, so it applies only when open.
|
|
160
|
+
.wui-reaction-picker:popover-open {
|
|
161
|
+
display: flex;
|
|
162
162
|
}
|
|
163
163
|
.wui-reaction-choice {
|
|
164
164
|
display: inline-flex;
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
// AppContextMenu / <app-context-menu> / <wui-context-menu>: a right-click menu over a region.
|
|
5
5
|
// The panel is a Bootstrap .dropdown-menu with .dropdown-item rows, so the look, the danger tone
|
|
6
6
|
// and the icon treatment come from the shared dropdown styles; this partial only adds what a
|
|
7
|
-
// menu opened at the pointer needs. The
|
|
8
|
-
// which a React re-render would reset)
|
|
9
|
-
// clipping ancestor. Every colour is a theme token.
|
|
7
|
+
// menu opened at the pointer needs. The panel is a popover, shown in the top layer while
|
|
8
|
+
// :popover-open (never `.show`, which a React re-render would reset). Every colour is a theme token.
|
|
10
9
|
//
|
|
11
10
|
// Part of the wui-components layer, see _wui-components.scss for load order.
|
|
12
11
|
|
|
@@ -17,15 +16,18 @@ wui-context-menu {
|
|
|
17
16
|
|
|
18
17
|
.dropdown-menu.wui-context-menu-panel {
|
|
19
18
|
position: fixed;
|
|
19
|
+
// The popover UA rules centre a popover with inset and margin; the anchor places this one.
|
|
20
|
+
inset: auto;
|
|
21
|
+
margin: 0;
|
|
20
22
|
// Above a modal, like every other portalled menu (see --wui-z-* in _tokens.scss).
|
|
21
23
|
z-index: var(--wui-z-menu);
|
|
22
|
-
// Never taller than the screen;
|
|
24
|
+
// Never taller than the screen; openAnchoredPopover clamps it further when the pointer is low.
|
|
23
25
|
max-height: calc(100vh - var(--wui-space-sm));
|
|
24
26
|
// Focus lands on the panel itself after a pointer open; the rows carry the visible focus.
|
|
25
27
|
outline: none;
|
|
26
28
|
transform-origin: top left;
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
&:popover-open {
|
|
29
31
|
display: block;
|
|
30
32
|
animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
|
|
31
33
|
}
|
|
@@ -52,16 +54,18 @@ wui-context-menu {
|
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
// A submenu's panel is a
|
|
56
|
-
// above; it is placed beside its row
|
|
57
|
+
// A submenu's panel is a popover nested in the root panel, so it takes the rows and disabled rules
|
|
58
|
+
// above; it is placed beside its row and opens toward the side it chose.
|
|
57
59
|
.dropdown-menu.wui-context-menu-subpanel {
|
|
58
60
|
position: fixed;
|
|
61
|
+
inset: auto;
|
|
62
|
+
margin: 0;
|
|
59
63
|
z-index: var(--wui-z-menu);
|
|
60
64
|
max-height: calc(100vh - var(--wui-space-sm));
|
|
61
65
|
outline: none;
|
|
62
66
|
transform-origin: top left;
|
|
63
67
|
|
|
64
|
-
|
|
68
|
+
&:popover-open {
|
|
65
69
|
display: block;
|
|
66
70
|
animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
|
|
67
71
|
}
|
|
@@ -124,8 +128,8 @@ wui-context-menu {
|
|
|
124
128
|
}
|
|
125
129
|
|
|
126
130
|
@media (prefers-reduced-motion: reduce) {
|
|
127
|
-
.dropdown-menu.wui-context-menu-panel
|
|
128
|
-
.dropdown-menu.wui-context-menu-subpanel
|
|
131
|
+
.dropdown-menu.wui-context-menu-panel:popover-open,
|
|
132
|
+
.dropdown-menu.wui-context-menu-subpanel:popover-open {
|
|
129
133
|
animation: none;
|
|
130
134
|
}
|
|
131
135
|
}
|