@webority/theme 0.163.0 → 0.164.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 +21 -21
- package/dist/purge-safelist.json +10 -11
- 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 +2 -0
- package/scss/_wui-core.scss +2 -0
- 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 +74 -73
- package/scss/wui/_data.scss +19 -33
- 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/_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/_hover-card.scss +6 -5
- package/scss/wui/_inline-edit.scss +1 -1
- 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/_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 +139 -99
- package/scss/wui/_page-header-bar.scss +24 -0
- package/scss/wui/_scrollbar.scss +1 -1
- package/scss/wui/_sections.scss +3 -3
- package/scss/wui/_select.scss +16 -10
- package/scss/wui/_shell-parts.scss +2 -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 +8 -8
- package/scss/wui/_utilities.scss +4 -5
- 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/_display.scss
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
// KPI tile, info list, segmented, colour field, timeline, compare table, resource card.
|
|
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
|
// ============================================================================
|
|
11
|
-
// KPI / stat tile
|
|
11
|
+
// KPI / stat tile: a single derived number with its label and an optional delta.
|
|
12
12
|
// ============================================================================
|
|
13
13
|
.kpi {
|
|
14
14
|
display: flex;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
background: var(--color-primary-soft);
|
|
30
30
|
color: var(--color-primary-text);
|
|
31
31
|
}
|
|
32
|
-
// Tone modifiers
|
|
32
|
+
// Tone modifiers: same semantic vocabulary as .badge/.status-label (success / warning /
|
|
33
33
|
// danger / info / primary / neutral). primary is the default look above, restated here so
|
|
34
34
|
// an explicit icon-tone="primary" matches an omitted one.
|
|
35
35
|
.kpi-icon-primary {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
color: var(--color-text-muted);
|
|
106
106
|
}
|
|
107
107
|
// Trend chart. currentColor so it inherits kpi-value's colour by default, or a wrapping
|
|
108
|
-
// tone context (e.g. .kpi-delta.up) if placed there
|
|
108
|
+
// tone context (e.g. .kpi-delta.up) if placed there; no colour hardcoded here.
|
|
109
109
|
.kpi-sparkline {
|
|
110
110
|
display: block;
|
|
111
111
|
width: 48px;
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
margin-top: 2px;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
// Surface variants
|
|
138
|
+
// Surface variants: plain (above) is borderless on the surface fill; these just swap the
|
|
139
139
|
// fill so a dashboard can mix a KPI strip with the surrounding card.
|
|
140
140
|
.kpi.kpi-filled {
|
|
141
141
|
background: var(--color-bg-subtle);
|
|
@@ -143,14 +143,14 @@
|
|
|
143
143
|
.kpi.kpi-accent {
|
|
144
144
|
background: var(--color-primary-soft);
|
|
145
145
|
}
|
|
146
|
-
// Needs-action state
|
|
146
|
+
// Needs-action state: orthogonal to variant, so it composes with plain/filled/accent
|
|
147
147
|
// rather than replacing the surface. Draws its own outline since the base tile no longer does.
|
|
148
148
|
.kpi.kpi-attention {
|
|
149
149
|
border: 1px solid var(--color-warning);
|
|
150
150
|
background: var(--color-warning-soft);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
// Spotlight
|
|
153
|
+
// Spotlight is an editorial feature tile: the label sits top-left with the icon chip pinned
|
|
154
154
|
// top-right, the value is set large in the product's own font, and an optional caption reads
|
|
155
155
|
// under the number. For the single showcase stat on a marketing/portal surface where the
|
|
156
156
|
// number is the hero.
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
grid-row: 2;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
// Compact size
|
|
219
|
+
// Compact size: dense dashboards and tight cards. Shrinks the value + chrome.
|
|
220
220
|
.kpi.kpi-sm {
|
|
221
221
|
padding: 12px 14px;
|
|
222
222
|
--wui-kpi-value-size: 22px;
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
margin-bottom: 8px;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
// Hero size
|
|
233
|
+
// Hero size: the single headline stat above a dashboard. Enlarges the value and its
|
|
234
234
|
// chrome; orthogonal to variant/inline/attention, so it composes with all of them.
|
|
235
235
|
.kpi.kpi-lg {
|
|
236
236
|
padding: 20px;
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
height: 44px;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
// Caption
|
|
247
|
+
// Caption: the sub-line under the value ("Total sent"). Spotlight-only today, but the class
|
|
248
248
|
// is variant-agnostic so a plain tile can carry one too.
|
|
249
249
|
.kpi-caption {
|
|
250
250
|
margin-top: 8px;
|
|
@@ -271,7 +271,7 @@ a.kpi:focus-visible {
|
|
|
271
271
|
outline-offset: var(--wui-focus-ring-offset);
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
// A row of tiles. Wraps rather than scrolls
|
|
274
|
+
// A row of tiles. Wraps rather than scrolls; a KPI strip that scrolls hides numbers.
|
|
275
275
|
.kpi-row {
|
|
276
276
|
display: grid;
|
|
277
277
|
gap: 16px;
|
|
@@ -290,7 +290,7 @@ a.kpi:focus-visible {
|
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
// ============================================================================
|
|
293
|
-
// Labeled key-value grid
|
|
293
|
+
// Labeled key-value grid: record details, definitions, attributes.
|
|
294
294
|
// ============================================================================
|
|
295
295
|
.descs {
|
|
296
296
|
display: flex;
|
|
@@ -357,7 +357,7 @@ a.kpi:focus-visible {
|
|
|
357
357
|
.descs-bordered .descs-item {
|
|
358
358
|
border-top: 1px solid var(--color-border);
|
|
359
359
|
}
|
|
360
|
-
// Column variants
|
|
360
|
+
// Column variants: set the grid-template-columns.
|
|
361
361
|
.descs-col-1 .descs-list {
|
|
362
362
|
--descs-cols: 1;
|
|
363
363
|
}
|
|
@@ -563,11 +563,11 @@ a.kpi:focus-visible {
|
|
|
563
563
|
color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
564
564
|
transform var(--wui-duration-fast) var(--wui-ease-ui);
|
|
565
565
|
}
|
|
566
|
-
// A quick press-in on click
|
|
566
|
+
// A quick press-in on click: a small, tactile "give".
|
|
567
567
|
.segmented-option:active {
|
|
568
568
|
transform: scale(0.95);
|
|
569
569
|
}
|
|
570
|
-
// The real radio stays in the accessibility tree and keeps focus
|
|
570
|
+
// The real radio stays in the accessibility tree and keeps focus; only its box is
|
|
571
571
|
// hidden. `display: none` would drop it from the tab order and break arrow-key
|
|
572
572
|
// navigation, which is the whole reason for using a native radio here.
|
|
573
573
|
.segmented-input {
|
|
@@ -584,7 +584,7 @@ a.kpi:focus-visible {
|
|
|
584
584
|
color: var(--color-text);
|
|
585
585
|
background: color-mix(in srgb, currentColor 6%, transparent);
|
|
586
586
|
}
|
|
587
|
-
// A per-option sub-label under the main text
|
|
587
|
+
// A per-option sub-label under the main text: optional, so a segment without one keeps the
|
|
588
588
|
// plain single-line layout above untouched.
|
|
589
589
|
.segmented-option-text {
|
|
590
590
|
display: flex;
|
|
@@ -602,7 +602,7 @@ a.kpi:focus-visible {
|
|
|
602
602
|
font-weight: 400;
|
|
603
603
|
// Inherits the option's current text colour (plain, hover, or primary-on-checked) rather
|
|
604
604
|
// than a fixed token, so it always matches without a separate state per variant. No opacity
|
|
605
|
-
// muting
|
|
605
|
+
// muting; that dropped the sub-label below AA on an unchecked option; its lighter weight already
|
|
606
606
|
// distinguishes it from the label.
|
|
607
607
|
color: currentColor;
|
|
608
608
|
}
|
|
@@ -617,7 +617,7 @@ a.kpi:focus-visible {
|
|
|
617
617
|
outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
|
|
618
618
|
outline-offset: var(--wui-focus-ring-offset);
|
|
619
619
|
}
|
|
620
|
-
// Sliding thumb
|
|
620
|
+
// Sliding thumb: one pill that glides to the selected segment. Positioned by JS (React in a
|
|
621
621
|
// layout effect, Razor in webority-ui.js), which adds .is-animated once it has measured the
|
|
622
622
|
// first segment. Without JS the per-option fill above stands in, so nothing looks broken.
|
|
623
623
|
.segmented-thumb {
|
|
@@ -663,7 +663,7 @@ a.kpi:focus-visible {
|
|
|
663
663
|
.wui-segmented-borderless .segmented-option:has(.segmented-input:checked) {
|
|
664
664
|
box-shadow: none;
|
|
665
665
|
}
|
|
666
|
-
// Icon pop
|
|
666
|
+
// Icon pop: the selected segment's glyph springs up a touch as it becomes active.
|
|
667
667
|
.segmented-option:has(.segmented-input:checked) .wui-icon {
|
|
668
668
|
transform: scale(1.14);
|
|
669
669
|
transition: transform var(--wui-duration-default) var(--wui-ease-elastic);
|
|
@@ -714,7 +714,7 @@ a.kpi:focus-visible {
|
|
|
714
714
|
display: none;
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
|
-
// Full width
|
|
717
|
+
// Full width: segments share the row equally (a toggle spanning a card or toolbar).
|
|
718
718
|
.segmented-full {
|
|
719
719
|
display: flex;
|
|
720
720
|
width: 100%;
|
|
@@ -734,7 +734,7 @@ a.kpi:focus-visible {
|
|
|
734
734
|
cursor: not-allowed;
|
|
735
735
|
}
|
|
736
736
|
@media (prefers-reduced-motion: reduce) {
|
|
737
|
-
// The thumb still jumps to the selected segment
|
|
737
|
+
// The thumb still jumps to the selected segment; it just does not slide, pop or press.
|
|
738
738
|
.segmented-option,
|
|
739
739
|
.segmented.is-animated .segmented-thumb,
|
|
740
740
|
.segmented-option:has(.segmented-input:checked) .wui-icon {
|
|
@@ -747,7 +747,7 @@ a.kpi:focus-visible {
|
|
|
747
747
|
}
|
|
748
748
|
|
|
749
749
|
// ============================================================================
|
|
750
|
-
// Colour field
|
|
750
|
+
// Colour field: a native colour swatch beside a hex text input, one control.
|
|
751
751
|
// ============================================================================
|
|
752
752
|
.color-field {
|
|
753
753
|
display: flex;
|
|
@@ -914,7 +914,7 @@ a.kpi:focus-visible {
|
|
|
914
914
|
white-space: pre-wrap;
|
|
915
915
|
overflow-wrap: anywhere;
|
|
916
916
|
}
|
|
917
|
-
// Plain inline subtext under the title
|
|
917
|
+
// Plain inline subtext under the title: a muted line (distinct from the boxed
|
|
918
918
|
// .timeline-note). Works in both variants; used heavily by the progress variant.
|
|
919
919
|
.timeline-desc {
|
|
920
920
|
margin-top: 2px;
|
|
@@ -935,7 +935,7 @@ a.kpi:focus-visible {
|
|
|
935
935
|
}
|
|
936
936
|
|
|
937
937
|
// ----------------------------------------------------------------------------
|
|
938
|
-
// Progress variant
|
|
938
|
+
// Progress variant: a status tracker (Initiated → Submitted → … → Disbursed).
|
|
939
939
|
// Solid status dots (done/current/rejected) or a hollow ring (upcoming); the
|
|
940
940
|
// rail is drawn PER SEGMENT so a completed step's outgoing line reads filled.
|
|
941
941
|
// ----------------------------------------------------------------------------
|
|
@@ -947,7 +947,7 @@ a.kpi:focus-visible {
|
|
|
947
947
|
// Room on the left so a status dot's soft halo ring isn't clipped.
|
|
948
948
|
padding-left: calc(var(--wui-timeline-halo) + 1px);
|
|
949
949
|
}
|
|
950
|
-
// No single list rail
|
|
950
|
+
// No single list rail: each item owns the segment down to the next dot so it
|
|
951
951
|
// can be tinted independently.
|
|
952
952
|
.timeline--progress::before {
|
|
953
953
|
display: none;
|
|
@@ -955,7 +955,7 @@ a.kpi:focus-visible {
|
|
|
955
955
|
.timeline--progress .timeline-item {
|
|
956
956
|
padding-bottom: 22px;
|
|
957
957
|
}
|
|
958
|
-
// The connector from this dot down into the next one
|
|
958
|
+
// The connector from this dot down into the next one, anchored to the dot's
|
|
959
959
|
// bottom edge and centre, so it stays aligned at any dot size.
|
|
960
960
|
.timeline--progress .timeline-item:not(:last-child)::before {
|
|
961
961
|
content: "";
|
|
@@ -972,7 +972,7 @@ a.kpi:focus-visible {
|
|
|
972
972
|
background: var(--color-success);
|
|
973
973
|
}
|
|
974
974
|
// Base / upcoming dot: a hollow ring for a not-yet-reached step. Just the 2px
|
|
975
|
-
// grey ring outline
|
|
975
|
+
// grey ring outline. No outer halo. The dot's opaque surface fill already masks
|
|
976
976
|
// the connector within its bounds, so the rail stays clean without a halo ring.
|
|
977
977
|
.timeline--progress .timeline-dot,
|
|
978
978
|
.timeline--progress .timeline-item.is-upcoming .timeline-dot {
|
|
@@ -998,13 +998,13 @@ a.kpi:focus-visible {
|
|
|
998
998
|
background: color-mix(in srgb, var(--color-danger) 82%, var(--color-surface));
|
|
999
999
|
box-shadow: 0 0 0 var(--wui-timeline-halo) var(--color-danger-soft);
|
|
1000
1000
|
}
|
|
1001
|
-
// Blocked / waiting on an external action
|
|
1001
|
+
// Blocked / waiting on an external action: informational blue.
|
|
1002
1002
|
.timeline--progress .timeline-item.is-on-hold .timeline-dot {
|
|
1003
1003
|
color: var(--color-on-info);
|
|
1004
1004
|
background: color-mix(in srgb, var(--color-info) 82%, var(--color-surface));
|
|
1005
1005
|
box-shadow: 0 0 0 var(--wui-timeline-halo) var(--color-info-soft);
|
|
1006
1006
|
}
|
|
1007
|
-
// Cancelled / skipped
|
|
1007
|
+
// Cancelled / skipped: resolved-but-inactive outcomes read as muted slate,
|
|
1008
1008
|
// with a soft neutral halo, so they sit visually below the live states.
|
|
1009
1009
|
.timeline--progress .timeline-item.is-cancelled .timeline-dot,
|
|
1010
1010
|
.timeline--progress .timeline-item.is-skipped .timeline-dot {
|
|
@@ -1012,7 +1012,7 @@ a.kpi:focus-visible {
|
|
|
1012
1012
|
background: color-mix(in srgb, var(--color-text-subtle) 82%, var(--color-surface));
|
|
1013
1013
|
box-shadow: 0 0 0 var(--wui-timeline-halo) color-mix(in srgb, var(--color-text-subtle) 16%, transparent);
|
|
1014
1014
|
}
|
|
1015
|
-
// A cancelled step's title is struck through
|
|
1015
|
+
// A cancelled step's title is struck through. The plan changed.
|
|
1016
1016
|
.timeline--progress .timeline-item.is-cancelled .timeline-title {
|
|
1017
1017
|
text-decoration: line-through;
|
|
1018
1018
|
color: var(--color-text-muted);
|
|
@@ -1024,7 +1024,7 @@ a.kpi:focus-visible {
|
|
|
1024
1024
|
justify-content: space-between;
|
|
1025
1025
|
gap: 12px;
|
|
1026
1026
|
}
|
|
1027
|
-
// Date OVER time
|
|
1027
|
+
// Date OVER time: the stamp stacks vertically so the time reads on its own line beneath the
|
|
1028
1028
|
// date. `.timeline-when` groups the two wherever a date+time stamp appears (both variants), so
|
|
1029
1029
|
// the pair moves and aligns as one unit.
|
|
1030
1030
|
.timeline-when {
|
|
@@ -1048,14 +1048,14 @@ a.kpi:focus-visible {
|
|
|
1048
1048
|
.timeline-time {
|
|
1049
1049
|
font-size: 12px;
|
|
1050
1050
|
}
|
|
1051
|
-
// An upcoming step greys down
|
|
1051
|
+
// An upcoming step greys down. It hasn't happened yet.
|
|
1052
1052
|
.timeline--progress .timeline-item.is-upcoming .timeline-title {
|
|
1053
1053
|
color: var(--color-text-muted);
|
|
1054
1054
|
font-weight: 500;
|
|
1055
1055
|
}
|
|
1056
1056
|
|
|
1057
1057
|
// ----------------------------------------------------------------------------
|
|
1058
|
-
// Horizontal orientation
|
|
1058
|
+
// Horizontal orientation: dots in a row with the body stacked beneath each,
|
|
1059
1059
|
// and the rail running left-to-right. Orthogonal to variant: works for both
|
|
1060
1060
|
// `feed` and `progress`. A per-item connector (like the progress variant's) is
|
|
1061
1061
|
// used so the rail is independent of the item count.
|
|
@@ -1064,7 +1064,7 @@ a.kpi:focus-visible {
|
|
|
1064
1064
|
display: flex;
|
|
1065
1065
|
flex-direction: row;
|
|
1066
1066
|
align-items: flex-start;
|
|
1067
|
-
// Room above for a status dot's halo ring; no left inset
|
|
1067
|
+
// Room above for a status dot's halo ring; no left inset; the dots are
|
|
1068
1068
|
// centred in their equal-width columns, so a halo never reaches the edge.
|
|
1069
1069
|
padding: calc(var(--wui-timeline-halo, 6px) + 1px) 0 0;
|
|
1070
1070
|
gap: 0;
|
|
@@ -1083,7 +1083,7 @@ a.kpi:focus-visible {
|
|
|
1083
1083
|
.timeline--horizontal::before {
|
|
1084
1084
|
display: none;
|
|
1085
1085
|
}
|
|
1086
|
-
// The segment from this dot across to the next
|
|
1086
|
+
// The segment from this dot across to the next: a 2px line at the dot's vertical
|
|
1087
1087
|
// centre, spanning from this dot's centre to the next dot's centre. z-index 0 keeps
|
|
1088
1088
|
// it behind the dots, whose opaque fill masks it where they overlap. Overrides the
|
|
1089
1089
|
// progress variant's vertical connector (same specificity, later in source).
|
|
@@ -1332,7 +1332,7 @@ a.kpi:focus-visible {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
|
|
1334
1334
|
// ============================================================================
|
|
1335
|
-
// Resource card
|
|
1335
|
+
// Resource card: an icon-tile link to a doc, guide or template.
|
|
1336
1336
|
// ============================================================================
|
|
1337
1337
|
.res-grid {
|
|
1338
1338
|
display: grid;
|
|
@@ -1393,7 +1393,7 @@ a.kpi:focus-visible {
|
|
|
1393
1393
|
background: var(--color-surface);
|
|
1394
1394
|
}
|
|
1395
1395
|
// The text column is a flex container so the title and text blockify without
|
|
1396
|
-
// each needing its own `display
|
|
1396
|
+
// each needing its own `display`; they are inline elements inside an <a>.
|
|
1397
1397
|
.res-card-body {
|
|
1398
1398
|
display: flex;
|
|
1399
1399
|
flex-direction: column;
|
|
@@ -1424,8 +1424,8 @@ a.kpi:focus-visible {
|
|
|
1424
1424
|
}
|
|
1425
1425
|
|
|
1426
1426
|
// ============================================================================
|
|
1427
|
-
// Result / outcome screen
|
|
1428
|
-
// Distinct from AppEmptyState (which is a card/section "nothing here yet")
|
|
1427
|
+
// Result / outcome screen: post-checkout success, verification done, or error states.
|
|
1428
|
+
// Distinct from AppEmptyState (which is a card/section "nothing here yet"). This is
|
|
1429
1429
|
// a self-contained result panel with a prominent status, heading, and actions.
|
|
1430
1430
|
// ============================================================================
|
|
1431
1431
|
.result {
|
|
@@ -1484,7 +1484,7 @@ a.kpi:focus-visible {
|
|
|
1484
1484
|
line-height: 1.5;
|
|
1485
1485
|
color: var(--color-text-muted);
|
|
1486
1486
|
}
|
|
1487
|
-
// Tone variants
|
|
1487
|
+
// Tone variants: success/danger/warning/info for icon-driven results, muted for code numerics.
|
|
1488
1488
|
.result-success .result-icon {
|
|
1489
1489
|
background: var(--color-success-soft);
|
|
1490
1490
|
color: var(--color-success-text);
|
|
@@ -1506,14 +1506,14 @@ a.kpi:focus-visible {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
|
|
1508
1508
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
1509
|
-
// AppLink / <app-link
|
|
1509
|
+
// AppLink / <app-link>: a text link with a choice of hover animation.
|
|
1510
1510
|
// Base is a flat accent-coloured anchor; `.wui-link--<animation>` layers the
|
|
1511
1511
|
// hover treatment. Every animation is disabled under prefers-reduced-motion,
|
|
1512
1512
|
// where the link falls back to a static underline. React AppLink + Razor
|
|
1513
1513
|
// <app-link> emit identical class names, so the two surfaces share this block.
|
|
1514
1514
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
1515
|
-
// The line each animation draws is our own thin ::after (or, for `none`, nothing)
|
|
1516
|
-
//
|
|
1515
|
+
// The line each animation draws is our own thin ::after (or, for `none`, nothing),
|
|
1516
|
+
// not the browser's text-decoration. Bootstrap's global `a:hover` re-adds
|
|
1517
1517
|
// `text-decoration: underline` to every anchor, and `.wui-link` is an <a>, so without
|
|
1518
1518
|
// pinning it off here that global underline bleeds onto the link on hover, sitting under
|
|
1519
1519
|
// our animated line as a second, thicker underline. Force it off in every state.
|
|
@@ -1600,7 +1600,7 @@ button.wui-link {
|
|
|
1600
1600
|
font-size: 1.125rem;
|
|
1601
1601
|
}
|
|
1602
1602
|
|
|
1603
|
-
// underline family
|
|
1603
|
+
// underline family: one thin single line, drawn with the same 1px ::after on every
|
|
1604
1604
|
// variant so `static`, `underline`, and `underline-center` never differ in weight.
|
|
1605
1605
|
// `underline` slides it in from the left, `underline-center` grows it from the middle,
|
|
1606
1606
|
// `static` shows it always (see below).
|
|
@@ -1628,7 +1628,7 @@ button.wui-link {
|
|
|
1628
1628
|
transform: scaleX(1);
|
|
1629
1629
|
}
|
|
1630
1630
|
|
|
1631
|
-
// slide
|
|
1631
|
+
// slide: the whole link (label + icons) nudges to the right.
|
|
1632
1632
|
.wui-link--slide {
|
|
1633
1633
|
transition: color var(--wui-duration-default) var(--wui-ease-out), transform var(--wui-duration-default) var(--wui-ease-out);
|
|
1634
1634
|
}
|
|
@@ -1637,7 +1637,7 @@ button.wui-link {
|
|
|
1637
1637
|
transform: translateX(3px);
|
|
1638
1638
|
}
|
|
1639
1639
|
|
|
1640
|
-
// icon
|
|
1640
|
+
// icon: a trailing icon slides and fades in on hover.
|
|
1641
1641
|
.wui-link--icon .wui-link__ic--right {
|
|
1642
1642
|
margin-inline-start: -0.2em;
|
|
1643
1643
|
opacity: 0;
|
|
@@ -1651,7 +1651,7 @@ button.wui-link {
|
|
|
1651
1651
|
transform: translateX(2px);
|
|
1652
1652
|
}
|
|
1653
1653
|
|
|
1654
|
-
// rotate
|
|
1654
|
+
// rotate: the trailing icon turns a quarter-eighth turn on hover and focus.
|
|
1655
1655
|
.wui-link--rotate .wui-link__ic--right {
|
|
1656
1656
|
transition: transform var(--wui-duration-default) var(--wui-ease-out);
|
|
1657
1657
|
}
|
|
@@ -1660,7 +1660,7 @@ button.wui-link {
|
|
|
1660
1660
|
transform: rotate(45deg);
|
|
1661
1661
|
}
|
|
1662
1662
|
|
|
1663
|
-
// highlight
|
|
1663
|
+
// highlight: a tinted background wipes across behind the label.
|
|
1664
1664
|
.wui-link--highlight .wui-link__label::before {
|
|
1665
1665
|
content: "";
|
|
1666
1666
|
position: absolute;
|
|
@@ -1677,7 +1677,7 @@ button.wui-link {
|
|
|
1677
1677
|
transform: scaleX(1);
|
|
1678
1678
|
}
|
|
1679
1679
|
|
|
1680
|
-
// bracket
|
|
1680
|
+
// bracket: [ ] brackets slide inward around the label on hover.
|
|
1681
1681
|
.wui-link--bracket .wui-link__label {
|
|
1682
1682
|
padding-inline: 0.45em;
|
|
1683
1683
|
}
|
|
@@ -1706,7 +1706,7 @@ button.wui-link {
|
|
|
1706
1706
|
transform: translateX(0);
|
|
1707
1707
|
}
|
|
1708
1708
|
|
|
1709
|
-
// fade
|
|
1709
|
+
// fade: starts in body text colour, resolves to the accent on hover.
|
|
1710
1710
|
.wui-link--fade {
|
|
1711
1711
|
color: var(--color-text);
|
|
1712
1712
|
}
|
|
@@ -1715,7 +1715,7 @@ button.wui-link {
|
|
|
1715
1715
|
color: var(--color-primary-text);
|
|
1716
1716
|
}
|
|
1717
1717
|
|
|
1718
|
-
// static
|
|
1718
|
+
// static: the same thin single line, always visible (no text-decoration, so it matches
|
|
1719
1719
|
// the animated underline's weight exactly). At rest the line is fully drawn; on hover it
|
|
1720
1720
|
// re-draws with a left→right slide sweep, so the single line still animates.
|
|
1721
1721
|
.wui-link--static .wui-link__label::after {
|
|
@@ -1736,7 +1736,7 @@ button.wui-link {
|
|
|
1736
1736
|
}
|
|
1737
1737
|
}
|
|
1738
1738
|
|
|
1739
|
-
// grow
|
|
1739
|
+
// grow: the label's letters open up on hover.
|
|
1740
1740
|
.wui-link--grow {
|
|
1741
1741
|
transition: color var(--wui-duration-default) var(--wui-ease-out), letter-spacing var(--wui-duration-default) var(--wui-ease-out);
|
|
1742
1742
|
}
|
|
@@ -1745,7 +1745,7 @@ button.wui-link {
|
|
|
1745
1745
|
letter-spacing: 0.035em;
|
|
1746
1746
|
}
|
|
1747
1747
|
|
|
1748
|
-
// glow
|
|
1748
|
+
// glow: a soft accent glow blooms behind the text on hover.
|
|
1749
1749
|
.wui-link--glow {
|
|
1750
1750
|
transition: color var(--wui-duration-default) var(--wui-ease-out), text-shadow var(--wui-duration-default) var(--wui-ease-out);
|
|
1751
1751
|
}
|
|
@@ -1754,7 +1754,7 @@ button.wui-link {
|
|
|
1754
1754
|
text-shadow: 0 0 10px color-mix(in srgb, var(--color-primary) 55%, transparent);
|
|
1755
1755
|
}
|
|
1756
1756
|
|
|
1757
|
-
// shine
|
|
1757
|
+
// shine: a light shimmer sweeps across the label on hover. The text is painted with a
|
|
1758
1758
|
// gradient (mostly the accent, with a lighter band) clipped to the glyphs; hovering
|
|
1759
1759
|
// animates that band from right to left across the word.
|
|
1760
1760
|
.wui-link--shine .wui-link__label {
|
|
@@ -1787,7 +1787,7 @@ button.wui-link {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
1790
|
-
// none
|
|
1790
|
+
// none: a plain coloured link, no underline, no motion.
|
|
1791
1791
|
.wui-link--none .wui-link__label {
|
|
1792
1792
|
text-decoration: none;
|
|
1793
1793
|
}
|
|
@@ -1833,7 +1833,7 @@ button.wui-link {
|
|
|
1833
1833
|
opacity: 1;
|
|
1834
1834
|
transform: none;
|
|
1835
1835
|
}
|
|
1836
|
-
// grow / glow settle to their rest state
|
|
1836
|
+
// grow / glow settle to their rest state; no letter-spacing shift, no glow bloom.
|
|
1837
1837
|
.wui-link--grow:hover,
|
|
1838
1838
|
.wui-link--grow:focus-visible {
|
|
1839
1839
|
letter-spacing: normal;
|
package/scss/wui/_dock.scss
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
@use "../config" as *;
|
|
2
2
|
|
|
3
3
|
// ── Floating dock ──
|
|
4
|
-
// AppFloatingDock / <app-floating-dock> / <wui-dock
|
|
4
|
+
// AppFloatingDock / <app-floating-dock> / <wui-dock>: a macOS-style pill of icon
|
|
5
5
|
// links. The element writes --wui-dock-mag (1 → max-scale) per item on pointermove;
|
|
6
6
|
// everything visual lives here. With no JS (or coarse pointer / reduced motion /
|
|
7
7
|
// `static`) the var stays 1 and the dock is a plain icon row.
|
|
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-dock {
|
|
12
12
|
--dock-size: 44px;
|
|
@@ -53,7 +53,7 @@ wui-dock {
|
|
|
53
53
|
.dock-item:focus-visible {
|
|
54
54
|
outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
|
|
55
55
|
outline-offset: var(--wui-focus-ring-offset);
|
|
56
|
-
// Keyboard users get no pointer tracking
|
|
56
|
+
// Keyboard users get no pointer tracking, so grow the focused item itself.
|
|
57
57
|
--wui-dock-mag: 1.25;
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -63,7 +63,7 @@ wui-dock {
|
|
|
63
63
|
font-size: calc(18px * var(--wui-dock-mag, 1));
|
|
64
64
|
line-height: 1;
|
|
65
65
|
}
|
|
66
|
-
// Node icons (SVGs) don't inherit font-size
|
|
66
|
+
// Node icons (SVGs) don't inherit font-size, so scale the box instead.
|
|
67
67
|
.dock-item-icon > svg {
|
|
68
68
|
transform: scale(var(--wui-dock-mag, 1));
|
|
69
69
|
}
|
package/scss/wui/_drawer.scss
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
--wui-drawer-width: 480px;
|
|
13
13
|
--wui-drawer-max-width: 92vw;
|
|
14
14
|
--wui-drawer-duration: 280ms;
|
|
15
|
+
// The element rule in _native-overlay gives wui-* hosts display: contents; the drawer host needs a box for its fixed inset.
|
|
16
|
+
display: block;
|
|
15
17
|
position: fixed;
|
|
16
18
|
inset: 0;
|
|
17
19
|
// Below the modal layer: a dialog opened from inside a drawer must draw above it.
|
|
@@ -33,18 +35,18 @@
|
|
|
33
35
|
--wui-drawer-width: 720px;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
|
-
.wui-drawer-backdrop {
|
|
37
|
-
position: absolute;
|
|
38
|
-
inset: 0;
|
|
38
|
+
dialog.wui-drawer-panel::backdrop {
|
|
39
39
|
background: color-mix(in srgb, var(--color-scrim) 85%, transparent);
|
|
40
|
-
opacity: 0;
|
|
41
|
-
}
|
|
42
|
-
.wui-drawer[open] .wui-drawer-backdrop {
|
|
43
|
-
opacity: 1;
|
|
44
40
|
}
|
|
45
41
|
|
|
46
42
|
.wui-drawer-panel {
|
|
47
43
|
position: absolute;
|
|
44
|
+
inset: auto;
|
|
45
|
+
margin: 0;
|
|
46
|
+
padding: 0;
|
|
47
|
+
border: 0;
|
|
48
|
+
max-width: none;
|
|
49
|
+
max-height: none;
|
|
48
50
|
display: flex;
|
|
49
51
|
flex-direction: column;
|
|
50
52
|
background: var(--color-surface);
|
|
@@ -145,8 +147,8 @@
|
|
|
145
147
|
left: 0;
|
|
146
148
|
transform: translateX(-100%);
|
|
147
149
|
}
|
|
148
|
-
|
|
149
|
-
&[
|
|
150
|
+
.wui-drawer-panel[open]:not([data-wui-closing]),
|
|
151
|
+
&[side="start"] .wui-drawer-panel[open]:not([data-wui-closing]) {
|
|
150
152
|
transform: none;
|
|
151
153
|
}
|
|
152
154
|
}
|
|
@@ -179,7 +181,7 @@
|
|
|
179
181
|
corner-shape: squircle;
|
|
180
182
|
transform: translateY(100%);
|
|
181
183
|
}
|
|
182
|
-
|
|
184
|
+
.wui-drawer-panel[open]:not([data-wui-closing]) {
|
|
183
185
|
transform: translateY(calc((var(--wui-drawer-max, 90) - var(--wui-drawer-snap, 50)) * 1vh + var(--wui-drawer-drag, 0px)));
|
|
184
186
|
transform: translateY(calc((var(--wui-drawer-max, 90) - var(--wui-drawer-snap, 50)) * 1dvh + var(--wui-drawer-drag, 0px)));
|
|
185
187
|
}
|
|
@@ -230,10 +232,6 @@
|
|
|
230
232
|
}
|
|
231
233
|
}
|
|
232
234
|
|
|
233
|
-
body.wui-drawer-locked {
|
|
234
|
-
overflow: hidden;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
235
|
@media (prefers-reduced-motion: no-preference) {
|
|
238
236
|
.wui-drawer {
|
|
239
237
|
transition: visibility 0s var(--wui-ease-linear) var(--wui-drawer-duration);
|
|
@@ -241,9 +239,14 @@ body.wui-drawer-locked {
|
|
|
241
239
|
.wui-drawer[open] {
|
|
242
240
|
transition-delay: 0s;
|
|
243
241
|
}
|
|
244
|
-
.wui-drawer-backdrop {
|
|
242
|
+
dialog.wui-drawer-panel[open]::backdrop {
|
|
245
243
|
transition: opacity var(--wui-drawer-duration) var(--wui-ease-ui);
|
|
246
244
|
}
|
|
245
|
+
@starting-style {
|
|
246
|
+
dialog.wui-drawer-panel[open]::backdrop {
|
|
247
|
+
opacity: 0;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
247
250
|
.wui-drawer-panel {
|
|
248
251
|
transition: transform var(--wui-drawer-duration) var(--wui-ease-ui);
|
|
249
252
|
}
|
|
@@ -81,14 +81,14 @@
|
|
|
81
81
|
text-align: center;
|
|
82
82
|
color: var(--color-text-muted);
|
|
83
83
|
}
|
|
84
|
-
// The empty state owns its own padding and is not a row you can act on
|
|
84
|
+
// The empty state owns its own padding and is not a row you can act on; no
|
|
85
85
|
// cell padding, no border, and no hover fill from .table / .table-ledger.
|
|
86
86
|
.table td.wui-table-empty:has(> .wui-empty-state-table),
|
|
87
87
|
.table td.wui-table-empty:has(> .tbl-empty-plain) {
|
|
88
88
|
padding: 0;
|
|
89
89
|
border-bottom: 0;
|
|
90
90
|
}
|
|
91
|
-
// A plain-string empty (no table-look wrapper)
|
|
91
|
+
// A plain-string empty (no table-look wrapper): carries the padding the cell
|
|
92
92
|
// needs.
|
|
93
93
|
.tbl-empty-plain {
|
|
94
94
|
padding: var(--wui-space-2xl) var(--wui-space-xl);
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
// The React AppDataTable renders its empty state as a SIBLING of the table, INSIDE `.table-wrap`
|
|
103
103
|
// (the horizontal scroller), in this `.tbl-empty-block`. Two things fall out of that placement:
|
|
104
|
-
// 1. the horizontal scrollbar sits at the BOTTOM of the wrap
|
|
104
|
+
// 1. the horizontal scrollbar sits at the BOTTOM of the wrap, below this message, instead of
|
|
105
105
|
// being wedged between the header band and the message (which is what an outside-the-wrap
|
|
106
106
|
// block produced), and
|
|
107
107
|
// 2. `position: sticky; left: 0` + `width: 100%` pins the message to the wrap's VISIBLE width and
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
// overflow container resolves to the container's CONTENT (visible) width, not its scroll width,
|
|
110
110
|
// so the message never grows the scroll region and never slides off on a narrow screen.
|
|
111
111
|
//
|
|
112
|
-
// This deliberately does NOT use `container-type` + `100cqw
|
|
112
|
+
// This deliberately does NOT use `container-type` + `100cqw`; the query container collapses
|
|
113
113
|
// `.table-wrap` to a sliver when it is a flex/grid item (see the `.table-wrap` note below). Sticky
|
|
114
114
|
// sidesteps that entirely. (The `.wui-table-empty` cell rules above remain for Razor, where the
|
|
115
115
|
// empty state is author-placed inside a `<td colSpan>`.)
|
|
@@ -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;
|