@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
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
transform: translateX(100%);
|
|
74
74
|
transition: transform var(--wui-duration-default) var(--wui-ease-ui);
|
|
75
75
|
}
|
|
76
|
-
.modal.wui-remote-drawer
|
|
76
|
+
dialog.wui-modal-shell.wui-remote-drawer[open] .modal-dialog.wui-remote-drawer-dialog {
|
|
77
77
|
transform: none;
|
|
78
78
|
}
|
|
79
79
|
.modal.wui-remote-drawer .wui-remote-drawer-dialog .wui-modal {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
margin: 0;
|
|
102
102
|
transform: translateY(100%);
|
|
103
103
|
}
|
|
104
|
-
.modal.wui-remote-drawer
|
|
104
|
+
dialog.wui-modal-shell.wui-remote-drawer[open] .modal-dialog.wui-remote-drawer-dialog {
|
|
105
105
|
transform: none;
|
|
106
106
|
}
|
|
107
107
|
.modal.wui-remote-drawer .wui-remote-drawer-dialog .wui-modal {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
// A side panel dims the page behind it without blurring it, so the list stays readable.
|
|
124
|
-
|
|
124
|
+
dialog.wui-modal-shell.wui-remote-drawer[open]::backdrop {
|
|
125
125
|
backdrop-filter: none;
|
|
126
126
|
-webkit-backdrop-filter: none;
|
|
127
127
|
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// wui/_native-overlay.scss
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// Looks of the native overlay surfaces: a <dialog> opened with showModal() and
|
|
5
|
+
// a panel carrying the popover attribute. Loaded after dialog-motion in both
|
|
6
|
+
// _wui-core.scss and _wui-components.scss.
|
|
7
|
+
// ============================================================================
|
|
8
|
+
@use "overlay-reset" as *;
|
|
9
|
+
|
|
10
|
+
// The hosts are transparent: the dialog or popover inside is the box.
|
|
11
|
+
wui-modal,
|
|
12
|
+
wui-drawer,
|
|
13
|
+
wui-popover {
|
|
14
|
+
display: contents;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// <wui-dropdown> replaces a block wrapper div; zero specificity so a host class such as btn-group keeps its own display.
|
|
18
|
+
:where(wui-dropdown) {
|
|
19
|
+
display: block;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// The browser draws a dialog or a popover as a boxed surface of its own. Every library panel is listed
|
|
23
|
+
// by its marker, so a product's own popover keeps the browser's default look; a new library panel adds
|
|
24
|
+
// its marker here; an on-demand widget's panel is listed in that widget's own partial. Zero specificity, so any
|
|
25
|
+
// class rule still wins and only the browser's defaults are cleared.
|
|
26
|
+
:where(
|
|
27
|
+
dialog.wui-modal-shell,
|
|
28
|
+
dialog.wui-drawer-panel,
|
|
29
|
+
dialog.wui-lightbox-overlay,
|
|
30
|
+
[popover]:is(
|
|
31
|
+
.wui-shortcut-sheet,
|
|
32
|
+
.wui-tooltip,
|
|
33
|
+
[data-wui-dropdown-menu],
|
|
34
|
+
[data-wui-popover-panel],
|
|
35
|
+
[data-wui-picker],
|
|
36
|
+
[data-wui-menu],
|
|
37
|
+
.wui-select-menu,
|
|
38
|
+
.country-dropdown-menu,
|
|
39
|
+
.datepicker-pop,
|
|
40
|
+
.timepicker-pop,
|
|
41
|
+
.daterange-pop,
|
|
42
|
+
.wui-whats-new-panel,
|
|
43
|
+
.wui-notification-center-panel,
|
|
44
|
+
.wui-hover-card-panel,
|
|
45
|
+
.wui-filter-popover-panel,
|
|
46
|
+
.wui-nav-menu-panel,
|
|
47
|
+
.wui-context-menu-panel,
|
|
48
|
+
.wui-context-menu-subpanel,
|
|
49
|
+
.wui-toast-container,
|
|
50
|
+
wui-tour-host,
|
|
51
|
+
.app-sidebar
|
|
52
|
+
)
|
|
53
|
+
) {
|
|
54
|
+
@include wui-native-overlay-reset;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// A closed panel is display none. Bootstrap's .popover and .tooltip set display: block, which
|
|
58
|
+
// would otherwise show it.
|
|
59
|
+
:is(.wui-tooltip, [data-wui-dropdown-menu], [data-wui-popover-panel])[popover]:not(:popover-open) {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// The page behind an open modal does not scroll.
|
|
64
|
+
html:has(dialog:modal) {
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Closing fades the dialog out. It stays open until the fade ends, so the fade is never cut short.
|
|
69
|
+
dialog.wui-modal-shell[data-wui-closing] {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
}
|
|
72
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
73
|
+
dialog.wui-modal-shell[data-wui-closing] {
|
|
74
|
+
transition: opacity var(--wui-duration-fast) var(--wui-ease-linear);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
// ── Navigation menu ──
|
|
4
4
|
// AppNavigationMenu / <app-navigation-menu> (a <wui-navigation-menu> element): a site's top
|
|
5
|
-
// navigation. An entry is a link or a button that discloses a panel of links; the panel
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
// row and a panel floats under its entry; below it the entries stack and a panel is part of the
|
|
9
|
-
// page flow, so nothing is placed by script on a phone. Every colour is a theme token.
|
|
5
|
+
// navigation. An entry is a link or a button that discloses a panel of links; the panel is a
|
|
6
|
+
// popover="auto" and shows while :popover-open, placed under its entry by anchorOverlay. From the md
|
|
7
|
+
// tier up the entries sit in a row. Every colour is a theme token.
|
|
10
8
|
//
|
|
11
9
|
// Part of the wui-components layer, see _wui-components.scss for load order.
|
|
12
10
|
|
|
@@ -72,9 +70,16 @@ wui-navigation-menu {
|
|
|
72
70
|
|
|
73
71
|
.wui-nav-menu-panel {
|
|
74
72
|
display: none;
|
|
73
|
+
inset: auto;
|
|
74
|
+
margin: 0;
|
|
75
75
|
padding: 4px 0 4px 12px;
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
&:popover-open {
|
|
78
|
+
display: block;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
@include media-breakpoint-down(md) {
|
|
82
|
+
.wui-nav-menu-panel[data-open] {
|
|
78
83
|
display: block;
|
|
79
84
|
}
|
|
80
85
|
}
|
|
@@ -140,10 +145,6 @@ wui-navigation-menu {
|
|
|
140
145
|
margin-left: 0;
|
|
141
146
|
}
|
|
142
147
|
.wui-nav-menu-panel {
|
|
143
|
-
position: absolute;
|
|
144
|
-
top: calc(100% + 6px);
|
|
145
|
-
left: 0;
|
|
146
|
-
z-index: var(--wui-z-dropdown);
|
|
147
148
|
width: max-content;
|
|
148
149
|
min-width: 16rem;
|
|
149
150
|
max-width: min(36rem, calc(100vw - 16px));
|
|
@@ -155,19 +156,14 @@ wui-navigation-menu {
|
|
|
155
156
|
box-shadow: var(--wui-shadow-popover);
|
|
156
157
|
transform-origin: top left;
|
|
157
158
|
|
|
158
|
-
|
|
159
|
+
&:popover-open {
|
|
159
160
|
animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
|
|
160
161
|
}
|
|
161
|
-
&[data-align="end"] {
|
|
162
|
-
right: 0;
|
|
163
|
-
left: auto;
|
|
164
|
-
transform-origin: top right;
|
|
165
|
-
}
|
|
166
162
|
}
|
|
167
163
|
}
|
|
168
164
|
|
|
169
165
|
@media (prefers-reduced-motion: reduce) {
|
|
170
|
-
.wui-nav-menu-panel
|
|
166
|
+
.wui-nav-menu-panel:popover-open {
|
|
171
167
|
animation: none;
|
|
172
168
|
}
|
|
173
169
|
.wui-nav-menu-trigger > .wui-nav-menu-chevron {
|
|
@@ -494,9 +494,20 @@
|
|
|
494
494
|
flex: 1 1 auto;
|
|
495
495
|
min-width: 0;
|
|
496
496
|
}
|
|
497
|
-
[data-wui-overflow-hidden] {
|
|
497
|
+
[data-wui-overflow-hidden]:not([data-wui-overflow-menu]) {
|
|
498
498
|
display: none !important;
|
|
499
499
|
}
|
|
500
|
+
// A folded menu trigger stays rendered (collapsed) so its panel can open beside More.
|
|
501
|
+
[data-wui-overflow-hidden][data-wui-overflow-menu] {
|
|
502
|
+
position: absolute;
|
|
503
|
+
width: 0;
|
|
504
|
+
height: 0;
|
|
505
|
+
overflow: hidden;
|
|
506
|
+
visibility: hidden;
|
|
507
|
+
}
|
|
508
|
+
[data-wui-overflow-menu] [data-wui-dropdown-menu] {
|
|
509
|
+
visibility: visible;
|
|
510
|
+
}
|
|
500
511
|
.wui-overflow-more {
|
|
501
512
|
flex: none;
|
|
502
513
|
display: inline-flex;
|
|
@@ -837,3 +848,16 @@
|
|
|
837
848
|
display: none;
|
|
838
849
|
}
|
|
839
850
|
}
|
|
851
|
+
// AppBreadcrumbs wrap={false}: the trail stays on one line.
|
|
852
|
+
// Placed after the collapse rules so it wins on equal specificity; the :not() keeps the collapse show/hide display values.
|
|
853
|
+
.breadcrumb.wui-breadcrumb-nowrap {
|
|
854
|
+
flex-wrap: nowrap;
|
|
855
|
+
}
|
|
856
|
+
.wui-breadcrumb-nowrap > .breadcrumb-item:not(.wui-breadcrumb-collapsible, .wui-breadcrumb-more) {
|
|
857
|
+
display: inline-flex;
|
|
858
|
+
white-space: nowrap;
|
|
859
|
+
}
|
|
860
|
+
.wui-breadcrumb-nowrap > .breadcrumb-item.wui-breadcrumb-collapsible,
|
|
861
|
+
.wui-breadcrumb-nowrap > .breadcrumb-item.wui-breadcrumb-more {
|
|
862
|
+
white-space: nowrap;
|
|
863
|
+
}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
// ── Notification centre ──
|
|
4
4
|
// AppNotificationCenter / <app-notification-center> (a <wui-notification-center> element): a bell
|
|
5
|
-
// with an unread count that opens a panel of notifications grouped by day. The
|
|
6
|
-
//
|
|
5
|
+
// with an unread count that opens a panel of notifications grouped by day. The panel is a popover
|
|
6
|
+
// that the element shows while the host's [open] attribute is set; the browser hides it otherwise,
|
|
7
|
+
// and the open animation keys on :popover-open, so a React re-render never resets it. Every colour,
|
|
7
8
|
// radius and shadow is a theme token.
|
|
8
9
|
//
|
|
9
10
|
// Part of the wui-components layer, see _wui-components.scss for load order.
|
|
@@ -54,11 +55,8 @@
|
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
.wui-notification-center-panel {
|
|
57
|
-
position:
|
|
58
|
-
top: calc(100% + 6px);
|
|
59
|
-
right: 0;
|
|
58
|
+
position: fixed;
|
|
60
59
|
z-index: var(--wui-z-dropdown);
|
|
61
|
-
display: none;
|
|
62
60
|
width: 380px;
|
|
63
61
|
max-width: calc(100vw - 24px);
|
|
64
62
|
overflow: hidden;
|
|
@@ -70,12 +68,11 @@
|
|
|
70
68
|
outline: none;
|
|
71
69
|
transform-origin: top right;
|
|
72
70
|
}
|
|
73
|
-
.wui-notification-center
|
|
74
|
-
display: block;
|
|
71
|
+
.wui-notification-center-panel:popover-open {
|
|
75
72
|
animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
|
|
76
73
|
}
|
|
77
74
|
@media (prefers-reduced-motion: reduce) {
|
|
78
|
-
.wui-notification-center
|
|
75
|
+
.wui-notification-center-panel:popover-open {
|
|
79
76
|
animation: none;
|
|
80
77
|
}
|
|
81
78
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Clears the box the browser draws around a <dialog> or a popover, so the library panel inside is the box.
|
|
2
|
+
// Use it inside a :where() rule: zero specificity, so any class rule still wins.
|
|
3
|
+
@mixin wui-native-overlay-reset {
|
|
4
|
+
border: 0;
|
|
5
|
+
padding: 0;
|
|
6
|
+
background: none;
|
|
7
|
+
color: inherit;
|
|
8
|
+
width: auto;
|
|
9
|
+
height: auto;
|
|
10
|
+
max-width: none;
|
|
11
|
+
max-height: none;
|
|
12
|
+
margin: 0;
|
|
13
|
+
inset: auto;
|
|
14
|
+
overflow: visible;
|
|
15
|
+
}
|
package/scss/wui/_overlays.scss
CHANGED
|
@@ -9,14 +9,12 @@
|
|
|
9
9
|
// here may be overridden by a later partial. Never reorder the imports.
|
|
10
10
|
|
|
11
11
|
// ── Modal ──
|
|
12
|
-
// Chrome stays on `.wui-modal-*`. The shell is
|
|
13
|
-
// .modal.wui-modal-shell
|
|
14
|
-
// .
|
|
15
|
-
// .modal-dialog.wui-rb-dialog
|
|
16
|
-
// .modal-content.wui-modal
|
|
17
|
-
|
|
18
|
-
// .modal.
|
|
19
|
-
.modal-backdrop.wui-modal-dim {
|
|
12
|
+
// Chrome stays on `.wui-modal-*`. The shell is a native <dialog> opened with showModal():
|
|
13
|
+
// dialog.modal.wui-modal-shell ← the element (layout container, top layer)
|
|
14
|
+
// dialog.wui-modal-shell::backdrop ← the dim layer
|
|
15
|
+
// .modal-dialog.wui-rb-dialog ← the dialog's inner wrapper
|
|
16
|
+
// .modal-content.wui-modal ← the card
|
|
17
|
+
dialog.wui-modal-shell::backdrop {
|
|
20
18
|
// Opacity is pinned to 1 because Bootstrap's 0.5 would halve the dim. The strong scrim guarantees
|
|
21
19
|
// separation in every browser, including over embedded pages Chrome cannot blur; the blur on top
|
|
22
20
|
// is decoration.
|
|
@@ -31,38 +29,25 @@
|
|
|
31
29
|
}
|
|
32
30
|
.modal.wui-modal-shell {
|
|
33
31
|
--bs-modal-bg: transparent;
|
|
34
|
-
|
|
32
|
+
// Top, not centre: the dialog wrapper's own min-height does the vertical centring, measured from the
|
|
33
|
+
// padded top edge, which is where an open Bootstrap modal (a block box) has always placed it.
|
|
34
|
+
align-items: flex-start;
|
|
35
35
|
justify-content: center;
|
|
36
36
|
z-index: var(--wui-z-modal);
|
|
37
37
|
padding: 20px;
|
|
38
38
|
}
|
|
39
|
-
//
|
|
40
|
-
.modal
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
.modal-backdrop.wui-modal-backdrop-stacked {
|
|
44
|
-
z-index: calc(var(--bs-modal-zindex, 1055) + 9);
|
|
45
|
-
}
|
|
46
|
-
// `display: flex` ONLY while the dialog is actually open.
|
|
47
|
-
//
|
|
48
|
-
// This was `display: flex !important` on the rule above, which beat Bootstrap's
|
|
49
|
-
// `.modal { display: none }` — so a CLOSED <app-modal> stayed laid out as a
|
|
50
|
-
// full-viewport flex container and silently swallowed every click on the page behind
|
|
51
|
-
// it. React never hit it (react-bootstrap mounts the dialog only when open), so it
|
|
52
|
-
// only ever broke Razor, on any page that declared a modal.
|
|
53
|
-
//
|
|
54
|
-
// Both stacks open a modal by setting `display: block` inline (Bootstrap's JS and
|
|
55
|
-
// react-bootstrap alike), which is what this keys on — it covers the whole opening
|
|
56
|
-
// transition, not just the settled `.show` state. Specificity (0,3,0) beats `.modal`,
|
|
57
|
-
// so no !important is needed.
|
|
58
|
-
.modal.wui-modal-shell[style*="display: block"] {
|
|
39
|
+
// `display: flex` only while the dialog is open. A closed dialog must not lay out: as a
|
|
40
|
+
// full-viewport flex box it would swallow every click on the page. Bootstrap's `.modal` sets
|
|
41
|
+
// display: none, so this rule also has to beat it.
|
|
42
|
+
dialog.wui-modal-shell[open] {
|
|
59
43
|
display: flex;
|
|
60
44
|
}
|
|
61
45
|
// RB dialog shell: no Bootstrap max-width/margin so `.wui-modal` owns sizing.
|
|
62
46
|
.modal.wui-modal-shell .modal-dialog.wui-rb-dialog {
|
|
63
47
|
margin: 0;
|
|
64
48
|
max-width: none;
|
|
65
|
-
|
|
49
|
+
// The open shell is a flex box, where `auto` would shrink the wrapper to its content.
|
|
50
|
+
width: 100%;
|
|
66
51
|
pointer-events: none;
|
|
67
52
|
display: flex;
|
|
68
53
|
align-items: center;
|
|
@@ -98,13 +83,6 @@
|
|
|
98
83
|
// clip, not hidden: hidden makes the card a scroll container, so a focused control near its foot scrolled the card, not .wui-modal-body.
|
|
99
84
|
overflow: clip;
|
|
100
85
|
}
|
|
101
|
-
// The document gutter is reserved (html, body in _components.scss) and AppModal locks the page itself
|
|
102
|
-
// (ui-react lib/pageScrollLock.js), so the modal manager's scrollbar padding on body only bares a strip of
|
|
103
|
-
// page beside the backdrop. Bootstrap and react-bootstrap write it inline, which only !important outranks.
|
|
104
|
-
body.modal-open,
|
|
105
|
-
body[data-rr-ui-modal-open] {
|
|
106
|
-
padding-right: 0 !important;
|
|
107
|
-
}
|
|
108
86
|
// The centred card opens with the shared dialog motion (wui/_dialog-motion.scss: soft zoom by
|
|
109
87
|
// default). Width comes from `size`, which both surfaces resolve to `--wui-modal-max-width` on
|
|
110
88
|
// the shell (it inherits to `.wui-modal`).
|
|
@@ -526,9 +504,8 @@ body[data-rr-ui-modal-open] {
|
|
|
526
504
|
}
|
|
527
505
|
|
|
528
506
|
// ── Tooltip ──
|
|
529
|
-
// Both surfaces render
|
|
530
|
-
//
|
|
531
|
-
// `wui-tooltip` (React className, Razor data-bs-custom-class), so this design lands on App
|
|
507
|
+
// Both surfaces render .tooltip / .tooltip-inner inside a popover="manual" element. The
|
|
508
|
+
// wrappers tag the tooltip element with `wui-tooltip`, so this design lands on App
|
|
532
509
|
// tooltips only and never on a raw Bootstrap one. Every colour flows --wui-tooltip-* →
|
|
533
510
|
// Bootstrap's own --bs-tooltip-* vars, so the arrow (which Bootstrap paints from
|
|
534
511
|
// --bs-tooltip-bg) always tracks the body. Customisation seam: override a --wui-tooltip-* var
|
|
@@ -560,6 +537,9 @@ body[data-rr-ui-modal-open] {
|
|
|
560
537
|
--bs-tooltip-padding-x: var(--wui-tooltip-padding-x);
|
|
561
538
|
--bs-tooltip-opacity: 1;
|
|
562
539
|
}
|
|
540
|
+
.tooltip.wui-tooltip:popover-open {
|
|
541
|
+
opacity: var(--bs-tooltip-opacity);
|
|
542
|
+
}
|
|
563
543
|
.tooltip.wui-tooltip .tooltip-inner {
|
|
564
544
|
// Padding + font-size come from the --bs-tooltip-* vars above (driven by --wui-tooltip-*),
|
|
565
545
|
// so a size-* class or a custom var resizes the tip without touching this rule.
|
|
@@ -570,70 +550,15 @@ body[data-rr-ui-modal-open] {
|
|
|
570
550
|
box-shadow: var(--wui-tooltip-shadow);
|
|
571
551
|
}
|
|
572
552
|
|
|
573
|
-
//
|
|
574
|
-
|
|
575
|
-
// surface look — no JS, no Popper, instant, and identical on React and Razor by construction.
|
|
576
|
-
// It sits above the element; for a collision-aware / richer tooltip, use AppTooltip /
|
|
577
|
-
// <app-tooltip> instead.
|
|
578
|
-
//
|
|
579
|
-
// Sole remaining user: <app-tabs> tab buttons, which CANNOT use a Bootstrap tooltip — the button
|
|
580
|
-
// already owns a `bs.tab` instance and Bootstrap permits only one instance per element, so binding
|
|
581
|
-
// `bs.Tooltip` to it logs "Bootstrap doesn't allow more than one instance per element" and the tab
|
|
582
|
-
// instance is never registered. Everything else with a `tooltip` prop (AppIcon / <app-icon>
|
|
583
|
-
// included) now routes through the shared collision-aware AppTooltip / Bootstrap-tooltip (Popper)
|
|
584
|
-
// engine instead.
|
|
585
|
-
[data-wui-tip] {
|
|
553
|
+
// Zero specificity: a component that positions its own control (a remove badge pinned to a corner) keeps it.
|
|
554
|
+
:where([data-wui-tooltip]) {
|
|
586
555
|
position: relative;
|
|
587
556
|
}
|
|
588
|
-
// The wrapper the `tooltip` prop on AppIcon / <app-icon> puts around a glyph
|
|
589
|
-
// inline-flex layout; the tooltip itself rides the shared Popper engine (Bootstrap-tooltip
|
|
590
|
-
// data-attributes on this span, AppTooltip on React), not the CSS bubble above.
|
|
557
|
+
// The wrapper the `tooltip` prop on AppIcon / <app-icon> puts around a glyph: inline-flex layout only.
|
|
591
558
|
.wui-icon-tip {
|
|
592
559
|
display: inline-flex;
|
|
593
560
|
vertical-align: -0.125em;
|
|
594
561
|
}
|
|
595
|
-
[data-wui-tip]::after {
|
|
596
|
-
content: attr(data-wui-tip);
|
|
597
|
-
position: absolute;
|
|
598
|
-
bottom: calc(100% + 8px);
|
|
599
|
-
left: 50%;
|
|
600
|
-
transform: translateX(-50%);
|
|
601
|
-
// Sits on the dedicated tooltip rung — above menus/popovers/modals, below toasts — so it is
|
|
602
|
-
// never stacked under an overlay it is meant to annotate. This is a fixed-position CSS bubble
|
|
603
|
-
// (always above); for a collision-aware tooltip that flips to stay on-screen, use AppTooltip /
|
|
604
|
-
// <app-tooltip> (Popper), which AppActionIcon wraps for exactly that reason.
|
|
605
|
-
z-index: var(--wui-z-tooltip, 1650);
|
|
606
|
-
width: max-content;
|
|
607
|
-
max-width: 240px;
|
|
608
|
-
padding: 7px 11px;
|
|
609
|
-
border-radius: var(--wui-radius-md, 10px);
|
|
610
|
-
corner-shape: squircle;
|
|
611
|
-
background: var(--color-surface);
|
|
612
|
-
color: var(--color-text);
|
|
613
|
-
border: 1px solid var(--color-border-subtle);
|
|
614
|
-
box-shadow: var(--wui-shadow-popover);
|
|
615
|
-
font-size: 0.8125rem;
|
|
616
|
-
font-weight: 500;
|
|
617
|
-
line-height: 1.4;
|
|
618
|
-
text-align: left;
|
|
619
|
-
white-space: normal;
|
|
620
|
-
pointer-events: none;
|
|
621
|
-
opacity: 0;
|
|
622
|
-
visibility: hidden;
|
|
623
|
-
transition:
|
|
624
|
-
opacity var(--wui-duration-fast) var(--wui-ease-ui),
|
|
625
|
-
visibility var(--wui-duration-fast) var(--wui-ease-ui);
|
|
626
|
-
}
|
|
627
|
-
[data-wui-tip]:hover::after,
|
|
628
|
-
[data-wui-tip]:focus-visible::after {
|
|
629
|
-
opacity: 1;
|
|
630
|
-
visibility: visible;
|
|
631
|
-
}
|
|
632
|
-
@media (prefers-reduced-motion: reduce) {
|
|
633
|
-
[data-wui-tip]::after {
|
|
634
|
-
transition: none;
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
562
|
|
|
638
563
|
// Size presets — swap the four size vars. `md` is the :where default (no class).
|
|
639
564
|
.tooltip.wui-tooltip.size-sm {
|
|
@@ -654,6 +579,45 @@ body[data-rr-ui-modal-open] {
|
|
|
654
579
|
filter: drop-shadow(0 1px 1px color-mix(in srgb, var(--color-text) 14%, transparent));
|
|
655
580
|
}
|
|
656
581
|
|
|
582
|
+
// The arrow sits on the side of the bubble facing its trigger; data-side names the trigger side
|
|
583
|
+
// (top, bottom, start, end) as anchorOverlay writes it.
|
|
584
|
+
.tooltip.wui-tooltip[data-side="top"] .tooltip-arrow {
|
|
585
|
+
bottom: calc(-1 * var(--bs-tooltip-arrow-height));
|
|
586
|
+
}
|
|
587
|
+
.tooltip.wui-tooltip[data-side="top"] .tooltip-arrow::before {
|
|
588
|
+
top: -1px;
|
|
589
|
+
border-width: var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * 0.5) 0;
|
|
590
|
+
border-top-color: var(--bs-tooltip-bg);
|
|
591
|
+
}
|
|
592
|
+
.tooltip.wui-tooltip[data-side="end"] .tooltip-arrow {
|
|
593
|
+
left: calc(-1 * var(--bs-tooltip-arrow-height));
|
|
594
|
+
width: var(--bs-tooltip-arrow-height);
|
|
595
|
+
height: var(--bs-tooltip-arrow-width);
|
|
596
|
+
}
|
|
597
|
+
.tooltip.wui-tooltip[data-side="end"] .tooltip-arrow::before {
|
|
598
|
+
right: -1px;
|
|
599
|
+
border-width: calc(var(--bs-tooltip-arrow-width) * 0.5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * 0.5) 0;
|
|
600
|
+
border-right-color: var(--bs-tooltip-bg);
|
|
601
|
+
}
|
|
602
|
+
.tooltip.wui-tooltip[data-side="bottom"] .tooltip-arrow {
|
|
603
|
+
top: calc(-1 * var(--bs-tooltip-arrow-height));
|
|
604
|
+
}
|
|
605
|
+
.tooltip.wui-tooltip[data-side="bottom"] .tooltip-arrow::before {
|
|
606
|
+
bottom: -1px;
|
|
607
|
+
border-width: 0 calc(var(--bs-tooltip-arrow-width) * 0.5) var(--bs-tooltip-arrow-height);
|
|
608
|
+
border-bottom-color: var(--bs-tooltip-bg);
|
|
609
|
+
}
|
|
610
|
+
.tooltip.wui-tooltip[data-side="start"] .tooltip-arrow {
|
|
611
|
+
right: calc(-1 * var(--bs-tooltip-arrow-height));
|
|
612
|
+
width: var(--bs-tooltip-arrow-height);
|
|
613
|
+
height: var(--bs-tooltip-arrow-width);
|
|
614
|
+
}
|
|
615
|
+
.tooltip.wui-tooltip[data-side="start"] .tooltip-arrow::before {
|
|
616
|
+
left: -1px;
|
|
617
|
+
border-width: calc(var(--bs-tooltip-arrow-width) * 0.5) 0 calc(var(--bs-tooltip-arrow-width) * 0.5) var(--bs-tooltip-arrow-height);
|
|
618
|
+
border-left-color: var(--bs-tooltip-bg);
|
|
619
|
+
}
|
|
620
|
+
|
|
657
621
|
// Tone presets — swap the three colour vars; the arrow follows --bs-tooltip-bg automatically.
|
|
658
622
|
// Fills that carry white text use the AA-cleared -strong tokens; warning stays dark-on-yellow.
|
|
659
623
|
.tooltip.wui-tooltip.wui-tooltip-inverse {
|
|
@@ -682,6 +646,83 @@ body[data-rr-ui-modal-open] {
|
|
|
682
646
|
--wui-tooltip-border: transparent;
|
|
683
647
|
}
|
|
684
648
|
|
|
649
|
+
// Popover arrow side, read from data-side as for the tooltip above.
|
|
650
|
+
.popover[data-side="top"] > .popover-arrow {
|
|
651
|
+
bottom: calc(-1 * var(--bs-popover-arrow-height) - var(--bs-popover-border-width));
|
|
652
|
+
}
|
|
653
|
+
.popover[data-side="top"] > .popover-arrow::before,
|
|
654
|
+
.popover[data-side="top"] > .popover-arrow::after {
|
|
655
|
+
border-width: var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * 0.5) 0;
|
|
656
|
+
}
|
|
657
|
+
.popover[data-side="top"] > .popover-arrow::before {
|
|
658
|
+
bottom: 0;
|
|
659
|
+
border-top-color: var(--bs-popover-arrow-border);
|
|
660
|
+
}
|
|
661
|
+
.popover[data-side="top"] > .popover-arrow::after {
|
|
662
|
+
bottom: var(--bs-popover-border-width);
|
|
663
|
+
border-top-color: var(--bs-popover-bg);
|
|
664
|
+
}
|
|
665
|
+
.popover[data-side="end"] > .popover-arrow {
|
|
666
|
+
left: calc(-1 * var(--bs-popover-arrow-height) - var(--bs-popover-border-width));
|
|
667
|
+
width: var(--bs-popover-arrow-height);
|
|
668
|
+
height: var(--bs-popover-arrow-width);
|
|
669
|
+
}
|
|
670
|
+
.popover[data-side="end"] > .popover-arrow::before,
|
|
671
|
+
.popover[data-side="end"] > .popover-arrow::after {
|
|
672
|
+
border-width: calc(var(--bs-popover-arrow-width) * 0.5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * 0.5) 0;
|
|
673
|
+
}
|
|
674
|
+
.popover[data-side="end"] > .popover-arrow::before {
|
|
675
|
+
left: 0;
|
|
676
|
+
border-right-color: var(--bs-popover-arrow-border);
|
|
677
|
+
}
|
|
678
|
+
.popover[data-side="end"] > .popover-arrow::after {
|
|
679
|
+
left: var(--bs-popover-border-width);
|
|
680
|
+
border-right-color: var(--bs-popover-bg);
|
|
681
|
+
}
|
|
682
|
+
.popover[data-side="bottom"] > .popover-arrow {
|
|
683
|
+
top: calc(-1 * var(--bs-popover-arrow-height) - var(--bs-popover-border-width));
|
|
684
|
+
}
|
|
685
|
+
.popover[data-side="bottom"] > .popover-arrow::before,
|
|
686
|
+
.popover[data-side="bottom"] > .popover-arrow::after {
|
|
687
|
+
border-width: 0 calc(var(--bs-popover-arrow-width) * 0.5) var(--bs-popover-arrow-height);
|
|
688
|
+
}
|
|
689
|
+
.popover[data-side="bottom"] > .popover-arrow::before {
|
|
690
|
+
top: 0;
|
|
691
|
+
border-bottom-color: var(--bs-popover-arrow-border);
|
|
692
|
+
}
|
|
693
|
+
.popover[data-side="bottom"] > .popover-arrow::after {
|
|
694
|
+
top: var(--bs-popover-border-width);
|
|
695
|
+
border-bottom-color: var(--bs-popover-bg);
|
|
696
|
+
}
|
|
697
|
+
// Bootstrap removes the header's border just below a bottom arrow.
|
|
698
|
+
.popover[data-side="bottom"] .popover-header::before {
|
|
699
|
+
position: absolute;
|
|
700
|
+
top: 0;
|
|
701
|
+
left: 50%;
|
|
702
|
+
display: block;
|
|
703
|
+
width: var(--bs-popover-arrow-width);
|
|
704
|
+
margin-left: calc(-0.5 * var(--bs-popover-arrow-width));
|
|
705
|
+
content: "";
|
|
706
|
+
border-bottom: var(--bs-popover-border-width) solid var(--bs-popover-header-bg);
|
|
707
|
+
}
|
|
708
|
+
.popover[data-side="start"] > .popover-arrow {
|
|
709
|
+
right: calc(-1 * var(--bs-popover-arrow-height) - var(--bs-popover-border-width));
|
|
710
|
+
width: var(--bs-popover-arrow-height);
|
|
711
|
+
height: var(--bs-popover-arrow-width);
|
|
712
|
+
}
|
|
713
|
+
.popover[data-side="start"] > .popover-arrow::before,
|
|
714
|
+
.popover[data-side="start"] > .popover-arrow::after {
|
|
715
|
+
border-width: calc(var(--bs-popover-arrow-width) * 0.5) 0 calc(var(--bs-popover-arrow-width) * 0.5) var(--bs-popover-arrow-height);
|
|
716
|
+
}
|
|
717
|
+
.popover[data-side="start"] > .popover-arrow::before {
|
|
718
|
+
right: 0;
|
|
719
|
+
border-left-color: var(--bs-popover-arrow-border);
|
|
720
|
+
}
|
|
721
|
+
.popover[data-side="start"] > .popover-arrow::after {
|
|
722
|
+
right: var(--bs-popover-border-width);
|
|
723
|
+
border-left-color: var(--bs-popover-bg);
|
|
724
|
+
}
|
|
725
|
+
|
|
685
726
|
// ── Toast (notifications) ──
|
|
686
727
|
// Surface-card toasts shared by React <AppToast/> and Razor <app-toast>/WUI.toast: an elevated
|
|
687
728
|
// card with a left accent bar + variant icon, an auto-dismiss progress bar (pauses on hover/focus),
|
|
@@ -1063,7 +1104,6 @@ body[data-rr-ui-modal-open] {
|
|
|
1063
1104
|
.wui-toast--surface-inverse .wui-toast-close {
|
|
1064
1105
|
filter: invert(1) grayscale(100%) brightness(200%);
|
|
1065
1106
|
}
|
|
1066
|
-
:root[data-theme="dark"] .wui-toast--surface-inverse .wui-toast-close,
|
|
1067
1107
|
:root[data-bs-theme="dark"] .wui-toast--surface-inverse .wui-toast-close {
|
|
1068
1108
|
filter: none;
|
|
1069
1109
|
}
|
|
@@ -49,6 +49,30 @@
|
|
|
49
49
|
.page-header.page-header-bar .page-actions {
|
|
50
50
|
flex: none;
|
|
51
51
|
}
|
|
52
|
+
// The actions sit in a <wui-overflow>: the ones that do not fit fold into its More menu, so the host
|
|
53
|
+
// shrinks with the row instead of running past the header's edge.
|
|
54
|
+
.page-header.page-header-bar > .wui-page-header-actions {
|
|
55
|
+
flex: 0 1 auto;
|
|
56
|
+
gap: var(--wui-space-sm);
|
|
57
|
+
min-width: 0;
|
|
58
|
+
}
|
|
59
|
+
// The list keeps one line: an action that does not fit folds into More instead of wrapping. Its
|
|
60
|
+
// actions never shrink, so the overflow element measures real overflow instead of wrapped labels.
|
|
61
|
+
.page-header.page-header-bar > .wui-page-header-actions > .page-actions {
|
|
62
|
+
flex: 0 1 auto;
|
|
63
|
+
flex-wrap: nowrap;
|
|
64
|
+
min-width: 0;
|
|
65
|
+
}
|
|
66
|
+
.page-header.page-header-bar > .wui-page-header-actions > .page-actions > * {
|
|
67
|
+
flex: none;
|
|
68
|
+
}
|
|
69
|
+
// More sits among small action buttons, so it takes their height and corner.
|
|
70
|
+
.page-header.page-header-bar > .wui-page-header-actions > .wui-overflow-more {
|
|
71
|
+
height: var(--wui-control-sm);
|
|
72
|
+
padding: 0 var(--wui-space-md);
|
|
73
|
+
border-radius: var(--wui-button-sm-radius);
|
|
74
|
+
color: var(--color-text);
|
|
75
|
+
}
|
|
52
76
|
.page-header-bar-views {
|
|
53
77
|
flex: 0 1 auto;
|
|
54
78
|
min-width: 0;
|
package/scss/wui/_scrollbar.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use "../config" as *;
|
|
2
2
|
|
|
3
|
-
// AppScrollbar / opt-in internal scrollers
|
|
3
|
+
// AppScrollbar / opt-in internal scrollers, same tokens as the document rail
|
|
4
4
|
// (--wui-scrollbar*). Document chrome lives on html/body only; use this class
|
|
5
5
|
// for panels, drawers, and modal bodies that need a matching thin thumb.
|
|
6
6
|
.wui-scroll {
|
package/scss/wui/_sections.scss
CHANGED
|
@@ -266,12 +266,12 @@
|
|
|
266
266
|
opacity: 1;
|
|
267
267
|
}
|
|
268
268
|
// Dark pages: a dark mark turns light, and the hover and focus reveal keeps that inversion.
|
|
269
|
-
:root[data-theme="dark"] .wui-section-logo-img {
|
|
269
|
+
:root[data-bs-theme="dark"] .wui-section-logo-img {
|
|
270
270
|
filter: grayscale(1) invert(1);
|
|
271
271
|
opacity: 0.8;
|
|
272
272
|
}
|
|
273
|
-
:root[data-theme="dark"] .wui-section-logo-img:hover,
|
|
274
|
-
:root[data-theme="dark"] .wui-section-logo a:focus-visible .wui-section-logo-img {
|
|
273
|
+
:root[data-bs-theme="dark"] .wui-section-logo-img:hover,
|
|
274
|
+
:root[data-bs-theme="dark"] .wui-section-logo a:focus-visible .wui-section-logo-img {
|
|
275
275
|
filter: grayscale(1) invert(1);
|
|
276
276
|
opacity: 1;
|
|
277
277
|
}
|