@webority/theme 0.149.0 → 0.152.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/css-import.d.ts +2 -0
- package/dist/postcss/forced-states.d.mts +11 -0
- package/dist/postcss/forced-states.mjs +1 -1
- package/dist/purge-safelist.json +24 -1
- package/dist/runtime/index.d.mts +6 -0
- package/dist/runtime/productTheme.d.mts +25 -0
- package/dist/runtime.mjs +2 -2
- package/dist/webority-theme.css +1 -1
- package/dist/webority-tokens.css +1 -1
- package/package.json +34 -11
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_components.scss +139 -52
- package/scss/_marketing.scss +10 -10
- package/scss/_tokens.generated.scss +26 -1
- package/scss/wui/_calendar.scss +6 -6
- package/scss/wui/_card.scss +3 -3
- package/scss/wui/_carousel.scss +3 -3
- package/scss/wui/_chart-card.scss +33 -1
- package/scss/wui/_chart.scss +4 -4
- package/scss/wui/_choice.scss +48 -43
- package/scss/wui/_command-palette.scss +2 -2
- package/scss/wui/_comment-thread.scss +2 -2
- package/scss/wui/_compare-table.scss +27 -0
- package/scss/wui/_controls.scss +54 -48
- package/scss/wui/_data.scss +26 -16
- package/scss/wui/_dialog-motion.scss +4 -4
- package/scss/wui/_disclosure.scss +4 -4
- package/scss/wui/_display.scss +61 -26
- package/scss/wui/_dock.scss +6 -6
- package/scss/wui/_drawer.scss +2 -2
- package/scss/wui/_field-busy.scss +1 -1
- package/scss/wui/_field-floor.scss +2 -1
- package/scss/wui/_file-viewer.scss +3 -3
- package/scss/wui/_flow.scss +15 -13
- package/scss/wui/_inline-edit.scss +2 -2
- package/scss/wui/_interaction.scss +1 -2
- package/scss/wui/_kanban.scss +16 -6
- package/scss/wui/_lightbox.scss +2 -2
- package/scss/wui/_media.scss +48 -48
- package/scss/wui/_modal-remote.scss +1 -1
- package/scss/wui/_navigation-menu.scss +1 -1
- package/scss/wui/_navigation.scss +68 -18
- package/scss/wui/_notification-center.scss +3 -3
- package/scss/wui/_onboarding-checklist.scss +1 -1
- package/scss/wui/_overlays.scss +28 -40
- package/scss/wui/_pagination.scss +4 -4
- package/scss/wui/_rating.scss +1 -1
- package/scss/wui/_resizable.scss +1 -1
- package/scss/wui/_rich-text.scss +4 -4
- package/scss/wui/_score-scale.scss +3 -3
- package/scss/wui/_sections.scss +2 -2
- package/scss/wui/_shell-parts.scss +53 -5
- package/scss/wui/_shell.scss +56 -57
- package/scss/wui/_sortable.scss +2 -2
- package/scss/wui/_split-view.scss +2 -2
- package/scss/wui/_support.scss +1 -1
- package/scss/wui/_table-server.scss +1 -1
- package/scss/wui/_theme-toggle.scss +1 -1
- package/scss/wui/_toolbar.scss +7 -7
- package/scss/wui/_tree.scss +3 -3
- package/scss/wui/_utilities.scss +29 -11
- package/scss/wui/_workspace.scss +2 -2
- package/scss/wui/tour/_end.scss +1 -1
- package/scss/wui/tour/_motion.scss +4 -4
- package/token-meanings.json +2 -0
package/scss/wui/_data.scss
CHANGED
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
white-space: nowrap;
|
|
69
69
|
vertical-align: middle;
|
|
70
70
|
transition:
|
|
71
|
-
background-color
|
|
72
|
-
color
|
|
71
|
+
background-color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
72
|
+
color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
73
73
|
}
|
|
74
74
|
:where(.table) > tbody > tr > td,
|
|
75
75
|
:where(.table) > tbody > tr > th.wui-row-header {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
border-bottom: var(--wui-table-row-divider-width) solid var(--color-border);
|
|
78
78
|
font-size: var(--wui-fs-xs);
|
|
79
79
|
vertical-align: middle;
|
|
80
|
-
transition: background-color
|
|
80
|
+
transition: background-color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
81
81
|
}
|
|
82
82
|
:where(.table) > tbody > tr:last-child > td,
|
|
83
83
|
:where(.table) > tbody > tr:last-child > th.wui-row-header {
|
|
@@ -128,8 +128,8 @@
|
|
|
128
128
|
color: var(--color-text-subtle);
|
|
129
129
|
cursor: pointer;
|
|
130
130
|
transition:
|
|
131
|
-
background-color
|
|
132
|
-
color
|
|
131
|
+
background-color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
132
|
+
color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
133
133
|
}
|
|
134
134
|
.wui-expand-toggle:hover {
|
|
135
135
|
background: var(--color-bg-muted);
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
outline-offset: var(--wui-focus-ring-offset);
|
|
141
141
|
}
|
|
142
142
|
.wui-expand-toggle .wui-icon {
|
|
143
|
-
transition: transform
|
|
143
|
+
transition: transform var(--wui-duration-default) var(--wui-ease-out, ease);
|
|
144
144
|
}
|
|
145
145
|
.wui-expand-toggle.is-open .wui-icon {
|
|
146
146
|
transform: rotate(180deg);
|
|
@@ -344,6 +344,16 @@
|
|
|
344
344
|
.table-ledger.wui-table-compact .u-cell {
|
|
345
345
|
gap: 10px;
|
|
346
346
|
}
|
|
347
|
+
// A row's action controls fit the 40px cell (6px padding above and below), so a compact row with
|
|
348
|
+
// actions measures 41px with its rule instead of stretching to the 36px disc.
|
|
349
|
+
.table-ledger.wui-table-compact .u-row-actions .u-action {
|
|
350
|
+
width: min(var(--wui-action-size), 28px);
|
|
351
|
+
height: min(var(--wui-action-size), 28px);
|
|
352
|
+
}
|
|
353
|
+
.table-ledger.wui-table-compact .u-row-actions .topbar-icon-btn {
|
|
354
|
+
width: 28px;
|
|
355
|
+
height: 28px;
|
|
356
|
+
}
|
|
347
357
|
// Striped (`striped`): alternate-row shading in place of divider lines, on any density.
|
|
348
358
|
.table-ledger.wui-table-striped tbody td,
|
|
349
359
|
.table-ledger.wui-table-striped tbody th.wui-row-header {
|
|
@@ -1117,8 +1127,8 @@
|
|
|
1117
1127
|
color: var(--color-text-subtle);
|
|
1118
1128
|
cursor: pointer;
|
|
1119
1129
|
transition:
|
|
1120
|
-
background
|
|
1121
|
-
color
|
|
1130
|
+
background var(--wui-duration-fast) var(--wui-ease-ui),
|
|
1131
|
+
color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
1122
1132
|
position: relative;
|
|
1123
1133
|
}
|
|
1124
1134
|
// Touch pointers need a 44px minimum target. Grow the hit area, not the
|
|
@@ -1275,7 +1285,7 @@
|
|
|
1275
1285
|
margin-left: 6px;
|
|
1276
1286
|
color: var(--color-text-subtle);
|
|
1277
1287
|
opacity: 0;
|
|
1278
|
-
transition: opacity
|
|
1288
|
+
transition: opacity var(--wui-duration-fast) var(--wui-ease-ui);
|
|
1279
1289
|
}
|
|
1280
1290
|
// On a right-aligned (numeric) header the arrow leads the label, so the label ends flush with
|
|
1281
1291
|
// the values under it.
|
|
@@ -1343,7 +1353,7 @@ wui-data-table {
|
|
|
1343
1353
|
border-radius: 1px;
|
|
1344
1354
|
background: var(--color-border-strong);
|
|
1345
1355
|
opacity: 0;
|
|
1346
|
-
transition: opacity
|
|
1356
|
+
transition: opacity var(--wui-duration-fast) var(--wui-ease-ui);
|
|
1347
1357
|
}
|
|
1348
1358
|
.table-ledger thead th:hover > .wui-col-resize::after,
|
|
1349
1359
|
.wui-col-resize:focus-visible::after,
|
|
@@ -1402,7 +1412,7 @@ wui-data-table {
|
|
|
1402
1412
|
width: 8px;
|
|
1403
1413
|
pointer-events: none;
|
|
1404
1414
|
opacity: 0;
|
|
1405
|
-
transition: opacity
|
|
1415
|
+
transition: opacity var(--wui-duration-fast) var(--wui-ease-ui);
|
|
1406
1416
|
}
|
|
1407
1417
|
.table-ledger .wui-pin-start-edge::after {
|
|
1408
1418
|
inset-inline-start: 100%;
|
|
@@ -1477,7 +1487,7 @@ wui-data-table {
|
|
|
1477
1487
|
.wui-group-toggle .wui-icon {
|
|
1478
1488
|
flex: none;
|
|
1479
1489
|
color: var(--color-text-subtle);
|
|
1480
|
-
transition: transform
|
|
1490
|
+
transition: transform var(--wui-duration-fast) var(--wui-ease-ui);
|
|
1481
1491
|
}
|
|
1482
1492
|
.wui-group-toggle[aria-expanded="false"] .wui-icon {
|
|
1483
1493
|
transform: rotate(-90deg);
|
|
@@ -1529,9 +1539,9 @@ wui-data-table {
|
|
|
1529
1539
|
// paint (hover, sort), like the status bar, and takes no room, so nothing shifts.
|
|
1530
1540
|
.table-wrap.wui-table-scroll > .table-ledger > thead > tr > th {
|
|
1531
1541
|
transition:
|
|
1532
|
-
background-color
|
|
1533
|
-
color
|
|
1534
|
-
box-shadow
|
|
1542
|
+
background-color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
1543
|
+
color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
1544
|
+
box-shadow var(--wui-duration-fast) var(--wui-ease-ui);
|
|
1535
1545
|
}
|
|
1536
1546
|
.table-wrap.wui-table-scroll[data-wui-overflow-top] > .table-ledger > thead > tr > th {
|
|
1537
1547
|
box-shadow:
|
|
@@ -1567,7 +1577,7 @@ wui-data-table {
|
|
|
1567
1577
|
}
|
|
1568
1578
|
.table-ledger > tbody > tr[data-wui-save-state="saving"] > td:first-child,
|
|
1569
1579
|
.table-ledger > tbody > tr[data-wui-save-state="saving"] > th.wui-row-header:first-child {
|
|
1570
|
-
animation: wui-row-saving
|
|
1580
|
+
animation: wui-row-saving calc(var(--wui-duration-slow) * 3) var(--wui-ease-in-out) infinite;
|
|
1571
1581
|
}
|
|
1572
1582
|
@keyframes wui-row-saving {
|
|
1573
1583
|
50% {
|
|
@@ -42,20 +42,20 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
:root:not([data-wui-dialog-motion="slide"]) .modal.show wui-status-icon > svg > rect:first-child {
|
|
45
|
-
animation: wui-dialog-icon-halo
|
|
45
|
+
animation: wui-dialog-icon-halo var(--wui-duration-default) var(--wui-ease-out) 0ms both;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
:root:not([data-wui-dialog-motion="slide"]) .modal.show wui-status-icon > svg > rect:nth-child(2) {
|
|
49
|
-
animation: wui-dialog-icon-ring
|
|
49
|
+
animation: wui-dialog-icon-ring var(--wui-duration-default) var(--wui-ease-out) var(--wui-duration-fast) both;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
:root:not([data-wui-dialog-motion="slide"]) .modal.show wui-status-icon > svg > g {
|
|
53
|
-
animation: wui-dialog-icon-core
|
|
53
|
+
animation: wui-dialog-icon-core var(--wui-duration-slow) var(--wui-ease-elastic) calc(var(--wui-duration-fast) * 1.75) both;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
// Raster tones get one beat because they have no parts to stage.
|
|
57
57
|
:root:not([data-wui-dialog-motion="slide"]) .modal.show wui-status-icon > img {
|
|
58
|
-
animation: wui-dialog-icon-raster
|
|
58
|
+
animation: wui-dialog-icon-raster var(--wui-duration-slow) var(--wui-ease-elastic) 0ms both;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
@keyframes wui-dialog-icon-halo {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
border: 1px solid var(--color-border);
|
|
27
27
|
background: var(--color-surface);
|
|
28
28
|
overflow: hidden;
|
|
29
|
-
transition: border-color
|
|
29
|
+
transition: border-color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
30
30
|
border-radius: var(--wui-field-md-radius);
|
|
31
31
|
}
|
|
32
32
|
.wui-accordion-item:hover:not(.open) {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
text-align: left;
|
|
52
52
|
color: var(--color-text);
|
|
53
53
|
cursor: pointer;
|
|
54
|
-
transition: color
|
|
54
|
+
transition: color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
55
55
|
}
|
|
56
56
|
.wui-accordion-trigger:hover {
|
|
57
57
|
color: var(--color-primary-text);
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
display: grid;
|
|
71
71
|
place-items: center;
|
|
72
72
|
color: var(--color-text-subtle);
|
|
73
|
-
transition: transform
|
|
73
|
+
transition: transform var(--wui-duration-default) var(--wui-ease-out);
|
|
74
74
|
}
|
|
75
75
|
.wui-accordion-item.open > .wui-accordion-trigger .wui-accordion-icon {
|
|
76
76
|
transform: rotate(180deg);
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
.wui-accordion-panel {
|
|
84
84
|
display: grid;
|
|
85
85
|
grid-template-rows: 0fr;
|
|
86
|
-
transition: grid-template-rows
|
|
86
|
+
transition: grid-template-rows var(--wui-duration-default) var(--wui-ease-out);
|
|
87
87
|
}
|
|
88
88
|
.wui-accordion-item.open > .wui-accordion-panel {
|
|
89
89
|
grid-template-rows: 1fr;
|
package/scss/wui/_display.scss
CHANGED
|
@@ -152,7 +152,10 @@
|
|
|
152
152
|
// top-right, the value is set large in the product's own font, and an optional caption reads
|
|
153
153
|
// under the number. For the single showcase stat on a marketing/portal surface where the
|
|
154
154
|
// number is the hero.
|
|
155
|
+
// The tile is the size container for the narrow layout below. Containment collapses a flex item
|
|
156
|
+
// with auto width; a tile in .kpi-row, a dashboard cell or a grid column has a definite width.
|
|
155
157
|
.kpi.kpi-spotlight {
|
|
158
|
+
container-type: inline-size;
|
|
156
159
|
display: grid;
|
|
157
160
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
158
161
|
// Rows pack at the top: a tile stretched to a taller neighbour's height puts the spare
|
|
@@ -190,11 +193,26 @@
|
|
|
190
193
|
}
|
|
191
194
|
.kpi.kpi-spotlight .kpi-value {
|
|
192
195
|
margin-top: 14px;
|
|
193
|
-
// The face comes from --wui-kpi-value-font-family on .kpi-value
|
|
194
|
-
//
|
|
195
|
-
//
|
|
196
|
+
// The face comes from --wui-kpi-value-font-family on .kpi-value. Size is --wui-kpi-value-size
|
|
197
|
+
// (36px default, or the tile's valueSize), capped at 18% of the tile's content width so a
|
|
198
|
+
// seven-digit rupee figure fits a narrow tile; overflow-wrap is the backstop for a longer one.
|
|
199
|
+
font-size: min(var(--wui-kpi-value-size), 18cqi);
|
|
196
200
|
line-height: 1;
|
|
197
201
|
font-weight: 600;
|
|
202
|
+
overflow-wrap: anywhere;
|
|
203
|
+
}
|
|
204
|
+
// A narrow tile has no room for the label beside the 48px chip (a 164px tile leaves the label 52px), so the chip moves
|
|
205
|
+
// above the label and the label takes the full width.
|
|
206
|
+
@container (max-width: 160px) {
|
|
207
|
+
.kpi.kpi-spotlight .kpi-icon {
|
|
208
|
+
grid-column: 1;
|
|
209
|
+
justify-self: start;
|
|
210
|
+
margin-bottom: var(--wui-space-sm);
|
|
211
|
+
}
|
|
212
|
+
.kpi.kpi-spotlight .kpi-label {
|
|
213
|
+
grid-column: 1 / -1;
|
|
214
|
+
grid-row: 2;
|
|
215
|
+
}
|
|
198
216
|
}
|
|
199
217
|
// Compact size — dense dashboards and tight cards. Shrinks the value + chrome.
|
|
200
218
|
.kpi.kpi-sm {
|
|
@@ -239,8 +257,8 @@ a.kpi {
|
|
|
239
257
|
text-decoration: none;
|
|
240
258
|
color: inherit;
|
|
241
259
|
transition:
|
|
242
|
-
box-shadow
|
|
243
|
-
transform
|
|
260
|
+
box-shadow var(--wui-duration-fast) var(--wui-ease-ui),
|
|
261
|
+
transform var(--wui-duration-fast) var(--wui-ease-ui);
|
|
244
262
|
}
|
|
245
263
|
a.kpi:hover {
|
|
246
264
|
box-shadow: var(--wui-shadow-card);
|
|
@@ -521,9 +539,9 @@ a.kpi:focus-visible {
|
|
|
521
539
|
color: var(--color-text-muted);
|
|
522
540
|
cursor: pointer;
|
|
523
541
|
transition:
|
|
524
|
-
background
|
|
525
|
-
color
|
|
526
|
-
transform
|
|
542
|
+
background var(--wui-duration-fast) var(--wui-ease-ui),
|
|
543
|
+
color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
544
|
+
transform var(--wui-duration-fast) var(--wui-ease-ui);
|
|
527
545
|
}
|
|
528
546
|
// A quick press-in on click — a small, tactile "give".
|
|
529
547
|
.segmented-option:active {
|
|
@@ -602,8 +620,8 @@ a.kpi:focus-visible {
|
|
|
602
620
|
// at the first or last segment the ring crossed the track's edge mid-slide. Clipping the
|
|
603
621
|
// track instead is not an option: it would also clip the options' focus outline.
|
|
604
622
|
transition:
|
|
605
|
-
transform
|
|
606
|
-
width
|
|
623
|
+
transform var(--wui-duration-default) var(--wui-ease-out),
|
|
624
|
+
width var(--wui-duration-default) var(--wui-ease-out);
|
|
607
625
|
}
|
|
608
626
|
// While the thumb draws the pill, the checked option drops its own (keeps the primary label).
|
|
609
627
|
.segmented.is-animated .segmented-option:has(.segmented-input:checked) {
|
|
@@ -628,7 +646,7 @@ a.kpi:focus-visible {
|
|
|
628
646
|
// Icon pop — the selected segment's glyph springs up a touch as it becomes active.
|
|
629
647
|
.segmented-option:has(.segmented-input:checked) .wui-icon {
|
|
630
648
|
transform: scale(1.14);
|
|
631
|
-
transition: transform
|
|
649
|
+
transition: transform var(--wui-duration-default) var(--wui-ease-elastic);
|
|
632
650
|
}
|
|
633
651
|
.segmented-sm .segmented-thumb,
|
|
634
652
|
.segmented-lg .segmented-thumb {
|
|
@@ -1299,8 +1317,8 @@ a.kpi:focus-visible {
|
|
|
1299
1317
|
color: inherit;
|
|
1300
1318
|
text-decoration: none;
|
|
1301
1319
|
transition:
|
|
1302
|
-
border-color
|
|
1303
|
-
background
|
|
1320
|
+
border-color var(--wui-duration-default) var(--wui-ease-out),
|
|
1321
|
+
background var(--wui-duration-default) var(--wui-ease-out);
|
|
1304
1322
|
}
|
|
1305
1323
|
.res-card,
|
|
1306
1324
|
.res-card:hover {
|
|
@@ -1323,7 +1341,7 @@ a.kpi:focus-visible {
|
|
|
1323
1341
|
border-radius: 999px;
|
|
1324
1342
|
background: var(--color-primary-soft);
|
|
1325
1343
|
color: var(--color-primary-text);
|
|
1326
|
-
transition: background
|
|
1344
|
+
transition: background var(--wui-duration-default) var(--wui-ease-out);
|
|
1327
1345
|
}
|
|
1328
1346
|
// On hover the card takes the soft tint, so the icon inverts to the surface
|
|
1329
1347
|
// colour to stay distinct from it.
|
|
@@ -1342,7 +1360,7 @@ a.kpi:focus-visible {
|
|
|
1342
1360
|
font-weight: 600;
|
|
1343
1361
|
line-height: 1.4;
|
|
1344
1362
|
color: var(--color-text);
|
|
1345
|
-
transition: color
|
|
1363
|
+
transition: color var(--wui-duration-default) var(--wui-ease-out);
|
|
1346
1364
|
}
|
|
1347
1365
|
.res-card:hover .res-card-title {
|
|
1348
1366
|
color: var(--color-primary-text);
|
|
@@ -1471,7 +1489,7 @@ a.kpi:focus-visible {
|
|
|
1471
1489
|
font-weight: 500;
|
|
1472
1490
|
cursor: pointer;
|
|
1473
1491
|
border-radius: 4px;
|
|
1474
|
-
transition: color
|
|
1492
|
+
transition: color var(--wui-duration-default) var(--wui-ease-out);
|
|
1475
1493
|
}
|
|
1476
1494
|
// AppLink drawn as a button (linkComponent="button") must read as the anchors beside it,
|
|
1477
1495
|
// so the browser's button chrome is cleared. Size and weight still come from the link.
|
|
@@ -1501,9 +1519,12 @@ button.wui-link {
|
|
|
1501
1519
|
opacity: var(--wui-disabled-opacity);
|
|
1502
1520
|
pointer-events: none;
|
|
1503
1521
|
}
|
|
1522
|
+
// min-width: 0 lets the label shrink to the link's width, so an AppTruncate inside it can cut
|
|
1523
|
+
// the text instead of running over the content beside the link.
|
|
1504
1524
|
.wui-link__label {
|
|
1505
1525
|
position: relative;
|
|
1506
1526
|
z-index: 0;
|
|
1527
|
+
min-width: 0;
|
|
1507
1528
|
white-space: var(--wui-link-label-white-space, nowrap);
|
|
1508
1529
|
}
|
|
1509
1530
|
// maxLines: the label wraps and stops at that many lines, the clamp drawing the ellipsis. The
|
|
@@ -1551,7 +1572,7 @@ button.wui-link {
|
|
|
1551
1572
|
background: currentColor;
|
|
1552
1573
|
transform: scaleX(0);
|
|
1553
1574
|
transform-origin: left center;
|
|
1554
|
-
transition: transform
|
|
1575
|
+
transition: transform var(--wui-duration-slow) var(--wui-ease-out);
|
|
1555
1576
|
}
|
|
1556
1577
|
.wui-link--underline-center .wui-link__label::after {
|
|
1557
1578
|
transform-origin: center;
|
|
@@ -1565,7 +1586,7 @@ button.wui-link {
|
|
|
1565
1586
|
|
|
1566
1587
|
// slide — the whole link (label + icons) nudges to the right.
|
|
1567
1588
|
.wui-link--slide {
|
|
1568
|
-
transition: color
|
|
1589
|
+
transition: color var(--wui-duration-default) var(--wui-ease-out), transform var(--wui-duration-default) var(--wui-ease-out);
|
|
1569
1590
|
}
|
|
1570
1591
|
.wui-link--slide:hover,
|
|
1571
1592
|
.wui-link--slide:focus-visible {
|
|
@@ -1577,7 +1598,7 @@ button.wui-link {
|
|
|
1577
1598
|
margin-inline-start: -0.2em;
|
|
1578
1599
|
opacity: 0;
|
|
1579
1600
|
transform: translateX(-4px);
|
|
1580
|
-
transition: opacity
|
|
1601
|
+
transition: opacity var(--wui-duration-default) var(--wui-ease-out), transform var(--wui-duration-default) var(--wui-ease-out), margin var(--wui-duration-default) var(--wui-ease-out);
|
|
1581
1602
|
}
|
|
1582
1603
|
.wui-link--icon:hover .wui-link__ic--right,
|
|
1583
1604
|
.wui-link--icon:focus-visible .wui-link__ic--right {
|
|
@@ -1586,6 +1607,15 @@ button.wui-link {
|
|
|
1586
1607
|
transform: translateX(2px);
|
|
1587
1608
|
}
|
|
1588
1609
|
|
|
1610
|
+
// rotate — the trailing icon turns a quarter-eighth turn on hover and focus.
|
|
1611
|
+
.wui-link--rotate .wui-link__ic--right {
|
|
1612
|
+
transition: transform var(--wui-duration-default) var(--wui-ease-out);
|
|
1613
|
+
}
|
|
1614
|
+
.wui-link--rotate:hover .wui-link__ic--right,
|
|
1615
|
+
.wui-link--rotate:focus-visible .wui-link__ic--right {
|
|
1616
|
+
transform: rotate(45deg);
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1589
1619
|
// highlight — a tinted background wipes across behind the label.
|
|
1590
1620
|
.wui-link--highlight .wui-link__label::before {
|
|
1591
1621
|
content: "";
|
|
@@ -1596,7 +1626,7 @@ button.wui-link {
|
|
|
1596
1626
|
background: var(--color-primary-soft);
|
|
1597
1627
|
transform: scaleX(0);
|
|
1598
1628
|
transform-origin: left center;
|
|
1599
|
-
transition: transform
|
|
1629
|
+
transition: transform var(--wui-duration-default) var(--wui-ease-out);
|
|
1600
1630
|
}
|
|
1601
1631
|
.wui-link--highlight:hover .wui-link__label::before,
|
|
1602
1632
|
.wui-link--highlight:focus-visible .wui-link__label::before {
|
|
@@ -1612,7 +1642,7 @@ button.wui-link {
|
|
|
1612
1642
|
position: absolute;
|
|
1613
1643
|
top: 0;
|
|
1614
1644
|
opacity: 0;
|
|
1615
|
-
transition: opacity
|
|
1645
|
+
transition: opacity var(--wui-duration-default) var(--wui-ease-out), transform var(--wui-duration-default) var(--wui-ease-out);
|
|
1616
1646
|
}
|
|
1617
1647
|
.wui-link--bracket .wui-link__label::before {
|
|
1618
1648
|
content: "[";
|
|
@@ -1651,7 +1681,7 @@ button.wui-link {
|
|
|
1651
1681
|
}
|
|
1652
1682
|
.wui-link--static:hover .wui-link__label::after,
|
|
1653
1683
|
.wui-link--static:focus-visible .wui-link__label::after {
|
|
1654
|
-
animation: wui-link-underline-slide
|
|
1684
|
+
animation: wui-link-underline-slide var(--wui-duration-slow) var(--wui-ease-out);
|
|
1655
1685
|
}
|
|
1656
1686
|
@keyframes wui-link-underline-slide {
|
|
1657
1687
|
from {
|
|
@@ -1664,7 +1694,7 @@ button.wui-link {
|
|
|
1664
1694
|
|
|
1665
1695
|
// grow — the label's letters open up on hover.
|
|
1666
1696
|
.wui-link--grow {
|
|
1667
|
-
transition: color
|
|
1697
|
+
transition: color var(--wui-duration-default) var(--wui-ease-out), letter-spacing var(--wui-duration-default) var(--wui-ease-out);
|
|
1668
1698
|
}
|
|
1669
1699
|
.wui-link--grow:hover,
|
|
1670
1700
|
.wui-link--grow:focus-visible {
|
|
@@ -1673,7 +1703,7 @@ button.wui-link {
|
|
|
1673
1703
|
|
|
1674
1704
|
// glow — a soft accent glow blooms behind the text on hover.
|
|
1675
1705
|
.wui-link--glow {
|
|
1676
|
-
transition: color
|
|
1706
|
+
transition: color var(--wui-duration-default) var(--wui-ease-out), text-shadow var(--wui-duration-default) var(--wui-ease-out);
|
|
1677
1707
|
}
|
|
1678
1708
|
.wui-link--glow:hover,
|
|
1679
1709
|
.wui-link--glow:focus-visible {
|
|
@@ -1702,7 +1732,7 @@ button.wui-link {
|
|
|
1702
1732
|
}
|
|
1703
1733
|
.wui-link--shine:hover .wui-link__label,
|
|
1704
1734
|
.wui-link--shine:focus-visible .wui-link__label {
|
|
1705
|
-
animation: wui-link-shine
|
|
1735
|
+
animation: wui-link-shine calc(var(--wui-duration-slow) * 2) var(--wui-ease-out);
|
|
1706
1736
|
}
|
|
1707
1737
|
@keyframes wui-link-shine {
|
|
1708
1738
|
from {
|
|
@@ -1723,7 +1753,8 @@ button.wui-link {
|
|
|
1723
1753
|
.wui-link--slide,
|
|
1724
1754
|
.wui-link__label::after,
|
|
1725
1755
|
.wui-link__label::before,
|
|
1726
|
-
.wui-link--icon .wui-link__ic--right
|
|
1756
|
+
.wui-link--icon .wui-link__ic--right,
|
|
1757
|
+
.wui-link--rotate .wui-link__ic--right {
|
|
1727
1758
|
transition: none;
|
|
1728
1759
|
}
|
|
1729
1760
|
// Animated underlines settle to a visible static line rather than a hidden one.
|
|
@@ -1745,6 +1776,10 @@ button.wui-link {
|
|
|
1745
1776
|
transform: none;
|
|
1746
1777
|
margin-inline-start: 0;
|
|
1747
1778
|
}
|
|
1779
|
+
.wui-link--rotate:hover .wui-link__ic--right,
|
|
1780
|
+
.wui-link--rotate:focus-visible .wui-link__ic--right {
|
|
1781
|
+
transform: none;
|
|
1782
|
+
}
|
|
1748
1783
|
.wui-link--highlight:hover .wui-link__label::before,
|
|
1749
1784
|
.wui-link--highlight:focus-visible .wui-link__label::before {
|
|
1750
1785
|
transform: none;
|
package/scss/wui/_dock.scss
CHANGED
|
@@ -38,10 +38,10 @@ wui-dock {
|
|
|
38
38
|
// Smooths the snap-back when the pointer leaves; during tracking the element
|
|
39
39
|
// updates per frame, so the short transition just softens the steps.
|
|
40
40
|
transition:
|
|
41
|
-
width
|
|
42
|
-
height
|
|
43
|
-
background-color
|
|
44
|
-
color
|
|
41
|
+
width var(--wui-duration-fast) var(--wui-ease-ui),
|
|
42
|
+
height var(--wui-duration-fast) var(--wui-ease-ui),
|
|
43
|
+
background-color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
44
|
+
color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
45
45
|
}
|
|
46
46
|
.dock-item:hover,
|
|
47
47
|
.dock-item:focus-visible {
|
|
@@ -84,8 +84,8 @@ wui-dock {
|
|
|
84
84
|
pointer-events: none;
|
|
85
85
|
opacity: 0;
|
|
86
86
|
transition:
|
|
87
|
-
opacity
|
|
88
|
-
translate
|
|
87
|
+
opacity var(--wui-duration-fast) var(--wui-ease-ui),
|
|
88
|
+
translate var(--wui-duration-fast) var(--wui-ease-ui);
|
|
89
89
|
z-index: var(--wui-z-tooltip);
|
|
90
90
|
}
|
|
91
91
|
.dock-item:hover .dock-item-tip,
|
package/scss/wui/_drawer.scss
CHANGED
|
@@ -234,13 +234,13 @@ body.wui-drawer-locked {
|
|
|
234
234
|
|
|
235
235
|
@media (prefers-reduced-motion: no-preference) {
|
|
236
236
|
.wui-drawer {
|
|
237
|
-
transition: visibility 0s linear var(--wui-drawer-duration);
|
|
237
|
+
transition: visibility 0s var(--wui-ease-linear) var(--wui-drawer-duration);
|
|
238
238
|
}
|
|
239
239
|
.wui-drawer[open] {
|
|
240
240
|
transition-delay: 0s;
|
|
241
241
|
}
|
|
242
242
|
.wui-drawer-backdrop {
|
|
243
|
-
transition: opacity var(--wui-drawer-duration) ease;
|
|
243
|
+
transition: opacity var(--wui-drawer-duration) var(--wui-ease-ui);
|
|
244
244
|
}
|
|
245
245
|
.wui-drawer-panel {
|
|
246
246
|
transition: transform var(--wui-drawer-duration) var(--wui-ease-ui);
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
background-image:
|
|
28
28
|
radial-gradient(circle, var(--color-surface) 0 5px, transparent 5.5px),
|
|
29
29
|
conic-gradient(from var(--wui-busy-angle), transparent 0 30%, var(--color-primary) 30% 100%);
|
|
30
|
-
animation: wui-field-busy-spin
|
|
30
|
+
animation: wui-field-busy-spin calc(var(--wui-duration-slow) * 2) var(--wui-ease-linear) infinite;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -212,9 +212,9 @@ wui-file-viewer:fullscreen {
|
|
|
212
212
|
border-right: 1px solid transparent;
|
|
213
213
|
opacity: 0;
|
|
214
214
|
transition:
|
|
215
|
-
width
|
|
216
|
-
padding
|
|
217
|
-
opacity
|
|
215
|
+
width var(--wui-duration-default) var(--wui-ease-ui),
|
|
216
|
+
padding var(--wui-duration-default) var(--wui-ease-ui),
|
|
217
|
+
opacity var(--wui-duration-default) var(--wui-ease-ui) calc(var(--wui-duration-fast) * 0.25);
|
|
218
218
|
}
|
|
219
219
|
.wui-file-viewer-thumbs.open {
|
|
220
220
|
width: 210px;
|
package/scss/wui/_flow.scss
CHANGED
|
@@ -236,9 +236,9 @@ button.step.done:focus-visible .step-circle {
|
|
|
236
236
|
font-size: var(--wui-step-number-font, 13px);
|
|
237
237
|
font-weight: 700;
|
|
238
238
|
transition:
|
|
239
|
-
background
|
|
240
|
-
color
|
|
241
|
-
transform
|
|
239
|
+
background var(--wui-duration-default) var(--wui-ease-ui),
|
|
240
|
+
color var(--wui-duration-default) var(--wui-ease-ui),
|
|
241
|
+
transform var(--wui-duration-default) var(--wui-ease-ui);
|
|
242
242
|
}
|
|
243
243
|
.stepper-journey .step.done .step-circle {
|
|
244
244
|
background: var(--wui-step-done-soft, var(--wui-step-soft, var(--color-primary-soft)));
|
|
@@ -437,9 +437,9 @@ button.step.done:focus-visible .step-circle {
|
|
|
437
437
|
color: var(--color-text-subtle);
|
|
438
438
|
font-size: var(--wui-step-number-font, 22px);
|
|
439
439
|
transition:
|
|
440
|
-
background
|
|
441
|
-
color
|
|
442
|
-
transform
|
|
440
|
+
background var(--wui-duration-default) var(--wui-ease-ui),
|
|
441
|
+
color var(--wui-duration-default) var(--wui-ease-ui),
|
|
442
|
+
transform var(--wui-duration-default) var(--wui-ease-ui);
|
|
443
443
|
}
|
|
444
444
|
// Like every variant, the icons stepper defaults to the brand primary — a solid-primary
|
|
445
445
|
// active badge, a soft-primary done badge, a primary rail. Every colour routes through the
|
|
@@ -891,9 +891,9 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
891
891
|
corner-shape: squircle;
|
|
892
892
|
background: var(--color-surface);
|
|
893
893
|
transition:
|
|
894
|
-
border-color
|
|
895
|
-
box-shadow
|
|
896
|
-
transform
|
|
894
|
+
border-color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
895
|
+
box-shadow var(--wui-duration-fast) var(--wui-ease-ui),
|
|
896
|
+
transform var(--wui-duration-fast) var(--wui-ease-ui);
|
|
897
897
|
}
|
|
898
898
|
.plan-card:hover {
|
|
899
899
|
border-color: var(--color-border-strong);
|
|
@@ -1135,10 +1135,11 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1135
1135
|
line-height: 1.4;
|
|
1136
1136
|
color: var(--color-text-muted);
|
|
1137
1137
|
}
|
|
1138
|
+
// --wui-form-gap (default 16px) sets the gap between rows and between fields in a row; 0 lets the reserved message line be the only space.
|
|
1138
1139
|
.form-section-body {
|
|
1139
1140
|
display: flex;
|
|
1140
1141
|
flex-direction: column;
|
|
1141
|
-
gap: var(--wui-space-lg);
|
|
1142
|
+
gap: var(--wui-form-gap, var(--wui-space-lg));
|
|
1142
1143
|
}
|
|
1143
1144
|
|
|
1144
1145
|
// layout="side": the title and description take a column beside the fields. Below lg the
|
|
@@ -1179,6 +1180,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1179
1180
|
// Centres the label's first line on the control beside it, at any control height.
|
|
1180
1181
|
.wui-form-labels-start .field > .label {
|
|
1181
1182
|
grid-column: 1;
|
|
1183
|
+
margin-bottom: 0;
|
|
1182
1184
|
padding-top: calc((var(--wui-control-md) - 1.2em) / 2);
|
|
1183
1185
|
}
|
|
1184
1186
|
.wui-form-labels-start .field > :not(.label) {
|
|
@@ -1204,7 +1206,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1204
1206
|
.form-row-grid {
|
|
1205
1207
|
display: grid;
|
|
1206
1208
|
grid-template-columns: repeat(var(--form-cols, 2), minmax(0, 1fr));
|
|
1207
|
-
gap: 16px;
|
|
1209
|
+
gap: var(--wui-form-gap, 16px);
|
|
1208
1210
|
align-items: start;
|
|
1209
1211
|
// In a form row every field fills its column, so a date picker drops its compact standalone
|
|
1210
1212
|
// width here and lines up with the fields beside it. A .date-w-* class on the field still wins.
|
|
@@ -1349,8 +1351,8 @@ wui-wizard-step[hidden] {
|
|
|
1349
1351
|
color: var(--color-text-muted);
|
|
1350
1352
|
cursor: pointer;
|
|
1351
1353
|
transition:
|
|
1352
|
-
background-color
|
|
1353
|
-
color
|
|
1354
|
+
background-color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
1355
|
+
color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
1354
1356
|
}
|
|
1355
1357
|
.wui-wizard-topbar-close:hover {
|
|
1356
1358
|
background: var(--color-bg-muted);
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
font: inherit;
|
|
38
38
|
text-align: start;
|
|
39
39
|
cursor: pointer;
|
|
40
|
-
transition: background-color
|
|
40
|
+
transition: background-color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
41
41
|
}
|
|
42
42
|
.wui-inline-edit-display[hidden] {
|
|
43
43
|
display: none;
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
flex: none;
|
|
77
77
|
color: var(--color-text-subtle);
|
|
78
78
|
opacity: 0;
|
|
79
|
-
transition: opacity
|
|
79
|
+
transition: opacity var(--wui-duration-fast) var(--wui-ease-ui);
|
|
80
80
|
}
|
|
81
81
|
.wui-inline-edit-display:hover .wui-inline-edit-icon,
|
|
82
82
|
.wui-inline-edit-display:focus-visible .wui-inline-edit-icon {
|
|
@@ -209,7 +209,6 @@ html:has(.form-actions-sticky) {
|
|
|
209
209
|
.card-clickable,
|
|
210
210
|
.res-card,
|
|
211
211
|
a.kpi,
|
|
212
|
-
.struct-card,
|
|
213
212
|
.avatar-clickable,
|
|
214
213
|
.attach-drop,
|
|
215
214
|
.logo-dropzone,
|
|
@@ -229,7 +228,7 @@ html:has(.form-actions-sticky) {
|
|
|
229
228
|
@media (prefers-reduced-motion: no-preference) {
|
|
230
229
|
.wui-rating-input:not([disabled]) .wui-rating-star:active {
|
|
231
230
|
transform: scale(var(--wui-press-scale));
|
|
232
|
-
transition: transform var(--wui-press-duration) ease-out;
|
|
231
|
+
transition: transform var(--wui-press-duration) var(--wui-ease-out);
|
|
233
232
|
}
|
|
234
233
|
}
|
|
235
234
|
|