-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathchat.component.scss
More file actions
161 lines (142 loc) · 2.77 KB
/
Copy pathchat.component.scss
File metadata and controls
161 lines (142 loc) · 2.77 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
:host {
pointer-events: none;
}
.chat-overlay-root {
position: fixed;
inset: 0;
z-index: 99999;
pointer-events: none;
}
.chat-launcher {
position: absolute;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
width: 40px;
padding: 4px;
border-radius: 20px;
color: var(--el-text-color-light);
background: var(--el-nav-bg-color);
border: 1px solid rgba(255, 255, 255, 0.22);
box-shadow:
0 8px 24px rgba(0, 0, 0, 0.32),
0 0 0 1px rgba(0, 0, 0, 0.22),
0 1px 0 rgba(255, 255, 255, 0.16) inset;
pointer-events: auto;
user-select: none;
z-index: 1;
}
.chat-drag-handle,
.chat-action-button {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 28px;
padding: 0;
border: 0;
border-radius: 12.5px;
color: rgba(255, 255, 255, 0.72);
background: transparent;
cursor: pointer;
transition:
color 0.16s ease,
background 0.16s ease;
&:hover,
&:focus-visible {
color: #fff;
background: rgba(255, 255, 255, 0.12);
}
}
.chat-drag-handle {
cursor: grab;
touch-action: none;
&.dragging {
cursor: grabbing;
}
}
.chat-action-group {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
width: 32px;
}
.chat-action-button {
.anticon {
font-size: 16px;
}
.chat-img {
width: 16px;
height: 16px;
opacity: 1;
transition: opacity 0.16s ease;
}
&:hover .chat-img,
&:focus-visible .chat-img {
opacity: 1;
}
}
.chat-ai-button {
background: var(--el-dropdown-selected-bg-color);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
&:hover,
&:focus-visible {
background: var(--el-dropdown-active-bg-color);
}
}
.chat-panel {
position: fixed;
right: 12px;
bottom: 12px;
width: min(440px, calc(100vw - 24px));
min-width: 260px;
height: min(400px, calc(100dvh - 24px));
overflow: hidden;
border-radius: 10px;
background: #fff;
box-shadow: 0 0 8px 4px #00000014;
pointer-events: auto;
transition:
width 0.25s cubic-bezier(0.7, 0.3, 0.1, 1),
height 0.25s cubic-bezier(0.7, 0.3, 0.1, 1),
border-radius 0.25s cubic-bezier(0.7, 0.3, 0.1, 1);
z-index: 2;
&.chat-panel-expanded {
top: 0;
right: 0;
bottom: auto;
width: min(440px, 100vw);
height: 100dvh;
border-radius: 10px 0 0 10px;
}
.content {
width: 100%;
height: 100%;
iframe {
display: block;
width: 100%;
height: 100%;
border: none;
}
}
}
::ng-deep {
.chat-drag-handle .anticon {
font-size: 16px;
}
}
@media (max-width: 480px) {
.chat-panel {
right: 6px;
bottom: 6px;
width: calc(100vw - 12px);
height: min(400px, calc(100dvh - 12px));
&.chat-panel-expanded {
right: 0;
width: 100vw;
border-radius: 0;
}
}
}