-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathchat.component.scss
More file actions
147 lines (130 loc) · 2.41 KB
/
Copy pathchat.component.scss
File metadata and controls
147 lines (130 loc) · 2.41 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
: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: rgba(255, 255, 255, 0.5);
background: rgba(255, 255, 255, 0.05);
box-shadow: none;
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.5);
background: transparent;
cursor: pointer;
transition:
color 0.16s ease,
background 0.16s ease;
&:hover,
&:focus-visible {
color: #fff;
background: rgba(255, 255, 255, 0.08);
}
}
.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: 0.5;
transition: opacity 0.16s ease;
}
&:hover .chat-img,
&:focus-visible .chat-img {
opacity: 1;
}
}
.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;
}
}
}