@webority/theme 0.146.2 → 0.148.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.
@@ -63,7 +63,7 @@
63
63
  border-bottom: 1px solid var(--color-border);
64
64
  font-size: 12px;
65
65
  font-weight: 500;
66
- letter-spacing: 0.04em;
66
+ letter-spacing: var(--wui-letter-spacing-wide);
67
67
  text-transform: uppercase;
68
68
  white-space: nowrap;
69
69
  vertical-align: middle;
@@ -74,8 +74,8 @@
74
74
  :where(.table) > tbody > tr > td,
75
75
  :where(.table) > tbody > tr > th.wui-row-header {
76
76
  --bs-table-color: var(--color-text-muted);
77
- border-bottom: 1px solid var(--color-border);
78
- font-size: 14px;
77
+ border-bottom: var(--wui-table-row-divider-width) solid var(--color-border);
78
+ font-size: var(--wui-fs-xs);
79
79
  vertical-align: middle;
80
80
  transition: background-color 0.12s ease;
81
81
  }
@@ -180,10 +180,11 @@
180
180
  background: var(--wui-table-header-bg, var(--color-bg-muted));
181
181
  border-bottom: none;
182
182
  font-family: var(--wui-font-ui);
183
- font-size: 12px;
183
+ font-size: var(--wui-label-fs);
184
184
  font-weight: 500;
185
185
  line-height: 17px;
186
- letter-spacing: 0.04em;
186
+ letter-spacing: var(--wui-letter-spacing-wide);
187
+ text-transform: uppercase;
187
188
  // --color-text-subtle (#78829D) is ~3.5:1 on the muted band, below WCAG AA's 4.5:1
188
189
  // for 12px text. A column header names the data under it — that is not decorative
189
190
  // text, so it takes the muted ramp (~7.5:1). Caught by the axe pass, on both surfaces.
@@ -200,11 +201,11 @@
200
201
  }
201
202
  .table-ledger tbody td,
202
203
  .table-ledger tbody th.wui-row-header {
203
- height: 54px;
204
- padding: 12px;
205
- border-bottom: 0.5px solid var(--color-border);
204
+ height: var(--wui-table-row-height);
205
+ padding: var(--wui-table-row-pad-y) 12px;
206
+ border-bottom: var(--wui-table-row-divider-width) solid var(--color-border);
206
207
  font-family: var(--wui-font-ui);
207
- font-size: 12px;
208
+ font-size: var(--wui-fs-xs);
208
209
  line-height: 15px;
209
210
  color: var(--color-text-muted);
210
211
  }
@@ -249,7 +250,7 @@
249
250
  }
250
251
  .table-ledger .u-name {
251
252
  min-width: 0;
252
- font-size: 14px;
253
+ font-size: var(--wui-fs-xs);
253
254
  font-weight: 500;
254
255
  line-height: 19px;
255
256
  color: var(--color-text);
@@ -786,6 +787,16 @@
786
787
  .table-wrap:has(> .table-ledger.wui-table-stack) {
787
788
  overflow-x: clip;
788
789
  }
790
+ // A padded card body already insets its content, so a stacked table in it adds none of its own.
791
+ // A card with no body padding (`padding="none"`, `flush`) keeps the wrap's inset: it is the only one.
792
+ .card:not(.card-pad-none, .card-flush) > .card-body > .table-wrap:has(> .table-ledger.wui-table-stack) {
793
+ padding: 0;
794
+ }
795
+ // The toolbar above that table sits on the same inset, so it moves with the cards. A descendant
796
+ // selector, because Razor wraps the toolbar in a form beside the table.
797
+ .card:not(.card-pad-none, .card-flush) > .card-body:has(> .table-wrap > .table-ledger.wui-table-stack) .wui-table-toolbar {
798
+ padding-inline: 0;
799
+ }
789
800
  .table-ledger.wui-table-stack > tbody > tr > td,
790
801
  .table-ledger.wui-table-stack > tbody > tr > th.wui-row-header {
791
802
  min-width: 0;
@@ -820,23 +831,29 @@
820
831
  border: 1px solid var(--color-border);
821
832
  border-radius: var(--wui-radius-lg, 12px);
822
833
  }
834
+ // No wrap: the label always sits beside its value, so a column lays out the same on every card whatever the value's length.
823
835
  .table-ledger.wui-table-stack > tbody > tr > td,
824
836
  .table-ledger.wui-table-stack > tbody > tr > th.wui-row-header,
825
837
  .table-ledger.wui-table-stack > tfoot > tr > td {
826
838
  display: flex;
827
839
  align-items: center;
828
840
  justify-content: space-between;
829
- flex-wrap: wrap;
830
841
  gap: 12px;
831
842
  height: auto;
832
843
  min-height: 0;
833
844
  padding: 6px 0;
834
845
  border: 0;
835
- text-align: right;
846
+ text-align: start;
836
847
  // A pinned column has nothing to pin to in a card. The pinned-column selectors outrank this
837
848
  // one by design (they must beat every table rule), so the card layout overrides them here.
838
849
  position: static !important;
839
850
  }
851
+ // A figure keeps the trailing edge: the start alignment above is for text.
852
+ .table-ledger.wui-table-stack > tbody > tr > td:is(.num, .wui-cell-end),
853
+ .table-ledger.wui-table-stack > tbody > tr > th.wui-row-header:is(.num, .wui-cell-end),
854
+ .table-ledger.wui-table-stack > tfoot > tr > td:is(.num, .wui-cell-end) {
855
+ text-align: end;
856
+ }
840
857
  .table-ledger.wui-table-stack > tbody > tr > td::before,
841
858
  .table-ledger.wui-table-stack > tbody > tr > th.wui-row-header::before,
842
859
  .table-ledger.wui-table-stack > tfoot > tr > td::before {
@@ -1211,7 +1228,7 @@
1211
1228
  display: inline-flex;
1212
1229
  align-items: center;
1213
1230
  gap: 8px;
1214
- font-size: 14px;
1231
+ font-size: var(--wui-fs-xs);
1215
1232
  font-weight: 600;
1216
1233
  color: var(--color-text);
1217
1234
  }
@@ -55,7 +55,7 @@
55
55
  color: var(--color-text-muted);
56
56
  }
57
57
  .kpi-label {
58
- font-size: 13px;
58
+ font-size: var(--wui-label-fs);
59
59
  font-weight: 500;
60
60
  // --color-text-muted (not -subtle): -subtle is ~4.5:1 on white and dips below AA on the
61
61
  // filled/accent variant's tinted surface. -muted clears AA on every kpi variant.
@@ -81,7 +81,7 @@
81
81
  align-self: flex-start;
82
82
  gap: 4px;
83
83
  margin-top: 6px;
84
- font-size: 12px;
84
+ font-size: var(--wui-label-fs);
85
85
  font-weight: 500;
86
86
  color: var(--color-text-muted);
87
87
  }
@@ -228,7 +228,7 @@
228
228
  // is variant-agnostic so a plain tile can carry one too.
229
229
  .kpi-caption {
230
230
  margin-top: 8px;
231
- font-size: 14px;
231
+ font-size: var(--wui-fs-xs);
232
232
  font-weight: 400;
233
233
  color: var(--color-text-muted);
234
234
  }
@@ -303,7 +303,7 @@ a.kpi:focus-visible {
303
303
  }
304
304
  }
305
305
  .descs-label {
306
- font-size: 12px;
306
+ font-size: var(--wui-label-fs);
307
307
  font-weight: 600;
308
308
  text-transform: uppercase;
309
309
  letter-spacing: 0.04em;
@@ -312,7 +312,7 @@ a.kpi:focus-visible {
312
312
  margin: 0;
313
313
  }
314
314
  .descs-value {
315
- font-size: 14px;
315
+ font-size: var(--wui-fs-xs);
316
316
  font-weight: 500;
317
317
  color: var(--color-text);
318
318
  padding: 4px 16px 12px;
@@ -861,6 +861,16 @@ a.kpi:focus-visible {
861
861
  color: var(--color-text-muted);
862
862
  overflow-wrap: anywhere;
863
863
  }
864
+ // Markdown in a note or a description: the Markdown decides its own line breaks, and the drawn blocks take the item's own size and ink so a Markdown item reads like a plain one.
865
+ .timeline-note.wui-timeline-note--markdown {
866
+ white-space: normal;
867
+ }
868
+ .timeline-note .wui-markdown,
869
+ .timeline-desc .wui-markdown {
870
+ font-size: inherit;
871
+ line-height: inherit;
872
+ color: inherit;
873
+ }
864
874
 
865
875
  // ----------------------------------------------------------------------------
866
876
  // Progress variant — a status tracker (Initiated → Submitted → … → Disbursed).
@@ -51,7 +51,7 @@
51
51
  color: var(--color-primary-text);
52
52
  font-size: var(--wui-fs-sm);
53
53
  font-weight: 600;
54
- letter-spacing: 0.04em;
54
+ letter-spacing: var(--wui-letter-spacing-wide);
55
55
  text-transform: uppercase;
56
56
  }
57
57
  .wui-section-eyebrow-pill {
@@ -496,6 +496,11 @@ wui-select[density="compact"] .wui-select-lg .wui-select-control {
496
496
  font-weight: var(--wui-fw-semibold);
497
497
  color: var(--color-text-subtle);
498
498
  }
499
+ // Closes the recently chosen group, so ungrouped rows below it are not read as part of it.
500
+ .wui-select-sep {
501
+ margin: var(--wui-space-xs) 0;
502
+ border-top: 1px solid var(--color-border);
503
+ }
499
504
  .wui-select-opt-meta {
500
505
  flex: none;
501
506
  margin-inline-start: auto;
@@ -232,6 +232,8 @@
232
232
  display: flex;
233
233
  align-items: center;
234
234
  flex: none;
235
+ // A text brand reads at the root size; body text runs a step smaller.
236
+ font-size: $font-size-base;
235
237
  }
236
238
 
237
239
  // Sticky always makes a stacking context, so without a z-index here the page content after the
@@ -271,6 +273,8 @@
271
273
  min-height: 32px;
272
274
  margin-bottom: 8px;
273
275
  padding: 0 0px;
276
+ // A text brand reads at the root size; body text runs a step smaller.
277
+ font-size: $font-size-base;
274
278
  // The brand row must not shrink when the nav list below it overflows.
275
279
  flex: none;
276
280
  overflow: hidden;
@@ -303,6 +307,25 @@
303
307
  :root[data-theme="dark"] .app-sidebar-brand.wui-brand-mark-only .wui-brand-mark.wui-brand-dark {
304
308
  display: block;
305
309
  }
310
+ // The brand link wraps the logo, mark and brand text as one row, laid out as the brand row itself is.
311
+ // The row clips its overflow, so the focus ring sits inside the link.
312
+ .wui-brand-link {
313
+ display: flex;
314
+ align-items: center;
315
+ gap: var(--wui-space-md);
316
+ min-width: 0;
317
+ color: inherit;
318
+ text-decoration: none;
319
+ border-radius: var(--wui-radius-md);
320
+ }
321
+ .wui-brand-link:hover {
322
+ color: inherit;
323
+ text-decoration: none;
324
+ }
325
+ .wui-brand-link:focus-visible {
326
+ outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
327
+ outline-offset: var(--wui-focus-ring-inset);
328
+ }
306
329
  // The nav list scrolls independently while the brand row stays put. `min-height: 0`
307
330
  // is load-bearing — without it this flex child refuses to shrink below its content
308
331
  // and the overflow never engages, so the lower nav items become unreachable.
@@ -513,7 +536,8 @@
513
536
  flex: none;
514
537
  display: inline-grid;
515
538
  place-items: center;
516
- color: var(--color-text-subtle);
539
+ // Nav icons draw in the accent; with the default twotone style that gives two tones of it.
540
+ color: var(--color-primary);
517
541
  }
518
542
  .app-nav-item.active .app-nav-icon {
519
543
  color: var(--color-primary-text);
@@ -575,6 +599,9 @@
575
599
  gap: 0;
576
600
  padding: 0;
577
601
  }
602
+ .app-shell.collapsed .wui-brand-link {
603
+ gap: 0;
604
+ }
578
605
  .app-shell.collapsed .app-sidebar-brand.wui-brand-has-mark .wui-brand-logo {
579
606
  display: none;
580
607
  }
@@ -166,6 +166,21 @@
166
166
  color: var(--color-text);
167
167
  }
168
168
 
169
+ // A selected chip takes the pressed toggle look below; its count is a muted pill that
170
+ // inverts inside a pressed chip as the choice chip's count does.
171
+ .chip .wui-chip-count {
172
+ padding: var(--wui-space-xxs) var(--wui-space-xs);
173
+ border-radius: var(--wui-radius-pill);
174
+ background: var(--color-bg-muted);
175
+ font-size: var(--wui-fs-xs);
176
+ font-variant-numeric: tabular-nums;
177
+ color: var(--color-text-subtle);
178
+ }
179
+ .chip:has(> .chip-body[aria-pressed="true"]) .wui-chip-count {
180
+ background: var(--color-surface);
181
+ color: var(--color-primary-text);
182
+ }
183
+
169
184
  /* Tones — tinted surface + on-tint text; icon/remove inherit the tone colour. */
170
185
  .chip.primary {
171
186
  @include wui-tone-pill-colors(primary, var(--color-primary-text));
@@ -6,11 +6,6 @@
6
6
  // partials are a split of one stylesheet, not independent modules, so a rule
7
7
  // here may be overridden by a later partial. Never reorder the imports.
8
8
 
9
- // The Development-only partial mark Razor writes around each <partial>; it must not change layout.
10
- wui-source {
11
- display: contents;
12
- }
13
-
14
9
  // ── Icon base ──
15
10
  // Every library glyph (React <Icon>, Razor <app-icon>, wui-element internals) is an
16
11
  // inline SVG carrying this class; size comes from its width/height attributes.
@@ -267,7 +262,7 @@ wui-source {
267
262
  margin: 0;
268
263
  font-family: inherit;
269
264
  line-height: inherit;
270
- font-size: 24px;
265
+ font-size: var(--wui-page-header-title-fs);
271
266
  font-weight: 600;
272
267
  letter-spacing: -0.02em;
273
268
  color: var(--color-text);