@webority/theme 0.150.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/dist/purge-safelist.json +20 -0
- package/dist/webority-theme.css +1 -1
- package/dist/webority-tokens.css +1 -1
- package/package.json +3 -2
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_components.scss +138 -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.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 +50 -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 +37 -23
- 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/_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/_utilities.scss
CHANGED
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
background: transparent;
|
|
89
89
|
color: var(--color-text-subtle);
|
|
90
90
|
cursor: help;
|
|
91
|
-
transition: color
|
|
91
|
+
transition: color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
92
92
|
}
|
|
93
93
|
.infotip-btn:hover {
|
|
94
94
|
color: var(--color-primary-text);
|
|
@@ -399,6 +399,24 @@
|
|
|
399
399
|
aspect-ratio: 1;
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
+
// Touch screens: grow the hit area, not the disc, so row density is unchanged. On ::before, never ::after,
|
|
403
|
+
// which a [data-wui-tip] tooltip owns (same as .u-action in _data.scss).
|
|
404
|
+
@media (pointer: coarse) {
|
|
405
|
+
.btn-icon {
|
|
406
|
+
position: relative;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.btn-icon::before {
|
|
410
|
+
content: "";
|
|
411
|
+
position: absolute;
|
|
412
|
+
top: 50%;
|
|
413
|
+
left: 50%;
|
|
414
|
+
transform: translate(-50%, -50%);
|
|
415
|
+
width: var(--wui-touch-target);
|
|
416
|
+
height: var(--wui-touch-target);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
402
420
|
// Circular icon buttons in the top bar (minimal dashboard chrome).
|
|
403
421
|
.topbar-icon-btn {
|
|
404
422
|
position: relative;
|
|
@@ -414,8 +432,8 @@
|
|
|
414
432
|
color: var(--color-text-muted);
|
|
415
433
|
cursor: pointer;
|
|
416
434
|
transition:
|
|
417
|
-
background
|
|
418
|
-
color
|
|
435
|
+
background var(--wui-duration-fast) var(--wui-ease-ui),
|
|
436
|
+
color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
419
437
|
}
|
|
420
438
|
.topbar-icon-btn:hover {
|
|
421
439
|
background: var(--color-primary-soft);
|
|
@@ -458,7 +476,7 @@
|
|
|
458
476
|
margin-inline-start: calc(-1 * var(--wui-space-xs));
|
|
459
477
|
padding: var(--wui-space-xxs) var(--wui-space-xs);
|
|
460
478
|
border-radius: var(--wui-radius-sm);
|
|
461
|
-
transition: background
|
|
479
|
+
transition: background var(--wui-duration-fast) var(--wui-ease-ui);
|
|
462
480
|
}
|
|
463
481
|
.wui-dropdown-trigger-neutral:hover,
|
|
464
482
|
.wui-dropdown-trigger-neutral[aria-expanded="true"] {
|
|
@@ -563,7 +581,7 @@
|
|
|
563
581
|
font-size: 13px;
|
|
564
582
|
line-height: 1.35;
|
|
565
583
|
font-weight: 500;
|
|
566
|
-
transition: color
|
|
584
|
+
transition: color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
567
585
|
}
|
|
568
586
|
// The state mark is a single mask tinted by the rule's own text colour (`currentColor`), so it
|
|
569
587
|
// tracks the met/unmet colour automatically and stays theme-aware — no baked hex, no light/dark
|
|
@@ -579,7 +597,7 @@
|
|
|
579
597
|
mask: center / contain no-repeat;
|
|
580
598
|
-webkit-mask-image: var(--pw-mark);
|
|
581
599
|
mask-image: var(--pw-mark);
|
|
582
|
-
transition: background-color
|
|
600
|
+
transition: background-color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
583
601
|
}
|
|
584
602
|
.pw-criteria .pw-rule-text {
|
|
585
603
|
min-width: 0;
|
|
@@ -752,7 +770,7 @@
|
|
|
752
770
|
// no width style in this mode, so the width + motion come from here).
|
|
753
771
|
.wui-progress-indeterminate {
|
|
754
772
|
width: 40%;
|
|
755
|
-
animation: wui-progress-indeterminate
|
|
773
|
+
animation: wui-progress-indeterminate calc(var(--wui-duration-slow) * 3) var(--wui-ease-in-out) infinite;
|
|
756
774
|
}
|
|
757
775
|
@keyframes wui-progress-indeterminate {
|
|
758
776
|
0% {
|
|
@@ -789,7 +807,7 @@
|
|
|
789
807
|
border: 2.5px solid var(--color-border);
|
|
790
808
|
border-top-color: var(--color-primary);
|
|
791
809
|
border-radius: 999px;
|
|
792
|
-
animation: wui-spin
|
|
810
|
+
animation: wui-spin calc(var(--wui-duration-slow) * 2) var(--wui-ease-linear) infinite;
|
|
793
811
|
display: inline-block;
|
|
794
812
|
flex-shrink: 0;
|
|
795
813
|
}
|
|
@@ -806,7 +824,7 @@
|
|
|
806
824
|
}
|
|
807
825
|
// Spinner for the Button loading state.
|
|
808
826
|
.wui-spin {
|
|
809
|
-
animation: wui-spin
|
|
827
|
+
animation: wui-spin calc(var(--wui-duration-slow) * 2) var(--wui-ease-linear) infinite;
|
|
810
828
|
}
|
|
811
829
|
|
|
812
830
|
// Skeleton shimmer — used ONLY while loading the first data (loading &&
|
|
@@ -824,7 +842,7 @@
|
|
|
824
842
|
inset: 0;
|
|
825
843
|
transform: translateX(-100%);
|
|
826
844
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
|
|
827
|
-
animation: skeleton-shimmer
|
|
845
|
+
animation: skeleton-shimmer calc(var(--wui-duration-slow) * 4) var(--wui-ease-in-out) infinite;
|
|
828
846
|
}
|
|
829
847
|
@keyframes skeleton-shimmer {
|
|
830
848
|
100% {
|
|
@@ -1199,7 +1217,7 @@
|
|
|
1199
1217
|
opacity: 1;
|
|
1200
1218
|
filter: none;
|
|
1201
1219
|
transform: translateY(-50%);
|
|
1202
|
-
transition: background-color
|
|
1220
|
+
transition: background-color var(--wui-duration-default) var(--wui-ease-in-out);
|
|
1203
1221
|
}
|
|
1204
1222
|
.alert-dismissible .btn-close::before {
|
|
1205
1223
|
content: "";
|
package/scss/wui/_workspace.scss
CHANGED
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
text-align: left;
|
|
36
36
|
cursor: pointer;
|
|
37
37
|
transition:
|
|
38
|
-
border-color
|
|
39
|
-
box-shadow
|
|
38
|
+
border-color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
39
|
+
box-shadow var(--wui-duration-fast) var(--wui-ease-ui);
|
|
40
40
|
}
|
|
41
41
|
.workspace-switcher-trigger:hover:not(:focus):not([aria-expanded="true"]) {
|
|
42
42
|
border-color: var(--color-border-strong);
|
package/scss/wui/tour/_end.scss
CHANGED
|
@@ -89,6 +89,6 @@
|
|
|
89
89
|
// (set inline by tourMotion.js and inherited). Under reduced motion it shows at once.
|
|
90
90
|
@media (prefers-reduced-motion: no-preference) {
|
|
91
91
|
.wui-tour-end-mark path {
|
|
92
|
-
animation: wui-tour-check
|
|
92
|
+
animation: wui-tour-check var(--wui-duration-default) var(--wui-ease-out) calc(var(--wui-tour-card-delay, 0ms) + var(--wui-duration-fast)) both;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -119,15 +119,15 @@
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
// Nothing moves or scales and the spot jumps: the card hides at once and fades in, and the dim
|
|
122
|
-
// fades, each within
|
|
122
|
+
// fades, each within the fast motion duration.
|
|
123
123
|
@media (prefers-reduced-motion: reduce) {
|
|
124
124
|
.wui-tour-layer {
|
|
125
|
-
animation: wui-tour-fade-in
|
|
125
|
+
animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear);
|
|
126
126
|
}
|
|
127
127
|
.wui-tour-layer[data-state="leaving"] {
|
|
128
|
-
transition: opacity
|
|
128
|
+
transition: opacity var(--wui-duration-fast) var(--wui-ease-linear);
|
|
129
129
|
}
|
|
130
130
|
.wui-tour-card[data-state="entering"] {
|
|
131
|
-
animation: wui-tour-fade-in
|
|
131
|
+
animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear) both;
|
|
132
132
|
}
|
|
133
133
|
}
|
package/token-meanings.json
CHANGED
|
@@ -171,6 +171,7 @@
|
|
|
171
171
|
"--wui-disabled-opacity": "Opacity of a control that dims as a whole when disabled.",
|
|
172
172
|
"--wui-drawer-max": "Height of a bottom sheet drawer as a count of viewport height percent.",
|
|
173
173
|
"--wui-ease-elastic": "Overshooting easing for the tab ink bar's spring into place.",
|
|
174
|
+
"--wui-ease-linear": "Constant-speed easing for spinners, marquees and scroll-linked motion.",
|
|
174
175
|
"--wui-ease-out": "Easing curve matching the locked design's motion exports.",
|
|
175
176
|
"--wui-ease-ui": "Easing curve for interface transitions.",
|
|
176
177
|
"--wui-fg-2": "Marketing alias of the primary body text ink.",
|
|
@@ -291,6 +292,7 @@
|
|
|
291
292
|
"--wui-text-heading": "Heading ink for page and section titles.",
|
|
292
293
|
"--wui-thumb-shadow": "Shadow under a slider thumb and other small interactive elements.",
|
|
293
294
|
"--wui-thumb-shadow-hover": "Shadow under a slider thumb while it is hovered.",
|
|
295
|
+
"--wui-touch-target": "Smallest tap area of a button on a touch screen; small, text and icon-only buttons grow to it.",
|
|
294
296
|
"--wui-warning": "Vivid warning fill for badges and dots.",
|
|
295
297
|
"--wui-warning-10": "Warning tint 10, the soft background of warning alerts and badges.",
|
|
296
298
|
"--wui-warning-20": "Warning tint 20 for soft fills behind warning alerts and badges.",
|