@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/_shell.scss
CHANGED
|
@@ -209,7 +209,8 @@
|
|
|
209
209
|
display: grid;
|
|
210
210
|
grid-template-columns: var(--app-sidebar-w) 1fr;
|
|
211
211
|
min-height: 100vh;
|
|
212
|
-
|
|
212
|
+
// --wui-shell-bg sets the shell's own background.
|
|
213
|
+
background: var(--wui-shell-bg, var(--color-bg));
|
|
213
214
|
transition: grid-template-columns var(--wui-duration-default) var(--wui-ease-ui);
|
|
214
215
|
}
|
|
215
216
|
.app-shell.collapsed {
|
|
@@ -310,14 +311,14 @@
|
|
|
310
311
|
.app-sidebar-brand .wui-brand-dark {
|
|
311
312
|
display: none;
|
|
312
313
|
}
|
|
313
|
-
:root[data-theme="dark"] .app-sidebar-brand.wui-brand-themed .wui-brand-light {
|
|
314
|
+
:root[data-bs-theme="dark"] .app-sidebar-brand.wui-brand-themed .wui-brand-light {
|
|
314
315
|
display: none;
|
|
315
316
|
}
|
|
316
317
|
// `:where` keeps this as light as the collapsed rule that hides the logo, so that later rule still wins.
|
|
317
|
-
:root[data-theme="dark"] .app-sidebar-brand .wui-brand-dark:where(.wui-brand-logo) {
|
|
318
|
+
:root[data-bs-theme="dark"] .app-sidebar-brand .wui-brand-dark:where(.wui-brand-logo) {
|
|
318
319
|
display: block;
|
|
319
320
|
}
|
|
320
|
-
:root[data-theme="dark"] .app-sidebar-brand.wui-brand-mark-only .wui-brand-mark.wui-brand-dark {
|
|
321
|
+
:root[data-bs-theme="dark"] .app-sidebar-brand.wui-brand-mark-only .wui-brand-mark.wui-brand-dark {
|
|
321
322
|
display: block;
|
|
322
323
|
}
|
|
323
324
|
// The brand link wraps the logo, mark and brand text as one row, laid out as the brand row itself is.
|
|
@@ -437,11 +438,12 @@
|
|
|
437
438
|
margin-top: 16px;
|
|
438
439
|
}
|
|
439
440
|
// Groups after the first are separated by a rule; the first sits directly under
|
|
440
|
-
// the brand row and needs none.
|
|
441
|
+
// the brand row and needs none. --wui-nav-group-gap sets the space above the rule and
|
|
442
|
+
// --wui-nav-group-rule its colour.
|
|
441
443
|
.app-nav-group + .app-nav-group {
|
|
442
|
-
margin-top: 20px;
|
|
444
|
+
margin-top: var(--wui-nav-group-gap, 20px);
|
|
443
445
|
padding-top: var(--wui-space-md);
|
|
444
|
-
border-top: 1px solid var(--color-border);
|
|
446
|
+
border-top: 1px solid var(--wui-nav-group-rule, var(--color-border));
|
|
445
447
|
}
|
|
446
448
|
// A node the author places right after a group's links (`groups[].after` /
|
|
447
449
|
// `<app-nav-group-after>`). Like sidebarStart it has no place on the 88px rail.
|
|
@@ -568,7 +570,8 @@
|
|
|
568
570
|
min-width: 0;
|
|
569
571
|
overflow: hidden;
|
|
570
572
|
text-overflow: ellipsis;
|
|
571
|
-
|
|
573
|
+
// --wui-nav-text-wrap sets how a top-level label wraps (normal lets a long label take a second line).
|
|
574
|
+
white-space: var(--wui-nav-text-wrap, nowrap);
|
|
572
575
|
}
|
|
573
576
|
.app-nav-badge {
|
|
574
577
|
flex: none;
|
|
@@ -631,10 +634,10 @@
|
|
|
631
634
|
object-fit: cover;
|
|
632
635
|
object-position: left center;
|
|
633
636
|
}
|
|
634
|
-
:root[data-theme="dark"] .app-shell.collapsed .app-sidebar-brand.wui-brand-themed .wui-brand-mark.wui-brand-light {
|
|
637
|
+
:root[data-bs-theme="dark"] .app-shell.collapsed .app-sidebar-brand.wui-brand-themed .wui-brand-mark.wui-brand-light {
|
|
635
638
|
display: none;
|
|
636
639
|
}
|
|
637
|
-
:root[data-theme="dark"] .app-shell.collapsed .app-sidebar-brand .wui-brand-mark.wui-brand-dark {
|
|
640
|
+
:root[data-bs-theme="dark"] .app-shell.collapsed .app-sidebar-brand .wui-brand-mark.wui-brand-dark {
|
|
638
641
|
display: block;
|
|
639
642
|
}
|
|
640
643
|
// The label leaves the VISUAL flow but must stay in the accessibility tree — an
|
|
@@ -753,9 +756,10 @@
|
|
|
753
756
|
// group's toggle is a sub-item too (`.app-nav-item.app-nav-subitem` outranks the group button's
|
|
754
757
|
// `font: inherit`), and each level below the first adds a 16px step through --wui-nav-depth
|
|
755
758
|
// (set on the row from depth 2), so a nested group's children sit visibly under it.
|
|
759
|
+
// --wui-nav-sub-indent sets the first-level inset of a child row (default 46px).
|
|
756
760
|
.app-nav-item.app-nav-subitem {
|
|
757
761
|
min-height: 38px;
|
|
758
|
-
padding-left: calc(46px + (var(--wui-nav-depth, 1) - 1) * 16px);
|
|
762
|
+
padding-left: calc(var(--wui-nav-sub-indent, 46px) + (var(--wui-nav-depth, 1) - 1) * 16px);
|
|
759
763
|
font-size: 13px;
|
|
760
764
|
}
|
|
761
765
|
@for $n from 2 through 6 {
|
|
@@ -793,7 +797,7 @@
|
|
|
793
797
|
text-decoration: none;
|
|
794
798
|
}
|
|
795
799
|
.app-nav-item.wui-nav-split.app-nav-subitem .wui-nav-split-link {
|
|
796
|
-
padding-left: calc(46px + (var(--wui-nav-depth, 1) - 1) * 16px);
|
|
800
|
+
padding-left: calc(var(--wui-nav-sub-indent, 46px) + (var(--wui-nav-depth, 1) - 1) * 16px);
|
|
797
801
|
}
|
|
798
802
|
.wui-nav-split-toggle {
|
|
799
803
|
border: 0;
|
|
@@ -945,15 +949,19 @@
|
|
|
945
949
|
min-height: var(--wui-shell-topbar-height);
|
|
946
950
|
padding: 12px 28px;
|
|
947
951
|
background: var(--color-surface);
|
|
948
|
-
// Reserved rather than absent, so
|
|
949
|
-
// `.app-topbar.scrolled` doesn't shift the layout by a pixel.
|
|
950
|
-
// adds that class on scroll but deliberately paints nothing: how heavy the
|
|
951
|
-
// topbar reads once the page moves is a per-surface art-direction call.
|
|
952
|
+
// Reserved rather than absent, so colouring the divider once scrolled
|
|
953
|
+
// (`.app-topbar.wui-scrolled`) doesn't shift the layout by a pixel.
|
|
952
954
|
border-bottom: 1px solid transparent;
|
|
953
955
|
transition:
|
|
954
956
|
border-color var(--wui-duration-default) var(--wui-ease-ui),
|
|
955
957
|
box-shadow var(--wui-duration-default) var(--wui-ease-ui);
|
|
956
958
|
}
|
|
959
|
+
// --wui-shell-topbar-scrolled-border-color and --wui-shell-topbar-scrolled-shadow paint the divider
|
|
960
|
+
// and shadow once the page has scrolled; unset, the scrolled topbar looks as it does at rest.
|
|
961
|
+
.app-topbar.wui-scrolled {
|
|
962
|
+
border-bottom-color: var(--wui-shell-topbar-scrolled-border-color, transparent);
|
|
963
|
+
box-shadow: var(--wui-shell-topbar-scrolled-shadow, none);
|
|
964
|
+
}
|
|
957
965
|
.app-topbar[data-tone="primary"] {
|
|
958
966
|
background: var(--color-primary);
|
|
959
967
|
color: var(--color-on-primary);
|
|
@@ -1139,23 +1147,118 @@
|
|
|
1139
1147
|
height: 44px;
|
|
1140
1148
|
}
|
|
1141
1149
|
}
|
|
1142
|
-
//
|
|
1143
|
-
//
|
|
1144
|
-
.
|
|
1145
|
-
display: none;
|
|
1146
|
-
}
|
|
1150
|
+
// Below lg the sidebar is a popover (set by the script on the phone tier): the browser draws its
|
|
1151
|
+
// backdrop and closes it on Escape and an outside press. The UA stylesheet hides a closed popover,
|
|
1152
|
+
// but the sidebar's own display rule overrides that, so a closed one is hidden here.
|
|
1147
1153
|
@include media-breakpoint-down(lg) {
|
|
1148
|
-
.app-shell.app-shell
|
|
1149
|
-
|
|
1150
|
-
inset: 0;
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1154
|
+
.app-shell.app-shell .app-sidebar[popover] {
|
|
1155
|
+
margin: 0;
|
|
1156
|
+
inset-inline: 0 auto;
|
|
1157
|
+
}
|
|
1158
|
+
.app-shell.app-shell .app-sidebar[popover]:not(:popover-open) {
|
|
1159
|
+
display: none;
|
|
1160
|
+
}
|
|
1161
|
+
.app-shell.app-shell .app-sidebar::backdrop {
|
|
1155
1162
|
background: var(--color-scrim);
|
|
1156
1163
|
}
|
|
1157
1164
|
}
|
|
1158
1165
|
|
|
1166
|
+
// AppShell tone="brand": the sidebar and its parts take the --color-shell-* tokens.
|
|
1167
|
+
.app-shell[data-shell-tone="brand"] {
|
|
1168
|
+
--wui-nav-group-rule: var(--color-shell-rule);
|
|
1169
|
+
|
|
1170
|
+
.app-sidebar {
|
|
1171
|
+
background: var(--color-shell-bg);
|
|
1172
|
+
color: var(--color-shell-text);
|
|
1173
|
+
}
|
|
1174
|
+
.app-sidebar-brand {
|
|
1175
|
+
color: var(--color-shell-text-strong);
|
|
1176
|
+
}
|
|
1177
|
+
.app-nav-group-label,
|
|
1178
|
+
.wui-nav-group-toggle,
|
|
1179
|
+
.wui-nav-header {
|
|
1180
|
+
color: var(--color-shell-text-muted);
|
|
1181
|
+
}
|
|
1182
|
+
.app-nav-item {
|
|
1183
|
+
color: var(--color-shell-text);
|
|
1184
|
+
}
|
|
1185
|
+
.app-nav-icon,
|
|
1186
|
+
.app-nav-caret,
|
|
1187
|
+
.app-nav-trailing {
|
|
1188
|
+
color: var(--color-shell-text-muted);
|
|
1189
|
+
}
|
|
1190
|
+
.app-nav-item:hover,
|
|
1191
|
+
.wui-nav-split-toggle:hover {
|
|
1192
|
+
background: var(--color-shell-hover);
|
|
1193
|
+
color: var(--color-shell-text-strong);
|
|
1194
|
+
}
|
|
1195
|
+
.app-nav-item:hover :is(.app-nav-icon, .app-nav-caret) {
|
|
1196
|
+
color: var(--color-shell-text);
|
|
1197
|
+
}
|
|
1198
|
+
.app-nav-item.has-children[aria-expanded="true"] {
|
|
1199
|
+
color: var(--color-shell-text-strong);
|
|
1200
|
+
}
|
|
1201
|
+
.app-nav-item.has-children[aria-expanded="true"] .app-nav-icon {
|
|
1202
|
+
color: var(--color-shell-text);
|
|
1203
|
+
}
|
|
1204
|
+
.app-nav-item.active {
|
|
1205
|
+
background: var(--color-shell-active);
|
|
1206
|
+
color: var(--color-shell-text-strong);
|
|
1207
|
+
}
|
|
1208
|
+
.app-nav-item.active :is(.app-nav-icon, .app-nav-trailing) {
|
|
1209
|
+
color: var(--color-shell-accent);
|
|
1210
|
+
}
|
|
1211
|
+
// A group that holds the open page reads as open: a faint band with an accent icon.
|
|
1212
|
+
.app-nav-item.has-children.active {
|
|
1213
|
+
background: var(--color-shell-fill-subtle);
|
|
1214
|
+
}
|
|
1215
|
+
.app-nav-item.has-children.active:hover {
|
|
1216
|
+
background: var(--color-shell-hover);
|
|
1217
|
+
}
|
|
1218
|
+
// The group's pages hang off a guide line, drawn only while the group is open (a closed group would show a stub).
|
|
1219
|
+
// --wui-nav-guide-color colours it.
|
|
1220
|
+
.app-nav-sub-inner {
|
|
1221
|
+
margin-inline-start: var(--wui-space-md);
|
|
1222
|
+
border-inline-start: 1px solid transparent;
|
|
1223
|
+
}
|
|
1224
|
+
.app-nav-sub.expanded > .app-nav-sub-inner {
|
|
1225
|
+
border-inline-start-color: var(--wui-nav-guide-color, color-mix(in srgb, var(--color-shell-accent) 40%, transparent));
|
|
1226
|
+
}
|
|
1227
|
+
// The line already sets the pages in, so the row starts a small gap after it and takes a smaller inset
|
|
1228
|
+
// (--wui-nav-sub-indent, the md space step here); the depth step is kept.
|
|
1229
|
+
.app-nav-sub-inner > .app-nav-item.app-nav-subitem,
|
|
1230
|
+
.app-nav-sub-inner > .app-nav-item.wui-nav-split.app-nav-subitem .wui-nav-split-link {
|
|
1231
|
+
padding-left: calc(var(--wui-nav-sub-indent, var(--wui-space-md)) + (var(--wui-nav-depth, 1) - 1) * var(--wui-space-lg));
|
|
1232
|
+
}
|
|
1233
|
+
.app-nav-sub-inner > .app-nav-subitem {
|
|
1234
|
+
margin-inline-start: var(--wui-space-sm);
|
|
1235
|
+
}
|
|
1236
|
+
.app-nav-item.app-nav-subitem.active {
|
|
1237
|
+
background: var(--color-shell-bg-raised);
|
|
1238
|
+
}
|
|
1239
|
+
.app-nav-item:focus-visible,
|
|
1240
|
+
.wui-nav-split-link:focus-visible,
|
|
1241
|
+
.wui-nav-split-toggle:focus-visible,
|
|
1242
|
+
.wui-nav-group-toggle:focus-visible {
|
|
1243
|
+
outline-color: var(--color-shell-accent);
|
|
1244
|
+
}
|
|
1245
|
+
// A toned badge keeps its status colours.
|
|
1246
|
+
.app-nav-badge:not([class*="tone-"]) {
|
|
1247
|
+
background: var(--color-shell-fill);
|
|
1248
|
+
color: var(--color-shell-text);
|
|
1249
|
+
}
|
|
1250
|
+
.app-sidebar-toggle {
|
|
1251
|
+
color: var(--color-shell-text-muted);
|
|
1252
|
+
}
|
|
1253
|
+
.app-sidebar-toggle::before {
|
|
1254
|
+
border-top-color: var(--color-shell-rule);
|
|
1255
|
+
}
|
|
1256
|
+
.app-sidebar-toggle:hover {
|
|
1257
|
+
background: var(--color-shell-hover);
|
|
1258
|
+
color: var(--color-shell-text-strong);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1159
1262
|
@media (prefers-reduced-motion: reduce) {
|
|
1160
1263
|
.app-shell,
|
|
1161
1264
|
.app-sidebar,
|
package/scss/wui/_shortcuts.scss
CHANGED
|
@@ -83,11 +83,10 @@
|
|
|
83
83
|
outline-offset: var(--wui-focus-ring-offset);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
// An auto popover: placed by the element, drawn in the top layer, closed by the browser.
|
|
86
87
|
.wui-shortcut-sheet {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
bottom: calc(100% + 8px);
|
|
90
|
-
z-index: var(--wui-z-dropdown, 1000);
|
|
88
|
+
inset: auto;
|
|
89
|
+
margin: 0;
|
|
91
90
|
width: min(320px, calc(100vw - 32px));
|
|
92
91
|
border: 1px solid var(--color-border);
|
|
93
92
|
border-radius: var(--wui-radius-md);
|
|
@@ -98,17 +97,6 @@
|
|
|
98
97
|
font-size: 14px;
|
|
99
98
|
text-align: start;
|
|
100
99
|
}
|
|
101
|
-
.wui-shortcut-sheet[hidden] {
|
|
102
|
-
display: none;
|
|
103
|
-
}
|
|
104
|
-
.wui-shortcut-sheet.wui-shortcut-sheet-below {
|
|
105
|
-
top: calc(100% + 8px);
|
|
106
|
-
bottom: auto;
|
|
107
|
-
}
|
|
108
|
-
.wui-shortcut-sheet.wui-shortcut-sheet-start {
|
|
109
|
-
left: 0;
|
|
110
|
-
right: auto;
|
|
111
|
-
}
|
|
112
100
|
.wui-shortcut-sheet-head {
|
|
113
101
|
display: flex;
|
|
114
102
|
align-items: center;
|
package/scss/wui/_sortable.scss
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// while the person drags and shows a `.wui-sortable-ghost` copy under the pointer; everything
|
|
6
6
|
// visual lives here.
|
|
7
7
|
//
|
|
8
|
-
// Part of the wui-components layer
|
|
8
|
+
// Part of the wui-components layer. See _wui-components.scss for load order.
|
|
9
9
|
|
|
10
10
|
wui-sortable {
|
|
11
11
|
display: flex;
|
package/scss/wui/_tone-pill.scss
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
// ── Shared tone-pill color mixin ──
|
|
4
4
|
// Consolidates the tone→color mapping used by .badge, .status-label, and .chip:
|
|
5
5
|
// background: var(--color-{tone}-soft)
|
|
6
|
-
// color: var(--color-{tone}-text-on-soft) (override via $text
|
|
6
|
+
// color: var(--color-{tone}-text-on-soft) (override via $text, see below)
|
|
7
7
|
// border-color: transparent
|
|
8
8
|
//
|
|
9
9
|
// $text exists because `primary` has no on-tint token: --color-{status}-text-on-soft is the
|
|
10
10
|
// on-tint hue (equal to -text in light, lifted in dark), but --color-on-primary
|
|
11
11
|
// is the text-on-SOLID-primary color (near-black in dark mode) and fails AA on the
|
|
12
|
-
// soft tint
|
|
12
|
+
// soft tint. Primary pills pass var(--color-primary-text) instead.
|
|
13
13
|
//
|
|
14
14
|
// Component-specific overrides (e.g. .badge-primary's colored border) are applied
|
|
15
15
|
// after the mixin call.
|
package/scss/wui/_toolbar.scss
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
@use "../config" as *;
|
|
2
2
|
|
|
3
3
|
// ── Toolbar ──
|
|
4
|
-
// AppToolbar / <app-toolbar>
|
|
4
|
+
// AppToolbar / <app-toolbar> (a Figma-style tool strip): a pill of icon tools where
|
|
5
5
|
// the active tool expands to reveal its label. Radio-backed (no JS needed on Razor);
|
|
6
6
|
// the expand/collapse is pure CSS off :checked.
|
|
7
7
|
//
|
|
8
|
-
// Part of the wui-components layer
|
|
8
|
+
// Part of the wui-components layer: see _wui-components.scss for load order.
|
|
9
9
|
|
|
10
10
|
.toolbar {
|
|
11
11
|
display: inline-flex;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
outline-offset: var(--wui-focus-ring-offset);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
// Visually hidden but focusable/announceable
|
|
57
|
+
// Visually hidden but focusable/announceable; same trick as .segmented-input.
|
|
58
58
|
.toolbar-input {
|
|
59
59
|
position: absolute;
|
|
60
60
|
width: 1px;
|
package/scss/wui/_truncate.scss
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
// ── Truncate ──
|
|
4
4
|
// AppTruncate / <app-truncate> (a <wui-truncate> element): text cut with an ellipsis by width or by
|
|
5
|
-
// line count. The element sets data-wui-
|
|
6
|
-
//
|
|
5
|
+
// line count. The element sets data-wui-tooltip on itself, not on the clipped span, so the JS tooltip can
|
|
6
|
+
// anchor to the full element.
|
|
7
7
|
//
|
|
8
8
|
// Part of the wui-components layer, see _wui-components.scss for load order.
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
|
|
5
5
|
// Text-scale utilities.
|
|
6
6
|
//
|
|
7
|
-
// Part of the wui-components layer
|
|
7
|
+
// Part of the wui-components layer. See _wui-components.scss for the whole
|
|
8
8
|
// picture and the load order. Order within the layer is LOAD-BEARING: these
|
|
9
9
|
// partials are a split of one stylesheet, not independent modules, so a rule
|
|
10
10
|
// here may be overridden by a later partial. Never reorder the imports.
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
color: var(--color-primary-text);
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
/* Tones
|
|
187
|
+
/* Tones: tinted surface + on-tint text; icon/remove inherit the tone colour. */
|
|
188
188
|
.chip.primary {
|
|
189
189
|
@include wui-tone-pill-colors(primary, var(--color-primary-text));
|
|
190
190
|
}
|
|
@@ -199,6 +199,7 @@
|
|
|
199
199
|
}
|
|
200
200
|
.chip.info {
|
|
201
201
|
@include wui-tone-pill-colors(info);
|
|
202
|
+
border-color: var(--color-info-border);
|
|
202
203
|
}
|
|
203
204
|
.chip.primary .chip-ic,
|
|
204
205
|
.chip.success .chip-ic,
|
|
@@ -223,12 +224,12 @@
|
|
|
223
224
|
|
|
224
225
|
// ── Variants ──────────────────────────────────────────────────────────────
|
|
225
226
|
// The base `.chip` above is the SOFT variant (tinted surface, on-tint text, no
|
|
226
|
-
// visible border)
|
|
227
|
+
// visible border). The default, unchanged. `.chip-outline` and
|
|
227
228
|
// `.chip-solid` layer on top and MUST stay after the tone block so a
|
|
228
229
|
// `.chip-solid.primary` (0,2,0) wins over `.chip.primary` (0,2,0) on source
|
|
229
230
|
// order. The disabled block below still wins because it comes after both.
|
|
230
231
|
|
|
231
|
-
// Outline
|
|
232
|
+
// Outline: the soft tint kept, but the transparent border swapped for the
|
|
232
233
|
// tone's own colour (a crisper, bounded chip). Only the border changes for a
|
|
233
234
|
// toned chip; neutral drops the muted fill for a clean outlined pill.
|
|
234
235
|
.chip-outline {
|
|
@@ -254,11 +255,11 @@
|
|
|
254
255
|
border-color: var(--color-border-strong);
|
|
255
256
|
}
|
|
256
257
|
|
|
257
|
-
// Solid
|
|
258
|
+
// Solid: a filled pill carrying white text (near-black on the light-primary in
|
|
258
259
|
// dark mode, via --color-on-primary). The fills are the deep, white-safe
|
|
259
260
|
// tokens: --wui-*-strong / --color-primary are AA with white; info & warning
|
|
260
261
|
// have no ready deep token, so they are mixed toward black until white clears
|
|
261
|
-
// AA (warning-with-white only passes on a dark gold
|
|
262
|
+
// AA (warning-with-white only passes on a dark gold; the vibrant --wui-warning
|
|
262
263
|
// cannot). These raw --wui-* deep values are mode-independent, so no dark block
|
|
263
264
|
// is needed; neutral flips automatically because text↔surface swap by theme.
|
|
264
265
|
.chip-solid {
|
|
@@ -312,13 +313,13 @@
|
|
|
312
313
|
color: currentColor;
|
|
313
314
|
}
|
|
314
315
|
|
|
315
|
-
// Disabled
|
|
316
|
+
// Disabled: deliberately NOT opacity, and deliberately after the tones.
|
|
316
317
|
//
|
|
317
318
|
// `opacity: .55` fades the whole chip, label included, so a faded label can fall under the
|
|
318
319
|
// 4.5:1 AA floor. Explicit muted tokens read as the same state and keep the label legible.
|
|
319
320
|
//
|
|
320
321
|
// It sits after the tone block on purpose. `.chip.is-disabled` and `.chip.primary` have
|
|
321
|
-
// equal specificity, so source order decides
|
|
322
|
+
// equal specificity, so source order decides: declared before them, a disabled primary
|
|
322
323
|
// chip kept its primary colours. That is very likely why opacity was reached for in the
|
|
323
324
|
// first place: it composes over any tone without having to win the cascade.
|
|
324
325
|
.chip.is-disabled {
|
package/scss/wui/_utilities.scss
CHANGED
|
@@ -401,8 +401,7 @@
|
|
|
401
401
|
aspect-ratio: 1;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
// Touch screens: grow the hit area, not the disc, so row density is unchanged. On ::before, never ::after
|
|
405
|
-
// which a [data-wui-tip] tooltip owns (same as .u-action in _data.scss).
|
|
404
|
+
// Touch screens: grow the hit area, not the disc, so row density is unchanged. On ::before, never ::after.
|
|
406
405
|
@media (pointer: coarse) {
|
|
407
406
|
.btn-icon {
|
|
408
407
|
position: relative;
|
|
@@ -507,13 +506,6 @@
|
|
|
507
506
|
vertical-align: middle;
|
|
508
507
|
}
|
|
509
508
|
|
|
510
|
-
// AppPopover wrapper (React panel styling comes from Bootstrap's .popover; this is only the
|
|
511
|
-
// Razor anchor span carrying the data-bs-* wiring). inline-block so it hugs its trigger and
|
|
512
|
-
// gives Bootstrap a stable anchor box.
|
|
513
|
-
.app-popover {
|
|
514
|
-
display: inline-block;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
509
|
// Bootstrap compiles the title colour from $headings-color, a fixed light-mode value; the token keeps it readable in dark mode.
|
|
518
510
|
.popover {
|
|
519
511
|
--bs-popover-header-color: var(--color-text);
|
|
@@ -632,8 +624,8 @@
|
|
|
632
624
|
// `.fade` opacity transition carry the fade in and out. Both surfaces render `.popover.pw-popover`
|
|
633
625
|
// (React via react-bootstrap's Popover, Razor via Bootstrap's popover), so this makes the two
|
|
634
626
|
// identical. Higher specificity than `.popover.show` so it wins regardless of partial load order.
|
|
635
|
-
.popover.pw-popover
|
|
636
|
-
.popover.infotip-popover
|
|
627
|
+
.popover.pw-popover:popover-open,
|
|
628
|
+
.popover.infotip-popover:popover-open {
|
|
637
629
|
animation: none;
|
|
638
630
|
scale: none;
|
|
639
631
|
translate: none;
|
|
@@ -851,7 +843,7 @@
|
|
|
851
843
|
transform: translateX(100%);
|
|
852
844
|
}
|
|
853
845
|
}
|
|
854
|
-
:root[data-theme="dark"] .skeleton::after {
|
|
846
|
+
:root[data-bs-theme="dark"] .skeleton::after {
|
|
855
847
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
|
|
856
848
|
}
|
|
857
849
|
@media (prefers-reduced-motion: reduce) {
|
package/scss/wui/_whats-new.scss
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
// ── What's new ──
|
|
4
4
|
// AppWhatsNew / <app-whats-new> (a <wui-whats-new> element): a gift icon with an unread dot and a
|
|
5
5
|
// panel of dated release notes under it. The element shows the dot through [data-wui-unread] on the
|
|
6
|
-
// host
|
|
7
|
-
//
|
|
8
|
-
//
|
|
6
|
+
// host and marks each unread entry with [data-wui-unread]. The panel is a popover: the browser hides
|
|
7
|
+
// it until it is shown, and the open animation keys on :popover-open (never .show or hidden, which a
|
|
8
|
+
// React re-render could reset). The panel places itself with position: fixed, so it escapes any
|
|
9
|
+
// clipping ancestor. Without script the panel stays closed.
|
|
9
10
|
//
|
|
10
11
|
// Part of the wui-components layer, see _wui-components.scss for load order.
|
|
11
12
|
|
|
@@ -66,7 +67,6 @@
|
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
.wui-whats-new-panel {
|
|
69
|
-
display: none;
|
|
70
70
|
position: fixed;
|
|
71
71
|
z-index: var(--wui-z-popover);
|
|
72
72
|
box-sizing: border-box;
|
|
@@ -83,8 +83,7 @@
|
|
|
83
83
|
outline: none;
|
|
84
84
|
transform-origin: top right;
|
|
85
85
|
}
|
|
86
|
-
.wui-whats-new
|
|
87
|
-
display: block;
|
|
86
|
+
.wui-whats-new-panel:popover-open {
|
|
88
87
|
animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
|
|
89
88
|
}
|
|
90
89
|
.wui-whats-new-panel.drop-up {
|
|
@@ -160,7 +159,7 @@
|
|
|
160
159
|
}
|
|
161
160
|
|
|
162
161
|
@media (prefers-reduced-motion: reduce) {
|
|
163
|
-
.wui-whats-new
|
|
162
|
+
.wui-whats-new-panel:popover-open {
|
|
164
163
|
animation: none;
|
|
165
164
|
}
|
|
166
165
|
}
|
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 |
|