@deque/cauldron-styles 4.7.0 → 5.0.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/dist/index.css +123 -38
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
--accent-medium: #283640;
|
|
21
21
|
--accent-light: #d4dde0;
|
|
22
22
|
--accent-success: #a5db75;
|
|
23
|
+
--accent-success-high-contrast: #4fa630;
|
|
23
24
|
--accent-success-light: #d1ffa4;
|
|
24
25
|
--accent-success-dark: #57a711;
|
|
25
26
|
--accent-error: #d93251;
|
|
@@ -37,10 +38,10 @@
|
|
|
37
38
|
--accent-secondary-active: var(--gray-30);
|
|
38
39
|
--focus-light: #c11bde;
|
|
39
40
|
--focus-dark: #eb94ff;
|
|
40
|
-
--issue-critical:
|
|
41
|
-
--issue-serious:
|
|
42
|
-
--issue-moderate: #
|
|
43
|
-
--issue-minor:
|
|
41
|
+
--issue-critical: var(--accent-danger);
|
|
42
|
+
--issue-serious: var(--accent-warning);
|
|
43
|
+
--issue-moderate: #f0c4f8;
|
|
44
|
+
--issue-minor: var(--gray-20);
|
|
44
45
|
|
|
45
46
|
/* text colours */
|
|
46
47
|
--text-color-base: var(--gray-60);
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
--space-small: 16px;
|
|
69
70
|
--space-medium: 18px;
|
|
70
71
|
--space-large: 24px;
|
|
71
|
-
--space-largest:
|
|
72
|
+
--space-largest: 32px;
|
|
72
73
|
--space-half: 4px;
|
|
73
74
|
--space-three-quarters: 6px;
|
|
74
75
|
--space-quarter: 2px;
|
|
@@ -101,7 +102,7 @@
|
|
|
101
102
|
--content-max-width: 1000px;
|
|
102
103
|
|
|
103
104
|
/* z-index */
|
|
104
|
-
--z-index-tooltip:
|
|
105
|
+
--z-index-tooltip: 22;
|
|
105
106
|
--z-index-loader: 8;
|
|
106
107
|
--z-index-scrim: 7;
|
|
107
108
|
--z-index-dialog: 21;
|
|
@@ -661,7 +662,7 @@ button.Link {
|
|
|
661
662
|
--button-background-color-secondary-active
|
|
662
663
|
);
|
|
663
664
|
--icon-button-outline-color-secondary: var(--button-outline-color-secondary);
|
|
664
|
-
--icon-button-border-color-secondary:
|
|
665
|
+
--icon-button-border-color-secondary: var(--gray-40);
|
|
665
666
|
|
|
666
667
|
--icon-button-background-color-error: var(--button-background-color-error);
|
|
667
668
|
--icon-button-background-color-error-disabled: var(
|
|
@@ -689,6 +690,7 @@ button.Link {
|
|
|
689
690
|
display: inline-flex;
|
|
690
691
|
justify-content: center;
|
|
691
692
|
align-content: center;
|
|
693
|
+
align-items: center;
|
|
692
694
|
height: var(--button-thin-height);
|
|
693
695
|
width: var(--button-thin-height);
|
|
694
696
|
border-radius: 3px;
|
|
@@ -699,9 +701,16 @@ button.Link {
|
|
|
699
701
|
padding: 0;
|
|
700
702
|
}
|
|
701
703
|
|
|
704
|
+
/* Ensure both <a> and <button> IconButtons are aligned correctly. See #846. */
|
|
705
|
+
|
|
706
|
+
a.IconButton {
|
|
707
|
+
vertical-align: middle;
|
|
708
|
+
line-height: unset;
|
|
709
|
+
}
|
|
710
|
+
|
|
702
711
|
.IconButton .Icon {
|
|
703
|
-
|
|
704
|
-
|
|
712
|
+
height: var(--space-small);
|
|
713
|
+
width: var(--space-small);
|
|
705
714
|
pointer-events: none;
|
|
706
715
|
}
|
|
707
716
|
|
|
@@ -1488,9 +1497,10 @@ textarea:focus,
|
|
|
1488
1497
|
[role='listbox']:focus,
|
|
1489
1498
|
[role='spinbutton']:focus {
|
|
1490
1499
|
outline: 0;
|
|
1491
|
-
border:
|
|
1492
|
-
box-shadow:
|
|
1493
|
-
|
|
1500
|
+
border: 1px solid var(--field-border-color-focus);
|
|
1501
|
+
box-shadow: 0 0 0 2px var(--field-border-color-focus),
|
|
1502
|
+
0 0 5px var(--field-border-color-focus-glow),
|
|
1503
|
+
inset 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
1494
1504
|
}
|
|
1495
1505
|
|
|
1496
1506
|
input:hover,
|
|
@@ -1514,7 +1524,7 @@ textarea:focus:hover,
|
|
|
1514
1524
|
[aria-haspopup='listbox']:focus:hover,
|
|
1515
1525
|
[role='listbox']:focus:hover,
|
|
1516
1526
|
[role='spinbutton']:focus:hover {
|
|
1517
|
-
border:
|
|
1527
|
+
border: 1px solid var(--field-border-color-focus-hover);
|
|
1518
1528
|
}
|
|
1519
1529
|
|
|
1520
1530
|
input.Field--has-error,
|
|
@@ -1554,9 +1564,10 @@ textarea.Field--has-error:focus,
|
|
|
1554
1564
|
[aria-haspopup='listbox'].Field--has-error:focus,
|
|
1555
1565
|
[role='listbox'].Field--has-error:focus,
|
|
1556
1566
|
[role='spinbutton'].Field--has-error:focus {
|
|
1557
|
-
border:
|
|
1558
|
-
box-shadow:
|
|
1559
|
-
|
|
1567
|
+
border: 1px solid var(--field-border-color-error);
|
|
1568
|
+
box-shadow: 0 0 0 1px var(--field-border-color-error-hover),
|
|
1569
|
+
inset 0 2px 3px 0 rgba(0, 0, 0, 0.05),
|
|
1570
|
+
0 0 5px 0 var(--field-border-color-error-focus-glow);
|
|
1560
1571
|
}
|
|
1561
1572
|
|
|
1562
1573
|
input.Field--has-error:focus:hover,
|
|
@@ -1833,7 +1844,7 @@ textarea.Field--has-error:focus:hover,
|
|
|
1833
1844
|
|
|
1834
1845
|
.Link:hover {
|
|
1835
1846
|
text-decoration: underline;
|
|
1836
|
-
color: var(--link-text-color);
|
|
1847
|
+
color: var(--link-text-color-hover);
|
|
1837
1848
|
}
|
|
1838
1849
|
|
|
1839
1850
|
.Link:focus {
|
|
@@ -2257,7 +2268,12 @@ p .Link {
|
|
|
2257
2268
|
}
|
|
2258
2269
|
|
|
2259
2270
|
.RadioCardGroup__Icon.Icon svg {
|
|
2260
|
-
|
|
2271
|
+
/**
|
|
2272
|
+
* this is edge case to pass color-contrast when the radio-card is selected,
|
|
2273
|
+
* it is not a color we want to live in cauldron as a variable
|
|
2274
|
+
* @see https://github.com/dequelabs/cauldron/pull/736
|
|
2275
|
+
*/
|
|
2276
|
+
color: #4f990f;
|
|
2261
2277
|
height: 44px;
|
|
2262
2278
|
width: 44px;
|
|
2263
2279
|
}
|
|
@@ -2298,6 +2314,10 @@ p .Link {
|
|
|
2298
2314
|
justify-content: center;
|
|
2299
2315
|
}
|
|
2300
2316
|
|
|
2317
|
+
.cauldron--theme-dark .RadioCardGroup__Icon.Icon svg {
|
|
2318
|
+
color: var(--accent-success);
|
|
2319
|
+
}
|
|
2320
|
+
|
|
2301
2321
|
:root {
|
|
2302
2322
|
--tile-background-color: var(--white);
|
|
2303
2323
|
--list-separator: rgba(153, 153, 153, 0.15);
|
|
@@ -2523,16 +2543,18 @@ p .Link {
|
|
|
2523
2543
|
width: 0.1px;
|
|
2524
2544
|
}
|
|
2525
2545
|
|
|
2546
|
+
/* Adjust position to try to center the arrow in the tooltip's border */
|
|
2547
|
+
|
|
2526
2548
|
[class*='Tooltip--top'] .TooltipArrow {
|
|
2527
|
-
bottom:
|
|
2549
|
+
bottom: -1px;
|
|
2528
2550
|
}
|
|
2529
2551
|
|
|
2530
2552
|
[class*='Tooltip--bottom'] .TooltipArrow {
|
|
2531
|
-
top:
|
|
2553
|
+
top: -1px;
|
|
2532
2554
|
}
|
|
2533
2555
|
|
|
2534
2556
|
[class*='Tooltip--left'] .TooltipArrow {
|
|
2535
|
-
right:
|
|
2557
|
+
right: -1px;
|
|
2536
2558
|
}
|
|
2537
2559
|
|
|
2538
2560
|
[class*='Tooltip--right'] .TooltipArrow {
|
|
@@ -2593,15 +2615,14 @@ p .Link {
|
|
|
2593
2615
|
|
|
2594
2616
|
.TooltipHead {
|
|
2595
2617
|
background: var(--gray-20);
|
|
2596
|
-
font-size:
|
|
2618
|
+
font-size: var(--text-size-small);
|
|
2597
2619
|
color: var(--gray-90);
|
|
2598
|
-
padding:
|
|
2620
|
+
padding: var(--space-small) var(--space-large);
|
|
2599
2621
|
text-align: center;
|
|
2600
2622
|
}
|
|
2601
2623
|
|
|
2602
2624
|
.TooltipContent {
|
|
2603
2625
|
background: #fff;
|
|
2604
|
-
font-size: var(--font-size-smaller);
|
|
2605
2626
|
text-align: left;
|
|
2606
2627
|
}
|
|
2607
2628
|
|
|
@@ -2796,6 +2817,12 @@ button.TooltipTabstop {
|
|
|
2796
2817
|
background-color: var(--top-bar-text-color);
|
|
2797
2818
|
}
|
|
2798
2819
|
|
|
2820
|
+
@media (max-width: 71.25rem) {
|
|
2821
|
+
.TopBar > ul {
|
|
2822
|
+
border: 0;
|
|
2823
|
+
}
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2799
2826
|
:root {
|
|
2800
2827
|
--skip-link-background-color: rgba(255, 255, 255, 0.95);
|
|
2801
2828
|
--skip-link-focus-color: var(--focus-light);
|
|
@@ -3386,6 +3413,7 @@ button.TooltipTabstop {
|
|
|
3386
3413
|
--table-row-border-color: var(--gray-40);
|
|
3387
3414
|
--table-space: 11px;
|
|
3388
3415
|
--table-header-sorting-border-color: var(--gray-90);
|
|
3416
|
+
--table-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
|
|
3389
3417
|
}
|
|
3390
3418
|
|
|
3391
3419
|
.cauldron--theme-dark {
|
|
@@ -3413,7 +3441,7 @@ button.TooltipTabstop {
|
|
|
3413
3441
|
background: var(--table-header-background-color);
|
|
3414
3442
|
font-weight: var(--font-weight-medium);
|
|
3415
3443
|
color: var(--table-header-text-color);
|
|
3416
|
-
border-bottom:
|
|
3444
|
+
border-bottom: 3px solid var(--table-row-border-color);
|
|
3417
3445
|
}
|
|
3418
3446
|
|
|
3419
3447
|
.TableHeader[aria-sort] {
|
|
@@ -3442,10 +3470,11 @@ button.TooltipTabstop {
|
|
|
3442
3470
|
outline-offset: unset;
|
|
3443
3471
|
}
|
|
3444
3472
|
|
|
3473
|
+
.TableHeader,
|
|
3445
3474
|
.TableHeader--sort-ascending,
|
|
3446
3475
|
.TableHeader--sort-descending {
|
|
3447
3476
|
background: var(--table-header-sorting-background-color);
|
|
3448
|
-
border-bottom:
|
|
3477
|
+
border-bottom: 3px solid var(--table-header-sorting-border-color);
|
|
3449
3478
|
}
|
|
3450
3479
|
|
|
3451
3480
|
.TableHeader--sort-ascending .TableHeader__sort-button,
|
|
@@ -3466,21 +3495,54 @@ button.TooltipTabstop {
|
|
|
3466
3495
|
}
|
|
3467
3496
|
|
|
3468
3497
|
.TableCell,
|
|
3469
|
-
.TableHeader
|
|
3498
|
+
.TableHeader,
|
|
3499
|
+
.TableFooter {
|
|
3470
3500
|
padding: var(--table-space) var(--space-smallest);
|
|
3471
3501
|
}
|
|
3472
3502
|
|
|
3473
|
-
.TableRow:last-child .TableCell {
|
|
3503
|
+
.Table:not(.Table--border) .TableRow:last-child .TableCell {
|
|
3474
3504
|
border: none;
|
|
3475
3505
|
}
|
|
3476
3506
|
|
|
3507
|
+
.Table--border {
|
|
3508
|
+
box-shadow: var(--table-box-shadow);
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
.TableCell {
|
|
3512
|
+
color: var(--gray-90);
|
|
3513
|
+
}
|
|
3514
|
+
|
|
3515
|
+
.cauldron--theme-dark .TableCell {
|
|
3516
|
+
color: var(--white);
|
|
3517
|
+
}
|
|
3518
|
+
|
|
3519
|
+
.Table--border,
|
|
3520
|
+
.Table--border .TableHeader,
|
|
3521
|
+
.Table--border .TableFooter,
|
|
3522
|
+
.Table--border .TableCell {
|
|
3523
|
+
border: 1px solid var(--gray-40);
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
.cauldron--theme-dark .Table--border,
|
|
3527
|
+
.cauldron--theme-dark .Table--border .TableHeader,
|
|
3528
|
+
.cauldron--theme-dark .Table--border .TableFooter,
|
|
3529
|
+
.cauldron--theme-dark .Table--border .TableCell {
|
|
3530
|
+
border-color: var(--stroke-dark);
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
.TableFooter .TableCell {
|
|
3534
|
+
background: var(--table-header-background-color);
|
|
3535
|
+
font-weight: var(--font-weight-medium);
|
|
3536
|
+
color: var(--table-header-text-color);
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3477
3539
|
:root {
|
|
3478
3540
|
--data-list-background-color: var(--gray-20);
|
|
3479
3541
|
--data-list-value-background-color: var(--white);
|
|
3480
3542
|
--data-list-border-color: var(--gray-40);
|
|
3481
3543
|
--data-list-text-color: var(--gray-90);
|
|
3482
|
-
--data-list-value-text-color: var(--gray-
|
|
3483
|
-
--data-list-space:
|
|
3544
|
+
--data-list-value-text-color: var(--gray-90);
|
|
3545
|
+
--data-list-space: var(--space-small);
|
|
3484
3546
|
--data-list-value-width: 187px;
|
|
3485
3547
|
}
|
|
3486
3548
|
|
|
@@ -3498,7 +3560,7 @@ button.TooltipTabstop {
|
|
|
3498
3560
|
border-radius: 3px;
|
|
3499
3561
|
border: 1px solid var(--data-list-border-color);
|
|
3500
3562
|
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
|
|
3501
|
-
margin-bottom: var(--space-small)
|
|
3563
|
+
margin-bottom: var(--space-small);
|
|
3502
3564
|
}
|
|
3503
3565
|
|
|
3504
3566
|
.DescriptionList.DescriptionList--collapsed {
|
|
@@ -3520,7 +3582,7 @@ button.TooltipTabstop {
|
|
|
3520
3582
|
|
|
3521
3583
|
.DescriptionList--collapsed .DescriptionList__item {
|
|
3522
3584
|
border: 0;
|
|
3523
|
-
margin-bottom:
|
|
3585
|
+
margin-bottom: 12px;
|
|
3524
3586
|
display: block;
|
|
3525
3587
|
background-color: var(--data-list-value-background-color);
|
|
3526
3588
|
}
|
|
@@ -3553,6 +3615,7 @@ button.TooltipTabstop {
|
|
|
3553
3615
|
background-color: transparent;
|
|
3554
3616
|
width: auto;
|
|
3555
3617
|
border-right: none;
|
|
3618
|
+
margin-bottom: 2px;
|
|
3556
3619
|
}
|
|
3557
3620
|
|
|
3558
3621
|
.DescriptionList__details {
|
|
@@ -3584,6 +3647,16 @@ button.TooltipTabstop {
|
|
|
3584
3647
|
color: var(--white);
|
|
3585
3648
|
}
|
|
3586
3649
|
|
|
3650
|
+
@media screen and (max-width: 32rem) {
|
|
3651
|
+
.DescriptionList {
|
|
3652
|
+
margin-bottom: 0;
|
|
3653
|
+
box-shadow: none;
|
|
3654
|
+
border-bottom: 0;
|
|
3655
|
+
border-left: 1px solid var(--gray-40);
|
|
3656
|
+
border-right: 1px solid var(--gray-40);
|
|
3657
|
+
}
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3587
3660
|
.Stepper {
|
|
3588
3661
|
--step-indicator-size: 2em;
|
|
3589
3662
|
--step-line-height: 0.53em;
|
|
@@ -3711,7 +3784,7 @@ button.TooltipTabstop {
|
|
|
3711
3784
|
}
|
|
3712
3785
|
|
|
3713
3786
|
.Panel {
|
|
3714
|
-
padding: var(--space-
|
|
3787
|
+
padding: var(--space-small);
|
|
3715
3788
|
border: 1px solid var(--panel-border-color);
|
|
3716
3789
|
border-radius: 3px;
|
|
3717
3790
|
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.15);
|
|
@@ -4030,6 +4103,7 @@ fieldset.Panel {
|
|
|
4030
4103
|
display: flex;
|
|
4031
4104
|
align-items: center;
|
|
4032
4105
|
font-size: var(--text-size-small);
|
|
4106
|
+
margin: 0;
|
|
4033
4107
|
}
|
|
4034
4108
|
|
|
4035
4109
|
.Pagination > ul > li:not(:last-child) {
|
|
@@ -4080,6 +4154,16 @@ fieldset.Panel {
|
|
|
4080
4154
|
color: var(--accent-light);
|
|
4081
4155
|
}
|
|
4082
4156
|
|
|
4157
|
+
@media (max-width: 28.125rem) {
|
|
4158
|
+
.Pagination [role='log'] {
|
|
4159
|
+
margin: 0;
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4162
|
+
.Pagination--thin [role='log'] {
|
|
4163
|
+
margin: 0;
|
|
4164
|
+
}
|
|
4165
|
+
}
|
|
4166
|
+
|
|
4083
4167
|
.Breadcrumb ol {
|
|
4084
4168
|
display: flex;
|
|
4085
4169
|
align-items: center;
|
|
@@ -4418,8 +4502,9 @@ fieldset.Panel {
|
|
|
4418
4502
|
all: unset;
|
|
4419
4503
|
}
|
|
4420
4504
|
|
|
4421
|
-
.Accordion__trigger
|
|
4422
|
-
|
|
4505
|
+
.Accordion__trigger,
|
|
4506
|
+
button.Accordion__trigger {
|
|
4507
|
+
background-color: var(--accordion-trigger-background-color);
|
|
4423
4508
|
padding: calc(var(--space-small) - var(--space-half));
|
|
4424
4509
|
width: 100%;
|
|
4425
4510
|
display: flex;
|
|
@@ -4433,13 +4518,13 @@ fieldset.Panel {
|
|
|
4433
4518
|
text-decoration: underline solid var(--accordion-trigger-text-color);
|
|
4434
4519
|
}
|
|
4435
4520
|
|
|
4436
|
-
|
|
4521
|
+
.Accordion__trigger[aria-expanded='true'] {
|
|
4437
4522
|
border-bottom-right-radius: 0;
|
|
4438
4523
|
border-bottom-left-radius: 0;
|
|
4439
4524
|
background: var(--accordion-trigger-background-color-expanded);
|
|
4440
4525
|
}
|
|
4441
4526
|
|
|
4442
|
-
|
|
4527
|
+
.Accordion__trigger:hover {
|
|
4443
4528
|
box-shadow: inset 8px 0 0 -4px var(--accordion-trigger-box-shadow-hover);
|
|
4444
4529
|
color: var(--accordion-trigger-text-color-hover);
|
|
4445
4530
|
transition: all 0.2s ease-in-out;
|
|
@@ -4447,7 +4532,7 @@ button.Accordion__trigger:hover {
|
|
|
4447
4532
|
text-decoration: underline solid var(--accordion-trigger-text-color-hover);
|
|
4448
4533
|
}
|
|
4449
4534
|
|
|
4450
|
-
|
|
4535
|
+
.Accordion__trigger:hover .Icon {
|
|
4451
4536
|
color: var(--accordion-trigger-icon-color);
|
|
4452
4537
|
}
|
|
4453
4538
|
|