@webority/theme 0.130.1 → 0.130.3
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/purge-safelist.json +1 -0
- package/dist/webority-theme.css +1 -1
- package/package.json +2 -2
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_components.scss +370 -24
- package/scss/_tokens.generated.scss +1 -1
- package/scss/wui/_card.scss +15 -5
- package/scss/wui/_compare-table.scss +1 -0
- package/scss/wui/_data.scss +65 -30
- package/scss/wui/_display.scss +2 -1
package/scss/wui/_data.scss
CHANGED
|
@@ -71,14 +71,16 @@
|
|
|
71
71
|
background-color 0.12s ease,
|
|
72
72
|
color 0.12s ease;
|
|
73
73
|
}
|
|
74
|
-
:where(.table) > tbody > tr > td
|
|
74
|
+
:where(.table) > tbody > tr > td,
|
|
75
|
+
:where(.table) > tbody > tr > th.wui-row-header {
|
|
75
76
|
--bs-table-color: var(--color-text-muted);
|
|
76
77
|
border-bottom: 1px solid var(--color-border);
|
|
77
78
|
font-size: 14px;
|
|
78
79
|
vertical-align: middle;
|
|
79
80
|
transition: background-color 0.12s ease;
|
|
80
81
|
}
|
|
81
|
-
:where(.table) > tbody > tr:last-child > td
|
|
82
|
+
:where(.table) > tbody > tr:last-child > td,
|
|
83
|
+
:where(.table) > tbody > tr:last-child > th.wui-row-header {
|
|
82
84
|
border-bottom: 0;
|
|
83
85
|
}
|
|
84
86
|
:where(.table) > tbody > tr:hover {
|
|
@@ -86,7 +88,8 @@
|
|
|
86
88
|
}
|
|
87
89
|
@media (prefers-reduced-motion: reduce) {
|
|
88
90
|
:where(.table) > thead > tr > th,
|
|
89
|
-
:where(.table) > tbody > tr > td
|
|
91
|
+
:where(.table) > tbody > tr > td,
|
|
92
|
+
:where(.table) > tbody > tr > th.wui-row-header {
|
|
90
93
|
transition: none;
|
|
91
94
|
}
|
|
92
95
|
}
|
|
@@ -195,31 +198,41 @@
|
|
|
195
198
|
padding-right: 20px;
|
|
196
199
|
border-radius: 0 var(--wui-radius-sm) var(--wui-radius-sm) 0;
|
|
197
200
|
}
|
|
198
|
-
.table-ledger tbody td
|
|
201
|
+
.table-ledger tbody td,
|
|
202
|
+
.table-ledger tbody th.wui-row-header {
|
|
199
203
|
height: 54px;
|
|
200
204
|
padding: 12px;
|
|
201
205
|
border-bottom: 0.5px solid var(--color-border);
|
|
202
206
|
font-family: var(--wui-font-ui);
|
|
203
207
|
font-size: 12px;
|
|
204
|
-
font-weight: 500;
|
|
205
208
|
line-height: 15px;
|
|
206
209
|
color: var(--color-text-muted);
|
|
207
210
|
}
|
|
208
|
-
|
|
211
|
+
// The row header keeps the browser's bold, so the weight is set on the td alone.
|
|
212
|
+
.table-ledger tbody td {
|
|
213
|
+
font-weight: 500;
|
|
214
|
+
}
|
|
215
|
+
.table-ledger tbody td:first-child,
|
|
216
|
+
.table-ledger tbody th.wui-row-header:first-child {
|
|
209
217
|
padding-left: 20px;
|
|
210
218
|
}
|
|
211
|
-
.table-ledger tbody td:last-child
|
|
219
|
+
.table-ledger tbody td:last-child,
|
|
220
|
+
.table-ledger tbody th.wui-row-header:last-child {
|
|
212
221
|
padding-right: 20px;
|
|
213
222
|
}
|
|
214
223
|
// A loading bar follows its column's alignment: a block bar ignores text-align, so auto margins place it.
|
|
215
|
-
.table-ledger td.text-center > .skeleton
|
|
224
|
+
.table-ledger td.text-center > .skeleton,
|
|
225
|
+
.table-ledger th.wui-row-header.text-center > .skeleton {
|
|
216
226
|
margin-inline: auto;
|
|
217
227
|
}
|
|
218
228
|
.table-ledger td.wui-cell-end > .skeleton,
|
|
219
|
-
.table-ledger td.num > .skeleton
|
|
229
|
+
.table-ledger td.num > .skeleton,
|
|
230
|
+
.table-ledger th.wui-row-header.wui-cell-end > .skeleton,
|
|
231
|
+
.table-ledger th.wui-row-header.num > .skeleton {
|
|
220
232
|
margin-inline-start: auto;
|
|
221
233
|
}
|
|
222
|
-
.table-ledger tbody tr:last-child td
|
|
234
|
+
.table-ledger tbody tr:last-child td,
|
|
235
|
+
.table-ledger tbody tr:last-child th.wui-row-header {
|
|
223
236
|
border-bottom: none;
|
|
224
237
|
}
|
|
225
238
|
// A row tints under the pointer, and while a control inside it holds keyboard focus.
|
|
@@ -303,7 +316,8 @@
|
|
|
303
316
|
.table-ledger.wui-table-cozy {
|
|
304
317
|
--avatar-size: 28px;
|
|
305
318
|
}
|
|
306
|
-
.table-ledger.wui-table-cozy tbody td
|
|
319
|
+
.table-ledger.wui-table-cozy tbody td,
|
|
320
|
+
.table-ledger.wui-table-cozy tbody th.wui-row-header {
|
|
307
321
|
height: 48px;
|
|
308
322
|
padding-top: 8px;
|
|
309
323
|
padding-bottom: 8px;
|
|
@@ -315,7 +329,8 @@
|
|
|
315
329
|
.table-ledger.wui-table-compact thead th {
|
|
316
330
|
height: 36px;
|
|
317
331
|
}
|
|
318
|
-
.table-ledger.wui-table-compact tbody td
|
|
332
|
+
.table-ledger.wui-table-compact tbody td,
|
|
333
|
+
.table-ledger.wui-table-compact tbody th.wui-row-header {
|
|
319
334
|
height: 40px;
|
|
320
335
|
padding-top: 6px;
|
|
321
336
|
padding-bottom: 6px;
|
|
@@ -329,7 +344,8 @@
|
|
|
329
344
|
gap: 10px;
|
|
330
345
|
}
|
|
331
346
|
// Striped (`striped`): alternate-row shading in place of divider lines, on any density.
|
|
332
|
-
.table-ledger.wui-table-striped tbody td
|
|
347
|
+
.table-ledger.wui-table-striped tbody td,
|
|
348
|
+
.table-ledger.wui-table-striped tbody th.wui-row-header {
|
|
333
349
|
border-bottom: 0;
|
|
334
350
|
}
|
|
335
351
|
.table-ledger.wui-table-striped tbody tr:nth-child(even) {
|
|
@@ -706,7 +722,8 @@
|
|
|
706
722
|
.table-ledger tbody tr[data-status="info"] {
|
|
707
723
|
--wui-row-status: var(--color-info);
|
|
708
724
|
}
|
|
709
|
-
.table-ledger tbody tr[data-status] > td:first-child
|
|
725
|
+
.table-ledger tbody tr[data-status] > td:first-child,
|
|
726
|
+
.table-ledger tbody tr[data-status] > th.wui-row-header:first-child {
|
|
710
727
|
box-shadow:
|
|
711
728
|
inset 3px 0 0 0 var(--wui-row-status),
|
|
712
729
|
inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
|
|
@@ -769,7 +786,8 @@
|
|
|
769
786
|
.table-wrap:has(> .table-ledger.wui-table-stack) {
|
|
770
787
|
overflow-x: clip;
|
|
771
788
|
}
|
|
772
|
-
.table-ledger.wui-table-stack > tbody > tr > td
|
|
789
|
+
.table-ledger.wui-table-stack > tbody > tr > td,
|
|
790
|
+
.table-ledger.wui-table-stack > tbody > tr > th.wui-row-header {
|
|
773
791
|
min-width: 0;
|
|
774
792
|
max-width: none;
|
|
775
793
|
white-space: normal;
|
|
@@ -803,6 +821,7 @@
|
|
|
803
821
|
border-radius: var(--wui-radius-lg, 12px);
|
|
804
822
|
}
|
|
805
823
|
.table-ledger.wui-table-stack > tbody > tr > td,
|
|
824
|
+
.table-ledger.wui-table-stack > tbody > tr > th.wui-row-header,
|
|
806
825
|
.table-ledger.wui-table-stack > tfoot > tr > td {
|
|
807
826
|
display: flex;
|
|
808
827
|
align-items: center;
|
|
@@ -819,6 +838,7 @@
|
|
|
819
838
|
position: static !important;
|
|
820
839
|
}
|
|
821
840
|
.table-ledger.wui-table-stack > tbody > tr > td::before,
|
|
841
|
+
.table-ledger.wui-table-stack > tbody > tr > th.wui-row-header::before,
|
|
822
842
|
.table-ledger.wui-table-stack > tfoot > tr > td::before {
|
|
823
843
|
content: attr(data-label);
|
|
824
844
|
flex: none;
|
|
@@ -829,25 +849,30 @@
|
|
|
829
849
|
}
|
|
830
850
|
// A value takes the space beside its label and wraps inside the card rather than running past
|
|
831
851
|
// its edge (a long email under an avatar did).
|
|
832
|
-
.table-ledger.wui-table-stack > * > tr > td >
|
|
852
|
+
.table-ledger.wui-table-stack > * > tr > td > *,
|
|
853
|
+
.table-ledger.wui-table-stack > * > tr > th.wui-row-header > * {
|
|
833
854
|
min-width: 0;
|
|
834
855
|
overflow-wrap: break-word;
|
|
835
856
|
}
|
|
836
|
-
.table-ledger.wui-table-stack > tbody > tr > td .u-meta
|
|
857
|
+
.table-ledger.wui-table-stack > tbody > tr > td .u-meta,
|
|
858
|
+
.table-ledger.wui-table-stack > tbody > tr > th.wui-row-header .u-meta {
|
|
837
859
|
align-items: flex-end;
|
|
838
860
|
}
|
|
839
861
|
// The leading cell is the card's title line: full width, no label.
|
|
840
862
|
// Block, not the flex row of the other cells, so a name with a sub-line stacks instead of sitting beside it.
|
|
841
|
-
.table-ledger.wui-table-stack > * > tr > td:not(.wui-select-cell, .wui-expand-cell):is(:first-child, .wui-select-cell + td, .wui-expand-cell + td)
|
|
863
|
+
.table-ledger.wui-table-stack > * > tr > td:not(.wui-select-cell, .wui-expand-cell):is(:first-child, .wui-select-cell + td, .wui-expand-cell + td),
|
|
864
|
+
.table-ledger.wui-table-stack > * > tr > th.wui-row-header:not(.wui-select-cell, .wui-expand-cell):is(:first-child, .wui-select-cell + *, .wui-expand-cell + *) {
|
|
842
865
|
display: block;
|
|
843
866
|
justify-content: flex-start;
|
|
844
867
|
padding: 0 32px 6px 0;
|
|
845
868
|
text-align: left;
|
|
846
869
|
}
|
|
847
|
-
.table-ledger.wui-table-stack > * > tr > td:not(.wui-select-cell, .wui-expand-cell):is(:first-child, .wui-select-cell + td, .wui-expand-cell + td) .u-meta
|
|
870
|
+
.table-ledger.wui-table-stack > * > tr > td:not(.wui-select-cell, .wui-expand-cell):is(:first-child, .wui-select-cell + td, .wui-expand-cell + td) .u-meta,
|
|
871
|
+
.table-ledger.wui-table-stack > * > tr > th.wui-row-header:not(.wui-select-cell, .wui-expand-cell):is(:first-child, .wui-select-cell + *, .wui-expand-cell + *) .u-meta {
|
|
848
872
|
align-items: flex-start;
|
|
849
873
|
}
|
|
850
|
-
.table-ledger.wui-table-stack > * > tr > td:not(.wui-select-cell, .wui-expand-cell):is(:first-child, .wui-select-cell + td, .wui-expand-cell + td)::before
|
|
874
|
+
.table-ledger.wui-table-stack > * > tr > td:not(.wui-select-cell, .wui-expand-cell):is(:first-child, .wui-select-cell + td, .wui-expand-cell + td)::before,
|
|
875
|
+
.table-ledger.wui-table-stack > * > tr > th.wui-row-header:not(.wui-select-cell, .wui-expand-cell):is(:first-child, .wui-select-cell + *, .wui-expand-cell + *)::before {
|
|
851
876
|
content: none;
|
|
852
877
|
}
|
|
853
878
|
// A title wraps in full on a card: a phone reader has no tooltip to read the rest from.
|
|
@@ -873,11 +898,13 @@
|
|
|
873
898
|
background: none;
|
|
874
899
|
}
|
|
875
900
|
// A row with no actions leaves no empty band under its card.
|
|
876
|
-
.table-ledger.wui-table-stack > tbody > tr > td:has(> .u-row-actions:empty)
|
|
901
|
+
.table-ledger.wui-table-stack > tbody > tr > td:has(> .u-row-actions:empty),
|
|
902
|
+
.table-ledger.wui-table-stack > tbody > tr > th.wui-row-header:has(> .u-row-actions:empty) {
|
|
877
903
|
display: none;
|
|
878
904
|
}
|
|
879
905
|
// Empty cells (a footer's blank columns) take no line.
|
|
880
|
-
.table-ledger.wui-table-stack > * > tr > td:empty
|
|
906
|
+
.table-ledger.wui-table-stack > * > tr > td:empty,
|
|
907
|
+
.table-ledger.wui-table-stack > * > tr > th.wui-row-header:empty {
|
|
881
908
|
display: none;
|
|
882
909
|
}
|
|
883
910
|
.table-ledger.wui-table-stack > tbody > tr > td.wui-select-cell,
|
|
@@ -893,20 +920,23 @@
|
|
|
893
920
|
max-width: none;
|
|
894
921
|
padding: 0;
|
|
895
922
|
}
|
|
896
|
-
.table-ledger.wui-table-stack > tbody > tr > td:has(> .u-row-actions)
|
|
923
|
+
.table-ledger.wui-table-stack > tbody > tr > td:has(> .u-row-actions),
|
|
924
|
+
.table-ledger.wui-table-stack > tbody > tr > th.wui-row-header:has(> .u-row-actions) {
|
|
897
925
|
justify-content: flex-end;
|
|
898
926
|
margin-top: 6px;
|
|
899
927
|
padding-top: 10px;
|
|
900
928
|
border-top: 1px solid var(--color-border);
|
|
901
929
|
}
|
|
902
|
-
.table-ledger.wui-table-stack > tbody > tr > td:has(> .u-row-actions)::before
|
|
930
|
+
.table-ledger.wui-table-stack > tbody > tr > td:has(> .u-row-actions)::before,
|
|
931
|
+
.table-ledger.wui-table-stack > tbody > tr > th.wui-row-header:has(> .u-row-actions)::before {
|
|
903
932
|
content: none;
|
|
904
933
|
}
|
|
905
934
|
// The status bar becomes the card's left edge.
|
|
906
935
|
.table-ledger.wui-table-stack > tbody > tr[data-status] {
|
|
907
936
|
border-left: 3px solid var(--wui-row-status);
|
|
908
937
|
}
|
|
909
|
-
.table-ledger.wui-table-stack > tbody > tr[data-status] > td:first-child
|
|
938
|
+
.table-ledger.wui-table-stack > tbody > tr[data-status] > td:first-child,
|
|
939
|
+
.table-ledger.wui-table-stack > tbody > tr[data-status] > th.wui-row-header:first-child {
|
|
910
940
|
box-shadow: none;
|
|
911
941
|
}
|
|
912
942
|
}
|
|
@@ -1305,12 +1335,14 @@ wui-data-table {
|
|
|
1305
1335
|
// A fixed-layout table cuts a cell's overflow at the width the person chose. Not the last column (row
|
|
1306
1336
|
// actions, whose tooltips and touch targets reach outside), the pinned edge cells (their shadow sits
|
|
1307
1337
|
// outside) or the select and expand cells.
|
|
1308
|
-
.table-ledger[data-wui-fixed] > :is(tbody, tfoot) > tr > td:not(:last-child, .wui-pin-start-edge, .wui-pin-end-edge, .wui-select-cell, .wui-expand-cell)
|
|
1338
|
+
.table-ledger[data-wui-fixed] > :is(tbody, tfoot) > tr > td:not(:last-child, .wui-pin-start-edge, .wui-pin-end-edge, .wui-select-cell, .wui-expand-cell),
|
|
1339
|
+
.table-ledger[data-wui-fixed] > tbody > tr > th.wui-row-header:not(:last-child, .wui-pin-start-edge, .wui-pin-end-edge, .wui-select-cell, .wui-expand-cell) {
|
|
1309
1340
|
overflow: hidden;
|
|
1310
1341
|
text-overflow: ellipsis;
|
|
1311
1342
|
}
|
|
1312
1343
|
// A menu or picker inside a cell still has to float out of it.
|
|
1313
|
-
.table-ledger[data-wui-fixed] > tbody > tr > td:has([aria-expanded="true"], .dropdown-menu.show)
|
|
1344
|
+
.table-ledger[data-wui-fixed] > tbody > tr > td:has([aria-expanded="true"], .dropdown-menu.show),
|
|
1345
|
+
.table-ledger[data-wui-fixed] > tbody > tr > th.wui-row-header:has([aria-expanded="true"], .dropdown-menu.show) {
|
|
1314
1346
|
overflow: visible;
|
|
1315
1347
|
}
|
|
1316
1348
|
|
|
@@ -1500,12 +1532,14 @@ wui-data-table {
|
|
|
1500
1532
|
--wui-row-save-bar: var(--color-danger);
|
|
1501
1533
|
--wui-row-save-tint: color-mix(in srgb, var(--color-danger) 6%, transparent);
|
|
1502
1534
|
}
|
|
1503
|
-
.table-ledger > tbody > tr[data-wui-save-state] > td:first-child
|
|
1535
|
+
.table-ledger > tbody > tr[data-wui-save-state] > td:first-child,
|
|
1536
|
+
.table-ledger > tbody > tr[data-wui-save-state] > th.wui-row-header:first-child {
|
|
1504
1537
|
box-shadow:
|
|
1505
1538
|
inset var(--wui-row-save-x) 0 0 0 var(--wui-row-save-bar),
|
|
1506
1539
|
inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
|
|
1507
1540
|
}
|
|
1508
|
-
.table-ledger > tbody > tr[data-wui-save-state="saving"] > td:first-child
|
|
1541
|
+
.table-ledger > tbody > tr[data-wui-save-state="saving"] > td:first-child,
|
|
1542
|
+
.table-ledger > tbody > tr[data-wui-save-state="saving"] > th.wui-row-header:first-child {
|
|
1509
1543
|
animation: wui-row-saving 1.2s ease-in-out infinite;
|
|
1510
1544
|
}
|
|
1511
1545
|
@keyframes wui-row-saving {
|
|
@@ -1529,7 +1563,8 @@ wui-data-table {
|
|
|
1529
1563
|
.table-wrap.wui-table-scroll > .table-ledger > thead > tr > th {
|
|
1530
1564
|
transition: none;
|
|
1531
1565
|
}
|
|
1532
|
-
.table-ledger > tbody > tr[data-wui-save-state="saving"] > td:first-child
|
|
1566
|
+
.table-ledger > tbody > tr[data-wui-save-state="saving"] > td:first-child,
|
|
1567
|
+
.table-ledger > tbody > tr[data-wui-save-state="saving"] > th.wui-row-header:first-child {
|
|
1533
1568
|
animation: none;
|
|
1534
1569
|
}
|
|
1535
1570
|
}
|
package/scss/wui/_display.scss
CHANGED
|
@@ -1506,7 +1506,8 @@ button.wui-link {
|
|
|
1506
1506
|
overflow: hidden;
|
|
1507
1507
|
}
|
|
1508
1508
|
// A link in a table cell may wrap: a nowrap label runs under the pinned actions column.
|
|
1509
|
-
.table-ledger td .wui-link__label
|
|
1509
|
+
.table-ledger td .wui-link__label,
|
|
1510
|
+
.table-ledger th.wui-row-header .wui-link__label {
|
|
1510
1511
|
--wui-link-label-white-space: normal;
|
|
1511
1512
|
}
|
|
1512
1513
|
.wui-link__ic {
|