@deque/cauldron-styles 5.0.0 → 5.1.0-canary.1a1011cd
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 +167 -37
- package/package.json +2 -2
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: #
|
|
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:
|
|
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;
|
|
@@ -406,6 +423,7 @@ p {
|
|
|
406
423
|
|
|
407
424
|
button.Link {
|
|
408
425
|
cursor: pointer;
|
|
426
|
+
font-size: inherit;
|
|
409
427
|
}
|
|
410
428
|
|
|
411
429
|
.Button--primary:focus,
|
|
@@ -936,8 +954,8 @@ a.IconButton {
|
|
|
936
954
|
}
|
|
937
955
|
|
|
938
956
|
.Dialog__close svg {
|
|
939
|
-
height:
|
|
940
|
-
width:
|
|
957
|
+
height: var(--icon-size);
|
|
958
|
+
width: var(--icon-size);
|
|
941
959
|
}
|
|
942
960
|
|
|
943
961
|
.Dialog__content {
|
|
@@ -1199,8 +1217,8 @@ a.IconButton {
|
|
|
1199
1217
|
.Pointout__dismiss .Icon svg,
|
|
1200
1218
|
.Pointout__next .Icon svg,
|
|
1201
1219
|
.Pointout__previous .Icon svg {
|
|
1202
|
-
height:
|
|
1203
|
-
width:
|
|
1220
|
+
height: var(--icon-size);
|
|
1221
|
+
width: var(--icon-size);
|
|
1204
1222
|
}
|
|
1205
1223
|
|
|
1206
1224
|
.Pointout__dismiss:hover {
|
|
@@ -1823,7 +1841,7 @@ textarea.Field--has-error:focus:hover,
|
|
|
1823
1841
|
|
|
1824
1842
|
:root {
|
|
1825
1843
|
--link-text-color: var(--gray-90);
|
|
1826
|
-
--link-text-color-hover:
|
|
1844
|
+
--link-text-color-hover: #3873a3;
|
|
1827
1845
|
--link-text-color-light: rgba(60, 122, 174, 0.1);
|
|
1828
1846
|
}
|
|
1829
1847
|
|
|
@@ -1856,7 +1874,7 @@ p .Link {
|
|
|
1856
1874
|
margin: 0 2px;
|
|
1857
1875
|
display: inline;
|
|
1858
1876
|
text-decoration: underline;
|
|
1859
|
-
color: var(--
|
|
1877
|
+
color: var(--link-text-color);
|
|
1860
1878
|
font-weight: var(--font-weight-normal);
|
|
1861
1879
|
}
|
|
1862
1880
|
|
|
@@ -1944,7 +1962,8 @@ p .Link {
|
|
|
1944
1962
|
}
|
|
1945
1963
|
|
|
1946
1964
|
.OptionsMenu__list-item:focus {
|
|
1947
|
-
box-shadow: inset 0 0 0
|
|
1965
|
+
box-shadow: inset 0 0 0 1px var(--options-menu-hover-background-color),
|
|
1966
|
+
inset 0 0 0 3px var(--focus);
|
|
1948
1967
|
}
|
|
1949
1968
|
|
|
1950
1969
|
.OptionsMenu__list-item[aria-disabled='true'] {
|
|
@@ -2024,7 +2043,8 @@ p .Link {
|
|
|
2024
2043
|
|
|
2025
2044
|
.Field__select--wrapper {
|
|
2026
2045
|
position: relative;
|
|
2027
|
-
|
|
2046
|
+
width: var(--select-width);
|
|
2047
|
+
max-width: 100%;
|
|
2028
2048
|
}
|
|
2029
2049
|
|
|
2030
2050
|
.arrow-down {
|
|
@@ -2403,6 +2423,8 @@ p .Link {
|
|
|
2403
2423
|
.Toast {
|
|
2404
2424
|
top: var(--top-bar-height);
|
|
2405
2425
|
position: fixed;
|
|
2426
|
+
right: 0;
|
|
2427
|
+
left: 0;
|
|
2406
2428
|
color: #0b0e11;
|
|
2407
2429
|
font-size: var(--text-size-small);
|
|
2408
2430
|
z-index: var(--z-index-toast);
|
|
@@ -2410,8 +2432,11 @@ p .Link {
|
|
|
2410
2432
|
box-sizing: border-box;
|
|
2411
2433
|
display: flex;
|
|
2412
2434
|
padding: 4px 15px;
|
|
2413
|
-
|
|
2414
|
-
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
.Toast.Toast--non-dismissible {
|
|
2438
|
+
position: static;
|
|
2439
|
+
margin-bottom: var(--space-small);
|
|
2415
2440
|
}
|
|
2416
2441
|
|
|
2417
2442
|
.TopBar--thin .Toast {
|
|
@@ -2519,6 +2544,8 @@ p .Link {
|
|
|
2519
2544
|
border-radius: 3px;
|
|
2520
2545
|
z-index: var(--z-index-tooltip);
|
|
2521
2546
|
text-align: center;
|
|
2547
|
+
max-width: calc(100vw - 16px);
|
|
2548
|
+
word-break: break-word;
|
|
2522
2549
|
}
|
|
2523
2550
|
|
|
2524
2551
|
.Tooltip--hidden {
|
|
@@ -3078,12 +3105,26 @@ button.TooltipTabstop {
|
|
|
3078
3105
|
|
|
3079
3106
|
.Code.hljs {
|
|
3080
3107
|
display: block;
|
|
3081
|
-
overflow-x: auto;
|
|
3082
3108
|
padding: 0.5em;
|
|
3083
3109
|
background: var(--gray-20);
|
|
3084
3110
|
color: var(--gray-90);
|
|
3085
3111
|
border: 1px solid var(--gray-40);
|
|
3086
3112
|
color: var(--accent-primary-active);
|
|
3113
|
+
word-break: anywhere;
|
|
3114
|
+
}
|
|
3115
|
+
|
|
3116
|
+
.Code--scrollable {
|
|
3117
|
+
overflow-x: auto;
|
|
3118
|
+
}
|
|
3119
|
+
|
|
3120
|
+
.Code code {
|
|
3121
|
+
/* important needed to override inline styles */
|
|
3122
|
+
white-space: break-spaces !important;
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
.Code--scrollable code {
|
|
3126
|
+
/* important needed to override inline styles */
|
|
3127
|
+
white-space: pre !important;
|
|
3087
3128
|
}
|
|
3088
3129
|
|
|
3089
3130
|
.Code .hljs-comment {
|
|
@@ -3388,11 +3429,10 @@ button.TooltipTabstop {
|
|
|
3388
3429
|
font-size: var(--text-size-smaller);
|
|
3389
3430
|
border: 1px solid var(--tag-border-color);
|
|
3390
3431
|
border-radius: 11px;
|
|
3391
|
-
display: flex;
|
|
3432
|
+
display: inline-flex;
|
|
3392
3433
|
justify-content: center;
|
|
3393
3434
|
align-items: center;
|
|
3394
3435
|
padding: 2px 8px;
|
|
3395
|
-
width: 90px;
|
|
3396
3436
|
font-weight: var(--font-weight-medium);
|
|
3397
3437
|
}
|
|
3398
3438
|
|
|
@@ -3470,7 +3510,6 @@ button.TooltipTabstop {
|
|
|
3470
3510
|
outline-offset: unset;
|
|
3471
3511
|
}
|
|
3472
3512
|
|
|
3473
|
-
.TableHeader,
|
|
3474
3513
|
.TableHeader--sort-ascending,
|
|
3475
3514
|
.TableHeader--sort-descending {
|
|
3476
3515
|
background: var(--table-header-sorting-background-color);
|
|
@@ -3623,6 +3662,7 @@ button.TooltipTabstop {
|
|
|
3623
3662
|
color: var(--data-list-value-text-color);
|
|
3624
3663
|
background-color: var(--data-list-value-background-color);
|
|
3625
3664
|
font-weight: var(--font-weight-normal);
|
|
3665
|
+
word-break: break-word;
|
|
3626
3666
|
}
|
|
3627
3667
|
|
|
3628
3668
|
.DescriptionList__term,
|
|
@@ -3781,39 +3821,94 @@ button.TooltipTabstop {
|
|
|
3781
3821
|
--panel-border-color: var(--gray-40);
|
|
3782
3822
|
--panel-background-color: var(--white);
|
|
3783
3823
|
--panel-heading-color: var(--gray-90);
|
|
3824
|
+
--panel-padding: var(--space-small);
|
|
3825
|
+
--panel-divider-border-color: var(--gray-40);
|
|
3826
|
+
--panel-content-color: var(--gray-80);
|
|
3827
|
+
}
|
|
3828
|
+
|
|
3829
|
+
/* Resets aggressive Chrome user agent styles */
|
|
3830
|
+
|
|
3831
|
+
.Panel > :is(.Panel__Header, .Panel__Content, .Panel__Heading) > *,
|
|
3832
|
+
.Panel:first-child > :not(.Panel__Header, .Panel__Heading, .Panel__Content) {
|
|
3833
|
+
-webkit-margin-before: 0;
|
|
3834
|
+
-webkit-margin-after: 0;
|
|
3835
|
+
margin-block-start: 0;
|
|
3836
|
+
margin-block-end: 0;
|
|
3784
3837
|
}
|
|
3785
3838
|
|
|
3786
3839
|
.Panel {
|
|
3787
|
-
padding: var(--
|
|
3840
|
+
padding: var(--panel-padding);
|
|
3841
|
+
margin: 0;
|
|
3788
3842
|
border: 1px solid var(--panel-border-color);
|
|
3789
3843
|
border-radius: 3px;
|
|
3790
3844
|
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.15);
|
|
3791
3845
|
background-color: var(--panel-background-color);
|
|
3846
|
+
word-break: break-word;
|
|
3847
|
+
color: var(--panel-content-color);
|
|
3792
3848
|
}
|
|
3793
3849
|
|
|
3794
|
-
.
|
|
3795
|
-
.Panel legend {
|
|
3796
|
-
font-size: var(--text-size-medium);
|
|
3797
|
-
color: var(--panel-heading-color);
|
|
3850
|
+
.Panel--no-padding {
|
|
3798
3851
|
padding: 0;
|
|
3799
|
-
margin: 0
|
|
3800
|
-
font-weight: var(--font-weight-bold);
|
|
3852
|
+
margin: 0;
|
|
3801
3853
|
}
|
|
3802
3854
|
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
padding-
|
|
3855
|
+
.Panel__Content {
|
|
3856
|
+
padding: var(--panel-padding);
|
|
3857
|
+
margin: 0 calc(var(--panel-padding) * -1);
|
|
3806
3858
|
}
|
|
3807
3859
|
|
|
3808
|
-
|
|
3860
|
+
.Panel__Heading,
|
|
3861
|
+
.Panel__Header {
|
|
3862
|
+
padding: max(calc(var(--panel-header-padding, var(--panel-padding)) - 4px))
|
|
3863
|
+
var(--panel-header-padding, var(--panel-padding));
|
|
3864
|
+
}
|
|
3865
|
+
|
|
3866
|
+
.Panel__Heading {
|
|
3867
|
+
margin: calc(var(--panel-padding) * -1) calc(var(--panel-padding) * -1)
|
|
3868
|
+
var(--space-small) calc(var(--panel-padding) * -1);
|
|
3869
|
+
}
|
|
3809
3870
|
|
|
3871
|
+
.Panel__Header {
|
|
3872
|
+
margin: calc(var(--panel-padding) * -1) calc(var(--panel-padding) * -1) 0
|
|
3873
|
+
calc(var(--panel-padding) * -1);
|
|
3874
|
+
}
|
|
3875
|
+
|
|
3876
|
+
.Panel--no-padding > :is(.Panel__Heading, .Panel__Header, .Panel__Content) {
|
|
3877
|
+
margin: 0;
|
|
3878
|
+
}
|
|
3879
|
+
|
|
3880
|
+
.Panel__Content--no-padding {
|
|
3881
|
+
--panel-padding: 0;
|
|
3882
|
+
margin: 0 calc(var(--panel-padding) * -1);
|
|
3883
|
+
}
|
|
3884
|
+
|
|
3885
|
+
.Panel
|
|
3886
|
+
:is(.Panel__Header + .Panel__Content, .Panel__Content + .Panel__Content) {
|
|
3887
|
+
border-top: 1px solid var(--panel-divider-border-color);
|
|
3888
|
+
}
|
|
3889
|
+
|
|
3890
|
+
.Panel__Content:last-child {
|
|
3891
|
+
padding-bottom: 0;
|
|
3892
|
+
}
|
|
3893
|
+
|
|
3894
|
+
.Panel--no-padding > .Panel__Content:last-child {
|
|
3895
|
+
padding-bottom: var(--panel-padding);
|
|
3896
|
+
}
|
|
3897
|
+
|
|
3898
|
+
.Panel > .Panel__Heading {
|
|
3899
|
+
border-bottom: 1px solid var(--panel-divider-border-color);
|
|
3900
|
+
}
|
|
3901
|
+
|
|
3902
|
+
.Panel > .Panel__Heading:is(h1, h2, h3, h4, h5, h6),
|
|
3903
|
+
.Panel > :is(.Panel__Header, .Panel__Heading) > :is(h1, h2, h3, h4, h5, h6),
|
|
3810
3904
|
.Panel legend {
|
|
3811
|
-
|
|
3812
|
-
|
|
3905
|
+
font-size: var(--text-size-normal);
|
|
3906
|
+
font-weight: var(--font-weight-medium);
|
|
3907
|
+
color: var(--panel-heading-color);
|
|
3813
3908
|
}
|
|
3814
3909
|
|
|
3815
3910
|
.Panel--collapsed {
|
|
3816
|
-
padding: 12px;
|
|
3911
|
+
--panel-padding: 12px;
|
|
3817
3912
|
}
|
|
3818
3913
|
|
|
3819
3914
|
.Panel--collapsed .Panel__Heading {
|
|
@@ -3821,12 +3916,26 @@ fieldset.Panel {
|
|
|
3821
3916
|
font-size: var(--text-size-normal);
|
|
3822
3917
|
}
|
|
3823
3918
|
|
|
3919
|
+
fieldset.Panel {
|
|
3920
|
+
position: relative;
|
|
3921
|
+
padding-top: 76px;
|
|
3922
|
+
}
|
|
3923
|
+
|
|
3924
|
+
/* reset absurd browser-default legend styles */
|
|
3925
|
+
|
|
3926
|
+
.Panel legend {
|
|
3927
|
+
position: absolute;
|
|
3928
|
+
top: var(--space-large);
|
|
3929
|
+
}
|
|
3930
|
+
|
|
3824
3931
|
/* Dark Theme */
|
|
3825
3932
|
|
|
3826
3933
|
.cauldron--theme-dark {
|
|
3827
|
-
--panel-border-color:
|
|
3934
|
+
--panel-border-color: var(--stroke-dark);
|
|
3828
3935
|
--panel-background-color: var(--accent-medium);
|
|
3829
|
-
--panel-heading-color:
|
|
3936
|
+
--panel-heading-color: #fff;
|
|
3937
|
+
--panel-divider-border-color: var(--stroke-dark);
|
|
3938
|
+
--panel-content-color: var(--accent-light);
|
|
3830
3939
|
}
|
|
3831
3940
|
|
|
3832
3941
|
:root {
|
|
@@ -3937,6 +4046,18 @@ fieldset.Panel {
|
|
|
3937
4046
|
transition: background-color 0.3s ease;
|
|
3938
4047
|
}
|
|
3939
4048
|
|
|
4049
|
+
.NavBar > ul > .NavItem {
|
|
4050
|
+
font-weight: var(--font-weight-normal);
|
|
4051
|
+
}
|
|
4052
|
+
|
|
4053
|
+
.NavBar > ul > .NavItem--active {
|
|
4054
|
+
font-weight: var(--font-weight-medium);
|
|
4055
|
+
}
|
|
4056
|
+
|
|
4057
|
+
.NavBar > ul > .NavItem a {
|
|
4058
|
+
font-weight: inherit;
|
|
4059
|
+
}
|
|
4060
|
+
|
|
3940
4061
|
.NavBar > ul > li:first-child:not(.NavBar__trigger) {
|
|
3941
4062
|
border-left: 1px solid var(--top-nav-box-shadow-color);
|
|
3942
4063
|
}
|
|
@@ -4165,7 +4286,8 @@ fieldset.Panel {
|
|
|
4165
4286
|
}
|
|
4166
4287
|
|
|
4167
4288
|
.Breadcrumb ol {
|
|
4168
|
-
display:
|
|
4289
|
+
display: block;
|
|
4290
|
+
word-break: break-all;
|
|
4169
4291
|
align-items: center;
|
|
4170
4292
|
list-style-type: none;
|
|
4171
4293
|
padding: 0;
|
|
@@ -4180,11 +4302,13 @@ fieldset.Panel {
|
|
|
4180
4302
|
.Breadcrumb__Link {
|
|
4181
4303
|
font-weight: 400;
|
|
4182
4304
|
padding: 0;
|
|
4305
|
+
display: inline;
|
|
4183
4306
|
}
|
|
4184
4307
|
|
|
4185
4308
|
.Breadcrumb__Item {
|
|
4186
4309
|
font-weight: 500;
|
|
4187
4310
|
color: var(--link-text-color);
|
|
4311
|
+
display: inline;
|
|
4188
4312
|
}
|
|
4189
4313
|
|
|
4190
4314
|
:root {
|
|
@@ -4222,13 +4346,15 @@ fieldset.Panel {
|
|
|
4222
4346
|
}
|
|
4223
4347
|
|
|
4224
4348
|
.TwoColumnPanel__Header {
|
|
4225
|
-
|
|
4349
|
+
/* 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 */
|
|
4350
|
+
padding: calc(var(--space-small) - 2px);
|
|
4226
4351
|
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);
|
|
4352
|
+
min-height: var(--two-column-panel-header-height);
|
|
4229
4353
|
font-weight: 500;
|
|
4230
4354
|
color: var(--two-column-panel-header-text-color);
|
|
4231
4355
|
flex: 1;
|
|
4356
|
+
display: flex;
|
|
4357
|
+
align-items: center;
|
|
4232
4358
|
}
|
|
4233
4359
|
|
|
4234
4360
|
.TwoColumnPanel__Left {
|
|
@@ -4365,12 +4491,16 @@ fieldset.Panel {
|
|
|
4365
4491
|
margin-bottom: 0;
|
|
4366
4492
|
}
|
|
4367
4493
|
|
|
4494
|
+
.TwoColumnPanel__ButtonToggle {
|
|
4495
|
+
display: flex;
|
|
4496
|
+
}
|
|
4497
|
+
|
|
4368
4498
|
.TwoColumnPanel__ButtonToggle button,
|
|
4369
4499
|
.TwoColumnPanel__Close button {
|
|
4370
4500
|
background-color: transparent;
|
|
4371
4501
|
border: none;
|
|
4372
4502
|
border-bottom: 1px solid var(--two-column-panel-border-color);
|
|
4373
|
-
height: var(--two-column-panel-header-height);
|
|
4503
|
+
min-height: var(--two-column-panel-header-height);
|
|
4374
4504
|
width: var(--two-column-panel-header-height);
|
|
4375
4505
|
}
|
|
4376
4506
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-styles",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.1.0-canary.1a1011cd",
|
|
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
|
+
}
|