@workday/canvas-kit-css 14.0.0-alpha.1168-next.0 → 14.0.0-alpha.1171-next.0
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/action-bar.css +32 -0
- package/avatar.css +186 -0
- package/badge.css +38 -0
- package/banner.css +95 -0
- package/breadcrumbs.css +98 -0
- package/button.css +757 -0
- package/card.css +34 -0
- package/checkbox.css +242 -0
- package/collection.css +25 -0
- package/color-picker.css +87 -0
- package/combobox.css +4 -0
- package/common.css +54 -0
- package/expandable.css +97 -0
- package/form-field.css +196 -0
- package/icon.css +165 -0
- package/loading-dots.css +47 -0
- package/menu.css +155 -0
- package/modal.css +108 -0
- package/package.json +2 -2
- package/pagination.css +143 -0
- package/popup.css +72 -0
- package/segmented-control.css +75 -0
- package/select.css +53 -0
- package/skeleton.css +73 -0
- package/switch.css +93 -0
- package/table.css +132 -0
- package/tabs.css +123 -0
- package/text-area.css +30 -0
- package/text-input.css +148 -0
- package/text.css +189 -0
- package/toast.css +42 -0
- package/tooltip.css +79 -0
package/form-field.css
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
.cnvs-form-field-label {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
font-weight: var(--cnvs-sys-font-weight-medium);
|
|
4
|
+
color: var(--cnvs-sys-color-text-default);
|
|
5
|
+
padding-inline-start: var(--cnvs-sys-space-zero);
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
min-width: 11.25rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
.cnvs-form-field-label.is-required::after {
|
|
13
|
+
content: "*";
|
|
14
|
+
font-size: var(--cnvs-sys-font-size-body-large);
|
|
15
|
+
font-weight: var(--cnvs-sys-font-weight-normal);
|
|
16
|
+
color: var(--cnvs-brand-error-base);
|
|
17
|
+
text-decoration: unset;
|
|
18
|
+
margin-inline-start: var(--cnvs-sys-space-x1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
.cnvs-form-field-label.orientation-horizontal-start {
|
|
23
|
+
justify-content: flex-start;
|
|
24
|
+
float: left;
|
|
25
|
+
max-height: var(--cnvs-sys-space-x10);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
.cnvs-form-field-label.orientation-horizontal-end {
|
|
30
|
+
max-height: var(--cnvs-sys-space-x10);
|
|
31
|
+
float: left;
|
|
32
|
+
justify-content: flex-end;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
.cnvs-form-field-label.orientation-vertical {
|
|
37
|
+
width: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
.cnvs-form-field-label.is-hidden {
|
|
42
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
43
|
+
clip-path: polygon(0px 0px, 0px 0px, 0px 0px, 0px 0px);
|
|
44
|
+
position: absolute;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
height: 1px;
|
|
48
|
+
min-height: 1px;
|
|
49
|
+
width: 1px;
|
|
50
|
+
min-width: 1px;
|
|
51
|
+
margin: -1px;
|
|
52
|
+
padding: 0;
|
|
53
|
+
border: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
.cnvs-form-field-hint {
|
|
58
|
+
box-sizing: border-box;
|
|
59
|
+
margin: var(--cnvs-sys-space-zero);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
.cnvs-form-field-hint.error-error {
|
|
64
|
+
color: var(--cnvs-brand-error-base);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
.cnvs-form-field-hint.error-alert {
|
|
69
|
+
color: var(--cnvs-sys-color-text-caution-default);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
.cnvs-form-field-container {
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
gap: var(--cnvs-sys-space-x2);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
.cnvs-form-field {
|
|
82
|
+
box-sizing: border-box;
|
|
83
|
+
display: flex;
|
|
84
|
+
border: none;
|
|
85
|
+
padding: var(--cnvs-sys-space-zero);
|
|
86
|
+
margin: var(--cnvs-sys-space-zero) var(--cnvs-sys-space-zero) var(--cnvs-sys-space-x6);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
.cnvs-form-field.grow {
|
|
91
|
+
width: 100%;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.cnvs-form-field.grow [data-width="ck-formfield-width"] {
|
|
95
|
+
width: 100%;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.cnvs-form-field.grow:has(div[data-width="ck-formfield-width"]) {
|
|
99
|
+
width: 100%;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
.cnvs-form-field.orientation-horizontal-start {
|
|
104
|
+
flex-direction: row;
|
|
105
|
+
gap: var(--cnvs-sys-space-x8);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
.cnvs-form-field.orientation-horizontal-end {
|
|
110
|
+
flex-direction: row;
|
|
111
|
+
gap: var(--cnvs-sys-space-x8);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
.cnvs-form-field.orientation-vertical {
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
gap: var(--cnvs-sys-space-x1);
|
|
118
|
+
align-items: flex-start;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
.cnvs-form-field-field {
|
|
126
|
+
box-sizing: border-box;
|
|
127
|
+
display: flex;
|
|
128
|
+
flex-direction: column;
|
|
129
|
+
gap: var(--cnvs-sys-space-x2);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
.cnvs-form-field-group-list {
|
|
134
|
+
box-sizing: border-box;
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
border-radius: var(--cnvs-sys-shape-x1-half);
|
|
138
|
+
gap: var(--cnvs-sys-space-x2);
|
|
139
|
+
padding: 0.625rem var(--cnvs-sys-space-x3) var(--cnvs-sys-space-x2);
|
|
140
|
+
margin: 0 calc(var(--cnvs-sys-space-x3) * -1);
|
|
141
|
+
transition: 100ms box-shadow;
|
|
142
|
+
width: fit-content;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
.cnvs-form-field-group-list.error-error {
|
|
147
|
+
background-color: var(--cnvs-brand-error-lightest);
|
|
148
|
+
box-shadow: inset 0 0 0 0.125rem var(--cnvs-brand-common-error-inner);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
.cnvs-form-field-group-list.error-alert {
|
|
153
|
+
background-color: var(--cnvs-brand-alert-lightest);
|
|
154
|
+
box-shadow: inset 0 0 0 0.0625rem var(--cnvs-brand-common-alert-outer),inset 0 0 0 0.1875rem var(--cnvs-brand-common-alert-inner);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
.cnvs-form-field-group-label {
|
|
159
|
+
box-sizing: border-box;
|
|
160
|
+
font-weight: var(--cnvs-sys-font-weight-medium);
|
|
161
|
+
color: var(--cnvs-sys-color-text-default);
|
|
162
|
+
padding-inline-start: var(--cnvs-sys-space-zero);
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
min-width: 11.25rem;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
.cnvs-form-field-group-label.is-required::after {
|
|
170
|
+
content: "*";
|
|
171
|
+
font-size: var(--cnvs-sys-font-size-body-large);
|
|
172
|
+
font-weight: var(--cnvs-sys-font-weight-normal);
|
|
173
|
+
color: var(--cnvs-brand-error-base);
|
|
174
|
+
text-decoration: unset;
|
|
175
|
+
margin-inline-start: var(--cnvs-sys-space-x1);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
.cnvs-form-field-group-label.orientation-vertical {
|
|
180
|
+
width: 100%;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
.cnvs-form-field-group-label.orientation-horizontal-start {
|
|
185
|
+
justify-content: flex-start;
|
|
186
|
+
float: left;
|
|
187
|
+
max-height: var(--cnvs-sys-space-x10);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
.cnvs-form-field-group-label.orientation-horizontal-end {
|
|
192
|
+
max-height: var(--cnvs-sys-space-x10);
|
|
193
|
+
float: left;
|
|
194
|
+
justify-content: flex-end;
|
|
195
|
+
}
|
|
196
|
+
|
package/icon.css
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
.cnvs-svg {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.cnvs-svg >svg {
|
|
7
|
+
display: block;
|
|
8
|
+
width: var(--cnvs-svg-width, var(--cnvs-svg-size));
|
|
9
|
+
height: var(--cnvs-svg-height, var(--cnvs-svg-size));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
.cnvs-svg.should-mirror {
|
|
14
|
+
transform: scaleX(-1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
.cnvs-accent-icon {
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
--cnvs-svg-size: 3.5rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cnvs-accent-icon .color-500 {
|
|
24
|
+
fill: var(--cnvs-accent-icon-color, var(--cnvs-sys-color-bg-primary-strong));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.cnvs-accent-icon .french-vanilla-100 {
|
|
28
|
+
fill: var(--cnvs-sys-color-bg-default);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
.cnvs-accent-icon.transparent .french-vanilla-100 {
|
|
33
|
+
fill: transparent;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
.cnvs-applet-icon {
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
--cnvs-svg-size: 5.75rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.cnvs-applet-icon .color-100 {
|
|
43
|
+
fill: var(--cnvs-sys-color-fg-inverse);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.cnvs-applet-icon .color-200 {
|
|
47
|
+
fill: var(--cnvs-applet-icon-color200, var(--cnvs-base-palette-blue-200));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.cnvs-applet-icon .color-300 {
|
|
51
|
+
fill: var(--cnvs-applet-icon-color300, var(--cnvs-base-palette-blue-400));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.cnvs-applet-icon .color-400 {
|
|
55
|
+
fill: var(--cnvs-applet-icon-color400, var(--cnvs-base-palette-blue-600));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.cnvs-applet-icon .color-400-alpha-20 {
|
|
59
|
+
fill: var(--cnvs-applet-icon-color400, var(--cnvs-base-palette-blue-600));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.cnvs-applet-icon .color-500 {
|
|
63
|
+
fill: var(--cnvs-applet-icon-color500, var(--cnvs-base-palette-blue-700));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
.cnvs-system-icon {
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.cnvs-system-icon svg {
|
|
72
|
+
width: var(--cnvs-svg-width, var(--cnvs-svg-size, var(--cnvs-sys-space-x6)));
|
|
73
|
+
height: var(--cnvs-svg-height, var(--cnvs-svg-size, var(--cnvs-sys-space-x6)));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.cnvs-system-icon .wd-icon-fill {
|
|
77
|
+
fill: var(--cnvs-system-icon-color, var(--cnvs-sys-color-icon-default));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.cnvs-system-icon .wd-icon-accent, .cnvs-system-icon .wd-icon-accent2 {
|
|
81
|
+
fill: var(--cnvs-system-icon-accent-color, var(--cnvs-system-icon-color, var(--cnvs-sys-color-fg-default)));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.cnvs-system-icon .wd-icon-background {
|
|
85
|
+
fill: var(--cnvs-system-icon-background-color, transparent);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.cnvs-system-icon:where(:hover, .hover) .wd-icon-fill {
|
|
89
|
+
fill: var(--cnvs-deprecated-system-icon-fill-hover, var(--cnvs-deprecated-system-icon-color-hover, var(--cnvs-system-icon-color, var(--cnvs-sys-color-fg-default))));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.cnvs-system-icon:where(:hover, .hover) .wd-icon-accent, .cnvs-system-icon .wd-icon-accent2 {
|
|
93
|
+
fill: var(--cnvs-deprecated-system-icon-accent-hover, var(--cnvs-deprecated-system-icon-color-hover, var(--cnvs-system-icon-accent-color, var(--cnvs-system-icon-color, var(--cnvs-sys-color-fg-default)))));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.cnvs-system-icon:where(:hover, .hover) .wd-icon-background {
|
|
97
|
+
fill: var(--cnvs-deprecated-system-icon-background-hover, var(--cnvs-system-icon-background-color, transparent));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media (prefers-contrast: more) {
|
|
101
|
+
.cnvs-system-icon .wd-icon-fill, .cnvs-system-icon .wd-icon-accent {
|
|
102
|
+
color: currentColor;
|
|
103
|
+
fill: currentColor;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
.cnvs-system-icon-circle {
|
|
111
|
+
box-sizing: border-box;
|
|
112
|
+
background: var(--cnvs-system-icon-circle-background, var(--cnvs-sys-color-bg-alt-soft));
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
padding: var(--cnvs-sys-space-zero);
|
|
117
|
+
border: none;
|
|
118
|
+
border-radius: var(--cnvs-sys-shape-round);
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
width: var(--cnvs-system-icon-circle-container-size, var(--cnvs-sys-space-x10));
|
|
121
|
+
height: var(--cnvs-system-icon-circle-container-size, var(--cnvs-sys-space-x10));
|
|
122
|
+
--cnvs-svg-size: calc(var(--cnvs-system-icon-circle-container-size, var(--cnvs-sys-space-x10)) * 0.625);
|
|
123
|
+
--cnvs-system-icon-color: var(--cnvs-system-icon-circle-color);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.cnvs-system-icon-circle img {
|
|
127
|
+
width: 100%;
|
|
128
|
+
height: 100%;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
.cnvs-graphic {
|
|
133
|
+
box-sizing: border-box;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
.cnvs-graphic.grow {
|
|
138
|
+
width: 100%;
|
|
139
|
+
--cnvs-svg-width: 100%;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
.cnvs-graphic-image {
|
|
144
|
+
box-sizing: border-box;
|
|
145
|
+
width: var(--cnvs-graphic-image-width);
|
|
146
|
+
height: var(--cnvs-graphic-image-height);
|
|
147
|
+
display: inline-block;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.cnvs-graphic-image [data-part="graphic-img"] {
|
|
151
|
+
width: var(--cnvs-graphic-image-width);
|
|
152
|
+
height: var(--cnvs-graphic-image-height);
|
|
153
|
+
max-width: 100%;
|
|
154
|
+
max-height: 100%;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
.cnvs-graphic-image.grow {
|
|
159
|
+
width: 100%;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.cnvs-graphic-image.grow [data-part="graphic-img"] {
|
|
163
|
+
width: 100%;
|
|
164
|
+
}
|
|
165
|
+
|
package/loading-dots.css
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@keyframes animation-3v3m9s {
|
|
2
|
+
0%, 80%, 100% {
|
|
3
|
+
transform: scale(0);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
40% {
|
|
7
|
+
transform: scale(1);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.cnvs-loading-dots {
|
|
13
|
+
--cnvs-loading-dots-animation-duration-ms: 40ms;
|
|
14
|
+
--cnvs-loading-dots-loading-dot-color: var(--cnvs-sys-color-bg-alt-strong);
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
gap: var(--cnvs-sys-space-x2);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.cnvs-loading-dots [data-part="loading-animation-dot"] {
|
|
21
|
+
background-color: var(--cnvs-loading-dots-loading-dot-color);
|
|
22
|
+
width: var(--cnvs-sys-space-x4);
|
|
23
|
+
height: var(--cnvs-sys-space-x4);
|
|
24
|
+
font-size: var(--cnvs-sys-space-zero);
|
|
25
|
+
border-radius: var(--cnvs-sys-shape-round);
|
|
26
|
+
outline: 0.125rem solid transparent;
|
|
27
|
+
transform: scale(0);
|
|
28
|
+
display: inline-block;
|
|
29
|
+
animation-name: animation-3v3m9s;
|
|
30
|
+
animation-duration: calc(var(--cnvs-loading-dots-animation-duration-ms) * 35);
|
|
31
|
+
animation-iteration-count: infinite;
|
|
32
|
+
animation-timing-function: ease-in-out;
|
|
33
|
+
animation-fill-mode: both;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.cnvs-loading-dots [data-part="loading-animation-dot"]:nth-child(1) {
|
|
37
|
+
animation-delay: 0ms;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.cnvs-loading-dots [data-part="loading-animation-dot"]:nth-child(2) {
|
|
41
|
+
animation-delay: calc(var(--cnvs-loading-dots-animation-duration-ms) * 4);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.cnvs-loading-dots [data-part="loading-animation-dot"]:nth-child(3) {
|
|
45
|
+
animation-delay: calc(var(--cnvs-loading-dots-animation-duration-ms) * 8);
|
|
46
|
+
}
|
|
47
|
+
|
package/menu.css
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
.cnvs-menu-item {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
font-family: var(--cnvs-sys-font-family-default);
|
|
4
|
+
font-weight: var(--cnvs-sys-font-weight-normal);
|
|
5
|
+
line-height: var(--cnvs-sys-line-height-subtext-large);
|
|
6
|
+
font-size: var(--cnvs-sys-font-size-subtext-large);
|
|
7
|
+
letter-spacing: var(--cnvs-base-letter-spacing-150);
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
width: 100%;
|
|
11
|
+
gap: var(--cnvs-sys-space-x4);
|
|
12
|
+
padding: var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x4);
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
color: var(--cnvs-sys-color-fg-default);
|
|
15
|
+
border-width: 0;
|
|
16
|
+
text-align: start;
|
|
17
|
+
transition: background-color 80ms,color 80ms;
|
|
18
|
+
background-color: inherit;
|
|
19
|
+
min-height: var(--cnvs-sys-space-x10);
|
|
20
|
+
overflow-wrap: anywhere;
|
|
21
|
+
--cnvs-system-icon-color: currentcolor;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.cnvs-menu-item :where([data-part="menu-item-selected"]) {
|
|
25
|
+
transition: opacity 80ms linear;
|
|
26
|
+
opacity: var(--cnvs-sys-opacity-zero);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.cnvs-menu-item:where(:has(span)) {
|
|
30
|
+
display: flex;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.cnvs-menu-item[aria-selected=true] {
|
|
34
|
+
color: var(--cnvs-brand-primary-dark);
|
|
35
|
+
background-color: var(--cnvs-brand-primary-lightest);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.cnvs-menu-item[aria-selected=true] :where([data-part="menu-item-selected"]) {
|
|
39
|
+
opacity: var(--cnvs-sys-opacity-full);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.cnvs-menu-item[aria-selected=true]:where(.focus, :focus) {
|
|
43
|
+
--cnvs-system-icon-color: var(--cnvs-brand-primary-accent);
|
|
44
|
+
outline: none;
|
|
45
|
+
background-color: var(--cnvs-brand-primary-base);
|
|
46
|
+
color: var(--cnvs-system-icon-color);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.cnvs-menu-item:is(.hover, :hover) {
|
|
50
|
+
color: var(--cnvs-sys-color-fg-strong);
|
|
51
|
+
background-color: var(--cnvs-brand-neutral-lightest);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.cnvs-menu-item:is(.focus, :focus) {
|
|
55
|
+
color: var(--cnvs-brand-primary-accent);
|
|
56
|
+
background-color: var(--cnvs-brand-primary-base);
|
|
57
|
+
outline: 0.125rem solid transparent;
|
|
58
|
+
outline-offset: -0.125rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.cnvs-menu-item:is(:disabled, [aria-disabled=true]) {
|
|
62
|
+
color: var(--cnvs-sys-color-fg-disabled);
|
|
63
|
+
cursor: default;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.cnvs-menu-item:is(:disabled, [aria-disabled=true]):where(.focus, :focus) {
|
|
67
|
+
color: var(--cnvs-sys-color-fg-inverse);
|
|
68
|
+
background-color: var(--cnvs-brand-primary-light);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.cnvs-menu-item:is(:disabled, [aria-disabled=true]):where(.hover, :hover, [aria-selected=true]) {
|
|
72
|
+
background: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.cnvs-menu-item :where([data-part="menu-item-text"]) {
|
|
76
|
+
flex-grow: 1;
|
|
77
|
+
align-self: center;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.cnvs-menu-item :where([data-part="menu-item-icon"]) {
|
|
81
|
+
align-self: start;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
.cnvs-menu-card {
|
|
86
|
+
--cnvs-menu-card-min-width: 0.0625rem;
|
|
87
|
+
--cnvs-menu-card-transform-origin-vertical: top;
|
|
88
|
+
--cnvs-menu-card-transform-origin-horizontal: left;
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
font-family: var(--cnvs-sys-font-family-default);
|
|
91
|
+
font-weight: var(--cnvs-sys-font-weight-normal);
|
|
92
|
+
line-height: var(--cnvs-sys-line-height-subtext-large);
|
|
93
|
+
font-size: var(--cnvs-sys-font-size-subtext-large);
|
|
94
|
+
letter-spacing: var(--cnvs-base-letter-spacing-150);
|
|
95
|
+
color: var(--cnvs-sys-color-text-default);
|
|
96
|
+
position: relative;
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
transition: transform ease-out 150ms;
|
|
100
|
+
padding: var(--cnvs-sys-space-zero);
|
|
101
|
+
max-width: calc(100vw - var(--cnvs-sys-space-x8));
|
|
102
|
+
box-shadow: var(--cnvs-sys-depth-3);
|
|
103
|
+
min-width: var(--cnvs-menu-card-min-width);
|
|
104
|
+
max-height: var(--cnvs-menu-card-max-height);
|
|
105
|
+
transform-origin: var(--cnvs-menu-card-transform-origin-vertical) var(--cnvs-menu-card-transform-origin-horizontal);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.wd-no-animation .cnvs-menu-card {
|
|
109
|
+
animation: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
.cnvs-menu-list {
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
background: var(--cnvs-sys-color-bg-default);
|
|
116
|
+
border-radius: var(--cnvs-sys-shape-zero);
|
|
117
|
+
padding: var(--cnvs-sys-space-zero);
|
|
118
|
+
gap: var(--cnvs-sys-space-zero);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
.cnvs-menu-list.orientation-vertical {
|
|
123
|
+
flex-direction: column;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
.cnvs-menu-list.orientation-horizontal {
|
|
128
|
+
flex-direction: row;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
.cnvs-menu-divider {
|
|
133
|
+
box-sizing: border-box;
|
|
134
|
+
display: block;
|
|
135
|
+
height: 0.0625rem;
|
|
136
|
+
border: var(--cnvs-sys-space-zero);
|
|
137
|
+
border-top: 0.0625rem solid var(--cnvs-sys-color-border-divider);
|
|
138
|
+
margin: var(--cnvs-sys-space-x2) var(--cnvs-sys-space-zero);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
.cnvs-menu-group-heading {
|
|
143
|
+
box-sizing: border-box;
|
|
144
|
+
font-family: var(--cnvs-sys-font-family-default);
|
|
145
|
+
font-weight: var(--cnvs-sys-font-weight-bold);
|
|
146
|
+
line-height: var(--cnvs-sys-line-height-subtext-large);
|
|
147
|
+
font-size: var(--cnvs-sys-font-size-subtext-large);
|
|
148
|
+
letter-spacing: var(--cnvs-base-letter-spacing-150);
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
width: 100%;
|
|
152
|
+
gap: var(--cnvs-sys-space-x4);
|
|
153
|
+
padding: var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x4);
|
|
154
|
+
}
|
|
155
|
+
|
package/modal.css
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
@keyframes animation-4d4gjl {
|
|
2
|
+
0% {
|
|
3
|
+
background: none;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
100% {
|
|
7
|
+
background: var(--cnvs-sys-color-bg-overlay);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.cnvs-modal-overlay-container {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
position: fixed;
|
|
15
|
+
top: var(--cnvs-sys-space-zero);
|
|
16
|
+
left: var(--cnvs-sys-space-zero);
|
|
17
|
+
width: 100vw;
|
|
18
|
+
height: 100vh;
|
|
19
|
+
background: var(--cnvs-sys-color-bg-overlay);
|
|
20
|
+
animation-duration: 0.3s;
|
|
21
|
+
animation-name: animation-4d4gjl;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.wd-no-animation .cnvs-modal-overlay-container {
|
|
25
|
+
animation: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.cnvs-modal-overlay-container>div {
|
|
29
|
+
max-height: 100%;
|
|
30
|
+
display: flex;
|
|
31
|
+
position: absolute;
|
|
32
|
+
left: var(--cnvs-sys-space-zero);
|
|
33
|
+
top: var(--cnvs-sys-space-zero);
|
|
34
|
+
justify-content: center;
|
|
35
|
+
align-items: center;
|
|
36
|
+
height: 100%;
|
|
37
|
+
width: var(--cnvs-modal-overlay-container-container-center);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media screen and (max-width: 768px) {
|
|
41
|
+
.cnvs-modal-overlay-container {
|
|
42
|
+
height: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.cnvs-modal-overlay-container>div {
|
|
46
|
+
align-items: end;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
.cnvs-modal-card {
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
margin: var(--cnvs-sys-space-x10);
|
|
56
|
+
width: calc(calc(var(--cnvs-sys-space-x20) * 5) + var(--cnvs-sys-space-x10));
|
|
57
|
+
border-width: var(--cnvs-sys-space-zero);
|
|
58
|
+
outline: 0.0625rem solid transparent;
|
|
59
|
+
box-shadow: var(--cnvs-sys-depth-6);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media screen and (max-width: 768px) {
|
|
63
|
+
.cnvs-modal-card {
|
|
64
|
+
gap: var(--cnvs-sys-space-zero);
|
|
65
|
+
margin: var(--cnvs-sys-space-x4);
|
|
66
|
+
padding: var(--cnvs-sys-space-x4);
|
|
67
|
+
border-radius: var(--cnvs-sys-space-x6);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
.cnvs-modal-heading {
|
|
75
|
+
box-sizing: border-box;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@media screen and (max-width: 768px) {
|
|
79
|
+
.cnvs-modal-heading {
|
|
80
|
+
padding: var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x1);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
.cnvs-modal-overflow-overlay {
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
overflow: hidden auto;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.cnvs-modal-overflow-overlay>div {
|
|
93
|
+
max-height: inherit;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
.cnvs-modal-body {
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media screen and (max-width: 768px) {
|
|
102
|
+
.cnvs-modal-body {
|
|
103
|
+
padding: var(--cnvs-sys-space-x1) var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x2);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-css",
|
|
3
|
-
"version": "14.0.0-alpha.
|
|
3
|
+
"version": "14.0.0-alpha.1171-next.0",
|
|
4
4
|
"description": "The parent module that contains all Workday Canvas Kit CSS components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"components",
|
|
26
26
|
"workday"
|
|
27
27
|
],
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "585934cc7f7bf81c6c86c75f7c3966368a3e1ca8"
|
|
29
29
|
}
|