@webority/theme 0.164.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/dist/purge-safelist.json +37 -13
- package/dist/webority-theme.css +1 -1
- package/package.json +3 -3
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_tokens.generated.scss +1 -1
- package/scss/_wui-components.scss +2 -2
- package/scss/_wui-core.scss +2 -2
- package/scss/wui/_controls.scss +6 -43
- package/scss/wui/_data.scss +52 -2
- package/scss/wui/_entry-grid.scss +118 -0
- package/scss/wui/_field-sizes.scss +1 -2
- package/scss/wui/_formula-steps.scss +73 -0
- package/scss/wui/_interaction.scss +4 -0
- package/scss/wui/_metric-strip.scss +14 -0
- package/scss/wui/_overlays.scss +8 -0
- package/scss/wui/_sections.scss +28 -0
- package/scss/wui/_shell-parts.scss +4 -0
- package/scss/wui/_typography.scss +1 -0
- package/scss/wui/_utilities.scss +0 -7
- package/scss/wui/_resizable.scss +0 -100
- package/scss/wui/_rolling-number.scss +0 -68
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.165.0",
|
|
4
4
|
"description": "Webority shared design system: Bootstrap 5.3 SCSS overrides, --wui-* tokens, and shared component CSS. The single source of brand chrome for React portals and Razor sites.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@popperjs/core": "2.11.8",
|
|
71
71
|
"@types/node": "25.6.0",
|
|
72
|
-
"@webority/biome-config": "0.
|
|
73
|
-
"@webority/tokens": "0.
|
|
72
|
+
"@webority/biome-config": "0.165.0",
|
|
73
|
+
"@webority/tokens": "0.165.0",
|
|
74
74
|
"bootstrap": "5.3.9",
|
|
75
75
|
"country-flag-icons": "^1.6.20",
|
|
76
76
|
"sass-embedded": "^1.108.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by @webority/tokens 0.
|
|
1
|
+
// Generated by @webority/tokens 0.165.0 from its token source. Do not edit; run webority brand --library.
|
|
2
2
|
$body-color: #252f4a !default;
|
|
3
3
|
$body-secondary-color: #4b5675 !default;
|
|
4
4
|
$body-tertiary-color: #626a82 !default;
|
|
@@ -66,6 +66,8 @@
|
|
|
66
66
|
// Before `split-view`, which places the legend sheet inside the list column.
|
|
67
67
|
@use "wui/record-pager";
|
|
68
68
|
@use "wui/shortcuts";
|
|
69
|
+
@use "wui/entry-grid";
|
|
70
|
+
@use "wui/formula-steps";
|
|
69
71
|
@use "wui/split-view";
|
|
70
72
|
@use "wui/detail-pane";
|
|
71
73
|
@use "wui/groups";
|
|
@@ -77,8 +79,6 @@
|
|
|
77
79
|
@use "wui/money";
|
|
78
80
|
@use "wui/period-picker";
|
|
79
81
|
@use "wui/relative-time";
|
|
80
|
-
@use "wui/resizable";
|
|
81
|
-
@use "wui/rolling-number";
|
|
82
82
|
@use "wui/show-more";
|
|
83
83
|
@use "wui/truncate";
|
|
84
84
|
// After `navigation`/`overlays`: the switcher restates dropdown-item chrome those partials
|
package/scss/_wui-core.scss
CHANGED
|
@@ -55,6 +55,8 @@
|
|
|
55
55
|
// Before `split-view`, which places the legend sheet inside the list column.
|
|
56
56
|
@use "wui/record-pager";
|
|
57
57
|
@use "wui/shortcuts";
|
|
58
|
+
@use "wui/entry-grid";
|
|
59
|
+
@use "wui/formula-steps";
|
|
58
60
|
@use "wui/split-view";
|
|
59
61
|
@use "wui/detail-pane";
|
|
60
62
|
@use "wui/groups";
|
|
@@ -66,8 +68,6 @@
|
|
|
66
68
|
@use "wui/money";
|
|
67
69
|
@use "wui/period-picker";
|
|
68
70
|
@use "wui/relative-time";
|
|
69
|
-
@use "wui/resizable";
|
|
70
|
-
@use "wui/rolling-number";
|
|
71
71
|
@use "wui/show-more";
|
|
72
72
|
@use "wui/truncate";
|
|
73
73
|
@use "wui/page-header-bar";
|
package/scss/wui/_controls.scss
CHANGED
|
@@ -380,49 +380,6 @@
|
|
|
380
380
|
corner-shape: round;
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
-
// Table-row switch (<app-row-switch>, AppRowSwitch): a button, not an input, so a row can post it.
|
|
384
|
-
// Same track, knob, colours and focus ring as the form switch above.
|
|
385
|
-
.wui-row-switch {
|
|
386
|
-
display: inline-flex;
|
|
387
|
-
align-items: center;
|
|
388
|
-
padding: 0;
|
|
389
|
-
border: 0;
|
|
390
|
-
background: none;
|
|
391
|
-
border-radius: var(--wui-radius-pill);
|
|
392
|
-
cursor: pointer;
|
|
393
|
-
}
|
|
394
|
-
.wui-row-switch:focus-visible {
|
|
395
|
-
outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
|
|
396
|
-
outline-offset: var(--wui-focus-ring-offset);
|
|
397
|
-
}
|
|
398
|
-
.wui-row-switch__track {
|
|
399
|
-
position: relative;
|
|
400
|
-
display: block;
|
|
401
|
-
width: 40px;
|
|
402
|
-
height: 22px;
|
|
403
|
-
border-radius: var(--wui-radius-pill);
|
|
404
|
-
background-color: var(--color-border-strong);
|
|
405
|
-
}
|
|
406
|
-
.wui-row-switch__thumb {
|
|
407
|
-
position: absolute;
|
|
408
|
-
top: 2px;
|
|
409
|
-
left: 2px;
|
|
410
|
-
width: 18px;
|
|
411
|
-
height: 18px;
|
|
412
|
-
border-radius: 50%;
|
|
413
|
-
background-color: var(--color-surface);
|
|
414
|
-
}
|
|
415
|
-
.wui-row-switch[aria-checked="true"] .wui-row-switch__track {
|
|
416
|
-
background-color: var(--color-primary);
|
|
417
|
-
}
|
|
418
|
-
.wui-row-switch[aria-checked="true"] .wui-row-switch__thumb {
|
|
419
|
-
transform: translateX(18px);
|
|
420
|
-
}
|
|
421
|
-
.wui-row-switch:disabled,
|
|
422
|
-
.wui-row-switch[aria-busy="true"] {
|
|
423
|
-
opacity: var(--wui-disabled-opacity);
|
|
424
|
-
cursor: not-allowed;
|
|
425
|
-
}
|
|
426
383
|
@media (prefers-reduced-motion: reduce) {
|
|
427
384
|
.form-check-input,
|
|
428
385
|
.wui-check,
|
|
@@ -1609,6 +1566,7 @@ wui-date-range {
|
|
|
1609
1566
|
}
|
|
1610
1567
|
.badge-info {
|
|
1611
1568
|
@include wui-tone-pill-colors(info);
|
|
1569
|
+
border-color: var(--color-info-border);
|
|
1612
1570
|
}
|
|
1613
1571
|
.badge-dot::before {
|
|
1614
1572
|
content: "";
|
|
@@ -1646,6 +1604,8 @@ wui-date-range {
|
|
|
1646
1604
|
}
|
|
1647
1605
|
.status-label.info {
|
|
1648
1606
|
@include wui-tone-pill-colors(info);
|
|
1607
|
+
// An inset shadow, not a border, so an info pill keeps its size.
|
|
1608
|
+
box-shadow: inset 0 0 0 1px var(--color-info-border);
|
|
1649
1609
|
}
|
|
1650
1610
|
.status-label.primary {
|
|
1651
1611
|
@include wui-tone-pill-colors(primary, var(--color-primary-text));
|
|
@@ -1663,6 +1623,9 @@ wui-date-range {
|
|
|
1663
1623
|
.status-label.wui-bordered {
|
|
1664
1624
|
border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
|
|
1665
1625
|
}
|
|
1626
|
+
.status-label.info.wui-bordered {
|
|
1627
|
+
box-shadow: none;
|
|
1628
|
+
}
|
|
1666
1629
|
|
|
1667
1630
|
// ── Choice chip ──
|
|
1668
1631
|
// Inline selectable chip: the native input is hidden and the pill shows its state. The look reads
|
package/scss/wui/_data.scss
CHANGED
|
@@ -73,6 +73,10 @@
|
|
|
73
73
|
background-color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
74
74
|
color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
75
75
|
}
|
|
76
|
+
// A header's info tip sits inline after the label, with the shared xs gap.
|
|
77
|
+
:where(.table) > thead > tr > th > .infotip {
|
|
78
|
+
margin-left: var(--wui-space-xs);
|
|
79
|
+
}
|
|
76
80
|
:where(.table) > tbody > tr > td,
|
|
77
81
|
:where(.table) > tbody > tr > th.wui-row-header {
|
|
78
82
|
--bs-table-color: var(--color-text-muted);
|
|
@@ -173,6 +177,10 @@
|
|
|
173
177
|
.table-wrap.wui-table-flush:has(> .table-ledger) {
|
|
174
178
|
padding: 0;
|
|
175
179
|
}
|
|
180
|
+
.table-wrap.wui-table-refreshing > table {
|
|
181
|
+
opacity: 0.6;
|
|
182
|
+
transition: opacity var(--wui-duration-fast) var(--wui-ease-ui);
|
|
183
|
+
}
|
|
176
184
|
.table-ledger {
|
|
177
185
|
border-spacing: 0;
|
|
178
186
|
}
|
|
@@ -444,6 +452,18 @@
|
|
|
444
452
|
min-width: 0;
|
|
445
453
|
max-width: 320px;
|
|
446
454
|
}
|
|
455
|
+
// Opt-in labelled facets: the wrapper takes the control's place in the row.
|
|
456
|
+
.wui-filter-bar > .wui-filter-facet {
|
|
457
|
+
flex: 0 1 auto;
|
|
458
|
+
}
|
|
459
|
+
.wui-filter-bar > .wui-filter-facet:has(> :is(.field, wui-select, wui-date-range)) {
|
|
460
|
+
flex: 1 1 180px;
|
|
461
|
+
max-width: 240px;
|
|
462
|
+
}
|
|
463
|
+
.wui-filter-bar > .wui-filter-facet:has(> .search-wrap) {
|
|
464
|
+
flex: 1 1 260px;
|
|
465
|
+
max-width: 320px;
|
|
466
|
+
}
|
|
447
467
|
// The Razor bar sits in a GET form beside its Apply button. Its own box would take a whole
|
|
448
468
|
// line and push Apply below it, so the form lays the controls, chips, Clear all and Apply out
|
|
449
469
|
// as one row. `!important` beats the bar's d-flex utility, which React shares.
|
|
@@ -767,6 +787,16 @@
|
|
|
767
787
|
outline-offset: var(--wui-focus-ring-inset);
|
|
768
788
|
}
|
|
769
789
|
|
|
790
|
+
// Opt-in: the first column reads as the link a clickable row already is.
|
|
791
|
+
.table-ledger.wui-table-link-first tbody tr.wui-row-link > .wui-name-cell :is(.u-name, .u-name > *) {
|
|
792
|
+
color: var(--color-primary-text);
|
|
793
|
+
font-weight: 500;
|
|
794
|
+
}
|
|
795
|
+
.table-ledger.wui-table-link-first tbody tr.wui-row-link:is(:hover, :focus-visible) > .wui-name-cell .u-name {
|
|
796
|
+
text-decoration: underline;
|
|
797
|
+
text-underline-offset: 3px;
|
|
798
|
+
}
|
|
799
|
+
|
|
770
800
|
// Stacked on phones (AppDataTable `stackOnMobile`, Razor `stack-on-mobile`): below md (768px) each
|
|
771
801
|
// row is a card. The first column (after the library's select/expand cells) leads the card at full
|
|
772
802
|
// width, every other cell is a "label: value" line from its data-label, the select checkbox sits in
|
|
@@ -1090,15 +1120,35 @@
|
|
|
1090
1120
|
width: var(--wui-scroll-pad-end, 0);
|
|
1091
1121
|
}
|
|
1092
1122
|
|
|
1093
|
-
// Row actions
|
|
1123
|
+
// Row actions from one list: icon buttons (.wui-row-action-inline) and one "more" menu
|
|
1124
|
+
// (.wui-row-actions-menu), drawn by AppRowActions and <app-row-actions>.
|
|
1094
1125
|
.u-row-actions {
|
|
1095
1126
|
display: flex;
|
|
1096
1127
|
align-items: center;
|
|
1097
1128
|
justify-content: flex-end;
|
|
1098
1129
|
gap: 6px;
|
|
1099
|
-
// Action cells never wrap
|
|
1130
|
+
// Action cells never wrap, so a labelled action stays on one line.
|
|
1100
1131
|
white-space: nowrap;
|
|
1101
1132
|
}
|
|
1133
|
+
// Below sm the menu is the only control; from sm up the menu shows only when it holds a row of its own.
|
|
1134
|
+
@include media-breakpoint-down(sm) {
|
|
1135
|
+
.u-row-actions > .wui-row-action-inline {
|
|
1136
|
+
display: none;
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
@include media-breakpoint-up(sm) {
|
|
1140
|
+
.u-row-actions > .wui-row-actions-menu.wui-hidden-from-sm {
|
|
1141
|
+
display: none;
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
// Equal-width row actions (`equalActions`): each text button in the actions cell takes the same width, wide enough for a short verb. Icon-only actions (.u-action) are left alone.
|
|
1145
|
+
.table-ledger.wui-table-equal-actions {
|
|
1146
|
+
--wui-row-action-width: 7rem;
|
|
1147
|
+
}
|
|
1148
|
+
.table-ledger.wui-table-equal-actions .u-row-actions > .btn {
|
|
1149
|
+
min-width: var(--wui-row-action-width);
|
|
1150
|
+
justify-content: center;
|
|
1151
|
+
}
|
|
1102
1152
|
.u-action {
|
|
1103
1153
|
// The disc size is a custom property so the wrapper can scale it with the glyph `size`
|
|
1104
1154
|
// (React AppActionIcon / Razor <app-action-icon> set it to `size + 16px` — a constant 8px
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
3
|
+
// ── Entry grid ──
|
|
4
|
+
// AppEntryGrid / .wui-entry-grid: an editable line table with a status column, a keyboard legend
|
|
5
|
+
// and a sticky totals row. Row state paints through Bootstrap's --bs-table-bg-state, as the data
|
|
6
|
+
// table does (_data.scss → Row state), so the tint layers over a cell's own inset shadow.
|
|
7
|
+
//
|
|
8
|
+
// Part of the wui-components layer; see _wui-components.scss for load order.
|
|
9
|
+
|
|
10
|
+
.wui-entry-grid {
|
|
11
|
+
min-width: 0;
|
|
12
|
+
max-width: 100%;
|
|
13
|
+
}
|
|
14
|
+
.wui-entry-grid-scroll {
|
|
15
|
+
max-width: 100%;
|
|
16
|
+
overflow-x: auto;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Inputs fill their cell; the cell adds no padding around them, so a line reads as one row of fields.
|
|
20
|
+
.wui-entry-grid-table td:has(input:not([type="checkbox"], [type="radio"]), select, textarea) {
|
|
21
|
+
padding: 0;
|
|
22
|
+
}
|
|
23
|
+
.wui-entry-grid-table td > :is(input, select, textarea):not([type="checkbox"], [type="radio"]) {
|
|
24
|
+
width: 100%;
|
|
25
|
+
min-width: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.wui-entry-grid-status {
|
|
29
|
+
width: 2rem;
|
|
30
|
+
min-width: 2rem;
|
|
31
|
+
max-width: 2rem;
|
|
32
|
+
padding-inline: 0;
|
|
33
|
+
text-align: center;
|
|
34
|
+
}
|
|
35
|
+
.wui-entry-grid-status > .wui-icon,
|
|
36
|
+
.wui-entry-grid-status > .spinner-border {
|
|
37
|
+
vertical-align: middle;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.wui-entry-grid-row.is-active {
|
|
41
|
+
--bs-table-bg-state: var(--color-primary-soft);
|
|
42
|
+
}
|
|
43
|
+
.wui-entry-grid-row.is-active:hover {
|
|
44
|
+
--bs-table-bg-state: color-mix(in srgb, var(--color-primary) 14%, transparent);
|
|
45
|
+
}
|
|
46
|
+
.wui-entry-grid-row.is-active > td:first-child {
|
|
47
|
+
box-shadow:
|
|
48
|
+
inset 3px 0 0 0 var(--color-primary),
|
|
49
|
+
inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
|
|
50
|
+
}
|
|
51
|
+
.wui-entry-grid-row-failed {
|
|
52
|
+
--bs-table-bg-state: var(--color-danger-soft);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.wui-entry-grid-dot {
|
|
56
|
+
display: inline-block;
|
|
57
|
+
width: 8px;
|
|
58
|
+
height: 8px;
|
|
59
|
+
border-radius: var(--wui-radius-pill);
|
|
60
|
+
background: var(--color-warning);
|
|
61
|
+
vertical-align: middle;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.wui-entry-grid-detail > td {
|
|
65
|
+
background: var(--color-surface);
|
|
66
|
+
padding: var(--wui-space-md);
|
|
67
|
+
}
|
|
68
|
+
.wui-entry-grid-error {
|
|
69
|
+
color: var(--color-danger-text);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.wui-entry-grid-table [data-kind="number"],
|
|
73
|
+
.wui-entry-grid-table [data-kind="number"] > :is(input, select, textarea) {
|
|
74
|
+
font-variant-numeric: tabular-nums;
|
|
75
|
+
text-align: end;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.wui-entry-grid-footer td {
|
|
79
|
+
position: sticky;
|
|
80
|
+
bottom: 0;
|
|
81
|
+
z-index: 1;
|
|
82
|
+
background: var(--color-surface);
|
|
83
|
+
border-top: 1px solid var(--color-border);
|
|
84
|
+
font-weight: var(--wui-fw-bold);
|
|
85
|
+
font-variant-numeric: tabular-nums;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.wui-entry-grid-empty > td {
|
|
89
|
+
color: var(--color-text-muted);
|
|
90
|
+
text-align: center;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.wui-entry-grid-bar {
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-wrap: wrap;
|
|
96
|
+
align-items: center;
|
|
97
|
+
gap: var(--wui-space-sm);
|
|
98
|
+
margin-top: var(--wui-space-sm);
|
|
99
|
+
}
|
|
100
|
+
.wui-entry-grid-add {
|
|
101
|
+
order: 0;
|
|
102
|
+
}
|
|
103
|
+
.wui-entry-grid-hint {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-wrap: wrap;
|
|
106
|
+
align-items: center;
|
|
107
|
+
gap: var(--wui-space-xs) var(--wui-space-md);
|
|
108
|
+
margin: 0;
|
|
109
|
+
padding: 0;
|
|
110
|
+
list-style: none;
|
|
111
|
+
font-size: var(--wui-fs-xs);
|
|
112
|
+
color: var(--color-text-muted);
|
|
113
|
+
}
|
|
114
|
+
.wui-entry-grid-hint > li {
|
|
115
|
+
display: inline-flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
gap: var(--wui-space-xs);
|
|
118
|
+
}
|
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
// .textarea sets its own padding and height after .input-sm/.input-lg, so the shared step classes
|
|
6
6
|
// need restating with the textarea's specificity.
|
|
7
|
-
// A
|
|
7
|
+
// A small text area takes its text size from .input-sm, so iOS zooms on focus as it does for that field.
|
|
8
8
|
.textarea.input-sm {
|
|
9
9
|
padding: var(--wui-space-sm) var(--wui-space-md) var(--wui-space-sm);
|
|
10
|
-
font-size: var(--wui-fs-lg);
|
|
11
10
|
border-radius: var(--wui-field-sm-radius);
|
|
12
11
|
}
|
|
13
12
|
.textarea.input-lg {
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
3
|
+
// ── Formula steps ──
|
|
4
|
+
// AppFormulaSteps / <app-formula-steps>: a calculation shown as signed lines, each a label over
|
|
5
|
+
// its working and note, the figure end-aligned on the first line. The total line is ruled above.
|
|
6
|
+
//
|
|
7
|
+
// Part of the wui-components layer, see _wui-components.scss for load order.
|
|
8
|
+
|
|
9
|
+
.wui-formula-steps {
|
|
10
|
+
list-style: none;
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.wui-formula-step {
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-template-columns: 1.25rem minmax(0, 1fr) auto;
|
|
18
|
+
grid-template-areas:
|
|
19
|
+
"sign label result"
|
|
20
|
+
". working ."
|
|
21
|
+
". note .";
|
|
22
|
+
row-gap: var(--wui-space-xxs);
|
|
23
|
+
column-gap: var(--wui-space-sm);
|
|
24
|
+
align-items: baseline;
|
|
25
|
+
padding-block: var(--wui-space-sm);
|
|
26
|
+
border-bottom: 1px solid var(--color-border);
|
|
27
|
+
}
|
|
28
|
+
.wui-formula-step:last-child {
|
|
29
|
+
border-bottom: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.wui-formula-sign {
|
|
33
|
+
grid-area: sign;
|
|
34
|
+
text-align: center;
|
|
35
|
+
color: var(--color-text-muted);
|
|
36
|
+
font-variant-numeric: tabular-nums;
|
|
37
|
+
}
|
|
38
|
+
.wui-formula-label {
|
|
39
|
+
grid-area: label;
|
|
40
|
+
min-width: 0;
|
|
41
|
+
color: var(--color-text-body);
|
|
42
|
+
font-weight: var(--wui-fw-medium);
|
|
43
|
+
}
|
|
44
|
+
.wui-formula-working {
|
|
45
|
+
grid-area: working;
|
|
46
|
+
font-size: var(--wui-fs-xs);
|
|
47
|
+
color: var(--color-text-muted);
|
|
48
|
+
}
|
|
49
|
+
.wui-formula-note {
|
|
50
|
+
grid-area: note;
|
|
51
|
+
font-size: var(--wui-fs-xs);
|
|
52
|
+
color: var(--color-text-muted);
|
|
53
|
+
}
|
|
54
|
+
.wui-formula-result {
|
|
55
|
+
grid-area: result;
|
|
56
|
+
justify-self: end;
|
|
57
|
+
text-align: end;
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
font-variant-numeric: tabular-nums;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// The line before the total drops its own rule, so the total's rule is the only line between them.
|
|
63
|
+
.wui-formula-step:has(+ .wui-formula-step-total) {
|
|
64
|
+
border-bottom-color: transparent;
|
|
65
|
+
}
|
|
66
|
+
.wui-formula-step-total {
|
|
67
|
+
border-top: 2px solid var(--color-border-strong);
|
|
68
|
+
border-bottom: 0;
|
|
69
|
+
}
|
|
70
|
+
.wui-formula-step-total .wui-formula-label,
|
|
71
|
+
.wui-formula-step-total .wui-formula-result {
|
|
72
|
+
font-weight: var(--wui-fw-bold);
|
|
73
|
+
}
|
|
@@ -280,6 +280,10 @@ html:has(.form-actions-sticky) {
|
|
|
280
280
|
padding-block: var(--wui-space-md);
|
|
281
281
|
margin-block: calc(-1 * var(--wui-space-md));
|
|
282
282
|
}
|
|
283
|
+
.wui-touch-target {
|
|
284
|
+
min-width: var(--wui-touch-target);
|
|
285
|
+
min-height: var(--wui-touch-target);
|
|
286
|
+
}
|
|
283
287
|
}
|
|
284
288
|
|
|
285
289
|
// Touch pointers at any width: the same 44px floor for controls the phone block does not reach.
|
|
@@ -85,3 +85,17 @@ a.wui-metric:hover .wui-metric-value {
|
|
|
85
85
|
.wui-metric-tone-info .wui-metric-value {
|
|
86
86
|
color: var(--color-info-text);
|
|
87
87
|
}
|
|
88
|
+
|
|
89
|
+
// Opt-in: one flush row. No gap, items stretched to the row height, a rule between items from md up.
|
|
90
|
+
.wui-metric-strip-divided {
|
|
91
|
+
gap: 0;
|
|
92
|
+
align-items: stretch;
|
|
93
|
+
}
|
|
94
|
+
.wui-metric-strip-divided .wui-metric {
|
|
95
|
+
padding: var(--wui-space-md) var(--wui-space-lg);
|
|
96
|
+
}
|
|
97
|
+
@media (min-width: 768px) {
|
|
98
|
+
.wui-metric-strip-divided .wui-metric + .wui-metric {
|
|
99
|
+
border-left: 1px solid var(--color-border);
|
|
100
|
+
}
|
|
101
|
+
}
|
package/scss/wui/_overlays.scss
CHANGED
|
@@ -168,6 +168,14 @@ dialog.wui-modal-shell[open] {
|
|
|
168
168
|
color: var(--color-text);
|
|
169
169
|
overflow-wrap: anywhere;
|
|
170
170
|
}
|
|
171
|
+
// The opt-in display face restates the type settings, so it wins over the
|
|
172
|
+
// --wui-modal-title-font-* hooks, which only tune the default title.
|
|
173
|
+
.wui-modal-title-serif {
|
|
174
|
+
font-family: var(--wui-font-display, inherit);
|
|
175
|
+
font-size: 30px;
|
|
176
|
+
font-weight: var(--wui-fw-medium, 500);
|
|
177
|
+
line-height: var(--wui-lh-heading, 1.2);
|
|
178
|
+
}
|
|
171
179
|
.wui-modal-subtitle {
|
|
172
180
|
margin-top: 1px;
|
|
173
181
|
font-size: 12px;
|
package/scss/wui/_sections.scss
CHANGED
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
}
|
|
85
85
|
.wui-section-eyebrow-info {
|
|
86
86
|
@include wui-tone-pill-colors(info);
|
|
87
|
+
border-color: var(--color-info-border);
|
|
87
88
|
}
|
|
88
89
|
.wui-section-title {
|
|
89
90
|
margin: 0;
|
|
@@ -187,6 +188,21 @@
|
|
|
187
188
|
background: var(--color-primary-soft);
|
|
188
189
|
color: var(--color-primary-text);
|
|
189
190
|
}
|
|
191
|
+
// An image in place of the icon: no tile behind it, its own ratio at the tile's height.
|
|
192
|
+
.wui-section-feature-icon-image {
|
|
193
|
+
width: auto;
|
|
194
|
+
height: auto;
|
|
195
|
+
border-radius: var(--wui-radius-none);
|
|
196
|
+
background: none;
|
|
197
|
+
justify-content: flex-start;
|
|
198
|
+
}
|
|
199
|
+
.wui-section-feature-img {
|
|
200
|
+
display: block;
|
|
201
|
+
width: auto;
|
|
202
|
+
max-width: 100%;
|
|
203
|
+
height: var(--wui-space-3xl);
|
|
204
|
+
object-fit: contain;
|
|
205
|
+
}
|
|
190
206
|
.wui-section-feature-title {
|
|
191
207
|
margin: 0;
|
|
192
208
|
color: var(--color-text);
|
|
@@ -281,6 +297,18 @@
|
|
|
281
297
|
color: var(--color-text-subtle);
|
|
282
298
|
font-size: var(--wui-fs-lg);
|
|
283
299
|
}
|
|
300
|
+
.wui-section-logo-stack {
|
|
301
|
+
display: inline-flex;
|
|
302
|
+
flex-direction: column;
|
|
303
|
+
align-items: center;
|
|
304
|
+
gap: var(--wui-space-sm);
|
|
305
|
+
}
|
|
306
|
+
.wui-section-logo-caption {
|
|
307
|
+
color: var(--color-text-muted);
|
|
308
|
+
font-size: var(--wui-fs-sm);
|
|
309
|
+
font-weight: var(--wui-fw-medium);
|
|
310
|
+
text-align: center;
|
|
311
|
+
}
|
|
284
312
|
|
|
285
313
|
// ── Testimonials ──
|
|
286
314
|
.wui-section-testimonials-list {
|
|
@@ -195,6 +195,10 @@
|
|
|
195
195
|
.wui-usermenu-trigger:hover {
|
|
196
196
|
background: var(--wui-usermenu-hover-bg, var(--color-bg-muted));
|
|
197
197
|
}
|
|
198
|
+
// Opt-in: an always-on edge on the trigger. An inset shadow keeps the 44px box the same size.
|
|
199
|
+
.wui-usermenu-trigger-outlined {
|
|
200
|
+
box-shadow: inset 0 0 0 1px var(--color-border);
|
|
201
|
+
}
|
|
198
202
|
.wui-usermenu-trigger:focus-visible {
|
|
199
203
|
outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
|
|
200
204
|
outline-offset: var(--wui-focus-ring-offset);
|
package/scss/wui/_utilities.scss
CHANGED
|
@@ -506,13 +506,6 @@
|
|
|
506
506
|
vertical-align: middle;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
-
// AppPopover wrapper (React panel styling comes from Bootstrap's .popover; this is only the
|
|
510
|
-
// Razor anchor span carrying the data-bs-* wiring). inline-block so it hugs its trigger and
|
|
511
|
-
// gives Bootstrap a stable anchor box.
|
|
512
|
-
.app-popover {
|
|
513
|
-
display: inline-block;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
509
|
// Bootstrap compiles the title colour from $headings-color, a fixed light-mode value; the token keeps it readable in dark mode.
|
|
517
510
|
.popover {
|
|
518
511
|
--bs-popover-header-color: var(--color-text);
|
package/scss/wui/_resizable.scss
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
@use "../config" as *;
|
|
2
|
-
|
|
3
|
-
// ── Resizable panels ──
|
|
4
|
-
// AppResizable / <app-resizable> (a <wui-resizable> element): panels side by side or stacked with a
|
|
5
|
-
// handle between each pair. The element writes each panel's `flex` (a share of the room the panels
|
|
6
|
-
// split) and the handle's aria-value*; the handle is a thin line with a wider invisible hit area so a
|
|
7
|
-
// finger can find it. `direction="vertical"` stacks the panels and needs a height: set
|
|
8
|
-
// `--wui-resizable-height` on the group, or give its parent one.
|
|
9
|
-
//
|
|
10
|
-
// Part of the wui-components layer, see _wui-components.scss for load order.
|
|
11
|
-
|
|
12
|
-
.wui-resizable {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: row;
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: var(--wui-resizable-height, auto);
|
|
17
|
-
min-width: 0;
|
|
18
|
-
min-height: 0;
|
|
19
|
-
}
|
|
20
|
-
.wui-resizable[direction="vertical"] {
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
height: var(--wui-resizable-height, 100%);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.wui-resizable-panel {
|
|
26
|
-
flex: 1 1 0;
|
|
27
|
-
min-width: 0;
|
|
28
|
-
min-height: 0;
|
|
29
|
-
overflow: auto;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.wui-resizable-handle {
|
|
33
|
-
position: relative;
|
|
34
|
-
flex: none;
|
|
35
|
-
width: 9px;
|
|
36
|
-
cursor: col-resize;
|
|
37
|
-
touch-action: none;
|
|
38
|
-
user-select: none;
|
|
39
|
-
outline: none;
|
|
40
|
-
}
|
|
41
|
-
.wui-resizable[direction="vertical"] > .wui-resizable-handle {
|
|
42
|
-
width: auto;
|
|
43
|
-
height: 9px;
|
|
44
|
-
cursor: row-resize;
|
|
45
|
-
}
|
|
46
|
-
// The visible line, centred in the handle.
|
|
47
|
-
.wui-resizable-handle::after {
|
|
48
|
-
content: "";
|
|
49
|
-
position: absolute;
|
|
50
|
-
inset-block: 0;
|
|
51
|
-
inset-inline: 4px;
|
|
52
|
-
background: var(--color-border);
|
|
53
|
-
border-radius: 2px;
|
|
54
|
-
}
|
|
55
|
-
.wui-resizable[direction="vertical"] > .wui-resizable-handle::after {
|
|
56
|
-
inset-block: 4px;
|
|
57
|
-
inset-inline: 0;
|
|
58
|
-
}
|
|
59
|
-
// A wider hit area for touch than the line shows.
|
|
60
|
-
.wui-resizable-handle::before {
|
|
61
|
-
content: "";
|
|
62
|
-
position: absolute;
|
|
63
|
-
inset-block: 0;
|
|
64
|
-
inset-inline: -6px;
|
|
65
|
-
}
|
|
66
|
-
.wui-resizable[direction="vertical"] > .wui-resizable-handle::before {
|
|
67
|
-
inset-block: -6px;
|
|
68
|
-
inset-inline: 0;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.wui-resizable-handle:hover::after,
|
|
72
|
-
.wui-resizable-handle.is-active::after {
|
|
73
|
-
background: var(--color-primary);
|
|
74
|
-
}
|
|
75
|
-
.wui-resizable-handle:focus-visible::after {
|
|
76
|
-
background: var(--color-primary);
|
|
77
|
-
outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
|
|
78
|
-
outline-offset: var(--wui-focus-ring-offset);
|
|
79
|
-
}
|
|
80
|
-
.wui-resizable-handle:focus-visible {
|
|
81
|
-
z-index: 1;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// While dragging, the whole group keeps the resize cursor and text under the pointer is not selected.
|
|
85
|
-
.wui-resizable.is-dragging {
|
|
86
|
-
cursor: col-resize;
|
|
87
|
-
user-select: none;
|
|
88
|
-
}
|
|
89
|
-
.wui-resizable.is-dragging[direction="vertical"] {
|
|
90
|
-
cursor: row-resize;
|
|
91
|
-
}
|
|
92
|
-
.wui-resizable.is-dragging > .wui-resizable-panel {
|
|
93
|
-
pointer-events: none;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
97
|
-
.wui-resizable-handle::after {
|
|
98
|
-
transition: background-color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
99
|
-
}
|
|
100
|
-
}
|