@utrecht/component-library-css 1.0.0-alpha.533 → 1.0.0-alpha.534
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/html.css +20 -3
- package/dist/index.css +155 -6
- package/package.json +2 -2
package/dist/html.css
CHANGED
|
@@ -1365,8 +1365,12 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1365
1365
|
--utrecht-space-around: 1;
|
|
1366
1366
|
}
|
|
1367
1367
|
.utrecht-html table {
|
|
1368
|
-
border-collapse: collapse
|
|
1368
|
+
/* `border-collapse: collapse` results in a broken border for sticky header and sticky footer.
|
|
1369
|
+
* Therefore we need to use `border-collapse: separate` instead.
|
|
1370
|
+
*/
|
|
1371
|
+
border-collapse: separate;
|
|
1369
1372
|
border-color: var(--utrecht-table-border-color, 0);
|
|
1373
|
+
border-spacing: 0;
|
|
1370
1374
|
border-style: solid;
|
|
1371
1375
|
border-width: var(--utrecht-table-border-width, 0);
|
|
1372
1376
|
font-family: var(--utrecht-table-font-family, var(--utrecht-document-font-family));
|
|
@@ -1389,13 +1393,20 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1389
1393
|
}
|
|
1390
1394
|
.utrecht-html thead {
|
|
1391
1395
|
--_utrecht-table-header-cell-vertical-align: bottom;
|
|
1396
|
+
--_utrecht-table-header-cell-z-index: 8;
|
|
1392
1397
|
background-color: var(--utrecht-table-header-background-color);
|
|
1393
1398
|
color: var(--utrecht-table-header-color);
|
|
1394
1399
|
font-weight: var(--utrecht-table-header-font-weight);
|
|
1395
1400
|
page-break-inside: avoid;
|
|
1396
1401
|
text-transform: var(--utrecht-table-header-text-transform);
|
|
1397
1402
|
}
|
|
1403
|
+
.utrecht-html tbody {
|
|
1404
|
+
--_utrecht-table-header-cell-z-index: 2;
|
|
1405
|
+
}
|
|
1398
1406
|
.utrecht-html th {
|
|
1407
|
+
--utrecht-icon-size: var(--utrecht-table-cell-icon-size);
|
|
1408
|
+
/* In tables `block-size` acts as `min-block-size`, but `min-block-size` is a clearer name for the design token */
|
|
1409
|
+
block-size: var(--utrecht-table-cell-line-height, 1em);
|
|
1399
1410
|
line-height: var(--utrecht-table-cell-line-height, inherit);
|
|
1400
1411
|
padding-block-end: var(--utrecht-table-cell-padding-block-end, 0);
|
|
1401
1412
|
padding-block-start: var(--utrecht-table-cell-padding-block-start, 0);
|
|
@@ -1407,9 +1418,13 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1407
1418
|
font-weight: var(--utrecht-table-header-cell-font-weight, bold);
|
|
1408
1419
|
text-transform: var(--utrecht-table-header-cell-text-transform);
|
|
1409
1420
|
vertical-align: var(--_utrecht-table-header-cell-vertical-align, top);
|
|
1421
|
+
z-index: var(--_utrecht-table-header-cell-z-index);
|
|
1410
1422
|
}
|
|
1411
1423
|
.utrecht-html th,
|
|
1412
1424
|
.utrecht-html td {
|
|
1425
|
+
--utrecht-icon-size: var(--utrecht-table-cell-icon-size);
|
|
1426
|
+
/* In tables `block-size` acts as `min-block-size`, but `min-block-size` is a clearer name for the design token */
|
|
1427
|
+
block-size: var(--utrecht-table-cell-line-height, 1em);
|
|
1413
1428
|
line-height: var(--utrecht-table-cell-line-height, inherit);
|
|
1414
1429
|
padding-block-end: var(--utrecht-table-cell-padding-block-end, 0);
|
|
1415
1430
|
padding-block-start: var(--utrecht-table-cell-padding-block-start, 0);
|
|
@@ -1437,12 +1452,14 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1437
1452
|
.utrecht-html thead > tr > th.numeric,
|
|
1438
1453
|
.utrecht-html tfoot > tr > th.numeric,
|
|
1439
1454
|
.utrecht-html th[scope=column].numeric {
|
|
1455
|
+
--_utrecht-table-cell-text-align: right;
|
|
1440
1456
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
1441
|
-
text-align:
|
|
1457
|
+
text-align: var(--_utrecht-table-cell-text-align);
|
|
1442
1458
|
}
|
|
1443
1459
|
.utrecht-html td.numeric {
|
|
1460
|
+
--_utrecht-table-cell-text-align: right;
|
|
1444
1461
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
1445
|
-
text-align:
|
|
1462
|
+
text-align: var(--_utrecht-table-cell-text-align);
|
|
1446
1463
|
font-variant-numeric: lining-nums tabular-nums;
|
|
1447
1464
|
}
|
|
1448
1465
|
.utrecht-html table.alternate-row-color > tr:nth-child(even) > td, .utrecht-html table.alternate-row-color > tr:nth-child(even) > th {
|
package/dist/index.css
CHANGED
|
@@ -5335,8 +5335,12 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
5335
5335
|
/* stylelint-disable-next-line block-no-empty */
|
|
5336
5336
|
/* stylelint-disable-next-line block-no-empty */
|
|
5337
5337
|
.utrecht-table {
|
|
5338
|
-
border-collapse: collapse
|
|
5338
|
+
/* `border-collapse: collapse` results in a broken border for sticky header and sticky footer.
|
|
5339
|
+
* Therefore we need to use `border-collapse: separate` instead.
|
|
5340
|
+
*/
|
|
5341
|
+
border-collapse: separate;
|
|
5339
5342
|
border-color: var(--utrecht-table-border-color, 0);
|
|
5343
|
+
border-spacing: 0;
|
|
5340
5344
|
border-style: solid;
|
|
5341
5345
|
border-width: var(--utrecht-table-border-width, 0);
|
|
5342
5346
|
font-family: var(--utrecht-table-font-family, var(--utrecht-document-font-family));
|
|
@@ -5366,6 +5370,7 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
5366
5370
|
.utrecht-table--html-table > thead,
|
|
5367
5371
|
.utrecht-table__header {
|
|
5368
5372
|
--_utrecht-table-header-cell-vertical-align: bottom;
|
|
5373
|
+
--_utrecht-table-header-cell-z-index: 8;
|
|
5369
5374
|
background-color: var(--utrecht-table-header-background-color);
|
|
5370
5375
|
color: var(--utrecht-table-header-color);
|
|
5371
5376
|
font-weight: var(--utrecht-table-header-font-weight);
|
|
@@ -5373,11 +5378,52 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
5373
5378
|
text-transform: var(--utrecht-table-header-text-transform);
|
|
5374
5379
|
}
|
|
5375
5380
|
|
|
5376
|
-
.utrecht-
|
|
5377
|
-
|
|
5378
|
-
|
|
5381
|
+
.utrecht-table__header--sticky th {
|
|
5382
|
+
background-color: var(--utrecht-table-header-sticky-background-color);
|
|
5383
|
+
color: var(--utrecht-table-header-sticky-color);
|
|
5384
|
+
inset-block-start: 0;
|
|
5385
|
+
position: sticky;
|
|
5386
|
+
}
|
|
5387
|
+
.utrecht-table__header--sticky tr:last-child > th {
|
|
5388
|
+
border-block-end-color: var(--utrecht-table-header-sticky-border-block-end-color, var(--utrecht-table-header-border-block-end-color, transparent));
|
|
5379
5389
|
border-block-end-style: solid;
|
|
5380
|
-
border-block-end-width: var(--utrecht-table-header-border-block-end-width, 0);
|
|
5390
|
+
border-block-end-width: var(--utrecht-table-header-sticky-border-block-end-width, var(--utrecht-table-header-border-block-end-width, 0));
|
|
5391
|
+
}
|
|
5392
|
+
|
|
5393
|
+
.utrecht-table__footer {
|
|
5394
|
+
--_utrecht-table-header-cell-z-index: 5;
|
|
5395
|
+
z-index: 3;
|
|
5396
|
+
}
|
|
5397
|
+
|
|
5398
|
+
.utrecht-table__footer--sticky {
|
|
5399
|
+
background-color: var(--utrecht-table-footer-sticky-background-color, var(--utrecht-table-footer-background-color));
|
|
5400
|
+
color: var(--utrecht-table-footer-sticky-color, var(--utrecht-table-footer-color));
|
|
5401
|
+
inset-block-end: 0;
|
|
5402
|
+
position: sticky;
|
|
5403
|
+
}
|
|
5404
|
+
.utrecht-table__footer--sticky tr:first-child > th,
|
|
5405
|
+
.utrecht-table__footer--sticky tr:first-child > td {
|
|
5406
|
+
border-block-start-color: var(--utrecht-table-header-sticky-border-block-start-color, var(--utrecht-table-header-border-block-start-color, transparent));
|
|
5407
|
+
border-block-start-style: solid;
|
|
5408
|
+
border-block-start-width: var(--utrecht-table-header-sticky-border-block-start-width, var(--utrecht-table-header-border-block-start-width, 0));
|
|
5409
|
+
}
|
|
5410
|
+
|
|
5411
|
+
.utrecht-table--html-table > tbody,
|
|
5412
|
+
.utrecht-table__body {
|
|
5413
|
+
--_utrecht-table-header-cell-z-index: 2;
|
|
5414
|
+
}
|
|
5415
|
+
|
|
5416
|
+
.utrecht-table--fixed {
|
|
5417
|
+
inline-size: fit-content;
|
|
5418
|
+
table-layout: fixed;
|
|
5419
|
+
}
|
|
5420
|
+
|
|
5421
|
+
.utrecht-table--fixed th,
|
|
5422
|
+
.utrecht-table--oneline th,
|
|
5423
|
+
.utrecht-table--oneline td {
|
|
5424
|
+
overflow: hidden;
|
|
5425
|
+
text-overflow: ellipsis;
|
|
5426
|
+
white-space: nowrap;
|
|
5381
5427
|
}
|
|
5382
5428
|
|
|
5383
5429
|
/* `.utrecht-table--html-table` should not affect nested tables.
|
|
@@ -5401,6 +5447,9 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
5401
5447
|
.utrecht-table--html-table > tbody > tr > th,
|
|
5402
5448
|
.utrecht-table--html-table > tfoot > tr > th,
|
|
5403
5449
|
.utrecht-table__header-cell {
|
|
5450
|
+
--utrecht-icon-size: var(--utrecht-table-cell-icon-size);
|
|
5451
|
+
/* In tables `block-size` acts as `min-block-size`, but `min-block-size` is a clearer name for the design token */
|
|
5452
|
+
block-size: var(--utrecht-table-cell-line-height, 1em);
|
|
5404
5453
|
line-height: var(--utrecht-table-cell-line-height, inherit);
|
|
5405
5454
|
padding-block-end: var(--utrecht-table-cell-padding-block-end, 0);
|
|
5406
5455
|
padding-block-start: var(--utrecht-table-cell-padding-block-start, 0);
|
|
@@ -5412,6 +5461,7 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
5412
5461
|
font-weight: var(--utrecht-table-header-cell-font-weight, bold);
|
|
5413
5462
|
text-transform: var(--utrecht-table-header-cell-text-transform);
|
|
5414
5463
|
vertical-align: var(--_utrecht-table-header-cell-vertical-align, top);
|
|
5464
|
+
z-index: var(--_utrecht-table-header-cell-z-index);
|
|
5415
5465
|
}
|
|
5416
5466
|
|
|
5417
5467
|
.utrecht-table__header-cell--selected {
|
|
@@ -5419,11 +5469,30 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
5419
5469
|
color: var(--utrecht-table-cell-selected-color, highlightText);
|
|
5420
5470
|
}
|
|
5421
5471
|
|
|
5472
|
+
.utrecht-table__header-cell--sticky-block {
|
|
5473
|
+
background-color: #eee;
|
|
5474
|
+
color: black;
|
|
5475
|
+
inset-block-start: 0;
|
|
5476
|
+
position: sticky;
|
|
5477
|
+
z-index: calc(var(--_utrecht-table-header-cell-z-index, 0) + 2);
|
|
5478
|
+
}
|
|
5479
|
+
|
|
5480
|
+
.utrecht-table__header-cell--sticky-inline {
|
|
5481
|
+
background-color: #eee;
|
|
5482
|
+
color: black;
|
|
5483
|
+
inset-inline-start: 0;
|
|
5484
|
+
position: sticky;
|
|
5485
|
+
z-index: calc(var(--_utrecht-table-header-cell-z-index, 0) + 1);
|
|
5486
|
+
}
|
|
5487
|
+
|
|
5422
5488
|
.utrecht-table--html-table > tr > td,
|
|
5423
5489
|
.utrecht-table--html-table > thead > tr > td,
|
|
5424
5490
|
.utrecht-table--html-table > tbody > tr > td,
|
|
5425
5491
|
.utrecht-table--html-table > tfoot > tr > td,
|
|
5426
5492
|
.utrecht-table__cell {
|
|
5493
|
+
--utrecht-icon-size: var(--utrecht-table-cell-icon-size);
|
|
5494
|
+
/* In tables `block-size` acts as `min-block-size`, but `min-block-size` is a clearer name for the design token */
|
|
5495
|
+
block-size: var(--utrecht-table-cell-line-height, 1em);
|
|
5427
5496
|
line-height: var(--utrecht-table-cell-line-height, inherit);
|
|
5428
5497
|
padding-block-end: var(--utrecht-table-cell-padding-block-end, 0);
|
|
5429
5498
|
padding-block-start: var(--utrecht-table-cell-padding-block-start, 0);
|
|
@@ -5460,8 +5529,9 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
5460
5529
|
/* stylelint-enable no-descending-specificity */
|
|
5461
5530
|
.utrecht-table__header-cell--numeric-column,
|
|
5462
5531
|
.utrecht-table__cell--numeric-column {
|
|
5532
|
+
--_utrecht-table-cell-text-align: right;
|
|
5463
5533
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
5464
|
-
text-align:
|
|
5534
|
+
text-align: var(--_utrecht-table-cell-text-align);
|
|
5465
5535
|
}
|
|
5466
5536
|
|
|
5467
5537
|
.utrecht-table__cell--numeric-data {
|
|
@@ -5478,6 +5548,85 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
5478
5548
|
color: var(--utrecht-table-row-alternate-even-color);
|
|
5479
5549
|
}
|
|
5480
5550
|
|
|
5551
|
+
.utrecht-table__header-cell {
|
|
5552
|
+
--utrecht-button-font-size: inherit;
|
|
5553
|
+
--utrecht-button-font-weight: inherit;
|
|
5554
|
+
--utrecht-button-padding-inline-start: var(--utrecht-table-cell-padding-inline-start);
|
|
5555
|
+
--utrecht-button-padding-inline-end: var(--utrecht-table-cell-padding-inline-end);
|
|
5556
|
+
--utrecht-button-padding-block-start: var(--utrecht-table-cell-padding-block-start);
|
|
5557
|
+
--utrecht-button-padding-block-end: var(--utrecht-table-cell-padding-block-end);
|
|
5558
|
+
--utrecht-button-hover-scale: 1;
|
|
5559
|
+
--utrecht-button-focus-scale: 1;
|
|
5560
|
+
--utrecht-button-min-block-size: 100%;
|
|
5561
|
+
--utrecht-button-min-inline-size: 100%;
|
|
5562
|
+
--utrecht-button-border-color: transparent;
|
|
5563
|
+
--utrecht-button-border-size: 1px;
|
|
5564
|
+
}
|
|
5565
|
+
|
|
5566
|
+
.utrecht-table__header-cell:has(.utrecht-button) {
|
|
5567
|
+
padding-block-end: 0;
|
|
5568
|
+
padding-block-start: 0;
|
|
5569
|
+
padding-inline-end: 0;
|
|
5570
|
+
padding-inline-start: 0;
|
|
5571
|
+
}
|
|
5572
|
+
|
|
5573
|
+
.utrecht-table__header-cell-button {
|
|
5574
|
+
justify-content: var(--_utrecht-table-cell-text-align, start);
|
|
5575
|
+
}
|
|
5576
|
+
|
|
5577
|
+
/* stylelint-disable-next-line block-no-empty */
|
|
5578
|
+
.utrecht-table__data--truncate {
|
|
5579
|
+
display: block;
|
|
5580
|
+
max-inline-size: 100%;
|
|
5581
|
+
overflow: hidden;
|
|
5582
|
+
text-overflow: ellipsis;
|
|
5583
|
+
white-space: nowrap;
|
|
5584
|
+
}
|
|
5585
|
+
|
|
5586
|
+
.utrecht-table__container {
|
|
5587
|
+
max-inline-size: 100%;
|
|
5588
|
+
overflow-inline: scroll;
|
|
5589
|
+
}
|
|
5590
|
+
|
|
5591
|
+
.utrecht-table__header--hidden {
|
|
5592
|
+
block-size: 1px;
|
|
5593
|
+
border: 0 solid silver;
|
|
5594
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
5595
|
+
clip-path: inset(50%);
|
|
5596
|
+
inline-size: 1px;
|
|
5597
|
+
outline: 1px solid red;
|
|
5598
|
+
overflow: hidden;
|
|
5599
|
+
/* stylelint-disable-next-line property-disallowed-list */
|
|
5600
|
+
padding: 0;
|
|
5601
|
+
position: absolute;
|
|
5602
|
+
white-space: nowrap;
|
|
5603
|
+
}
|
|
5604
|
+
|
|
5605
|
+
.utrecht-table--busy {
|
|
5606
|
+
cursor: var(--utrecht-action-busy-cursor, busy);
|
|
5607
|
+
}
|
|
5608
|
+
|
|
5609
|
+
.utrecht-table--alternate-row-color .utrecht-table__body .utrecht-table__row:nth-child(odd) {
|
|
5610
|
+
background-color: var(--utrecht-table-row-alternate-odd-background-color);
|
|
5611
|
+
color: var(--utrecht-table-row-alternate-odd-color);
|
|
5612
|
+
}
|
|
5613
|
+
.utrecht-table--alternate-row-color .utrecht-table__body .utrecht-table__row:nth-child(even) {
|
|
5614
|
+
background-color: var(--utrecht-table-row-alternate-even-background-color);
|
|
5615
|
+
color: var(--utrecht-table-row-alternate-even-color);
|
|
5616
|
+
}
|
|
5617
|
+
|
|
5618
|
+
.utrecht-table--row-hover .utrecht-table__body .utrecht-table__row:hover .utrecht-table__header-cell,
|
|
5619
|
+
.utrecht-table--row-hover .utrecht-table__body .utrecht-table__row:hover .utrecht-table__cell {
|
|
5620
|
+
background-color: papayawhip;
|
|
5621
|
+
color: maroon;
|
|
5622
|
+
}
|
|
5623
|
+
|
|
5624
|
+
.utrecht-table--row-focus-within .utrecht-table__body .utrecht-table__row:focus-within .utrecht-table__header-cell,
|
|
5625
|
+
.utrecht-table--row-focus-within .utrecht-table__body .utrecht-table__row:focus-within .utrecht-table__cell {
|
|
5626
|
+
background-color: papayawhip;
|
|
5627
|
+
color: maroon;
|
|
5628
|
+
}
|
|
5629
|
+
|
|
5481
5630
|
/**
|
|
5482
5631
|
* @license EUPL-1.2
|
|
5483
5632
|
* Copyright (c) 2021 Robbert Broersma
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.0-alpha.
|
|
2
|
+
"version": "1.0.0-alpha.534",
|
|
3
3
|
"author": "Community for NL Design System",
|
|
4
4
|
"description": "Component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"clean": "rimraf dist/"
|
|
27
27
|
},
|
|
28
28
|
"main": "dist/index.css",
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "c3bb0bc7cd9fc4dc420dc12f66eb52ac9301c383"
|
|
30
30
|
}
|