@deque/cauldron-styles 5.0.0-canary.09ebdf83 → 5.0.0-canary.1b864dfc

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 +69 -22
  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;
@@ -36,7 +37,7 @@
36
37
  --accent-primary-active: #316091;
37
38
  --accent-secondary: var(--gray-20);
38
39
  --accent-secondary-active: var(--gray-30);
39
- --focus-light: #c11bde;
40
+ --focus-light: #b51ad1;
40
41
  --focus-dark: #eb94ff;
41
42
  --issue-critical: var(--accent-danger);
42
43
  --issue-serious: var(--accent-warning);
@@ -50,6 +51,9 @@
50
51
  --header-text-color: var(--gray-80);
51
52
  --header-text-color-dark: var(--gray-90);
52
53
 
54
+ /* background colours */
55
+ --background-light: #f0f2f5;
56
+
53
57
  /* accents */
54
58
  --error: var(--accent-error);
55
59
  --disabled: var(--gray-40);
@@ -66,6 +70,7 @@
66
70
 
67
71
  /* spacing (padding/margin) */
68
72
  --space-smallest: 8px;
73
+ --space-smaller: 12px;
69
74
  --space-small: 16px;
70
75
  --space-medium: 18px;
71
76
  --space-large: 24px;
@@ -81,6 +86,7 @@
81
86
  --text-size-larger: 56px;
82
87
  --text-size-large: 45px;
83
88
  --text-size-large-medium: 34px;
89
+ --text-size-medium-large: 32px;
84
90
  --text-size-medium: 24px;
85
91
  --text-small-medium: 20px;
86
92
  --text-size-normal: 18px;
@@ -88,6 +94,9 @@
88
94
  --text-size-smaller: 13px;
89
95
  --text-size-smallest: 12px;
90
96
 
97
+ /* fonts */
98
+ --base-font-family: 'Roboto', Helvetica, Arial, sans-serif;
99
+
91
100
  /* font weight */
92
101
  --font-weight-thin: 100;
93
102
  --font-weight-light: 300;
@@ -96,6 +105,9 @@
96
105
  --font-weight-bold: 700;
97
106
  --font-weight-ultra-bold: 900;
98
107
 
108
+ /* icon sizes */
109
+ --icon-size: 24px;
110
+
99
111
  /* dimensions */
100
112
  --border-width: 6px;
101
113
  --layout-padding: 9px;
@@ -151,7 +163,7 @@ html {
151
163
  }
152
164
 
153
165
  body {
154
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
166
+ font-family: var(--base-font-family);
155
167
  font-style: normal;
156
168
  font-weight: 400;
157
169
  color: var(--text-color-base);
@@ -187,6 +199,11 @@ ul {
187
199
  padding: 0;
188
200
  }
189
201
 
202
+ button {
203
+ font-family: var(--base-font-family);
204
+ font-weight: 500;
205
+ }
206
+
190
207
  button,
191
208
  [role='button'] {
192
209
  display: inline-block;
@@ -936,8 +953,8 @@ a.IconButton {
936
953
  }
937
954
 
938
955
  .Dialog__close svg {
939
- height: 24px;
940
- width: 24px;
956
+ height: var(--icon-size);
957
+ width: var(--icon-size);
941
958
  }
942
959
 
943
960
  .Dialog__content {
@@ -1199,8 +1216,8 @@ a.IconButton {
1199
1216
  .Pointout__dismiss .Icon svg,
1200
1217
  .Pointout__next .Icon svg,
1201
1218
  .Pointout__previous .Icon svg {
1202
- height: 24px;
1203
- width: 24px;
1219
+ height: var(--icon-size);
1220
+ width: var(--icon-size);
1204
1221
  }
1205
1222
 
1206
1223
  .Pointout__dismiss:hover {
@@ -1823,7 +1840,7 @@ textarea.Field--has-error:focus:hover,
1823
1840
 
1824
1841
  :root {
1825
1842
  --link-text-color: var(--gray-90);
1826
- --link-text-color-hover: var(--accent-primary);
1843
+ --link-text-color-hover: #3873a3;
1827
1844
  --link-text-color-light: rgba(60, 122, 174, 0.1);
1828
1845
  }
1829
1846
 
@@ -1856,7 +1873,7 @@ p .Link {
1856
1873
  margin: 0 2px;
1857
1874
  display: inline;
1858
1875
  text-decoration: underline;
1859
- color: var(--gray-90);
1876
+ color: var(--link-text-color);
1860
1877
  font-weight: var(--font-weight-normal);
1861
1878
  }
1862
1879
 
@@ -1944,7 +1961,8 @@ p .Link {
1944
1961
  }
1945
1962
 
1946
1963
  .OptionsMenu__list-item:focus {
1947
- 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);
1948
1966
  }
1949
1967
 
1950
1968
  .OptionsMenu__list-item[aria-disabled='true'] {
@@ -2024,7 +2042,8 @@ p .Link {
2024
2042
 
2025
2043
  .Field__select--wrapper {
2026
2044
  position: relative;
2027
- min-width: var(--select-width);
2045
+ width: var(--select-width);
2046
+ max-width: 100%;
2028
2047
  }
2029
2048
 
2030
2049
  .arrow-down {
@@ -2403,6 +2422,8 @@ p .Link {
2403
2422
  .Toast {
2404
2423
  top: var(--top-bar-height);
2405
2424
  position: fixed;
2425
+ right: 0;
2426
+ left: 0;
2406
2427
  color: #0b0e11;
2407
2428
  font-size: var(--text-size-small);
2408
2429
  z-index: var(--z-index-toast);
@@ -2410,8 +2431,11 @@ p .Link {
2410
2431
  box-sizing: border-box;
2411
2432
  display: flex;
2412
2433
  padding: 4px 15px;
2413
- right: 0;
2414
- left: 0;
2434
+ }
2435
+
2436
+ .Toast.Toast--non-dismissible {
2437
+ position: static;
2438
+ margin-bottom: var(--space-small);
2415
2439
  }
2416
2440
 
2417
2441
  .TopBar--thin .Toast {
@@ -2519,6 +2543,8 @@ p .Link {
2519
2543
  border-radius: 3px;
2520
2544
  z-index: var(--z-index-tooltip);
2521
2545
  text-align: center;
2546
+ max-width: calc(100vw - 16px);
2547
+ word-break: break-word;
2522
2548
  }
2523
2549
 
2524
2550
  .Tooltip--hidden {
@@ -3388,11 +3414,10 @@ button.TooltipTabstop {
3388
3414
  font-size: var(--text-size-smaller);
3389
3415
  border: 1px solid var(--tag-border-color);
3390
3416
  border-radius: 11px;
3391
- display: flex;
3417
+ display: inline-flex;
3392
3418
  justify-content: center;
3393
3419
  align-items: center;
3394
3420
  padding: 2px 8px;
3395
- width: 90px;
3396
3421
  font-weight: var(--font-weight-medium);
3397
3422
  }
3398
3423
 
@@ -3470,7 +3495,6 @@ button.TooltipTabstop {
3470
3495
  outline-offset: unset;
3471
3496
  }
3472
3497
 
3473
- .TableHeader,
3474
3498
  .TableHeader--sort-ascending,
3475
3499
  .TableHeader--sort-descending {
3476
3500
  background: var(--table-header-sorting-background-color);
@@ -3623,6 +3647,7 @@ button.TooltipTabstop {
3623
3647
  color: var(--data-list-value-text-color);
3624
3648
  background-color: var(--data-list-value-background-color);
3625
3649
  font-weight: var(--font-weight-normal);
3650
+ word-break: break-word;
3626
3651
  }
3627
3652
 
3628
3653
  .DescriptionList__term,
@@ -3781,10 +3806,11 @@ button.TooltipTabstop {
3781
3806
  --panel-border-color: var(--gray-40);
3782
3807
  --panel-background-color: var(--white);
3783
3808
  --panel-heading-color: var(--gray-90);
3809
+ --panel-padding: var(--space-small);
3784
3810
  }
3785
3811
 
3786
3812
  .Panel {
3787
- padding: var(--space-small);
3813
+ padding: var(--panel-padding);
3788
3814
  border: 1px solid var(--panel-border-color);
3789
3815
  border-radius: 3px;
3790
3816
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.15);
@@ -3813,7 +3839,7 @@ fieldset.Panel {
3813
3839
  }
3814
3840
 
3815
3841
  .Panel--collapsed {
3816
- padding: 12px;
3842
+ --panel-padding: 12px;
3817
3843
  }
3818
3844
 
3819
3845
  .Panel--collapsed .Panel__Heading {
@@ -3937,6 +3963,18 @@ fieldset.Panel {
3937
3963
  transition: background-color 0.3s ease;
3938
3964
  }
3939
3965
 
3966
+ .NavBar > ul > .NavItem {
3967
+ font-weight: var(--font-weight-normal);
3968
+ }
3969
+
3970
+ .NavBar > ul > .NavItem--active {
3971
+ font-weight: var(--font-weight-medium);
3972
+ }
3973
+
3974
+ .NavBar > ul > .NavItem a {
3975
+ font-weight: inherit;
3976
+ }
3977
+
3940
3978
  .NavBar > ul > li:first-child:not(.NavBar__trigger) {
3941
3979
  border-left: 1px solid var(--top-nav-box-shadow-color);
3942
3980
  }
@@ -4165,7 +4203,8 @@ fieldset.Panel {
4165
4203
  }
4166
4204
 
4167
4205
  .Breadcrumb ol {
4168
- display: flex;
4206
+ display: block;
4207
+ word-break: break-all;
4169
4208
  align-items: center;
4170
4209
  list-style-type: none;
4171
4210
  padding: 0;
@@ -4180,11 +4219,13 @@ fieldset.Panel {
4180
4219
  .Breadcrumb__Link {
4181
4220
  font-weight: 400;
4182
4221
  padding: 0;
4222
+ display: inline;
4183
4223
  }
4184
4224
 
4185
4225
  .Breadcrumb__Item {
4186
4226
  font-weight: 500;
4187
4227
  color: var(--link-text-color);
4228
+ display: inline;
4188
4229
  }
4189
4230
 
4190
4231
  :root {
@@ -4222,13 +4263,15 @@ fieldset.Panel {
4222
4263
  }
4223
4264
 
4224
4265
  .TwoColumnPanel__Header {
4225
- padding: 0 var(--space-small);
4266
+ /* The -2px is to account for the borders that are outside of the element and will make it line up with the left panel when there's only one line of text */
4267
+ padding: calc(var(--space-small) - 2px);
4226
4268
  border-bottom: 1px solid var(--two-column-panel-border-color);
4227
- height: var(--two-column-panel-header-height);
4228
- line-height: var(--two-column-panel-header-height);
4269
+ min-height: var(--two-column-panel-header-height);
4229
4270
  font-weight: 500;
4230
4271
  color: var(--two-column-panel-header-text-color);
4231
4272
  flex: 1;
4273
+ display: flex;
4274
+ align-items: center;
4232
4275
  }
4233
4276
 
4234
4277
  .TwoColumnPanel__Left {
@@ -4365,12 +4408,16 @@ fieldset.Panel {
4365
4408
  margin-bottom: 0;
4366
4409
  }
4367
4410
 
4411
+ .TwoColumnPanel__ButtonToggle {
4412
+ display: flex;
4413
+ }
4414
+
4368
4415
  .TwoColumnPanel__ButtonToggle button,
4369
4416
  .TwoColumnPanel__Close button {
4370
4417
  background-color: transparent;
4371
4418
  border: none;
4372
4419
  border-bottom: 1px solid var(--two-column-panel-border-color);
4373
- height: var(--two-column-panel-header-height);
4420
+ min-height: var(--two-column-panel-header-height);
4374
4421
  width: var(--two-column-panel-header-height);
4375
4422
  }
4376
4423
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "5.0.0-canary.09ebdf83",
3
+ "version": "5.0.0-canary.1b864dfc",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",