-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathchatbees_styles.css
More file actions
217 lines (198 loc) · 4.28 KB
/
Copy pathchatbees_styles.css
File metadata and controls
217 lines (198 loc) · 4.28 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
/* Styles for the chat popup and floating button */
/* You can adjust these styles as needed for your design */
.chatbees-float-btn {
position: fixed;
bottom: 20px;
right: 20px;
width: 60px; /* Adjust width as needed */
height: 60px; /* Adjust height as needed */
border-radius: 50%; /* Create a circle */
/*background-color: #4CAF50; /* Adjust background color as needed */
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for better visibility */
z-index: 9998; /* Make sure float btn is always on top */
}
.chatbees-chaticon {
width: 60px; /* Adjust icon size as needed */
height: 60px; /* Adjust icon size as needed */
}
.chatbees-popup {
display: none; /* not show chat-popup when page loads */
bottom: 20px; /* Align the popup to the bottom */
flex-direction: column;
justify-content: space-between;
position: fixed;
right: 10px;
width: 90%;
max-width: 500px;
height: 80%;
max-height: 900px;
overflow: auto; /* Enable scrolling if content exceeds dimensions */
border-radius: 10px;
box-sizing: border-box;
padding: 0px;
background-color: #fff;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
z-index: 9999;
}
/* Media query for smaller screens */
@media (max-width: 600px) {
.chatbees-popup {
width: 90%;
max-width: 100%;
height: 80%;
max-height: 100%;
bottom: 0;
border-radius: 0;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
}
.chatbees-header {
display: flex;
/*background-color: #b3d9ff; /* Light blue background color */
justify-content: space-between;
align-items: center;
}
.chatbees-left-section {
flex: 1; /* Take remaining space */
display: flex;
align-items: center;
}
.chatbees-logo {
width: 40px; /* Adjust the width as needed */
height: 40px; /* Adjust the height as needed */
}
.chatbees-right-section {
display: flex;
align-items: center;
}
.chatbees-btn-icon {
width: 20px; /* Adjust the width as needed */
height: 20px; /* Adjust the height as needed */
margin-right: 8px; /* Add margin to create space between the refresh icon and close span */
cursor: pointer;
}
.chatbees-btn-icon.inline {
display: inline-block;
margin-left: 0.5rem;
}
.chatbees-close {
cursor: pointer;
font-size: 25px;
}
.chatbees-chat-area {
flex: 1;
padding: 10px;
background: #fff;
overflow-y: auto;
display: flex;
flex-direction: column;
border-top: 1px solid #e0e0e0;
border: 1px solid #ccc;
}
.sending .dot {
opacity: 0;
animation: blink 1.5s infinite;
}
.sending .dot:nth-child(2) {
animation-delay: 0.5s;
}
.sending .dot:nth-child(3) {
animation-delay: 1s;
}
@keyframes blink {
0%, 20% {
opacity: 0;
}
40% {
opacity: .25;
}
60% {
opacity: .5;
}
80% {
opacity: .75;
}
100% {
opacity: 1;
}
}
.chatbees-user-input-area {
bottom: 0;
width: 100%;
max-width: 100%;
padding: 5px;
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
border: 1px solid #ccc;
border-top: none;
}
.chatbees-user-input-area textarea {
width: 100%;
max-width: 100%;
resize: none;
border-radius: 10px;
padding: 5px;
box-sizing: border-box;
flex-grow: 1;
margin-right: 10px;
color: #1a1a1a;
}
.chatbees-user-input-area textarea:focus,
input:focus {
outline: none;
}
.chatbees-send-icon {
width: 20px; /* Adjust the width as needed */
height: 20px; /* Adjust the height as needed */
margin-right: 5px;
cursor: pointer;
}
.chatbees-message {
padding: 5px 10px;
margin: 5px;
border: 0.5em solid transparent;
border-radius: 8px;
display: flex;
flex-direction: column;
max-width: 85%;
}
.chatbees-bot {
background: #f2f2f2;
align-self: flex-start;
border-bottom-left-radius: 0;
}
.chatbees-link {
font-style: italic;
border-radius: 5px;
margin-left: -5px;
padding-left: 5px;
}
.chatbees-link:hover {
background-color: #e2e2e2;
}
.chatbees-section-label {
font-weight: bold;
font-size: 0.9em;
color: #777;
}
.chatbees-error {
color: #ff2a00;
}
.chatbees-user {
background: black;
color: white;
align-self: flex-end;
margin-left: auto; /* Aligns to the right */
border-bottom-right-radius: 0;
}
textarea:focus,
input:focus {
outline: none;
}