@deque/cauldron-styles 5.0.0-canary.4bf529af → 5.0.0-canary.4c176db1

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 +76 -21
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -37,7 +37,7 @@
37
37
  --accent-primary-active: #316091;
38
38
  --accent-secondary: var(--gray-20);
39
39
  --accent-secondary-active: var(--gray-30);
40
- --focus-light: #c11bde;
40
+ --focus-light: #b51ad1;
41
41
  --focus-dark: #eb94ff;
42
42
  --issue-critical: var(--accent-danger);
43
43
  --issue-serious: var(--accent-warning);
@@ -94,6 +94,9 @@
94
94
  --text-size-smaller: 13px;
95
95
  --text-size-smallest: 12px;
96
96
 
97
+ /* fonts */
98
+ --base-font-family: 'Roboto', Helvetica, Arial, sans-serif;
99
+
97
100
  /* font weight */
98
101
  --font-weight-thin: 100;
99
102
  --font-weight-light: 300;
@@ -102,6 +105,9 @@
102
105
  --font-weight-bold: 700;
103
106
  --font-weight-ultra-bold: 900;
104
107
 
108
+ /* icon sizes */
109
+ --icon-size: 24px;
110
+
105
111
  /* dimensions */
106
112
  --border-width: 6px;
107
113
  --layout-padding: 9px;
@@ -157,7 +163,7 @@ html {
157
163
  }
158
164
 
159
165
  body {
160
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
166
+ font-family: var(--base-font-family);
161
167
  font-style: normal;
162
168
  font-weight: 400;
163
169
  color: var(--text-color-base);
@@ -193,6 +199,11 @@ ul {
193
199
  padding: 0;
194
200
  }
195
201
 
202
+ button {
203
+ font-family: var(--base-font-family);
204
+ font-weight: 500;
205
+ }
206
+
196
207
  button,
197
208
  [role='button'] {
198
209
  display: inline-block;
@@ -942,8 +953,8 @@ a.IconButton {
942
953
  }
943
954
 
944
955
  .Dialog__close svg {
945
- height: 24px;
946
- width: 24px;
956
+ height: var(--icon-size);
957
+ width: var(--icon-size);
947
958
  }
948
959
 
949
960
  .Dialog__content {
@@ -1205,8 +1216,8 @@ a.IconButton {
1205
1216
  .Pointout__dismiss .Icon svg,
1206
1217
  .Pointout__next .Icon svg,
1207
1218
  .Pointout__previous .Icon svg {
1208
- height: 24px;
1209
- width: 24px;
1219
+ height: var(--icon-size);
1220
+ width: var(--icon-size);
1210
1221
  }
1211
1222
 
1212
1223
  .Pointout__dismiss:hover {
@@ -1829,7 +1840,7 @@ textarea.Field--has-error:focus:hover,
1829
1840
 
1830
1841
  :root {
1831
1842
  --link-text-color: var(--gray-90);
1832
- --link-text-color-hover: var(--accent-primary);
1843
+ --link-text-color-hover: #3873a3;
1833
1844
  --link-text-color-light: rgba(60, 122, 174, 0.1);
1834
1845
  }
1835
1846
 
@@ -1862,7 +1873,7 @@ p .Link {
1862
1873
  margin: 0 2px;
1863
1874
  display: inline;
1864
1875
  text-decoration: underline;
1865
- color: var(--gray-90);
1876
+ color: var(--link-text-color);
1866
1877
  font-weight: var(--font-weight-normal);
1867
1878
  }
1868
1879
 
@@ -2031,7 +2042,8 @@ p .Link {
2031
2042
 
2032
2043
  .Field__select--wrapper {
2033
2044
  position: relative;
2034
- min-width: var(--select-width);
2045
+ width: var(--select-width);
2046
+ max-width: 100%;
2035
2047
  }
2036
2048
 
2037
2049
  .arrow-down {
@@ -2410,6 +2422,8 @@ p .Link {
2410
2422
  .Toast {
2411
2423
  top: var(--top-bar-height);
2412
2424
  position: fixed;
2425
+ right: 0;
2426
+ left: 0;
2413
2427
  color: #0b0e11;
2414
2428
  font-size: var(--text-size-small);
2415
2429
  z-index: var(--z-index-toast);
@@ -2417,8 +2431,11 @@ p .Link {
2417
2431
  box-sizing: border-box;
2418
2432
  display: flex;
2419
2433
  padding: 4px 15px;
2420
- right: 0;
2421
- left: 0;
2434
+ }
2435
+
2436
+ .Toast.Toast--non-dismissible {
2437
+ position: static;
2438
+ margin-bottom: var(--space-small);
2422
2439
  }
2423
2440
 
2424
2441
  .TopBar--thin .Toast {
@@ -2526,6 +2543,8 @@ p .Link {
2526
2543
  border-radius: 3px;
2527
2544
  z-index: var(--z-index-tooltip);
2528
2545
  text-align: center;
2546
+ max-width: calc(100vw - 16px);
2547
+ word-break: break-word;
2529
2548
  }
2530
2549
 
2531
2550
  .Tooltip--hidden {
@@ -3085,12 +3104,26 @@ button.TooltipTabstop {
3085
3104
 
3086
3105
  .Code.hljs {
3087
3106
  display: block;
3088
- overflow-x: auto;
3089
3107
  padding: 0.5em;
3090
3108
  background: var(--gray-20);
3091
3109
  color: var(--gray-90);
3092
3110
  border: 1px solid var(--gray-40);
3093
3111
  color: var(--accent-primary-active);
3112
+ word-break: anywhere;
3113
+ }
3114
+
3115
+ .Code--scrollable {
3116
+ overflow-x: auto;
3117
+ }
3118
+
3119
+ .Code code {
3120
+ /* important needed to override inline styles */
3121
+ white-space: break-spaces !important;
3122
+ }
3123
+
3124
+ .Code--scrollable code {
3125
+ /* important needed to override inline styles */
3126
+ white-space: pre !important;
3094
3127
  }
3095
3128
 
3096
3129
  .Code .hljs-comment {
@@ -3395,11 +3428,10 @@ button.TooltipTabstop {
3395
3428
  font-size: var(--text-size-smaller);
3396
3429
  border: 1px solid var(--tag-border-color);
3397
3430
  border-radius: 11px;
3398
- display: flex;
3431
+ display: inline-flex;
3399
3432
  justify-content: center;
3400
3433
  align-items: center;
3401
3434
  padding: 2px 8px;
3402
- width: 90px;
3403
3435
  font-weight: var(--font-weight-medium);
3404
3436
  }
3405
3437
 
@@ -3629,6 +3661,7 @@ button.TooltipTabstop {
3629
3661
  color: var(--data-list-value-text-color);
3630
3662
  background-color: var(--data-list-value-background-color);
3631
3663
  font-weight: var(--font-weight-normal);
3664
+ word-break: break-word;
3632
3665
  }
3633
3666
 
3634
3667
  .DescriptionList__term,
@@ -3787,10 +3820,11 @@ button.TooltipTabstop {
3787
3820
  --panel-border-color: var(--gray-40);
3788
3821
  --panel-background-color: var(--white);
3789
3822
  --panel-heading-color: var(--gray-90);
3823
+ --panel-padding: var(--space-small);
3790
3824
  }
3791
3825
 
3792
3826
  .Panel {
3793
- padding: var(--space-small);
3827
+ padding: var(--panel-padding);
3794
3828
  border: 1px solid var(--panel-border-color);
3795
3829
  border-radius: 3px;
3796
3830
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.15);
@@ -3819,7 +3853,7 @@ fieldset.Panel {
3819
3853
  }
3820
3854
 
3821
3855
  .Panel--collapsed {
3822
- padding: 12px;
3856
+ --panel-padding: 12px;
3823
3857
  }
3824
3858
 
3825
3859
  .Panel--collapsed .Panel__Heading {
@@ -3943,6 +3977,18 @@ fieldset.Panel {
3943
3977
  transition: background-color 0.3s ease;
3944
3978
  }
3945
3979
 
3980
+ .NavBar > ul > .NavItem {
3981
+ font-weight: var(--font-weight-normal);
3982
+ }
3983
+
3984
+ .NavBar > ul > .NavItem--active {
3985
+ font-weight: var(--font-weight-medium);
3986
+ }
3987
+
3988
+ .NavBar > ul > .NavItem a {
3989
+ font-weight: inherit;
3990
+ }
3991
+
3946
3992
  .NavBar > ul > li:first-child:not(.NavBar__trigger) {
3947
3993
  border-left: 1px solid var(--top-nav-box-shadow-color);
3948
3994
  }
@@ -4171,7 +4217,8 @@ fieldset.Panel {
4171
4217
  }
4172
4218
 
4173
4219
  .Breadcrumb ol {
4174
- display: flex;
4220
+ display: block;
4221
+ word-break: break-all;
4175
4222
  align-items: center;
4176
4223
  list-style-type: none;
4177
4224
  padding: 0;
@@ -4186,11 +4233,13 @@ fieldset.Panel {
4186
4233
  .Breadcrumb__Link {
4187
4234
  font-weight: 400;
4188
4235
  padding: 0;
4236
+ display: inline;
4189
4237
  }
4190
4238
 
4191
4239
  .Breadcrumb__Item {
4192
4240
  font-weight: 500;
4193
4241
  color: var(--link-text-color);
4242
+ display: inline;
4194
4243
  }
4195
4244
 
4196
4245
  :root {
@@ -4228,13 +4277,15 @@ fieldset.Panel {
4228
4277
  }
4229
4278
 
4230
4279
  .TwoColumnPanel__Header {
4231
- padding: 0 var(--space-small);
4280
+ /* 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 */
4281
+ padding: calc(var(--space-small) - 2px);
4232
4282
  border-bottom: 1px solid var(--two-column-panel-border-color);
4233
- height: var(--two-column-panel-header-height);
4234
- line-height: var(--two-column-panel-header-height);
4283
+ min-height: var(--two-column-panel-header-height);
4235
4284
  font-weight: 500;
4236
4285
  color: var(--two-column-panel-header-text-color);
4237
4286
  flex: 1;
4287
+ display: flex;
4288
+ align-items: center;
4238
4289
  }
4239
4290
 
4240
4291
  .TwoColumnPanel__Left {
@@ -4371,12 +4422,16 @@ fieldset.Panel {
4371
4422
  margin-bottom: 0;
4372
4423
  }
4373
4424
 
4425
+ .TwoColumnPanel__ButtonToggle {
4426
+ display: flex;
4427
+ }
4428
+
4374
4429
  .TwoColumnPanel__ButtonToggle button,
4375
4430
  .TwoColumnPanel__Close button {
4376
4431
  background-color: transparent;
4377
4432
  border: none;
4378
4433
  border-bottom: 1px solid var(--two-column-panel-border-color);
4379
- height: var(--two-column-panel-header-height);
4434
+ min-height: var(--two-column-panel-header-height);
4380
4435
  width: var(--two-column-panel-header-height);
4381
4436
  }
4382
4437
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "5.0.0-canary.4bf529af",
3
+ "version": "5.0.0-canary.4c176db1",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",