@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
|
@@ -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 {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
@use "../config" as *;
|
|
2
|
+
@use "overlay-reset" as *;
|
|
3
|
+
|
|
4
|
+
// The page menu is a popover: clear the browser's popover box, as wui/_native-overlay.scss does for core panels.
|
|
5
|
+
:where([popover].wui-file-viewer-menu) {
|
|
6
|
+
@include wui-native-overlay-reset;
|
|
7
|
+
}
|
|
2
8
|
|
|
3
9
|
// ── File viewer ──
|
|
4
10
|
// AppFileViewer / <app-file-viewer> / <wui-file-viewer>: a file shown inside the page, with a
|
|
@@ -136,10 +142,16 @@ wui-file-viewer:fullscreen {
|
|
|
136
142
|
outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
|
|
137
143
|
outline-offset: 1px;
|
|
138
144
|
}
|
|
139
|
-
// The zoom menu, placed against its button by the element (position: fixed).
|
|
145
|
+
// The zoom menu is a popover, placed against its button by the element (position: fixed). Shown
|
|
146
|
+
// while open, so it needs no Bootstrap .show class.
|
|
140
147
|
.wui-file-viewer-menu {
|
|
141
|
-
|
|
148
|
+
inset: auto;
|
|
149
|
+
margin: 0;
|
|
142
150
|
min-width: 150px;
|
|
151
|
+
display: none;
|
|
152
|
+
&:popover-open {
|
|
153
|
+
display: block;
|
|
154
|
+
}
|
|
143
155
|
}
|
|
144
156
|
.wui-file-viewer-menu .dropdown-item {
|
|
145
157
|
display: flex;
|
package/scss/wui/_floating.scss
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// button) portal into, so they stack with a gap and never overlap or need a hand-set offset. React's
|
|
6
6
|
// useFloatingStack creates it; the items inside are not fixed themselves.
|
|
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-floating-stack {
|
|
11
11
|
position: fixed;
|
package/scss/wui/_flow.scss
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
// Wizard stepper, pricing card, form repeater.
|
|
4
4
|
//
|
|
5
|
-
// Part of the wui-components layer
|
|
5
|
+
// Part of the wui-components layer. See _wui-components.scss for the whole
|
|
6
6
|
// picture and the load order. Order within the layer is LOAD-BEARING: these
|
|
7
7
|
// partials are a split of one stylesheet, not independent modules, so a rule
|
|
8
8
|
// here may be overridden by a later partial. Never reorder the imports.
|
|
9
9
|
|
|
10
10
|
// Wizard stepper. Three variants of one component:
|
|
11
|
-
// .stepper
|
|
12
|
-
// .stepper-journey
|
|
13
|
-
// .stepper-icons
|
|
14
|
-
// .wui-step-tiles
|
|
11
|
+
// .stepper compact: numbered circle above a label, line behind.
|
|
12
|
+
// .stepper-journey wide, 40px dot beside a label + title, for a page masthead.
|
|
13
|
+
// .stepper-icons large connected icon badges with a "STEP n" eyebrow.
|
|
14
|
+
// .wui-step-tiles a row of tiles (rounded icon square, label and a state line, chevrons between).
|
|
15
15
|
//
|
|
16
|
-
// Fully themable through a small set of `--wui-step-*` custom properties
|
|
16
|
+
// Fully themable through a small set of `--wui-step-*` custom properties. Set them on
|
|
17
17
|
// the stepper (or the wizard host, or any ancestor: they inherit), or flip the whole
|
|
18
18
|
// accent with a `.wui-step-tone-*` class. Every colour/size below reads a var with the
|
|
19
19
|
// historical value as the fallback, so an UNSET wizard looks exactly as before while a
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
// --wui-step-number-font the step number in a badge (default 12px; journey 13px, icons 22px)
|
|
33
33
|
// --wui-step-label-font the step label (default 13px; journey 16px, icons 15px)
|
|
34
34
|
// The `.wui-step-size-sm` / `.wui-step-size-lg` classes (end of this block) set these together.
|
|
35
|
-
// Every variant defaults to the brand primary
|
|
35
|
+
// Every variant defaults to the brand primary; active, done and rail share one accent
|
|
36
36
|
// (no multi-colour). Colour variety is opt-in: a `.wui-step-tone-*` class or a var override.
|
|
37
37
|
// ============================================================================
|
|
38
38
|
.stepper {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
// class placed on the stepper element itself overrides it. The wizard is excluded because
|
|
50
50
|
// its tone class rides on the wizard HOST (an ancestor of the generated header): declaring
|
|
51
51
|
// the vars on the header would block that inherited override, so the wizard leans on the
|
|
52
|
-
// var fallbacks instead
|
|
52
|
+
// var fallbacks instead, which now also default to primary. :where() keeps this at ZERO
|
|
53
53
|
// specificity, so a .wui-step-tone-* class or an inline --wui-step-* override still wins.
|
|
54
54
|
:where(.stepper:not(.wizard-stepper)) {
|
|
55
55
|
--wui-step-accent: var(--color-primary-text);
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
gap: 10px;
|
|
68
68
|
text-align: center;
|
|
69
69
|
}
|
|
70
|
-
// The connector belongs to the step on its RIGHT, drawn leftwards
|
|
70
|
+
// The connector belongs to the step on its RIGHT, drawn leftwards; that way the
|
|
71
71
|
// first step has none and no :last-child exception is needed.
|
|
72
72
|
.step + .step::before {
|
|
73
73
|
content: "";
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
.step.done .step-label {
|
|
133
133
|
color: var(--color-text);
|
|
134
134
|
}
|
|
135
|
-
// An interactive step
|
|
135
|
+
// An interactive step: an <a> deep-linking back to a stage, or a <button> in a
|
|
136
136
|
// JS-driven wizard. A button needs its chrome stripped so it reads as a step.
|
|
137
137
|
button.step {
|
|
138
138
|
border: none;
|
|
@@ -184,7 +184,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
184
184
|
0 0 0 4px var(--wui-step-done-soft, var(--wui-step-soft, var(--color-primary-soft))),
|
|
185
185
|
0 0 0 6px var(--wui-step-done-accent, var(--wui-step-accent, var(--color-primary-text)));
|
|
186
186
|
}
|
|
187
|
-
// A step that failed its stage
|
|
187
|
+
// A step that failed its stage: a red circle with an alert, so an invalid step
|
|
188
188
|
// reads as wrong at a glance rather than merely "not done".
|
|
189
189
|
.step.error .step-circle {
|
|
190
190
|
border-color: var(--color-danger);
|
|
@@ -194,7 +194,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
194
194
|
.step.error .step-label {
|
|
195
195
|
color: var(--color-danger-text);
|
|
196
196
|
}
|
|
197
|
-
// A secondary line under the label
|
|
197
|
+
// A secondary line under the label: a short "what this step is for". Muted and
|
|
198
198
|
// narrow so it never competes with the label it explains.
|
|
199
199
|
.step-desc {
|
|
200
200
|
max-width: 130px;
|
|
@@ -254,7 +254,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
254
254
|
}
|
|
255
255
|
// A flex column, not a bare wrapper: the index and the label are inline spans, so
|
|
256
256
|
// without this they sit on one line ("STEP 1Add site") and the label's margin-top
|
|
257
|
-
//
|
|
257
|
+
// a no-op on an inline element, cannot separate them.
|
|
258
258
|
.stepper-journey .step-text {
|
|
259
259
|
display: flex;
|
|
260
260
|
flex-direction: column;
|
|
@@ -293,7 +293,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
293
293
|
text-overflow: ellipsis;
|
|
294
294
|
color: var(--color-text);
|
|
295
295
|
}
|
|
296
|
-
// In the journey bar the description sits inside the text column, under the label
|
|
296
|
+
// In the journey bar the description sits inside the text column, under the label,
|
|
297
297
|
// wider and left-aligned to match, not the centred compact treatment.
|
|
298
298
|
.stepper-journey .step-desc {
|
|
299
299
|
max-width: none;
|
|
@@ -332,7 +332,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
332
332
|
display: none;
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
// Vertical orientation. The steps run down a side rail instead of across
|
|
335
|
+
// Vertical orientation. The steps run down a side rail instead of across: for a
|
|
336
336
|
// narrow column, a drawer, or a settings wizard.
|
|
337
337
|
// ----------------------------------------------------------------------------
|
|
338
338
|
.stepper-vertical {
|
|
@@ -351,7 +351,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
351
351
|
display: grid;
|
|
352
352
|
grid-template-columns: var(--wui-step-size, 28px) 1fr;
|
|
353
353
|
column-gap: 12px;
|
|
354
|
-
// No gap between the label and its description
|
|
354
|
+
// No gap between the label and its description. They read as one block; the
|
|
355
355
|
// base .step gap of 10px is for the horizontal circle→label spacing.
|
|
356
356
|
row-gap: 0;
|
|
357
357
|
align-items: start;
|
|
@@ -415,10 +415,10 @@ button.step.done:focus-visible .step-circle {
|
|
|
415
415
|
display: none;
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
// .stepper-icons
|
|
418
|
+
// .stepper-icons: large icon badges joined by a rail, with a "STEP n" eyebrow above
|
|
419
419
|
// each title. Done gets a soft-accent tint + filled connector; active is a solid-accent
|
|
420
|
-
// badge; pending is a muted badge
|
|
421
|
-
// icon-per-step flows
|
|
420
|
+
// badge; pending is a muted badge: all one accent (brand primary by default). Built for
|
|
421
|
+
// icon-per-step flows: each step sets `icon` (a step with no icon falls back to its number).
|
|
422
422
|
// ----------------------------------------------------------------------------
|
|
423
423
|
.stepper-icons {
|
|
424
424
|
align-items: flex-start;
|
|
@@ -443,7 +443,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
443
443
|
color var(--wui-duration-default) var(--wui-ease-ui),
|
|
444
444
|
transform var(--wui-duration-default) var(--wui-ease-ui);
|
|
445
445
|
}
|
|
446
|
-
// Like every variant, the icons stepper defaults to the brand primary
|
|
446
|
+
// Like every variant, the icons stepper defaults to the brand primary: a solid-primary
|
|
447
447
|
// active badge, a soft-primary done badge, a primary rail. Every colour routes through the
|
|
448
448
|
// shared --wui-step-* vars, so a `.wui-step-tone-*` class or an override recolours it.
|
|
449
449
|
.stepper-icons .step.active .step-circle {
|
|
@@ -517,7 +517,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
517
517
|
transform: scale(1.04);
|
|
518
518
|
}
|
|
519
519
|
// Below md the six badges no longer fit across, so the icons stepper stacks into a
|
|
520
|
-
// vertical list
|
|
520
|
+
// vertical list; the shared .stepper-vertical rules take over from here.
|
|
521
521
|
@include media-breakpoint-down(md) {
|
|
522
522
|
.stepper-icons.stepper-icons {
|
|
523
523
|
flex-direction: column;
|
|
@@ -539,7 +539,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
|
|
542
|
-
// .wui-step-tiles
|
|
542
|
+
// .wui-step-tiles: each step is a list item holding a rounded icon square with the label and a
|
|
543
543
|
// state line (Done, Current, To do) beside it; chevrons join the tiles. Like every variant it is one
|
|
544
544
|
// brand-primary accent: the current tile is solid accent and done tiles the soft tint, so a tone
|
|
545
545
|
// class recolours the current one and a done-tone class the finished ones.
|
|
@@ -742,7 +742,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
|
|
745
|
-
// Tone presets
|
|
745
|
+
// Tone presets: flip the whole accent (active fill, done rail, ring, journey/icons
|
|
746
746
|
// done tint) to a semantic ramp in one class. Because custom properties inherit, the
|
|
747
747
|
// class can sit on the stepper itself OR on an ancestor (the wizard host), and an inline
|
|
748
748
|
// `style="--wui-step-accent: …"` on a closer element still wins over it. Placing the
|
|
@@ -781,7 +781,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
781
781
|
--wui-step-soft-fg: var(--color-info-text);
|
|
782
782
|
}
|
|
783
783
|
|
|
784
|
-
// Done-tone presets
|
|
784
|
+
// Done-tone presets: recolour COMPLETED steps only (their badge, "STEP n" eyebrow and the
|
|
785
785
|
// filled rail after them), leaving the active step on the accent above. Same ramps and the
|
|
786
786
|
// same placement rules as the tone presets: on the stepper or any ancestor (the wizard host).
|
|
787
787
|
// Error and skipped steps keep their own look.
|
|
@@ -861,7 +861,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
861
861
|
// Pricing card. A tier's name, price, pitch, feature list and CTA.
|
|
862
862
|
//
|
|
863
863
|
// The "Most popular" flag is a real element, not a `content:` string on
|
|
864
|
-
// ::before
|
|
864
|
+
// ::before: a label welded into CSS cannot be reworded, translated, or read by
|
|
865
865
|
// a screen reader.
|
|
866
866
|
// ============================================================================
|
|
867
867
|
.plan-grid {
|
|
@@ -1001,7 +1001,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
|
|
1003
1003
|
// ============================================================================
|
|
1004
|
-
// Form repeater
|
|
1004
|
+
// Form repeater: a list of rows the user can add to and remove from
|
|
1005
1005
|
// (contacts, line items, zones).
|
|
1006
1006
|
// ============================================================================
|
|
1007
1007
|
.repeater {
|
|
@@ -1014,7 +1014,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1014
1014
|
display: flex;
|
|
1015
1015
|
// When present, the row-label line is the full-width FIRST line (a header band) and the
|
|
1016
1016
|
// fields wrap to the line beneath it. The markup renders that band only when the row is
|
|
1017
|
-
// labelled or removable (see .repeater-row-label)
|
|
1017
|
+
// labelled or removable (see .repeater-row-label). A removable row's empty band reserves
|
|
1018
1018
|
// the gap that keeps the fields clear of the absolute remove control. A row that is neither
|
|
1019
1019
|
// has no band and stays compact; there is no overlap to avoid, since the control is absent too.
|
|
1020
1020
|
flex-wrap: wrap;
|
|
@@ -1068,7 +1068,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1068
1068
|
}
|
|
1069
1069
|
.repeater-remove {
|
|
1070
1070
|
// Pulled out of the row's flex flow and parked in the top-right corner of the header
|
|
1071
|
-
// band, so it never steals horizontal room from the fields
|
|
1071
|
+
// band, so it never steals horizontal room from the fields. The last field can run to
|
|
1072
1072
|
// the row's right edge instead of stopping short. Sits a little below the top edge so it
|
|
1073
1073
|
// reads as part of the band rather than pinned to the corner.
|
|
1074
1074
|
position: absolute;
|
|
@@ -1078,7 +1078,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1078
1078
|
.repeater-add {
|
|
1079
1079
|
align-self: flex-start;
|
|
1080
1080
|
}
|
|
1081
|
-
// Shown in place of the rows when there are none
|
|
1081
|
+
// Shown in place of the rows when there are none: a repeater with no rows and no
|
|
1082
1082
|
// message looks broken rather than empty.
|
|
1083
1083
|
.repeater-empty {
|
|
1084
1084
|
padding: 18px;
|
|
@@ -1091,7 +1091,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
1093
|
// ============================================================================
|
|
1094
|
-
// Form layout helpers
|
|
1094
|
+
// Form layout helpers: section, row (grid), actions footer.
|
|
1095
1095
|
//
|
|
1096
1096
|
// AppFormSection wraps related fields with a title + description intro.
|
|
1097
1097
|
// AppFormRow arranges fields in a responsive grid (1/2/3 columns).
|
|
@@ -1263,7 +1263,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
|
|
1265
1265
|
// ============================================================================
|
|
1266
|
-
// AppWizard (<wui-wizard>)
|
|
1266
|
+
// AppWizard (<wui-wizard>): stepper header + one visible step panel + a sticky
|
|
1267
1267
|
// Back/Skip/Next/Finish footer. Composes .stepper and .form-actions above.
|
|
1268
1268
|
// ============================================================================
|
|
1269
1269
|
wui-wizard {
|
|
@@ -1376,7 +1376,7 @@ wui-wizard-step[hidden] {
|
|
|
1376
1376
|
// swap in; content taller than this simply grows the panel.
|
|
1377
1377
|
min-height: 96px;
|
|
1378
1378
|
// A rounded squircle card around the step content. The surface (border + fill +
|
|
1379
|
-
// padding) is what makes the radius visible
|
|
1379
|
+
// padding) is what makes the radius visible. A radius on a border/background-less
|
|
1380
1380
|
// box shows nothing.
|
|
1381
1381
|
padding: 20px 24px;
|
|
1382
1382
|
border: 1px solid var(--color-border);
|
|
@@ -1385,7 +1385,7 @@ wui-wizard-step[hidden] {
|
|
|
1385
1385
|
background: var(--color-surface);
|
|
1386
1386
|
}
|
|
1387
1387
|
.wizard-footer {
|
|
1388
|
-
// The Back/Skip/Next/Finish bar sits at the END of the wizard content
|
|
1388
|
+
// The Back/Skip/Next/Finish bar sits at the END of the wizard content, NOT
|
|
1389
1389
|
// viewport-pinned. A transparent sticky bar (the old behaviour) pinned to the
|
|
1390
1390
|
// viewport bottom collided with a page/app footer below the wizard, burying the
|
|
1391
1391
|
// buttons behind it. Inline keeps them in the flow, always clear of a page footer.
|
|
@@ -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
|
+
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
// ── Hover card ──
|
|
4
4
|
// AppHoverCard / <app-hover-card> (a <wui-hover-card> element): a small preview card beside a name or
|
|
5
|
-
// record link. The
|
|
6
|
-
//
|
|
5
|
+
// record link. The panel is a manual popover, so the open state is :popover-open (the browser owns it;
|
|
6
|
+
// a React re-render cannot reset it) and it is placed with position: fixed, so it escapes any
|
|
7
7
|
// clipping ancestor. Every colour is a theme token.
|
|
8
8
|
//
|
|
9
9
|
// Part of the wui-components layer, see _wui-components.scss for load order.
|
|
@@ -19,8 +19,9 @@ wui-hover-card {
|
|
|
19
19
|
|
|
20
20
|
.wui-hover-card-panel {
|
|
21
21
|
position: fixed;
|
|
22
|
+
// The popover UA style would stretch a fixed box between top and bottom; the element sets top and left.
|
|
23
|
+
inset: auto;
|
|
22
24
|
z-index: var(--wui-z-popover);
|
|
23
|
-
display: none;
|
|
24
25
|
width: 20rem;
|
|
25
26
|
max-width: calc(100vw - 16px);
|
|
26
27
|
max-height: calc(100vh - 8px);
|
|
@@ -33,7 +34,7 @@ wui-hover-card {
|
|
|
33
34
|
box-shadow: var(--wui-shadow-popover);
|
|
34
35
|
font-size: 13px;
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
&:popover-open {
|
|
37
38
|
display: block;
|
|
38
39
|
animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
|
|
39
40
|
}
|
|
@@ -51,7 +52,7 @@ wui-hover-card {
|
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
@media (prefers-reduced-motion: reduce) {
|
|
54
|
-
.wui-hover-card-panel
|
|
55
|
+
.wui-hover-card-panel:popover-open {
|
|
55
56
|
animation: none;
|
|
56
57
|
}
|
|
57
58
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// control. The element sets the states on the host: [data-wui-editing] and
|
|
7
7
|
// [data-wui-state="saving" | "saved" | "error"].
|
|
8
8
|
//
|
|
9
|
-
// Part of the wui-components layer
|
|
9
|
+
// Part of the wui-components layer: see _wui-components.scss for load order.
|
|
10
10
|
|
|
11
11
|
.wui-inline-edit {
|
|
12
12
|
display: inline-flex;
|
|
@@ -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.
|
package/scss/wui/_kanban.scss
CHANGED
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
.wui-kanban-card[data-wui-lifted] {
|
|
348
348
|
box-shadow: var(--wui-shadow-popover);
|
|
349
349
|
outline: 2px solid var(--color-primary);
|
|
350
|
-
outline-offset:
|
|
350
|
+
outline-offset: var(--wui-focus-ring-offset);
|
|
351
351
|
}
|
|
352
352
|
// Saving: the card cannot move again until the server answers.
|
|
353
353
|
.wui-kanban-card[aria-busy="true"] {
|
package/scss/wui/_lightbox.scss
CHANGED
|
@@ -54,20 +54,31 @@
|
|
|
54
54
|
margin-top: var(--wui-space-sm);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
//
|
|
58
|
-
.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
// A modal <dialog>: the top layer stacks it over a dialog it was opened from. The dialog box is the
|
|
58
|
+
// full screen; the dim is its ::backdrop.
|
|
59
|
+
dialog.wui-lightbox-overlay {
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: 100%;
|
|
62
|
+
max-width: none;
|
|
63
|
+
max-height: none;
|
|
64
|
+
margin: 0;
|
|
65
|
+
padding: 0;
|
|
66
|
+
border: 0;
|
|
67
|
+
background: transparent;
|
|
68
|
+
color: var(--color-on-scrim);
|
|
62
69
|
display: flex;
|
|
63
70
|
flex-direction: column;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
-webkit-backdrop-filter: blur(12px);
|
|
71
|
+
&:not([open]) {
|
|
72
|
+
display: none;
|
|
73
|
+
}
|
|
68
74
|
&:focus {
|
|
69
75
|
outline: none;
|
|
70
76
|
}
|
|
77
|
+
&::backdrop {
|
|
78
|
+
background: var(--color-scrim-strong);
|
|
79
|
+
backdrop-filter: blur(12px);
|
|
80
|
+
-webkit-backdrop-filter: blur(12px);
|
|
81
|
+
}
|
|
71
82
|
}
|
|
72
83
|
@media (prefers-reduced-motion: no-preference) {
|
|
73
84
|
.wui-lightbox-overlay {
|
package/scss/wui/_media.scss
CHANGED
|
@@ -1054,7 +1054,7 @@
|
|
|
1054
1054
|
}
|
|
1055
1055
|
// The label has no room in the ring, so surface it as a hover/focus tooltip below the ring
|
|
1056
1056
|
// (reusing the AppTooltip surface look). Text comes from data-overlay-label on the ring — a
|
|
1057
|
-
// distinct attribute from data-wui-
|
|
1057
|
+
// distinct attribute from data-wui-tooltip so the trigger rule never styles this on a large
|
|
1058
1058
|
// ring. Only rendered inside this container query, so md/lg (label visible) never get it.
|
|
1059
1059
|
.wui-image-picker-ring[data-overlay-label]::after {
|
|
1060
1060
|
content: attr(data-overlay-label);
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
.wui-mention-menu {
|
|
20
20
|
position: fixed;
|
|
21
21
|
z-index: var(--wui-z-menu);
|
|
22
|
-
display: flex;
|
|
23
22
|
flex-direction: column;
|
|
24
23
|
gap: 2px;
|
|
25
24
|
min-width: 240px;
|
|
@@ -33,8 +32,9 @@
|
|
|
33
32
|
corner-shape: squircle;
|
|
34
33
|
box-shadow: var(--wui-shadow-popover);
|
|
35
34
|
}
|
|
36
|
-
.
|
|
37
|
-
|
|
35
|
+
// An author display would override the closed popover's display: none, so it applies only when open.
|
|
36
|
+
.wui-mention-menu:popover-open {
|
|
37
|
+
display: flex;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.wui-mention-option {
|