forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbutton.css
More file actions
67 lines (59 loc) · 1.5 KB
/
Copy pathbutton.css
File metadata and controls
67 lines (59 loc) · 1.5 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.copilotKitButton {
width: 3.5rem;
height: 3.5rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
border: 1px solid var(--copilot-kit-primary-color);
outline: none;
position: relative;
transform: scale(1);
transition: all 0.2s ease;
background-color: var(--copilot-kit-primary-color);
color: var(--copilot-kit-contrast-color);
cursor: pointer;
box-shadow: var(--copilot-kit-shadow-sm);
}
.copilotKitButton:hover {
transform: scale(1.05);
box-shadow: var(--copilot-kit-shadow-md);
}
.copilotKitButton:active {
transform: scale(0.95);
box-shadow: var(--copilot-kit-shadow-sm);
}
.copilotKitButtonIcon {
transition:
opacity 100ms,
transform 300ms;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
align-items: center;
justify-content: center;
}
.copilotKitButtonIcon svg {
width: 1.5rem;
height: 1.5rem;
}
/* State when the chat is open */
.copilotKitButton.open .copilotKitButtonIconOpen {
transform: translate(-50%, -50%) scale(0) rotate(90deg);
opacity: 0;
}
.copilotKitButton.open .copilotKitButtonIconClose {
transform: translate(-50%, -50%) scale(1) rotate(0deg);
opacity: 1;
}
/* State when the chat is closed */
.copilotKitButton:not(.open) .copilotKitButtonIconOpen {
transform: translate(-50%, -50%) scale(1) rotate(0deg);
opacity: 1;
}
.copilotKitButton:not(.open) .copilotKitButtonIconClose {
transform: translate(-50%, -50%) scale(0) rotate(-90deg);
opacity: 0;
}