@webority/theme 0.7.3 → 0.7.4
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/dist/webority-theme.css +1 -1
- package/package.json +1 -1
- package/scss/_components.scss +78 -95
- package/scss/_tokens.scss +30 -24
- package/scss/_variables.scss +69 -80
- package/scss/_wui-aliases.scss +2 -1
- package/scss/wui/_choice.scss +4 -4
- package/scss/wui/_controls.scss +164 -248
- package/scss/wui/_data.scss +39 -0
- package/scss/wui/_display.scss +88 -0
- package/scss/wui/_overlays.scss +2 -2
- package/scss/wui/_scrollbar.scss +13 -11
- package/scss/wui/_shell.scss +3 -3
- package/scss/wui/_utilities.scss +27 -1
package/scss/wui/_display.scss
CHANGED
|
@@ -28,6 +28,33 @@
|
|
|
28
28
|
background: var(--color-primary-soft);
|
|
29
29
|
color: var(--color-primary);
|
|
30
30
|
}
|
|
31
|
+
// Tone modifiers — same semantic vocabulary as .badge/.status-label (success / warning /
|
|
32
|
+
// danger / info / primary / neutral). primary is the default look above, restated here so
|
|
33
|
+
// an explicit icon-tone="primary" matches an omitted one.
|
|
34
|
+
.kpi-icon-primary {
|
|
35
|
+
background: var(--color-primary-soft);
|
|
36
|
+
color: var(--color-primary);
|
|
37
|
+
}
|
|
38
|
+
.kpi-icon-success {
|
|
39
|
+
background: var(--color-success-soft);
|
|
40
|
+
color: var(--color-success-text);
|
|
41
|
+
}
|
|
42
|
+
.kpi-icon-warning {
|
|
43
|
+
background: var(--color-warning-soft);
|
|
44
|
+
color: var(--color-warning-text);
|
|
45
|
+
}
|
|
46
|
+
.kpi-icon-danger {
|
|
47
|
+
background: var(--color-danger-soft);
|
|
48
|
+
color: var(--color-danger-text);
|
|
49
|
+
}
|
|
50
|
+
.kpi-icon-info {
|
|
51
|
+
background: var(--color-info-soft);
|
|
52
|
+
color: var(--color-info-text);
|
|
53
|
+
}
|
|
54
|
+
.kpi-icon-neutral {
|
|
55
|
+
background: var(--color-bg-muted);
|
|
56
|
+
color: var(--color-text-muted);
|
|
57
|
+
}
|
|
31
58
|
.kpi-label {
|
|
32
59
|
font-size: 13px;
|
|
33
60
|
font-weight: 500;
|
|
@@ -61,6 +88,20 @@
|
|
|
61
88
|
.kpi-delta.down {
|
|
62
89
|
color: var(--color-danger-text);
|
|
63
90
|
}
|
|
91
|
+
// Trend chart. currentColor so it inherits kpi-value's colour by default, or a wrapping
|
|
92
|
+
// tone context (e.g. .kpi-delta.up) if placed there — no colour hardcoded here.
|
|
93
|
+
.kpi-sparkline {
|
|
94
|
+
display: block;
|
|
95
|
+
width: 48px;
|
|
96
|
+
height: 16px;
|
|
97
|
+
margin-top: 8px;
|
|
98
|
+
color: var(--color-primary);
|
|
99
|
+
}
|
|
100
|
+
.kpi-sparkline polyline {
|
|
101
|
+
stroke-width: 1.5;
|
|
102
|
+
stroke-linecap: round;
|
|
103
|
+
stroke-linejoin: round;
|
|
104
|
+
}
|
|
64
105
|
|
|
65
106
|
// Icon-left layout: the icon spans the label/value/delta stack instead of sitting above it.
|
|
66
107
|
.kpi.kpi-inline {
|
|
@@ -89,6 +130,48 @@
|
|
|
89
130
|
border-color: transparent;
|
|
90
131
|
background: var(--color-primary-soft);
|
|
91
132
|
}
|
|
133
|
+
// Needs-action state — orthogonal to variant, so it composes with plain/filled/accent
|
|
134
|
+
// rather than replacing the surface.
|
|
135
|
+
.kpi.kpi-attention {
|
|
136
|
+
border-color: var(--color-warning);
|
|
137
|
+
background: var(--color-warning-soft);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Hero size — the single headline stat above a dashboard. Enlarges the value and its
|
|
141
|
+
// chrome; orthogonal to variant/inline/attention, so it composes with all of them.
|
|
142
|
+
.kpi.kpi-lg {
|
|
143
|
+
padding: 20px;
|
|
144
|
+
}
|
|
145
|
+
.kpi.kpi-lg .kpi-label {
|
|
146
|
+
font-size: 14px;
|
|
147
|
+
}
|
|
148
|
+
.kpi.kpi-lg .kpi-value {
|
|
149
|
+
font-size: 40px;
|
|
150
|
+
}
|
|
151
|
+
.kpi.kpi-lg .kpi-icon {
|
|
152
|
+
width: 44px;
|
|
153
|
+
height: 44px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// The whole tile as a link (href). Colour/underline reset so the anchor reads as the
|
|
157
|
+
// card, not as text; the hover lift matches .res-card's tint-and-lift treatment.
|
|
158
|
+
a.kpi {
|
|
159
|
+
text-decoration: none;
|
|
160
|
+
color: inherit;
|
|
161
|
+
transition:
|
|
162
|
+
border-color 0.15s ease,
|
|
163
|
+
box-shadow 0.15s ease,
|
|
164
|
+
transform 0.15s ease;
|
|
165
|
+
}
|
|
166
|
+
a.kpi:hover {
|
|
167
|
+
border-color: var(--color-primary);
|
|
168
|
+
box-shadow: var(--shadow-md);
|
|
169
|
+
transform: translateY(-2px);
|
|
170
|
+
}
|
|
171
|
+
a.kpi:focus-visible {
|
|
172
|
+
outline: 2px solid var(--color-primary);
|
|
173
|
+
outline-offset: 2px;
|
|
174
|
+
}
|
|
92
175
|
|
|
93
176
|
// A row of tiles. Wraps rather than scrolls — a KPI strip that scrolls hides numbers.
|
|
94
177
|
.kpi-row {
|
|
@@ -163,6 +246,11 @@
|
|
|
163
246
|
text-overflow: ellipsis;
|
|
164
247
|
white-space: nowrap;
|
|
165
248
|
}
|
|
249
|
+
// A blank fact reads as a muted "no value", not a broken row.
|
|
250
|
+
.info-value.is-empty {
|
|
251
|
+
font-weight: 400;
|
|
252
|
+
color: var(--color-text-subtle);
|
|
253
|
+
}
|
|
166
254
|
a.info-row,
|
|
167
255
|
a.info-row:hover {
|
|
168
256
|
text-decoration: none;
|
package/scss/wui/_overlays.scss
CHANGED
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
// .modal.
|
|
17
17
|
.modal-backdrop.wui-modal-dim {
|
|
18
18
|
background: rgba(15, 23, 42, 0.45);
|
|
19
|
-
z-index:
|
|
19
|
+
z-index: var(--wui-z-modal-backdrop);
|
|
20
20
|
}
|
|
21
21
|
.modal.wui-modal-shell {
|
|
22
22
|
--bs-modal-bg: transparent;
|
|
23
23
|
align-items: center;
|
|
24
24
|
justify-content: center;
|
|
25
|
-
z-index:
|
|
25
|
+
z-index: var(--wui-z-modal);
|
|
26
26
|
padding: 20px;
|
|
27
27
|
}
|
|
28
28
|
// `display: flex` ONLY while the dialog is actually open.
|
package/scss/wui/_scrollbar.scss
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
// AppScrollbar
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// track on Firefox; the `::-webkit-scrollbar` rules cover Chromium and Safari. The track stays
|
|
5
|
-
// transparent so the thumb reads as a slim overlay rather than filling a grey gutter.
|
|
1
|
+
// AppScrollbar / opt-in internal scrollers — same tokens as the document rail
|
|
2
|
+
// (--wui-scrollbar*). Document chrome lives on html/body only; use this class
|
|
3
|
+
// for panels, drawers, and modal bodies that need a matching thin thumb.
|
|
6
4
|
.wui-scroll {
|
|
7
5
|
overflow: auto;
|
|
8
6
|
scrollbar-width: thin;
|
|
9
|
-
scrollbar-color: var(--wui-
|
|
7
|
+
scrollbar-color: var(--wui-scrollbar) transparent;
|
|
10
8
|
}
|
|
11
9
|
|
|
12
10
|
.wui-scroll::-webkit-scrollbar {
|
|
@@ -19,14 +17,18 @@
|
|
|
19
17
|
}
|
|
20
18
|
|
|
21
19
|
.wui-scroll::-webkit-scrollbar-thumb {
|
|
22
|
-
background-color: var(--wui-
|
|
23
|
-
border-radius:
|
|
24
|
-
// A 2px transparent border clipped to padding-box insets the thumb, so it sits as a slim pill
|
|
25
|
-
// in the middle of the track instead of filling the whole gutter width.
|
|
20
|
+
background-color: var(--wui-scrollbar);
|
|
21
|
+
border-radius: 9999px;
|
|
26
22
|
border: 2px solid transparent;
|
|
27
23
|
background-clip: padding-box;
|
|
28
24
|
}
|
|
29
25
|
|
|
30
26
|
.wui-scroll::-webkit-scrollbar-thumb:hover {
|
|
31
|
-
background-color: var(--wui-
|
|
27
|
+
background-color: var(--wui-scrollbar-hover);
|
|
28
|
+
background-clip: padding-box;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.wui-scroll::-webkit-scrollbar-thumb:active {
|
|
32
|
+
background-color: var(--wui-scrollbar-active);
|
|
33
|
+
background-clip: padding-box;
|
|
32
34
|
}
|
package/scss/wui/_shell.scss
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
inset: 0;
|
|
14
14
|
// Above the app but below a modal's backdrop, so an error dialog raised during
|
|
15
15
|
// boot is never trapped behind it.
|
|
16
|
-
z-index:
|
|
16
|
+
z-index: var(--wui-z-shell);
|
|
17
17
|
display: grid;
|
|
18
18
|
place-items: center;
|
|
19
19
|
padding: 24px;
|
|
@@ -619,7 +619,7 @@
|
|
|
619
619
|
top: 0;
|
|
620
620
|
bottom: 0;
|
|
621
621
|
left: 0;
|
|
622
|
-
z-index:
|
|
622
|
+
z-index: var(--wui-z-shell-drawer);
|
|
623
623
|
width: var(--app-sidebar-w);
|
|
624
624
|
padding: 20px 16px;
|
|
625
625
|
transform: translateX(-100%);
|
|
@@ -665,7 +665,7 @@
|
|
|
665
665
|
.app-shell.app-shell.mobile-open .app-scrim {
|
|
666
666
|
position: fixed;
|
|
667
667
|
inset: 0;
|
|
668
|
-
z-index:
|
|
668
|
+
z-index: var(--wui-z-shell-scrim);
|
|
669
669
|
display: block;
|
|
670
670
|
border: 0;
|
|
671
671
|
padding: 0;
|
package/scss/wui/_utilities.scss
CHANGED
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
.infotip-pop.is-portal {
|
|
117
117
|
bottom: auto;
|
|
118
118
|
transform: none;
|
|
119
|
-
z-index:
|
|
119
|
+
z-index: var(--wui-z-menu);
|
|
120
120
|
}
|
|
121
121
|
.infotip-pop.is-portal::after {
|
|
122
122
|
display: none;
|
|
@@ -235,6 +235,32 @@
|
|
|
235
235
|
border: 2px solid var(--color-bg);
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
+
// Reset wrapper for a custom AppDropdown trigger (React `trigger` / Razor <app-dropdown-toggle>).
|
|
239
|
+
// Strips the icon-button chrome so the caller's own node styles itself; keeps the button
|
|
240
|
+
// focusable with a visible focus ring for keyboard a11y.
|
|
241
|
+
.wui-dropdown-trigger {
|
|
242
|
+
display: inline-flex;
|
|
243
|
+
align-items: center;
|
|
244
|
+
padding: 0;
|
|
245
|
+
border: none;
|
|
246
|
+
background: transparent;
|
|
247
|
+
color: inherit;
|
|
248
|
+
font: inherit;
|
|
249
|
+
cursor: pointer;
|
|
250
|
+
}
|
|
251
|
+
.wui-dropdown-trigger:focus-visible {
|
|
252
|
+
outline: 2px solid var(--color-primary);
|
|
253
|
+
outline-offset: 2px;
|
|
254
|
+
border-radius: var(--radius-sm);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// AppPopover wrapper (React panel styling comes from Bootstrap's .popover; this is only the
|
|
258
|
+
// Razor anchor span carrying the data-bs-* wiring). inline-block so it hugs its trigger and
|
|
259
|
+
// gives Bootstrap a stable anchor box.
|
|
260
|
+
.app-popover {
|
|
261
|
+
display: inline-block;
|
|
262
|
+
}
|
|
263
|
+
|
|
238
264
|
// ── Spinner / shimmer ──
|
|
239
265
|
.wui-spinner {
|
|
240
266
|
width: 18px;
|