@deque/cauldron-styles 4.7.0 → 5.0.0-canary.ce15231f
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 +125 -39
- package/package.json +2 -2
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 {
|
|
@@ -1933,7 +1944,8 @@ p .Link {
|
|
|
1933
1944
|
}
|
|
1934
1945
|
|
|
1935
1946
|
.OptionsMenu__list-item:focus {
|
|
1936
|
-
box-shadow: inset 0 0 0
|
|
1947
|
+
box-shadow: inset 0 0 0 1px var(--options-menu-hover-background-color),
|
|
1948
|
+
inset 0 0 0 3px var(--focus);
|
|
1937
1949
|
}
|
|
1938
1950
|
|
|
1939
1951
|
.OptionsMenu__list-item[aria-disabled='true'] {
|
|
@@ -2257,7 +2269,12 @@ p .Link {
|
|
|
2257
2269
|
}
|
|
2258
2270
|
|
|
2259
2271
|
.RadioCardGroup__Icon.Icon svg {
|
|
2260
|
-
|
|
2272
|
+
/**
|
|
2273
|
+
* this is edge case to pass color-contrast when the radio-card is selected,
|
|
2274
|
+
* it is not a color we want to live in cauldron as a variable
|
|
2275
|
+
* @see https://github.com/dequelabs/cauldron/pull/736
|
|
2276
|
+
*/
|
|
2277
|
+
color: #4f990f;
|
|
2261
2278
|
height: 44px;
|
|
2262
2279
|
width: 44px;
|
|
2263
2280
|
}
|
|
@@ -2298,6 +2315,10 @@ p .Link {
|
|
|
2298
2315
|
justify-content: center;
|
|
2299
2316
|
}
|
|
2300
2317
|
|
|
2318
|
+
.cauldron--theme-dark .RadioCardGroup__Icon.Icon svg {
|
|
2319
|
+
color: var(--accent-success);
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2301
2322
|
:root {
|
|
2302
2323
|
--tile-background-color: var(--white);
|
|
2303
2324
|
--list-separator: rgba(153, 153, 153, 0.15);
|
|
@@ -2523,16 +2544,18 @@ p .Link {
|
|
|
2523
2544
|
width: 0.1px;
|
|
2524
2545
|
}
|
|
2525
2546
|
|
|
2547
|
+
/* Adjust position to try to center the arrow in the tooltip's border */
|
|
2548
|
+
|
|
2526
2549
|
[class*='Tooltip--top'] .TooltipArrow {
|
|
2527
|
-
bottom:
|
|
2550
|
+
bottom: -1px;
|
|
2528
2551
|
}
|
|
2529
2552
|
|
|
2530
2553
|
[class*='Tooltip--bottom'] .TooltipArrow {
|
|
2531
|
-
top:
|
|
2554
|
+
top: -1px;
|
|
2532
2555
|
}
|
|
2533
2556
|
|
|
2534
2557
|
[class*='Tooltip--left'] .TooltipArrow {
|
|
2535
|
-
right:
|
|
2558
|
+
right: -1px;
|
|
2536
2559
|
}
|
|
2537
2560
|
|
|
2538
2561
|
[class*='Tooltip--right'] .TooltipArrow {
|
|
@@ -2593,15 +2616,14 @@ p .Link {
|
|
|
2593
2616
|
|
|
2594
2617
|
.TooltipHead {
|
|
2595
2618
|
background: var(--gray-20);
|
|
2596
|
-
font-size:
|
|
2619
|
+
font-size: var(--text-size-small);
|
|
2597
2620
|
color: var(--gray-90);
|
|
2598
|
-
padding:
|
|
2621
|
+
padding: var(--space-small) var(--space-large);
|
|
2599
2622
|
text-align: center;
|
|
2600
2623
|
}
|
|
2601
2624
|
|
|
2602
2625
|
.TooltipContent {
|
|
2603
2626
|
background: #fff;
|
|
2604
|
-
font-size: var(--font-size-smaller);
|
|
2605
2627
|
text-align: left;
|
|
2606
2628
|
}
|
|
2607
2629
|
|
|
@@ -2796,6 +2818,12 @@ button.TooltipTabstop {
|
|
|
2796
2818
|
background-color: var(--top-bar-text-color);
|
|
2797
2819
|
}
|
|
2798
2820
|
|
|
2821
|
+
@media (max-width: 71.25rem) {
|
|
2822
|
+
.TopBar > ul {
|
|
2823
|
+
border: 0;
|
|
2824
|
+
}
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2799
2827
|
:root {
|
|
2800
2828
|
--skip-link-background-color: rgba(255, 255, 255, 0.95);
|
|
2801
2829
|
--skip-link-focus-color: var(--focus-light);
|
|
@@ -3386,6 +3414,7 @@ button.TooltipTabstop {
|
|
|
3386
3414
|
--table-row-border-color: var(--gray-40);
|
|
3387
3415
|
--table-space: 11px;
|
|
3388
3416
|
--table-header-sorting-border-color: var(--gray-90);
|
|
3417
|
+
--table-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
|
|
3389
3418
|
}
|
|
3390
3419
|
|
|
3391
3420
|
.cauldron--theme-dark {
|
|
@@ -3413,7 +3442,7 @@ button.TooltipTabstop {
|
|
|
3413
3442
|
background: var(--table-header-background-color);
|
|
3414
3443
|
font-weight: var(--font-weight-medium);
|
|
3415
3444
|
color: var(--table-header-text-color);
|
|
3416
|
-
border-bottom:
|
|
3445
|
+
border-bottom: 3px solid var(--table-row-border-color);
|
|
3417
3446
|
}
|
|
3418
3447
|
|
|
3419
3448
|
.TableHeader[aria-sort] {
|
|
@@ -3442,10 +3471,11 @@ button.TooltipTabstop {
|
|
|
3442
3471
|
outline-offset: unset;
|
|
3443
3472
|
}
|
|
3444
3473
|
|
|
3474
|
+
.TableHeader,
|
|
3445
3475
|
.TableHeader--sort-ascending,
|
|
3446
3476
|
.TableHeader--sort-descending {
|
|
3447
3477
|
background: var(--table-header-sorting-background-color);
|
|
3448
|
-
border-bottom:
|
|
3478
|
+
border-bottom: 3px solid var(--table-header-sorting-border-color);
|
|
3449
3479
|
}
|
|
3450
3480
|
|
|
3451
3481
|
.TableHeader--sort-ascending .TableHeader__sort-button,
|
|
@@ -3466,21 +3496,54 @@ button.TooltipTabstop {
|
|
|
3466
3496
|
}
|
|
3467
3497
|
|
|
3468
3498
|
.TableCell,
|
|
3469
|
-
.TableHeader
|
|
3499
|
+
.TableHeader,
|
|
3500
|
+
.TableFooter {
|
|
3470
3501
|
padding: var(--table-space) var(--space-smallest);
|
|
3471
3502
|
}
|
|
3472
3503
|
|
|
3473
|
-
.TableRow:last-child .TableCell {
|
|
3504
|
+
.Table:not(.Table--border) .TableRow:last-child .TableCell {
|
|
3474
3505
|
border: none;
|
|
3475
3506
|
}
|
|
3476
3507
|
|
|
3508
|
+
.Table--border {
|
|
3509
|
+
box-shadow: var(--table-box-shadow);
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
.TableCell {
|
|
3513
|
+
color: var(--gray-90);
|
|
3514
|
+
}
|
|
3515
|
+
|
|
3516
|
+
.cauldron--theme-dark .TableCell {
|
|
3517
|
+
color: var(--white);
|
|
3518
|
+
}
|
|
3519
|
+
|
|
3520
|
+
.Table--border,
|
|
3521
|
+
.Table--border .TableHeader,
|
|
3522
|
+
.Table--border .TableFooter,
|
|
3523
|
+
.Table--border .TableCell {
|
|
3524
|
+
border: 1px solid var(--gray-40);
|
|
3525
|
+
}
|
|
3526
|
+
|
|
3527
|
+
.cauldron--theme-dark .Table--border,
|
|
3528
|
+
.cauldron--theme-dark .Table--border .TableHeader,
|
|
3529
|
+
.cauldron--theme-dark .Table--border .TableFooter,
|
|
3530
|
+
.cauldron--theme-dark .Table--border .TableCell {
|
|
3531
|
+
border-color: var(--stroke-dark);
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
.TableFooter .TableCell {
|
|
3535
|
+
background: var(--table-header-background-color);
|
|
3536
|
+
font-weight: var(--font-weight-medium);
|
|
3537
|
+
color: var(--table-header-text-color);
|
|
3538
|
+
}
|
|
3539
|
+
|
|
3477
3540
|
:root {
|
|
3478
3541
|
--data-list-background-color: var(--gray-20);
|
|
3479
3542
|
--data-list-value-background-color: var(--white);
|
|
3480
3543
|
--data-list-border-color: var(--gray-40);
|
|
3481
3544
|
--data-list-text-color: var(--gray-90);
|
|
3482
|
-
--data-list-value-text-color: var(--gray-
|
|
3483
|
-
--data-list-space:
|
|
3545
|
+
--data-list-value-text-color: var(--gray-90);
|
|
3546
|
+
--data-list-space: var(--space-small);
|
|
3484
3547
|
--data-list-value-width: 187px;
|
|
3485
3548
|
}
|
|
3486
3549
|
|
|
@@ -3498,7 +3561,7 @@ button.TooltipTabstop {
|
|
|
3498
3561
|
border-radius: 3px;
|
|
3499
3562
|
border: 1px solid var(--data-list-border-color);
|
|
3500
3563
|
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
|
|
3501
|
-
margin-bottom: var(--space-small)
|
|
3564
|
+
margin-bottom: var(--space-small);
|
|
3502
3565
|
}
|
|
3503
3566
|
|
|
3504
3567
|
.DescriptionList.DescriptionList--collapsed {
|
|
@@ -3520,7 +3583,7 @@ button.TooltipTabstop {
|
|
|
3520
3583
|
|
|
3521
3584
|
.DescriptionList--collapsed .DescriptionList__item {
|
|
3522
3585
|
border: 0;
|
|
3523
|
-
margin-bottom:
|
|
3586
|
+
margin-bottom: 12px;
|
|
3524
3587
|
display: block;
|
|
3525
3588
|
background-color: var(--data-list-value-background-color);
|
|
3526
3589
|
}
|
|
@@ -3553,6 +3616,7 @@ button.TooltipTabstop {
|
|
|
3553
3616
|
background-color: transparent;
|
|
3554
3617
|
width: auto;
|
|
3555
3618
|
border-right: none;
|
|
3619
|
+
margin-bottom: 2px;
|
|
3556
3620
|
}
|
|
3557
3621
|
|
|
3558
3622
|
.DescriptionList__details {
|
|
@@ -3584,6 +3648,16 @@ button.TooltipTabstop {
|
|
|
3584
3648
|
color: var(--white);
|
|
3585
3649
|
}
|
|
3586
3650
|
|
|
3651
|
+
@media screen and (max-width: 32rem) {
|
|
3652
|
+
.DescriptionList {
|
|
3653
|
+
margin-bottom: 0;
|
|
3654
|
+
box-shadow: none;
|
|
3655
|
+
border-bottom: 0;
|
|
3656
|
+
border-left: 1px solid var(--gray-40);
|
|
3657
|
+
border-right: 1px solid var(--gray-40);
|
|
3658
|
+
}
|
|
3659
|
+
}
|
|
3660
|
+
|
|
3587
3661
|
.Stepper {
|
|
3588
3662
|
--step-indicator-size: 2em;
|
|
3589
3663
|
--step-line-height: 0.53em;
|
|
@@ -3711,7 +3785,7 @@ button.TooltipTabstop {
|
|
|
3711
3785
|
}
|
|
3712
3786
|
|
|
3713
3787
|
.Panel {
|
|
3714
|
-
padding: var(--space-
|
|
3788
|
+
padding: var(--space-small);
|
|
3715
3789
|
border: 1px solid var(--panel-border-color);
|
|
3716
3790
|
border-radius: 3px;
|
|
3717
3791
|
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.15);
|
|
@@ -4030,6 +4104,7 @@ fieldset.Panel {
|
|
|
4030
4104
|
display: flex;
|
|
4031
4105
|
align-items: center;
|
|
4032
4106
|
font-size: var(--text-size-small);
|
|
4107
|
+
margin: 0;
|
|
4033
4108
|
}
|
|
4034
4109
|
|
|
4035
4110
|
.Pagination > ul > li:not(:last-child) {
|
|
@@ -4080,6 +4155,16 @@ fieldset.Panel {
|
|
|
4080
4155
|
color: var(--accent-light);
|
|
4081
4156
|
}
|
|
4082
4157
|
|
|
4158
|
+
@media (max-width: 28.125rem) {
|
|
4159
|
+
.Pagination [role='log'] {
|
|
4160
|
+
margin: 0;
|
|
4161
|
+
}
|
|
4162
|
+
|
|
4163
|
+
.Pagination--thin [role='log'] {
|
|
4164
|
+
margin: 0;
|
|
4165
|
+
}
|
|
4166
|
+
}
|
|
4167
|
+
|
|
4083
4168
|
.Breadcrumb ol {
|
|
4084
4169
|
display: flex;
|
|
4085
4170
|
align-items: center;
|
|
@@ -4418,8 +4503,9 @@ fieldset.Panel {
|
|
|
4418
4503
|
all: unset;
|
|
4419
4504
|
}
|
|
4420
4505
|
|
|
4421
|
-
.Accordion__trigger
|
|
4422
|
-
|
|
4506
|
+
.Accordion__trigger,
|
|
4507
|
+
button.Accordion__trigger {
|
|
4508
|
+
background-color: var(--accordion-trigger-background-color);
|
|
4423
4509
|
padding: calc(var(--space-small) - var(--space-half));
|
|
4424
4510
|
width: 100%;
|
|
4425
4511
|
display: flex;
|
|
@@ -4433,13 +4519,13 @@ fieldset.Panel {
|
|
|
4433
4519
|
text-decoration: underline solid var(--accordion-trigger-text-color);
|
|
4434
4520
|
}
|
|
4435
4521
|
|
|
4436
|
-
|
|
4522
|
+
.Accordion__trigger[aria-expanded='true'] {
|
|
4437
4523
|
border-bottom-right-radius: 0;
|
|
4438
4524
|
border-bottom-left-radius: 0;
|
|
4439
4525
|
background: var(--accordion-trigger-background-color-expanded);
|
|
4440
4526
|
}
|
|
4441
4527
|
|
|
4442
|
-
|
|
4528
|
+
.Accordion__trigger:hover {
|
|
4443
4529
|
box-shadow: inset 8px 0 0 -4px var(--accordion-trigger-box-shadow-hover);
|
|
4444
4530
|
color: var(--accordion-trigger-text-color-hover);
|
|
4445
4531
|
transition: all 0.2s ease-in-out;
|
|
@@ -4447,7 +4533,7 @@ button.Accordion__trigger:hover {
|
|
|
4447
4533
|
text-decoration: underline solid var(--accordion-trigger-text-color-hover);
|
|
4448
4534
|
}
|
|
4449
4535
|
|
|
4450
|
-
|
|
4536
|
+
.Accordion__trigger:hover .Icon {
|
|
4451
4537
|
color: var(--accordion-trigger-icon-color);
|
|
4452
4538
|
}
|
|
4453
4539
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-styles",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-canary.ce15231f",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "deque cauldron pattern library styles",
|
|
6
6
|
"repository": "https://github.com/dequelabs/cauldron",
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
"postcss-cli": "^7.1.1",
|
|
23
23
|
"postcss-import": "^12.0.1"
|
|
24
24
|
}
|
|
25
|
-
}
|
|
25
|
+
}
|