-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathActivityCopyButton.ts
More file actions
40 lines (35 loc) · 1.09 KB
/
ActivityCopyButton.ts
File metadata and controls
40 lines (35 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
export default function createActivityButtonStyle() {
return {
'&.webchat__activity-copy-button': {
overflow: ['clip', 'hidden'],
position: 'relative',
'& .webchat__activity-copy-button__copied-text': {
alignItems: 'center',
backgroundColor: '#fff',
display: 'flex',
height: '100%',
justifyContent: 'center',
position: 'absolute',
visibility: 'hidden',
width: '100%'
},
'&.webchat__activity-copy-button--copied': {
'.webchat__activity-copy-button__copied-text': {
animation: 'webchat__activity-copy-button__copied-animation 0.7s linear'
},
'.webchat__activity-button__icon, .webchat__activity-button__text': {
visibility: 'hidden'
}
},
'@keyframes webchat__activity-copy-button__copied-animation': {
'0%': {
// This is set during the animation only hence shouldn't spill when hidden from the above tree
visibility: 'visible'
},
'100%': {
visibility: 'unset'
}
}
}
};
}