@deque/cauldron-styles 4.7.0-canary.fa8e54c5 → 5.0.0-canary.0645c1f3

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.
Files changed (2) hide show
  1. package/dist/index.css +136 -29
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -8,6 +8,7 @@
8
8
  /* color palette */
9
9
  --white: #ffffff;
10
10
  --dark-workspace-color: #53636e;
11
+ --stroke-light: #b3bfc6;
11
12
  --stroke-dark: #5d676f;
12
13
  --gray-10: #fdfdfe;
13
14
  --gray-20: #f2f2f2;
@@ -20,6 +21,7 @@
20
21
  --accent-medium: #283640;
21
22
  --accent-light: #d4dde0;
22
23
  --accent-success: #a5db75;
24
+ --accent-success-high-contrast: #4fa630;
23
25
  --accent-success-light: #d1ffa4;
24
26
  --accent-success-dark: #57a711;
25
27
  --accent-error: #d93251;
@@ -35,11 +37,11 @@
35
37
  --accent-primary-active: #316091;
36
38
  --accent-secondary: var(--gray-20);
37
39
  --accent-secondary-active: var(--gray-30);
38
- --focus-light: #c11bde;
40
+ --focus-light: #b51ad1;
39
41
  --focus-dark: #eb94ff;
40
42
  --issue-critical: var(--accent-danger);
41
- --issue-serious: #ed9a55;
42
- --issue-moderate: var(--accent-warning);
43
+ --issue-serious: var(--accent-warning);
44
+ --issue-moderate: #f0c4f8;
43
45
  --issue-minor: var(--gray-20);
44
46
 
45
47
  /* text colours */
@@ -49,6 +51,9 @@
49
51
  --header-text-color: var(--gray-80);
50
52
  --header-text-color-dark: var(--gray-90);
51
53
 
54
+ /* background colours */
55
+ --background-light: #f0f2f5;
56
+
52
57
  /* accents */
53
58
  --error: var(--accent-error);
54
59
  --disabled: var(--gray-40);
@@ -65,10 +70,11 @@
65
70
 
66
71
  /* spacing (padding/margin) */
67
72
  --space-smallest: 8px;
73
+ --space-smaller: 12px;
68
74
  --space-small: 16px;
69
75
  --space-medium: 18px;
70
76
  --space-large: 24px;
71
- --space-largest: 29px;
77
+ --space-largest: 32px;
72
78
  --space-half: 4px;
73
79
  --space-three-quarters: 6px;
74
80
  --space-quarter: 2px;
@@ -80,6 +86,7 @@
80
86
  --text-size-larger: 56px;
81
87
  --text-size-large: 45px;
82
88
  --text-size-large-medium: 34px;
89
+ --text-size-medium-large: 32px;
83
90
  --text-size-medium: 24px;
84
91
  --text-small-medium: 20px;
85
92
  --text-size-normal: 18px;
@@ -87,6 +94,9 @@
87
94
  --text-size-smaller: 13px;
88
95
  --text-size-smallest: 12px;
89
96
 
97
+ /* fonts */
98
+ --base-font-family: 'Roboto', Helvetica, Arial, sans-serif;
99
+
90
100
  /* font weight */
91
101
  --font-weight-thin: 100;
92
102
  --font-weight-light: 300;
@@ -95,6 +105,9 @@
95
105
  --font-weight-bold: 700;
96
106
  --font-weight-ultra-bold: 900;
97
107
 
108
+ /* icon sizes */
109
+ --icon-size: 24px;
110
+
98
111
  /* dimensions */
99
112
  --border-width: 6px;
100
113
  --layout-padding: 9px;
@@ -150,7 +163,7 @@ html {
150
163
  }
151
164
 
152
165
  body {
153
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
166
+ font-family: var(--base-font-family);
154
167
  font-style: normal;
155
168
  font-weight: 400;
156
169
  color: var(--text-color-base);
@@ -186,6 +199,11 @@ ul {
186
199
  padding: 0;
187
200
  }
188
201
 
202
+ button {
203
+ font-family: var(--base-font-family);
204
+ font-weight: 500;
205
+ }
206
+
189
207
  button,
190
208
  [role='button'] {
191
209
  display: inline-block;
@@ -661,7 +679,7 @@ button.Link {
661
679
  --button-background-color-secondary-active
662
680
  );
663
681
  --icon-button-outline-color-secondary: var(--button-outline-color-secondary);
664
- --icon-button-border-color-secondary: #dadada;
682
+ --icon-button-border-color-secondary: var(--gray-40);
665
683
 
666
684
  --icon-button-background-color-error: var(--button-background-color-error);
667
685
  --icon-button-background-color-error-disabled: var(
@@ -689,6 +707,7 @@ button.Link {
689
707
  display: inline-flex;
690
708
  justify-content: center;
691
709
  align-content: center;
710
+ align-items: center;
692
711
  height: var(--button-thin-height);
693
712
  width: var(--button-thin-height);
694
713
  border-radius: 3px;
@@ -699,9 +718,16 @@ button.Link {
699
718
  padding: 0;
700
719
  }
701
720
 
721
+ /* Ensure both <a> and <button> IconButtons are aligned correctly. See #846. */
722
+
723
+ a.IconButton {
724
+ vertical-align: middle;
725
+ line-height: unset;
726
+ }
727
+
702
728
  .IconButton .Icon {
703
- width: 100%;
704
- height: 100%;
729
+ height: var(--space-small);
730
+ width: var(--space-small);
705
731
  pointer-events: none;
706
732
  }
707
733
 
@@ -927,8 +953,8 @@ button.Link {
927
953
  }
928
954
 
929
955
  .Dialog__close svg {
930
- height: 24px;
931
- width: 24px;
956
+ height: var(--icon-size);
957
+ width: var(--icon-size);
932
958
  }
933
959
 
934
960
  .Dialog__content {
@@ -1190,8 +1216,8 @@ button.Link {
1190
1216
  .Pointout__dismiss .Icon svg,
1191
1217
  .Pointout__next .Icon svg,
1192
1218
  .Pointout__previous .Icon svg {
1193
- height: 24px;
1194
- width: 24px;
1219
+ height: var(--icon-size);
1220
+ width: var(--icon-size);
1195
1221
  }
1196
1222
 
1197
1223
  .Pointout__dismiss:hover {
@@ -1814,7 +1840,7 @@ textarea.Field--has-error:focus:hover,
1814
1840
 
1815
1841
  :root {
1816
1842
  --link-text-color: var(--gray-90);
1817
- --link-text-color-hover: var(--accent-primary);
1843
+ --link-text-color-hover: #3873a3;
1818
1844
  --link-text-color-light: rgba(60, 122, 174, 0.1);
1819
1845
  }
1820
1846
 
@@ -1835,7 +1861,7 @@ textarea.Field--has-error:focus:hover,
1835
1861
 
1836
1862
  .Link:hover {
1837
1863
  text-decoration: underline;
1838
- color: var(--link-text-color);
1864
+ color: var(--link-text-color-hover);
1839
1865
  }
1840
1866
 
1841
1867
  .Link:focus {
@@ -1847,7 +1873,7 @@ p .Link {
1847
1873
  margin: 0 2px;
1848
1874
  display: inline;
1849
1875
  text-decoration: underline;
1850
- color: var(--gray-90);
1876
+ color: var(--link-text-color);
1851
1877
  font-weight: var(--font-weight-normal);
1852
1878
  }
1853
1879
 
@@ -1935,7 +1961,8 @@ p .Link {
1935
1961
  }
1936
1962
 
1937
1963
  .OptionsMenu__list-item:focus {
1938
- box-shadow: inset 0 0 0 2px var(--focus);
1964
+ box-shadow: inset 0 0 0 1px var(--options-menu-hover-background-color),
1965
+ inset 0 0 0 3px var(--focus);
1939
1966
  }
1940
1967
 
1941
1968
  .OptionsMenu__list-item[aria-disabled='true'] {
@@ -2015,7 +2042,8 @@ p .Link {
2015
2042
 
2016
2043
  .Field__select--wrapper {
2017
2044
  position: relative;
2018
- min-width: var(--select-width);
2045
+ width: var(--select-width);
2046
+ max-width: 100%;
2019
2047
  }
2020
2048
 
2021
2049
  .arrow-down {
@@ -2510,6 +2538,8 @@ p .Link {
2510
2538
  border-radius: 3px;
2511
2539
  z-index: var(--z-index-tooltip);
2512
2540
  text-align: center;
2541
+ max-width: calc(100vw - 16px);
2542
+ word-break: break-word;
2513
2543
  }
2514
2544
 
2515
2545
  .Tooltip--hidden {
@@ -2808,6 +2838,12 @@ button.TooltipTabstop {
2808
2838
  background-color: var(--top-bar-text-color);
2809
2839
  }
2810
2840
 
2841
+ @media (max-width: 71.25rem) {
2842
+ .TopBar > ul {
2843
+ border: 0;
2844
+ }
2845
+ }
2846
+
2811
2847
  :root {
2812
2848
  --skip-link-background-color: rgba(255, 255, 255, 0.95);
2813
2849
  --skip-link-focus-color: var(--focus-light);
@@ -3373,11 +3409,10 @@ button.TooltipTabstop {
3373
3409
  font-size: var(--text-size-smaller);
3374
3410
  border: 1px solid var(--tag-border-color);
3375
3411
  border-radius: 11px;
3376
- display: flex;
3412
+ display: inline-flex;
3377
3413
  justify-content: center;
3378
3414
  align-items: center;
3379
3415
  padding: 2px 8px;
3380
- width: 90px;
3381
3416
  font-weight: var(--font-weight-medium);
3382
3417
  }
3383
3418
 
@@ -3398,6 +3433,7 @@ button.TooltipTabstop {
3398
3433
  --table-row-border-color: var(--gray-40);
3399
3434
  --table-space: 11px;
3400
3435
  --table-header-sorting-border-color: var(--gray-90);
3436
+ --table-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
3401
3437
  }
3402
3438
 
3403
3439
  .cauldron--theme-dark {
@@ -3425,7 +3461,7 @@ button.TooltipTabstop {
3425
3461
  background: var(--table-header-background-color);
3426
3462
  font-weight: var(--font-weight-medium);
3427
3463
  color: var(--table-header-text-color);
3428
- border-bottom: 2px solid var(--table-row-border-color);
3464
+ border-bottom: 3px solid var(--table-row-border-color);
3429
3465
  }
3430
3466
 
3431
3467
  .TableHeader[aria-sort] {
@@ -3457,7 +3493,7 @@ button.TooltipTabstop {
3457
3493
  .TableHeader--sort-ascending,
3458
3494
  .TableHeader--sort-descending {
3459
3495
  background: var(--table-header-sorting-background-color);
3460
- border-bottom: 2px solid var(--table-header-sorting-border-color);
3496
+ border-bottom: 3px solid var(--table-header-sorting-border-color);
3461
3497
  }
3462
3498
 
3463
3499
  .TableHeader--sort-ascending .TableHeader__sort-button,
@@ -3478,21 +3514,54 @@ button.TooltipTabstop {
3478
3514
  }
3479
3515
 
3480
3516
  .TableCell,
3481
- .TableHeader {
3517
+ .TableHeader,
3518
+ .TableFooter {
3482
3519
  padding: var(--table-space) var(--space-smallest);
3483
3520
  }
3484
3521
 
3485
- .TableRow:last-child .TableCell {
3522
+ .Table:not(.Table--border) .TableRow:last-child .TableCell {
3486
3523
  border: none;
3487
3524
  }
3488
3525
 
3526
+ .Table--border {
3527
+ box-shadow: var(--table-box-shadow);
3528
+ }
3529
+
3530
+ .TableCell {
3531
+ color: var(--gray-90);
3532
+ }
3533
+
3534
+ .cauldron--theme-dark .TableCell {
3535
+ color: var(--white);
3536
+ }
3537
+
3538
+ .Table--border,
3539
+ .Table--border .TableHeader,
3540
+ .Table--border .TableFooter,
3541
+ .Table--border .TableCell {
3542
+ border: 1px solid var(--gray-40);
3543
+ }
3544
+
3545
+ .cauldron--theme-dark .Table--border,
3546
+ .cauldron--theme-dark .Table--border .TableHeader,
3547
+ .cauldron--theme-dark .Table--border .TableFooter,
3548
+ .cauldron--theme-dark .Table--border .TableCell {
3549
+ border-color: var(--stroke-dark);
3550
+ }
3551
+
3552
+ .TableFooter .TableCell {
3553
+ background: var(--table-header-background-color);
3554
+ font-weight: var(--font-weight-medium);
3555
+ color: var(--table-header-text-color);
3556
+ }
3557
+
3489
3558
  :root {
3490
3559
  --data-list-background-color: var(--gray-20);
3491
3560
  --data-list-value-background-color: var(--white);
3492
3561
  --data-list-border-color: var(--gray-40);
3493
3562
  --data-list-text-color: var(--gray-90);
3494
- --data-list-value-text-color: var(--gray-80);
3495
- --data-list-space: 11px;
3563
+ --data-list-value-text-color: var(--gray-90);
3564
+ --data-list-space: var(--space-small);
3496
3565
  --data-list-value-width: 187px;
3497
3566
  }
3498
3567
 
@@ -3510,7 +3579,7 @@ button.TooltipTabstop {
3510
3579
  border-radius: 3px;
3511
3580
  border: 1px solid var(--data-list-border-color);
3512
3581
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
3513
- margin-bottom: var(--space-small) 0;
3582
+ margin-bottom: var(--space-small);
3514
3583
  }
3515
3584
 
3516
3585
  .DescriptionList.DescriptionList--collapsed {
@@ -3532,7 +3601,7 @@ button.TooltipTabstop {
3532
3601
 
3533
3602
  .DescriptionList--collapsed .DescriptionList__item {
3534
3603
  border: 0;
3535
- margin-bottom: var(--space-small);
3604
+ margin-bottom: 12px;
3536
3605
  display: block;
3537
3606
  background-color: var(--data-list-value-background-color);
3538
3607
  }
@@ -3565,6 +3634,7 @@ button.TooltipTabstop {
3565
3634
  background-color: transparent;
3566
3635
  width: auto;
3567
3636
  border-right: none;
3637
+ margin-bottom: 2px;
3568
3638
  }
3569
3639
 
3570
3640
  .DescriptionList__details {
@@ -3596,6 +3666,16 @@ button.TooltipTabstop {
3596
3666
  color: var(--white);
3597
3667
  }
3598
3668
 
3669
+ @media screen and (max-width: 32rem) {
3670
+ .DescriptionList {
3671
+ margin-bottom: 0;
3672
+ box-shadow: none;
3673
+ border-bottom: 0;
3674
+ border-left: 1px solid var(--gray-40);
3675
+ border-right: 1px solid var(--gray-40);
3676
+ }
3677
+ }
3678
+
3599
3679
  .Stepper {
3600
3680
  --step-indicator-size: 2em;
3601
3681
  --step-line-height: 0.53em;
@@ -3720,10 +3800,11 @@ button.TooltipTabstop {
3720
3800
  --panel-border-color: var(--gray-40);
3721
3801
  --panel-background-color: var(--white);
3722
3802
  --panel-heading-color: var(--gray-90);
3803
+ --panel-padding: var(--space-small);
3723
3804
  }
3724
3805
 
3725
3806
  .Panel {
3726
- padding: var(--space-large);
3807
+ padding: var(--panel-padding);
3727
3808
  border: 1px solid var(--panel-border-color);
3728
3809
  border-radius: 3px;
3729
3810
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.15);
@@ -3752,7 +3833,7 @@ fieldset.Panel {
3752
3833
  }
3753
3834
 
3754
3835
  .Panel--collapsed {
3755
- padding: 12px;
3836
+ --panel-padding: 12px;
3756
3837
  }
3757
3838
 
3758
3839
  .Panel--collapsed .Panel__Heading {
@@ -3876,6 +3957,18 @@ fieldset.Panel {
3876
3957
  transition: background-color 0.3s ease;
3877
3958
  }
3878
3959
 
3960
+ .NavBar > ul > .NavItem {
3961
+ font-weight: var(--font-weight-normal);
3962
+ }
3963
+
3964
+ .NavBar > ul > .NavItem--active {
3965
+ font-weight: var(--font-weight-medium);
3966
+ }
3967
+
3968
+ .NavBar > ul > .NavItem a {
3969
+ font-weight: inherit;
3970
+ }
3971
+
3879
3972
  .NavBar > ul > li:first-child:not(.NavBar__trigger) {
3880
3973
  border-left: 1px solid var(--top-nav-box-shadow-color);
3881
3974
  }
@@ -4042,6 +4135,7 @@ fieldset.Panel {
4042
4135
  display: flex;
4043
4136
  align-items: center;
4044
4137
  font-size: var(--text-size-small);
4138
+ margin: 0;
4045
4139
  }
4046
4140
 
4047
4141
  .Pagination > ul > li:not(:last-child) {
@@ -4092,12 +4186,23 @@ fieldset.Panel {
4092
4186
  color: var(--accent-light);
4093
4187
  }
4094
4188
 
4189
+ @media (max-width: 28.125rem) {
4190
+ .Pagination [role='log'] {
4191
+ margin: 0;
4192
+ }
4193
+
4194
+ .Pagination--thin [role='log'] {
4195
+ margin: 0;
4196
+ }
4197
+ }
4198
+
4095
4199
  .Breadcrumb ol {
4096
4200
  display: flex;
4097
4201
  align-items: center;
4098
4202
  list-style-type: none;
4099
4203
  padding: 0;
4100
4204
  margin: 0;
4205
+ flex-wrap: wrap;
4101
4206
  }
4102
4207
 
4103
4208
  .Breadcrumb__Separator {
@@ -4113,6 +4218,8 @@ fieldset.Panel {
4113
4218
  .Breadcrumb__Item {
4114
4219
  font-weight: 500;
4115
4220
  color: var(--link-text-color);
4221
+ display: flex;
4222
+ flex-wrap: nowrap;
4116
4223
  }
4117
4224
 
4118
4225
  :root {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "4.7.0-canary.fa8e54c5",
3
+ "version": "5.0.0-canary.0645c1f3",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",