@workday/canvas-kit-css 13.0.0-alpha.998-next.0 → 13.0.1
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 +11 -12
- package/badge.css +2 -2
- package/banner.css +95 -0
- package/button.css +37 -0
- package/common.css +2 -6
- package/expandable.css +93 -0
- package/form-field.css +2 -0
- package/icon.css +33 -0
- package/loading-dots.css +3 -2
- package/menu.css +36 -14
- package/modal.css +3 -2
- package/package.json +2 -2
- package/popup.css +7 -2
- package/select.css +19 -17
- package/skeleton.css +73 -0
- package/switch.css +4 -0
- package/table.css +64 -34
- package/tabs.css +122 -0
- package/text-input.css +4 -1
- package/tooltip.css +79 -0
package/action-bar.css
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.cnvs-action-bar-list {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: flex;
|
|
4
|
+
box-shadow: var(--cnvs-sys-depth-1);
|
|
5
|
+
gap: var(--cnvs-sys-space-x4);
|
|
6
|
+
background: var(--cnvs-sys-color-bg-default);
|
|
7
|
+
border-block-start: solid 1px var(--cnvs-sys-color-border-divider);
|
|
8
|
+
padding: var(--cnvs-sys-space-x4) var(--cnvs-sys-space-x10);
|
|
9
|
+
position: fixed;
|
|
10
|
+
inset-block-end: 0;
|
|
11
|
+
inset-inline-start: 0;
|
|
12
|
+
inset-inline-end: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media (max-width: 767.5px) {
|
|
16
|
+
.cnvs-action-bar-list {
|
|
17
|
+
padding: var(--cnvs-sys-space-x4);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.cnvs-action-bar-list >* {
|
|
21
|
+
flex: 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
.cnvs-action-bar-overflow-button {
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
flex: 0;
|
|
31
|
+
}
|
|
32
|
+
|
package/avatar.css
CHANGED
|
@@ -9,34 +9,42 @@
|
|
|
9
9
|
border: 0;
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
cursor: default;
|
|
12
|
+
pointer-events: none;
|
|
12
13
|
border-radius: var(--cnvs-sys-shape-round);
|
|
13
14
|
width: var(--cnvs-avatar-size);
|
|
14
15
|
height: var(--cnvs-avatar-size);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
.cnvs-avatar:focus-visible
|
|
18
|
+
.cnvs-avatar:focus-visible, .cnvs-avatar.focus {
|
|
18
19
|
outline: none;
|
|
19
20
|
box-shadow: 0 0 0 2px var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1)),0 0 0 4px var(--cnvs-brand-common-focus-outline, rgba(8,117,225,1));
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.cnvs-avatar :is(button) {
|
|
23
24
|
cursor: pointer;
|
|
25
|
+
pointer-events: auto;
|
|
24
26
|
}
|
|
25
27
|
|
|
26
|
-
.cnvs-avatar
|
|
28
|
+
.cnvs-avatar:disabled, .cnvs-avatar.disabled {
|
|
29
|
+
opacity: var(--cnvs-sys-opacity-disabled);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.cnvs-avatar [data-part="avatar-icon"] {
|
|
27
33
|
transition: opacity 150ms linear;
|
|
28
34
|
display: flex;
|
|
29
35
|
align-items: center;
|
|
30
36
|
justify-content: center;
|
|
31
37
|
--cnvs-svg-size: calc(var(--cnvs-avatar-size) * 0.625);
|
|
38
|
+
opacity: 1;
|
|
32
39
|
}
|
|
33
40
|
|
|
34
|
-
.cnvs-avatar
|
|
41
|
+
.cnvs-avatar [data-part="avatar-image"] {
|
|
35
42
|
position: absolute;
|
|
36
43
|
width: 100%;
|
|
37
44
|
height: 100%;
|
|
38
45
|
border-radius: 999px;
|
|
39
46
|
transition: opacity 150ms linear;
|
|
47
|
+
opacity: 0;
|
|
40
48
|
}
|
|
41
49
|
|
|
42
50
|
|
|
@@ -176,12 +184,3 @@
|
|
|
176
184
|
opacity: 1;
|
|
177
185
|
}
|
|
178
186
|
|
|
179
|
-
|
|
180
|
-
.cnvs-avatar.is-image-loaded-false [data-part="avatar-icon"] {
|
|
181
|
-
opacity: 1;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.cnvs-avatar.is-image-loaded-false [data-part="avatar-image"] {
|
|
185
|
-
opacity: 0;
|
|
186
|
-
}
|
|
187
|
-
|
package/badge.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@keyframes animation-
|
|
1
|
+
@keyframes animation-znkd3n {
|
|
2
2
|
from {
|
|
3
3
|
transform: scale(0.85);
|
|
4
4
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
.cnvs-count-badge {
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
align-items: center;
|
|
15
|
-
animation: animation-
|
|
15
|
+
animation: animation-znkd3n 0.2s ease;
|
|
16
16
|
background: var(--cnvs-sys-color-static-red-default);
|
|
17
17
|
border-radius: var(--cnvs-sys-shape-round);
|
|
18
18
|
color: var(--cnvs-sys-color-text-inverse);
|
package/banner.css
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
.cnvs-banner-icon {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
margin-inline-end: var(--cnvs-sys-space-x3);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
.cnvs-banner-label {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex: 1 1 0%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
.cnvs-action-bar-text {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
text-decoration: underline;
|
|
17
|
+
display: inline;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
.cnvs-action-bar-text.is-sticky {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
.cnvs-banner {
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
font-family: var(--cnvs-sys-font-family-default),Helvetica Neue,Helvetica,Arial,sans-serif;
|
|
29
|
+
font-weight: var(--cnvs-sys-font-weight-medium);
|
|
30
|
+
line-height: var(--cnvs-sys-line-height-subtext-large);
|
|
31
|
+
font-size: var(--cnvs-sys-font-size-subtext-large);
|
|
32
|
+
letter-spacing: var(--cnvs-base-letter-spacing-150);
|
|
33
|
+
padding: var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x4);
|
|
34
|
+
border: 0;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
text-align: left;
|
|
38
|
+
border-start-start-radius: var(--cnvs-sys-shape-x1);
|
|
39
|
+
border-start-end-radius: var(--cnvs-sys-shape-x1);
|
|
40
|
+
border-end-start-radius: var(--cnvs-sys-shape-x1);
|
|
41
|
+
border-end-end-radius: var(--cnvs-sys-shape-x1);
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
transition: background-color 120ms;
|
|
44
|
+
outline: var(--cnvs-sys-space-x1) solid transparent;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.cnvs-banner:focus-visible, .cnvs-banner.focus {
|
|
48
|
+
outline: var(--cnvs-sys-shape-x1) double transparent;
|
|
49
|
+
box-shadow: 0 0 0 2px var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1)),0 0 0 4px var(--cnvs-brand-common-focus-outline, rgba(8,117,225,1));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
.cnvs-banner.has-errors {
|
|
54
|
+
background-color: var(--cnvs-brand-error-base);
|
|
55
|
+
color: var(--cnvs-brand-error-accent);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.cnvs-banner.has-errors:hover, .cnvs-banner.has-errors.hover {
|
|
59
|
+
background: var(--cnvs-brand-error-dark);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.cnvs-banner.has-errors [data-part="exclamation-circle-icon"] {
|
|
63
|
+
--cnvs-system-icon-accent-color: var(--cnvs-brand-error-accent);
|
|
64
|
+
--cnvs-system-icon-color: var(--cnvs-brand-error-accent);
|
|
65
|
+
--cnvs-system-icon-background-color: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
.cnvs-banner.has-errors-false {
|
|
70
|
+
background-color: var(--cnvs-brand-alert-base);
|
|
71
|
+
color: var(--cnvs-sys-color-fg-contrast-default);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.cnvs-banner.has-errors-false:hover, .cnvs-banner.has-errors-false.hover {
|
|
75
|
+
background: var(--cnvs-brand-alert-dark);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.cnvs-banner.has-errors-false [data-part="exclamation-triangle-icon"] {
|
|
79
|
+
--cnvs-system-icon-accent-color: var(--cnvs-sys-color-fg-contrast-default);
|
|
80
|
+
--cnvs-system-icon-color: var(--cnvs-sys-color-fg-contrast-default);
|
|
81
|
+
--cnvs-system-icon-background-color: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
.cnvs-banner.is-sticky {
|
|
86
|
+
width: 13.875rem;
|
|
87
|
+
border-start-end-radius: 0;
|
|
88
|
+
border-end-end-radius: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
.cnvs-banner.is-sticky-false {
|
|
93
|
+
width: 20.5rem;
|
|
94
|
+
}
|
|
95
|
+
|
package/button.css
CHANGED
|
@@ -39,6 +39,8 @@
|
|
|
39
39
|
border-color: var(--cnvs-button-color-prop-focus-border, var(--cnvs-button-border, transparent));
|
|
40
40
|
color: var(--cnvs-button-color-prop-focus-label, var(--cnvs-button-label, var(--cnvs-sys-color-fg-strong)));
|
|
41
41
|
--cnvs-system-icon-color: var(--cnvs-button-color-prop-focus-icon, var(--cnvs-sys-color-fg-strong));
|
|
42
|
+
outline: 0.125rem solid transparent;
|
|
43
|
+
outline-offset: 0.125rem;
|
|
42
44
|
box-shadow: 0 0 0 2px var(--cnvs-button-color-prop-focus-box-shadow-inner, var(--cnvs-button-box-shadow-inner, var(--cnvs-sys-color-border-inverse))),0 0 0 4px var(--cnvs-button-color-prop-focus-box-shadow-outer, var(--cnvs-button-box-shadow-outer, var(--cnvs-brand-common-focus-outline)));
|
|
43
45
|
}
|
|
44
46
|
|
|
@@ -67,6 +69,20 @@
|
|
|
67
69
|
--cnvs-system-icon-color: var(--cnvs-button-color-prop-disabled-icon, var(--cnvs-sys-color-fg-strong));
|
|
68
70
|
}
|
|
69
71
|
|
|
72
|
+
@media (prefers-contrast: more) {
|
|
73
|
+
.cnvs-button[aria-pressed="true"] {
|
|
74
|
+
outline: 0.125rem solid transparent;
|
|
75
|
+
outline-offset: -0.0625rem;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.cnvs-button[aria-pressed="true"]:focus-visible, .cnvs-button[aria-pressed="true"].focus {
|
|
79
|
+
outline: 0.25rem double transparent;
|
|
80
|
+
outline-offset: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
|
|
70
86
|
|
|
71
87
|
.cnvs-button.size-large {
|
|
72
88
|
font-family: var(--cnvs-sys-font-family-default);
|
|
@@ -434,6 +450,27 @@
|
|
|
434
450
|
}
|
|
435
451
|
|
|
436
452
|
|
|
453
|
+
.cnvs-external-hyperlink {
|
|
454
|
+
box-sizing: border-box;
|
|
455
|
+
display: inline-flex;
|
|
456
|
+
flex-direction: row;
|
|
457
|
+
align-items: center;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.cnvs-external-hyperlink [data-part="external-hyperlink-icon"] {
|
|
461
|
+
--cnvs-system-icon-color: currentColor;
|
|
462
|
+
--cnvs-svg-size: 1em;
|
|
463
|
+
width: calc(1em - 0.0625rem);
|
|
464
|
+
min-width: calc(var(--cnvs-sys-space-x4) - 0.0625rem);
|
|
465
|
+
margin-inline-start: calc(var(--cnvs-sys-space-x1) - 0.125rem);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.cnvs-external-hyperlink [data-part="external-hyperlink-icon"]>svg {
|
|
469
|
+
min-width: var(--cnvs-sys-space-x4);
|
|
470
|
+
min-height: var(--cnvs-sys-space-x4);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
|
|
437
474
|
.cnvs-primary-button {
|
|
438
475
|
box-sizing: border-box;
|
|
439
476
|
--cnvs-button-background: var(--cnvs-brand-action-base, var(--cnvs-brand-primary-base));
|
package/common.css
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
overflow: hidden;
|
|
6
6
|
white-space: nowrap;
|
|
7
7
|
height: 1px;
|
|
8
|
+
min-height: 1px;
|
|
8
9
|
width: 1px;
|
|
10
|
+
min-width: 1px;
|
|
9
11
|
margin: -1px;
|
|
10
12
|
padding: 0;
|
|
11
13
|
border: 0;
|
|
@@ -46,12 +48,6 @@
|
|
|
46
48
|
--cnvs-brand-primary-base: var(--cnvs-base-palette-blueberry-400);
|
|
47
49
|
--cnvs-brand-primary-light: var(--cnvs-base-palette-blueberry-200);
|
|
48
50
|
--cnvs-brand-primary-lightest: var(--cnvs-base-palette-blueberry-100);
|
|
49
|
-
--cnvs-brand-action-accent: var(--cnvs-base-palette-french-vanilla-100);
|
|
50
|
-
--cnvs-brand-action-darkest: var(--cnvs-base-palette-blueberry-600);
|
|
51
|
-
--cnvs-brand-action-dark: var(--cnvs-base-palette-blueberry-500);
|
|
52
|
-
--cnvs-brand-action-base: var(--cnvs-base-palette-blueberry-400);
|
|
53
|
-
--cnvs-brand-action-light: var(--cnvs-base-palette-blueberry-200);
|
|
54
|
-
--cnvs-brand-action-lightest: var(--cnvs-base-palette-blueberry-100);
|
|
55
51
|
--cnvs-brand-gradient-primary: linear-gradient(90deg, var(--cnvs-brand-primary-base) 0%, var(--cnvs-brand-primary-dark) 100%);
|
|
56
52
|
}
|
|
57
53
|
|
package/expandable.css
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
.cnvs-expandable-content {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
background: var(--cnvs-sys-color-bg-transparent);
|
|
4
|
+
padding: var(--cnvs-sys-space-x4) var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x2);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
.cnvs-expandable-target {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
background: var(--cnvs-sys-color-bg-transparent);
|
|
11
|
+
border-color: var(--cnvs-sys-color-bg-transparent);
|
|
12
|
+
border-radius: var(--cnvs-sys-shape-x1);
|
|
13
|
+
border-width: 0;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: flex-start;
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
justify-content: start;
|
|
18
|
+
padding: var(--cnvs-sys-space-x2);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cnvs-expandable-target:hover, .cnvs-expandable-target.hover {
|
|
24
|
+
background-color: var(--cnvs-sys-color-bg-alt-default);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
.cnvs-expandable-icon {
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
padding: var(--cnvs-sys-space-x1);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
.cnvs-expandable-icon.position-end.is-expanded {
|
|
40
|
+
margin-inline-start: auto;
|
|
41
|
+
transform: rotate(180deg);
|
|
42
|
+
padding-inline-end: var(--cnvs-sys-space-x3);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
.cnvs-expandable-icon.position-end.is-expanded {
|
|
47
|
+
margin-inline-start: auto;
|
|
48
|
+
padding-inline-start: var(--cnvs-sys-space-x3);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
.cnvs-expandable-icon.position-start.is-expanded {
|
|
53
|
+
margin-inline-end: var(--cnvs-sys-space-x2);
|
|
54
|
+
transform: rotate(90deg);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.cnvs-expandable-icon.position-start.is-expanded :dir(rtl) {
|
|
58
|
+
transform: rotate(-90deg);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
.cnvs-expandable-icon.position-start.is-expanded {
|
|
63
|
+
margin-inline-end: var(--cnvs-sys-space-x2);
|
|
64
|
+
transform: rotate(180deg);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
.cnvs-expandable-title {
|
|
69
|
+
box-sizing: border-box;
|
|
70
|
+
font-family: var(--cnvs-sys-font-family-default);
|
|
71
|
+
font-weight: var(--cnvs-sys-font-weight-bold);
|
|
72
|
+
line-height: var(--cnvs-sys-line-height-body-medium);
|
|
73
|
+
font-size: var(--cnvs-sys-font-size-body-medium);
|
|
74
|
+
color: var(--cnvs-sys-color-text-strong);
|
|
75
|
+
padding: 0.125rem var(--cnvs-sys-space-zero);
|
|
76
|
+
text-align: left;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
.cnvs-expandable-avatar {
|
|
81
|
+
box-sizing: border-box;
|
|
82
|
+
margin-inline-end: var(--cnvs-sys-space-x2);
|
|
83
|
+
flex-shrink: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
.cnvs-expandable-container {
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
padding: var(--cnvs-sys-space-x2);
|
|
92
|
+
}
|
|
93
|
+
|
package/form-field.css
CHANGED
package/icon.css
CHANGED
|
@@ -97,6 +97,15 @@
|
|
|
97
97
|
fill: var(--cnvs-deprecated-system-icon-background-hover, var(--cnvs-system-icon-background-color, transparent));
|
|
98
98
|
}
|
|
99
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
|
+
|
|
100
109
|
|
|
101
110
|
.cnvs-system-icon-circle {
|
|
102
111
|
box-sizing: border-box;
|
|
@@ -130,3 +139,27 @@
|
|
|
130
139
|
--cnvs-svg-width: 100%;
|
|
131
140
|
}
|
|
132
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@keyframes animation-
|
|
1
|
+
@keyframes animation-znkd5w {
|
|
2
2
|
0%, 80%, 100% {
|
|
3
3
|
transform: scale(0);
|
|
4
4
|
}
|
|
@@ -23,9 +23,10 @@
|
|
|
23
23
|
height: var(--cnvs-sys-space-x4);
|
|
24
24
|
font-size: var(--cnvs-sys-space-zero);
|
|
25
25
|
border-radius: var(--cnvs-sys-shape-round);
|
|
26
|
+
outline: 0.125rem solid transparent;
|
|
26
27
|
transform: scale(0);
|
|
27
28
|
display: inline-block;
|
|
28
|
-
animation-name: animation-
|
|
29
|
+
animation-name: animation-znkd5w;
|
|
29
30
|
animation-duration: calc(var(--cnvs-loading-dots-animation-duration-ms) * 35);
|
|
30
31
|
animation-iteration-count: infinite;
|
|
31
32
|
animation-timing-function: ease-in-out;
|
package/menu.css
CHANGED
|
@@ -30,11 +30,22 @@
|
|
|
30
30
|
display: flex;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.cnvs-menu-item
|
|
33
|
+
.cnvs-menu-item[aria-selected=true] {
|
|
34
34
|
color: var(--cnvs-brand-primary-dark);
|
|
35
35
|
background-color: var(--cnvs-brand-primary-lightest);
|
|
36
36
|
}
|
|
37
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
|
+
|
|
38
49
|
.cnvs-menu-item:is(.hover, :hover) {
|
|
39
50
|
color: var(--cnvs-sys-color-fg-strong);
|
|
40
51
|
background-color: var(--cnvs-brand-neutral-lightest);
|
|
@@ -42,8 +53,9 @@
|
|
|
42
53
|
|
|
43
54
|
.cnvs-menu-item:is(.focus, :focus) {
|
|
44
55
|
color: var(--cnvs-brand-primary-accent);
|
|
45
|
-
outline: none;
|
|
46
56
|
background-color: var(--cnvs-brand-primary-base);
|
|
57
|
+
outline: 0.125rem solid transparent;
|
|
58
|
+
outline-offset: -0.125rem;
|
|
47
59
|
}
|
|
48
60
|
|
|
49
61
|
.cnvs-menu-item:is(:disabled, [aria-disabled=true]) {
|
|
@@ -60,7 +72,7 @@
|
|
|
60
72
|
align-self: center;
|
|
61
73
|
}
|
|
62
74
|
|
|
63
|
-
.cnvs-menu-item :where([data-part="menu-
|
|
75
|
+
.cnvs-menu-item :where([data-part="menu-item-icon"]) {
|
|
64
76
|
align-self: start;
|
|
65
77
|
}
|
|
66
78
|
|
|
@@ -75,7 +87,7 @@
|
|
|
75
87
|
line-height: var(--cnvs-sys-line-height-subtext-large);
|
|
76
88
|
font-size: var(--cnvs-sys-font-size-subtext-large);
|
|
77
89
|
letter-spacing: var(--cnvs-base-letter-spacing-150);
|
|
78
|
-
color: var(--cnvs-
|
|
90
|
+
color: var(--cnvs-sys-color-text-default);
|
|
79
91
|
position: relative;
|
|
80
92
|
display: flex;
|
|
81
93
|
flex-direction: column;
|
|
@@ -84,6 +96,7 @@
|
|
|
84
96
|
max-width: calc(100vw - var(--cnvs-sys-space-x8));
|
|
85
97
|
box-shadow: var(--cnvs-sys-depth-3);
|
|
86
98
|
min-width: var(--cnvs-menu-card-min-width);
|
|
99
|
+
max-height: var(--cnvs-menu-card-max-height);
|
|
87
100
|
transform-origin: var(--cnvs-menu-card-transform-origin-vertical) var(--cnvs-menu-card-transform-origin-horizontal);
|
|
88
101
|
}
|
|
89
102
|
|
|
@@ -94,7 +107,7 @@
|
|
|
94
107
|
|
|
95
108
|
.cnvs-menu-list {
|
|
96
109
|
box-sizing: border-box;
|
|
97
|
-
background: var(--cnvs-
|
|
110
|
+
background: var(--cnvs-sys-color-bg-default);
|
|
98
111
|
border-radius: var(--cnvs-sys-shape-zero);
|
|
99
112
|
padding: var(--cnvs-sys-space-zero);
|
|
100
113
|
gap: var(--cnvs-sys-space-zero);
|
|
@@ -111,18 +124,27 @@
|
|
|
111
124
|
}
|
|
112
125
|
|
|
113
126
|
|
|
114
|
-
.cnvs-menu-
|
|
127
|
+
.cnvs-menu-divider {
|
|
115
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);
|
|
116
134
|
}
|
|
117
135
|
|
|
118
|
-
.cnvs-menu-option:where([aria-selected=true]) :where([data-part="menu-item-selected"]) {
|
|
119
|
-
opacity: var(--cnvs-sys-opacity-full);
|
|
120
|
-
}
|
|
121
136
|
|
|
122
|
-
.cnvs-menu-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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);
|
|
127
149
|
}
|
|
128
150
|
|
package/modal.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@keyframes animation-
|
|
1
|
+
@keyframes animation-znkd5y {
|
|
2
2
|
0% {
|
|
3
3
|
background: none;
|
|
4
4
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
height: 100vh;
|
|
19
19
|
background: var(--cnvs-sys-color-bg-overlay);
|
|
20
20
|
animation-duration: 0.3s;
|
|
21
|
-
animation-name: animation-
|
|
21
|
+
animation-name: animation-znkd5y;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.wd-no-animation .cnvs-modal-overlay-container {
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
margin: var(--cnvs-sys-space-x10);
|
|
56
56
|
width: calc(calc(var(--cnvs-sys-space-x20) * 5) + var(--cnvs-sys-space-x10));
|
|
57
57
|
border-width: var(--cnvs-sys-space-zero);
|
|
58
|
+
outline: 0.0625rem solid transparent;
|
|
58
59
|
box-shadow: var(--cnvs-sys-depth-6);
|
|
59
60
|
}
|
|
60
61
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-css",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.1",
|
|
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": "bb1ae05330f359a59d9776efe8e99cdc20e99f52"
|
|
29
29
|
}
|
package/popup.css
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
.cnvs-disable-body-scroll {
|
|
2
|
+
overflow: hidden!important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@keyframes animation-znkdy {
|
|
2
7
|
0% {
|
|
3
8
|
opacity: 1;
|
|
4
9
|
transform: translate(var(--cnvs-translate-position-x), var(--cnvs-translate-position-y));
|
|
@@ -27,7 +32,7 @@
|
|
|
27
32
|
padding: var(--cnvs-sys-space-x6);
|
|
28
33
|
max-height: var(--cnvs-popup-card-max-height);
|
|
29
34
|
overflow-y: auto;
|
|
30
|
-
animation-name: animation-
|
|
35
|
+
animation-name: animation-znkdy;
|
|
31
36
|
animation-duration: 150ms;
|
|
32
37
|
animation-timing-function: ease-out;
|
|
33
38
|
transform-origin: var(--cnvs-popup-card-transform-origin-vertical) var(--cnvs-popup-card-transform-origin-horizontal);
|
package/select.css
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
1
|
.cnvs-select-input {
|
|
2
2
|
box-sizing: border-box;
|
|
3
|
-
caret-color: transparent;
|
|
4
|
-
cursor: default;
|
|
5
3
|
}
|
|
6
4
|
|
|
7
|
-
.cnvs-select-input
|
|
8
|
-
background-color: transparent;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
.cnvs-select-icons {
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
position: absolute;
|
|
15
|
-
pointer-events: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.cnvs-hidden-select-input {
|
|
20
|
-
box-sizing: border-box;
|
|
5
|
+
.cnvs-select-input [data-part="select-hidden-input"] {
|
|
21
6
|
position: absolute;
|
|
22
7
|
top: var(--cnvs-sys-space-zero);
|
|
23
8
|
bottom: var(--cnvs-sys-space-zero);
|
|
@@ -26,10 +11,27 @@
|
|
|
26
11
|
opacity: var(--cnvs-sys-opacity-zero);
|
|
27
12
|
cursor: default;
|
|
28
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;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
|
|
32
33
|
.cnvs-select-card {
|
|
33
|
-
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
--cnvs-menu-card-max-height: 18.75rem;
|
|
34
36
|
}
|
|
35
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-znkd69 {
|
|
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-znkd69 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
|
+
|
package/switch.css
CHANGED
package/table.css
CHANGED
|
@@ -1,53 +1,41 @@
|
|
|
1
|
-
.cnvs-table-head {
|
|
1
|
+
.cnvs-base-table-head {
|
|
2
2
|
box-sizing: border-box;
|
|
3
|
-
display: grid;
|
|
4
3
|
background-color: var(--cnvs-sys-color-bg-alt-softer);
|
|
5
4
|
min-height: calc(var(--cnvs-sys-space-x16) - var(--cnvs-sys-space-x4));
|
|
6
5
|
}
|
|
7
6
|
|
|
8
|
-
.cnvs-table-head th:first-of-type {
|
|
7
|
+
.cnvs-base-table-head th:first-of-type {
|
|
9
8
|
border-inline-start: none;
|
|
10
9
|
}
|
|
11
10
|
|
|
12
|
-
.cnvs-table-head th:last-of-type {
|
|
11
|
+
.cnvs-base-table-head th:last-of-type {
|
|
13
12
|
border-inline-end: none;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
|
|
17
|
-
.cnvs-table-body {
|
|
16
|
+
.cnvs-base-table-body {
|
|
18
17
|
box-sizing: border-box;
|
|
19
|
-
display: grid;
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
.cnvs-table-body tr:last-of-type td, .cnvs-table-body tr:last-of-type th {
|
|
20
|
+
.cnvs-base-table-body tr:last-of-type td, .cnvs-base-table-body tr:last-of-type th {
|
|
23
21
|
border-bottom: none;
|
|
24
22
|
}
|
|
25
23
|
|
|
26
|
-
.cnvs-table-body tr:first-of-type td, .cnvs-table-body tr:first-of-type th {
|
|
24
|
+
.cnvs-base-table-body tr:first-of-type td, .cnvs-base-table-body tr:first-of-type th {
|
|
27
25
|
border-top: none;
|
|
28
26
|
}
|
|
29
27
|
|
|
30
|
-
.cnvs-table-body td:last-of-type {
|
|
28
|
+
.cnvs-base-table-body td:last-of-type {
|
|
31
29
|
border-inline-end: none;
|
|
32
30
|
}
|
|
33
31
|
|
|
34
|
-
.cnvs-table-body td:first-of-type {
|
|
32
|
+
.cnvs-base-table-body td:first-of-type {
|
|
35
33
|
border-inline-start: none;
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
|
|
39
|
-
.cnvs-table-
|
|
40
|
-
box-sizing: border-box;
|
|
41
|
-
display: grid;
|
|
42
|
-
grid-auto-flow: column;
|
|
43
|
-
grid-template-columns: repeat(var(--cnvs-children-cell-number), minmax(10rem, 1fr));
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
.cnvs-table-header {
|
|
37
|
+
.cnvs-base-table-header {
|
|
48
38
|
box-sizing: border-box;
|
|
49
|
-
display: grid;
|
|
50
|
-
align-items: center;
|
|
51
39
|
background-color: var(--cnvs-sys-color-bg-default);
|
|
52
40
|
border-bottom: 0.0625rem solid var(--cnvs-sys-color-border-divider);
|
|
53
41
|
justify-content: start;
|
|
@@ -58,9 +46,8 @@
|
|
|
58
46
|
}
|
|
59
47
|
|
|
60
48
|
|
|
61
|
-
.cnvs-table-cell {
|
|
49
|
+
.cnvs-base-table-cell {
|
|
62
50
|
box-sizing: border-box;
|
|
63
|
-
display: grid;
|
|
64
51
|
align-items: center;
|
|
65
52
|
background-color: var(--cnvs-sys-color-bg-default);
|
|
66
53
|
border-bottom: 0.0625rem solid var(--cnvs-sys-color-border-divider);
|
|
@@ -72,31 +59,74 @@
|
|
|
72
59
|
}
|
|
73
60
|
|
|
74
61
|
|
|
75
|
-
.cnvs-table-
|
|
62
|
+
.cnvs-base-table-caption {
|
|
76
63
|
box-sizing: border-box;
|
|
77
|
-
display: grid;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
.cnvs-table-caption {
|
|
82
|
-
box-sizing: border-box;
|
|
83
|
-
display: flex;
|
|
84
|
-
border-bottom: 0.0625rem solid var(--cnvs-sys-color-border-container);
|
|
85
64
|
padding: var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x4);
|
|
86
65
|
}
|
|
87
66
|
|
|
88
67
|
|
|
89
|
-
.cnvs-table {
|
|
68
|
+
.cnvs-base-table {
|
|
90
69
|
box-sizing: border-box;
|
|
91
70
|
font-family: var(--cnvs-sys-font-family-default);
|
|
92
71
|
font-weight: var(--cnvs-sys-font-weight-normal);
|
|
93
72
|
line-height: var(--cnvs-sys-line-height-subtext-large);
|
|
94
73
|
font-size: var(--cnvs-sys-font-size-subtext-large);
|
|
95
74
|
letter-spacing: var(--cnvs-base-letter-spacing-150);
|
|
96
|
-
display: grid;
|
|
97
75
|
border: 0.0625rem solid var(--cnvs-sys-color-border-container);
|
|
98
76
|
border-radius: var(--cnvs-sys-shape-x2);
|
|
99
77
|
overflow: auto;
|
|
100
78
|
color: var(--cnvs-sys-color-text-default);
|
|
101
79
|
}
|
|
102
80
|
|
|
81
|
+
|
|
82
|
+
.cnvs-table-row {
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
display: grid;
|
|
85
|
+
grid-auto-flow: column;
|
|
86
|
+
grid-template-columns: repeat(var(--cnvs-table-row-children-cell-number), minmax(10rem, 1fr));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
.cnvs-table {
|
|
91
|
+
box-sizing: border-box;
|
|
92
|
+
display: grid;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
.cnvs-table-body {
|
|
97
|
+
box-sizing: border-box;
|
|
98
|
+
display: grid;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
.cnvs-table-caption {
|
|
103
|
+
box-sizing: border-box;
|
|
104
|
+
display: flex;
|
|
105
|
+
border-bottom: 0.0625rem solid var(--cnvs-sys-color-border-container);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
.cnvs-table-cell {
|
|
110
|
+
box-sizing: border-box;
|
|
111
|
+
display: grid;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
.cnvs-table-footer {
|
|
116
|
+
box-sizing: border-box;
|
|
117
|
+
display: grid;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
.cnvs-table-head {
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
display: grid;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
.cnvs-table-header {
|
|
128
|
+
box-sizing: border-box;
|
|
129
|
+
display: grid;
|
|
130
|
+
align-items: center;
|
|
131
|
+
}
|
|
132
|
+
|
package/tabs.css
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
.cnvs-tab-item {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
font-family: var(--cnvs-sys-font-family-default),Helvetica Neue,Helvetica,Arial,sans-serif;
|
|
4
|
+
font-weight: var(--cnvs-sys-font-weight-medium);
|
|
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
|
+
border: none;
|
|
9
|
+
background-color: transparent;
|
|
10
|
+
flex: 0 0 auto;
|
|
11
|
+
min-width: var(--cnvs-sys-space-zero);
|
|
12
|
+
align-items: center;
|
|
13
|
+
padding: var(--cnvs-sys-space-x3) var(--cnvs-sys-space-x4);
|
|
14
|
+
height: 3.25rem;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
color: var(--cnvs-sys-color-fg-muted-default);
|
|
17
|
+
position: relative;
|
|
18
|
+
border-radius: var(--cnvs-sys-space-x1) var(--cnvs-sys-space-x1) var(--cnvs-sys-space-zero) var(--cnvs-sys-space-zero);
|
|
19
|
+
transition: background 150ms ease,color 150ms ease;
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
text-overflow: ellipsis;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
--cnvs-system-icon-color: var(--cnvs-sys-color-fg-muted-soft);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.cnvs-tab-item:has(span) {
|
|
27
|
+
display: flex;
|
|
28
|
+
gap: var(--cnvs-sys-space-x2);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.cnvs-tab-item:hover, .cnvs-tab-item.hover, .cnvs-tab-item:focus-visible, .cnvs-tab-item.focus {
|
|
32
|
+
background-color: var(--cnvs-base-palette-soap-200);
|
|
33
|
+
color: var(--cnvs-base-palette-black-pepper-400);
|
|
34
|
+
--cnvs-system-icon-color: var(--cnvs-sys-color-icon-strong);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.cnvs-tab-item:focus-visible, .cnvs-tab-item.focus {
|
|
38
|
+
outline: none;
|
|
39
|
+
box-shadow: inset 0 0 0 2px var(--cnvs-brand-common-focus-outline, rgba(8,117,225,1)),inset 0 0 0 2px var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));
|
|
40
|
+
--cnvs-button-box-shadow-inner: var(--cnvs-sys-color-border-inverse);
|
|
41
|
+
--cnvs-button-box-shadow-outer: var(--cnvs-brand-common-focus-outline);
|
|
42
|
+
--cnvs-system-icon-color: var(--cnvs-sys-color-icon-strong);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.cnvs-tab-item:disabled, .cnvs-tab-item.disabled, .cnvs-tab-item[aria-disabled] {
|
|
46
|
+
color: var(--cnvs-sys-color-text-disabled);
|
|
47
|
+
--cnvs-system-icon-color: var(--cnvs-sys-color-fg-disabled);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.cnvs-tab-item:disabled:hover, .cnvs-tab-item.disabled:hover, .cnvs-tab-item[aria-disabled]:hover {
|
|
51
|
+
cursor: auto;
|
|
52
|
+
background-color: var(--cnvs-sys-color-bg-transparent);
|
|
53
|
+
--cnvs-system-icon-color: var(--cnvs-sys-color-fg-disabled);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.cnvs-tab-item[aria-selected=true] {
|
|
57
|
+
color: var(--cnvs-brand-primary-base);
|
|
58
|
+
cursor: default;
|
|
59
|
+
--cnvs-system-icon-color: var(--cnvs-brand-primary-base);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.cnvs-tab-item[aria-selected=true]:after {
|
|
63
|
+
position: absolute;
|
|
64
|
+
height: var(--cnvs-sys-space-x1);
|
|
65
|
+
border-radius: var(--cnvs-sys-shape-x1) var(--cnvs-sys-shape-x1) var(--cnvs-sys-shape-zero) var(--cnvs-sys-shape-zero);
|
|
66
|
+
background-color: var(--cnvs-brand-primary-base);
|
|
67
|
+
bottom: var(--cnvs-sys-space-zero);
|
|
68
|
+
content: '';
|
|
69
|
+
left: var(--cnvs-sys-space-zero);
|
|
70
|
+
margin-block-start: calc(calc(var(--cnvs-sys-space-x2) / var(--cnvs-sys-space-x1)) * -1);
|
|
71
|
+
width: 100%;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.cnvs-tab-item[aria-selected=true]:hover, .cnvs-tab-item[aria-selected=true].hover, .cnvs-tab-item[aria-selected=true]:focus-visible, .cnvs-tab-item[aria-selected=true].focus {
|
|
75
|
+
background-color: var(--cnvs-sys-color-bg-transparent);
|
|
76
|
+
color: var(--cnvs-brand-primary-base);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
.cnvs-tabs-list {
|
|
81
|
+
box-sizing: border-box;
|
|
82
|
+
display: flex;
|
|
83
|
+
position: relative;
|
|
84
|
+
border-bottom: 0.0625rem solid var(--cnvs-sys-color-border-divider);
|
|
85
|
+
gap: var(--cnvs-sys-space-x3);
|
|
86
|
+
padding-inline: var(--cnvs-sys-space-x6);
|
|
87
|
+
mask-image: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
.cnvs-tabs-list.modality-touch {
|
|
92
|
+
padding-inline: var(--cnvs-sys-space-zero);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
.cnvs-tabs-list.modality-touch.is-dragging.direction-left {
|
|
105
|
+
mask-image: linear-gradient(to left, white 80%, transparent);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
.cnvs-tabs-list.modality-touch.is-dragging.direction-right {
|
|
110
|
+
mask-image: linear-gradient(to right, white 80%, transparent);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
.cnvs-tabs-overflow-button {
|
|
115
|
+
box-sizing: border-box;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.cnvs-tabs-overflow-button:has([data-part="tabs-overflow-button-icon"]) {
|
|
119
|
+
display: flex;
|
|
120
|
+
gap: var(--cnvs-sys-space-zero);
|
|
121
|
+
}
|
|
122
|
+
|
package/text-input.css
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
.cnvs-text-input:is(:focus-visible, .focus):where(:not([disabled])) {
|
|
35
35
|
border-color: var(--cnvs-brand-common-focus-outline);
|
|
36
36
|
box-shadow: inset 0 0 0 1px var(--cnvs-brand-common-focus-outline);
|
|
37
|
-
outline:
|
|
37
|
+
outline: 0.125rem solid transparent;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.cnvs-text-input:is(:disabled, .disabled) {
|
|
@@ -70,12 +70,14 @@
|
|
|
70
70
|
|
|
71
71
|
.cnvs-text-input.error-error:is(:focus-visible, .focus):not([disabled]) {
|
|
72
72
|
box-shadow: inset 0 0 0 0.0625rem var(--cnvs-brand-error-base),0 0 0 2px var(--cnvs-sys-color-border-inverse),0 0 0 4px var(--cnvs-brand-common-focus-outline);
|
|
73
|
+
outline-offset: 0.125rem;
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
|
|
76
77
|
.cnvs-text-input.error-alert {
|
|
77
78
|
border-color: var(--cnvs-brand-alert-darkest);
|
|
78
79
|
box-shadow: inset 0 0 0 0.125rem var(--cnvs-brand-alert-base);
|
|
80
|
+
outline-offset: 0.125rem;
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
.cnvs-text-input.error-alert:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled])) {
|
|
@@ -130,6 +132,7 @@
|
|
|
130
132
|
box-sizing: border-box;
|
|
131
133
|
display: flex;
|
|
132
134
|
position: relative;
|
|
135
|
+
align-items: center;
|
|
133
136
|
}
|
|
134
137
|
|
|
135
138
|
.cnvs-input-group :has([data-part="input-group-clear-button"]) {
|
package/tooltip.css
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@keyframes animation-znkd2s {
|
|
2
|
+
0% {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
transform: translate(var(--cnvs-tooltip-translate-position-x), var(--cnvs-tooltip-translate-position-y));
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
100% {
|
|
8
|
+
opacity: 1;
|
|
9
|
+
transform: translate(0);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.cnvs-tooltip-container {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
font-family: var(--cnvs-sys-font-family-default);
|
|
17
|
+
font-weight: var(--cnvs-sys-font-weight-normal);
|
|
18
|
+
line-height: var(--cnvs-sys-line-height-subtext-medium);
|
|
19
|
+
font-size: var(--cnvs-sys-font-size-subtext-medium);
|
|
20
|
+
letter-spacing: var(--cnvs-base-letter-spacing-100);
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
position: relative;
|
|
23
|
+
padding: var(--cnvs-sys-space-x3);
|
|
24
|
+
color: var(--cnvs-sys-color-text-inverse);
|
|
25
|
+
animation-name: animation-znkd2s;
|
|
26
|
+
animation-duration: 150ms;
|
|
27
|
+
animation-timing-function: ease-out;
|
|
28
|
+
transform-origin: var(--cnvs-tooltip-container-tooltip-transform-origin-vertical) var(--cnvs-tooltip-container-tooltip-transform-origin-horizontal);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.cnvs-tooltip-container a {
|
|
32
|
+
color: var(--cnvs-sys-color-text-inverse);
|
|
33
|
+
text-decoration: underline;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.cnvs-tooltip-container:before {
|
|
37
|
+
content: "";
|
|
38
|
+
border-radius: var(--cnvs-sys-shape-x1);
|
|
39
|
+
outline: 0.0625rem solid transparent;
|
|
40
|
+
outline-offset: -0.0625rem;
|
|
41
|
+
z-index: -1;
|
|
42
|
+
margin: var(--cnvs-sys-space-x1);
|
|
43
|
+
background-color: var(--cnvs-sys-color-bg-translucent);
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 0;
|
|
46
|
+
left: 0;
|
|
47
|
+
right: 0;
|
|
48
|
+
bottom: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
body:has(:focus-visible, .focus) .cnvs-tooltip-container {
|
|
52
|
+
padding: calc(var(--cnvs-sys-space-x4) - calc(var(--cnvs-sys-space-x1) / 2));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
body:has(:focus-visible, .focus) .cnvs-tooltip-container:before {
|
|
56
|
+
margin: calc(var(--cnvs-sys-space-x1) + calc(var(--cnvs-sys-space-x1) / 2));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-popper-reference-hidden] .cnvs-tooltip-container {
|
|
60
|
+
visibility: hidden;
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-popper-placement="top-start"] .cnvs-tooltip-container, [data-popper-placement="bottom-start"] .cnvs-tooltip-container {
|
|
65
|
+
left: calc(var(--cnvs-sys-space-x1) * -1);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
[data-popper-placement="top-end"] .cnvs-tooltip-container, [data-popper-placement="bottom-end"] .cnvs-tooltip-container {
|
|
69
|
+
right: calc(var(--cnvs-sys-space-x1) * -1);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[data-popper-placement="left-start"] .cnvs-tooltip-container, [data-popper-placement="right-start"] .cnvs-tooltip-container {
|
|
73
|
+
top: calc(var(--cnvs-sys-space-x1) * -1);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[data-popper-placement="left-end"] .cnvs-tooltip-container, [data-popper-placement="right-end"] .cnvs-tooltip-container {
|
|
77
|
+
bottom: calc(var(--cnvs-sys-space-x1) * -1);
|
|
78
|
+
}
|
|
79
|
+
|