@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/toast.css
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.cnvs-toast-close-icon {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
.cnvs-toast-icon {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
align-self: start;
|
|
10
|
+
margin: var(--cnvs-sys-space-x4) var(--cnvs-sys-space-x3);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
.cnvs-toast-message {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
word-break: break-word;
|
|
17
|
+
margin-block-start: var(--cnvs-sys-space-zero);
|
|
18
|
+
margin-block-end: var(--cnvs-sys-space-zero);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
.cnvs-toast-body {
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
align-items: flex-start;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
padding-top: var(--cnvs-sys-space-x4);
|
|
28
|
+
padding-bottom: var(--cnvs-sys-space-x4);
|
|
29
|
+
flex-grow: 1;
|
|
30
|
+
gap: var(--cnvs-sys-space-x1);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
.cnvs-toast {
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: row;
|
|
38
|
+
width: calc(calc(var(--cnvs-sys-space-x20) * 4) + var(--cnvs-sys-space-x10));
|
|
39
|
+
padding: var(--cnvs-sys-space-zero);
|
|
40
|
+
gap: var(--cnvs-sys-space-x1);
|
|
41
|
+
}
|
|
42
|
+
|
package/tooltip.css
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@keyframes animation-2wqdc9 {
|
|
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-2wqdc9;
|
|
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
|
+
|