@workday/canvas-kit-css 13.2.2 → 13.2.3
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/button.css +661 -0
- package/card.css +23 -0
- package/checkbox.css +240 -0
- package/collection.css +25 -0
- package/combobox.css +4 -0
- package/common.css +53 -0
- package/expandable.css +93 -0
- package/form-field.css +190 -0
- package/icon.css +165 -0
- package/loading-dots.css +47 -0
- package/menu.css +150 -0
- package/modal.css +109 -0
- package/package.json +2 -2
- package/popup.css +74 -0
- package/select.css +37 -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 +146 -0
- package/text.css +189 -0
- package/toast.css +42 -0
- package/tooltip.css +79 -0
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-base-palette-blueberry-500));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.cnvs-accent-icon .french-vanilla-100 {
|
|
28
|
+
fill: var(--cnvs-base-palette-french-vanilla-100);
|
|
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-base-palette-french-vanilla-100);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.cnvs-applet-icon .color-200 {
|
|
47
|
+
fill: var(--cnvs-applet-icon-color200, var(--cnvs-base-palette-blueberry-200));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.cnvs-applet-icon .color-300 {
|
|
51
|
+
fill: var(--cnvs-applet-icon-color300, var(--cnvs-base-palette-blueberry-300));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.cnvs-applet-icon .color-400 {
|
|
55
|
+
fill: var(--cnvs-applet-icon-color400, var(--cnvs-base-palette-blueberry-400));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.cnvs-applet-icon .color-400-alpha-20 {
|
|
59
|
+
fill: var(--cnvs-applet-icon-color400, var(--cnvs-base-palette-blueberry-400));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.cnvs-applet-icon .color-500 {
|
|
63
|
+
fill: var(--cnvs-applet-icon-color500, var(--cnvs-base-palette-blueberry-400));
|
|
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-base-palette-licorice-200));
|
|
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-base-palette-licorice-200)));
|
|
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-base-palette-licorice-200))));
|
|
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-base-palette-licorice-200)))));
|
|
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-base-palette-soap-200));
|
|
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,150 @@
|
|
|
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-text-disabled);
|
|
63
|
+
cursor: default;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.cnvs-menu-item:is(:disabled, [aria-disabled=true]):where(.focus, :focus) {
|
|
67
|
+
background-color: var(--cnvs-brand-primary-light);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.cnvs-menu-item :where([data-part="menu-item-text"]) {
|
|
71
|
+
flex-grow: 1;
|
|
72
|
+
align-self: center;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.cnvs-menu-item :where([data-part="menu-item-icon"]) {
|
|
76
|
+
align-self: start;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
.cnvs-menu-card {
|
|
81
|
+
--cnvs-menu-card-min-width: 0.0625rem;
|
|
82
|
+
--cnvs-menu-card-transform-origin-vertical: top;
|
|
83
|
+
--cnvs-menu-card-transform-origin-horizontal: left;
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
font-family: var(--cnvs-sys-font-family-default);
|
|
86
|
+
font-weight: var(--cnvs-sys-font-weight-normal);
|
|
87
|
+
line-height: var(--cnvs-sys-line-height-subtext-large);
|
|
88
|
+
font-size: var(--cnvs-sys-font-size-subtext-large);
|
|
89
|
+
letter-spacing: var(--cnvs-base-letter-spacing-150);
|
|
90
|
+
color: var(--cnvs-sys-color-text-default);
|
|
91
|
+
position: relative;
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
transition: transform ease-out 150ms;
|
|
95
|
+
padding: var(--cnvs-sys-space-zero);
|
|
96
|
+
max-width: calc(100vw - var(--cnvs-sys-space-x8));
|
|
97
|
+
box-shadow: var(--cnvs-sys-depth-3);
|
|
98
|
+
min-width: var(--cnvs-menu-card-min-width);
|
|
99
|
+
max-height: var(--cnvs-menu-card-max-height);
|
|
100
|
+
transform-origin: var(--cnvs-menu-card-transform-origin-vertical) var(--cnvs-menu-card-transform-origin-horizontal);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.wd-no-animation .cnvs-menu-card {
|
|
104
|
+
animation: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
.cnvs-menu-list {
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
background: var(--cnvs-sys-color-bg-default);
|
|
111
|
+
border-radius: var(--cnvs-sys-shape-zero);
|
|
112
|
+
padding: var(--cnvs-sys-space-zero);
|
|
113
|
+
gap: var(--cnvs-sys-space-zero);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
.cnvs-menu-list.orientation-vertical {
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
.cnvs-menu-list.orientation-horizontal {
|
|
123
|
+
flex-direction: row;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
.cnvs-menu-divider {
|
|
128
|
+
box-sizing: border-box;
|
|
129
|
+
display: block;
|
|
130
|
+
height: 0.0625rem;
|
|
131
|
+
border: var(--cnvs-sys-space-zero);
|
|
132
|
+
border-top: 0.0625rem solid var(--cnvs-sys-color-border-divider);
|
|
133
|
+
margin: var(--cnvs-sys-space-x2) var(--cnvs-sys-space-zero);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
.cnvs-menu-group-heading {
|
|
138
|
+
box-sizing: border-box;
|
|
139
|
+
font-family: var(--cnvs-sys-font-family-default);
|
|
140
|
+
font-weight: var(--cnvs-sys-font-weight-bold);
|
|
141
|
+
line-height: var(--cnvs-sys-line-height-subtext-large);
|
|
142
|
+
font-size: var(--cnvs-sys-font-size-subtext-large);
|
|
143
|
+
letter-spacing: var(--cnvs-base-letter-spacing-150);
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
width: 100%;
|
|
147
|
+
gap: var(--cnvs-sys-space-x4);
|
|
148
|
+
padding: var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x4);
|
|
149
|
+
}
|
|
150
|
+
|
package/modal.css
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
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
|
+
margin: var(--cnvs-sys-space-x4);
|
|
65
|
+
padding: var(--cnvs-sys-space-x4);
|
|
66
|
+
border-radius: var(--cnvs-sys-space-x6);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
.cnvs-modal-heading {
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@media screen and (max-width: 768px) {
|
|
78
|
+
.cnvs-modal-heading {
|
|
79
|
+
margin-block-end: var(--cnvs-sys-space-zero);
|
|
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
|
+
margin-block-end: var(--cnvs-sys-space-zero);
|
|
104
|
+
padding: var(--cnvs-sys-space-x1) var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x2);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
}
|
|
109
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-css",
|
|
3
|
-
"version": "13.2.
|
|
3
|
+
"version": "13.2.3",
|
|
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": "4bf7deabfbac10c4b4ff7b706c54292c4bf79e35"
|
|
29
29
|
}
|
package/popup.css
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
.cnvs-disable-body-scroll {
|
|
2
|
+
overflow: hidden!important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@keyframes animation-284ori {
|
|
7
|
+
0% {
|
|
8
|
+
opacity: 1;
|
|
9
|
+
transform: translate(var(--cnvs-translate-position-x), var(--cnvs-translate-position-y));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
100% {
|
|
13
|
+
opacity: 1;
|
|
14
|
+
transform: translate(0);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.cnvs-popup-card {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
font-family: var(--cnvs-sys-font-family-default);
|
|
22
|
+
font-weight: var(--cnvs-sys-font-weight-normal);
|
|
23
|
+
line-height: var(--cnvs-sys-line-height-subtext-large);
|
|
24
|
+
font-size: var(--cnvs-sys-font-size-subtext-large);
|
|
25
|
+
letter-spacing: var(--cnvs-base-letter-spacing-150);
|
|
26
|
+
display: flex;
|
|
27
|
+
position: relative;
|
|
28
|
+
max-width: calc(100vw - var(--cnvs-sys-space-x8));
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
box-shadow: var(--cnvs-sys-depth-5);
|
|
31
|
+
min-height: var(--cnvs-sys-space-zero);
|
|
32
|
+
padding: var(--cnvs-sys-space-x6);
|
|
33
|
+
max-height: var(--cnvs-popup-card-max-height);
|
|
34
|
+
overflow-y: auto;
|
|
35
|
+
animation-name: animation-284ori;
|
|
36
|
+
animation-duration: 150ms;
|
|
37
|
+
animation-timing-function: ease-out;
|
|
38
|
+
transform-origin: var(--cnvs-popup-card-transform-origin-vertical) var(--cnvs-popup-card-transform-origin-horizontal);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.wd-no-animation .cnvs-popup-card {
|
|
42
|
+
animation: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@media screen and (max-width: 768px) {
|
|
46
|
+
.cnvs-popup-card {
|
|
47
|
+
transform-origin: bottom center;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
.cnvs-popup-heading {
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
margin-block-end: var(--cnvs-sys-space-x2);
|
|
57
|
+
padding: var(--cnvs-sys-space-x2);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
.cnvs-popup-close-icon {
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
position: absolute;
|
|
64
|
+
inset-inline-end: var(--cnvs-sys-space-x1);
|
|
65
|
+
top: var(--cnvs-sys-space-x1);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
.cnvs-popup-body {
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
overflow-y: auto;
|
|
72
|
+
padding: var(--cnvs-sys-space-x2);
|
|
73
|
+
}
|
|
74
|
+
|
package/select.css
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.cnvs-select-input {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.cnvs-select-input [data-part="select-hidden-input"] {
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: var(--cnvs-sys-space-zero);
|
|
8
|
+
bottom: var(--cnvs-sys-space-zero);
|
|
9
|
+
left: var(--cnvs-sys-space-zero);
|
|
10
|
+
right: var(--cnvs-sys-space-zero);
|
|
11
|
+
opacity: var(--cnvs-sys-opacity-zero);
|
|
12
|
+
cursor: default;
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
min-width: 100%;
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.cnvs-select-input [data-part="select-start-icon"], .cnvs-select-input [data-part="select-end-icon"], .cnvs-select-input [data-part="select-caret-container"], .cnvs-select-input [data-part="select-start-icon-container"] {
|
|
19
|
+
position: absolute;
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cnvs-select-input [data-part="select-visual-input"] {
|
|
24
|
+
caret-color: transparent;
|
|
25
|
+
cursor: default;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.cnvs-select-input [data-part="select-visual-input"]::selection {
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
.cnvs-select-card {
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
--cnvs-menu-card-max-height: 18.75rem;
|
|
36
|
+
}
|
|
37
|
+
|
package/skeleton.css
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.cnvs-skeleton-shape {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
background-color: var(--cnvs-skeleton-shape-background-color, var(--cnvs-sys-color-bg-alt-strong));
|
|
4
|
+
border-radius: var(--cnvs-skeleton-shape-border-radius, var(--cnvs-sys-space-zero));
|
|
5
|
+
height: var(--cnvs-skeleton-shape-height, 100%);
|
|
6
|
+
width: var(--cnvs-skeleton-shape-width);
|
|
7
|
+
margin-bottom: var(--cnvs-sys-space-x4);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
.cnvs-skeleton-header {
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
background-color: var(--cnvs-skeleton-header-background-color, var(--cnvs-sys-color-bg-alt-strong));
|
|
14
|
+
border-radius: 0;
|
|
15
|
+
height: var(--cnvs-skeleton-header-height, calc(var(--cnvs-sys-space-x1) * 7));
|
|
16
|
+
width: var(--cnvs-skeleton-header-width);
|
|
17
|
+
margin-bottom: var(--cnvs-sys-space-x4);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
.cnvs-skeleton-text {
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
margin-bottom: var(--cnvs-sys-space-x6);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.cnvs-skeleton-text [data-part="skeleton-text-lines"] {
|
|
27
|
+
background-color: var(--cnvs-skeleton-text-background-color, var(--cnvs-sys-color-bg-alt-strong));
|
|
28
|
+
height: 1.3125rem;
|
|
29
|
+
margin-block-end: var(--cnvs-sys-space-x3);
|
|
30
|
+
border-radius: var(--cnvs-sys-shape-half);
|
|
31
|
+
width: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cnvs-skeleton-text [data-part="skeleton-text-lines"]:last-child {
|
|
35
|
+
width: 60%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@keyframes animation-t0ia0 {
|
|
40
|
+
from {
|
|
41
|
+
opacity: 0.4;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
to {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.cnvs-skeleton {
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
animation: animation-t0ia0 0.8s linear infinite alternate;
|
|
53
|
+
position: relative;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
height: 100%;
|
|
56
|
+
width: 100%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.cnvs-skeleton [data-part="skeleton-accessible-hide"] {
|
|
60
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
61
|
+
clip-path: polygon(0px 0px, 0px 0px, 0px 0px, 0px 0px);
|
|
62
|
+
position: absolute;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
height: 1px;
|
|
66
|
+
min-height: 1px;
|
|
67
|
+
width: 1px;
|
|
68
|
+
min-width: 1px;
|
|
69
|
+
margin: -1px;
|
|
70
|
+
padding: 0;
|
|
71
|
+
border: 0;
|
|
72
|
+
}
|
|
73
|
+
|