Update frontend/src/App.css
Browse files- frontend/src/App.css +480 -456
frontend/src/App.css
CHANGED
@@ -1,456 +1,480 @@
|
|
1 |
-
/* ----- Disposition g茅n茅rale ----- */
|
2 |
-
.App {
|
3 |
-
display: flex;
|
4 |
-
min-height: 100vh;
|
5 |
-
margin: 0;
|
6 |
-
background-image: url('../public/blurBackground.png');
|
7 |
-
background-size: cover;
|
8 |
-
background-position: center;
|
9 |
-
background-repeat: no-repeat;
|
10 |
-
background-attachment: fixed;
|
11 |
-
}
|
12 |
-
.body{
|
13 |
-
background-image: url('../public/blurBackground.png');
|
14 |
-
background-size: cover;
|
15 |
-
background-position: center;
|
16 |
-
background-repeat: no-repeat;
|
17 |
-
background-attachment: fixed;
|
18 |
-
}
|
19 |
-
|
20 |
-
/*
|
21 |
-
.
|
22 |
-
display: flex;
|
23 |
-
flex-direction: column;
|
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 |
-
justify-content: center;
|
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 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
bottom:
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
display: flex;
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
font-size:
|
277 |
-
|
278 |
-
|
279 |
-
color:
|
280 |
-
}
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
.
|
352 |
-
|
353 |
-
|
354 |
-
left:
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
}
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
}
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
.
|
452 |
-
|
453 |
-
border:
|
454 |
-
|
455 |
-
|
456 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* ----- Disposition g茅n茅rale ----- */
|
2 |
+
.App {
|
3 |
+
display: flex;
|
4 |
+
min-height: 100vh;
|
5 |
+
margin: 0;
|
6 |
+
background-image: url('../public/blurBackground.png');
|
7 |
+
background-size: cover;
|
8 |
+
background-position: center;
|
9 |
+
background-repeat: no-repeat;
|
10 |
+
background-attachment: fixed;
|
11 |
+
}
|
12 |
+
.body{
|
13 |
+
background-image: url('../public/blurBackground.png');
|
14 |
+
background-size: cover;
|
15 |
+
background-position: center;
|
16 |
+
background-repeat: no-repeat;
|
17 |
+
background-attachment: fixed;
|
18 |
+
}
|
19 |
+
|
20 |
+
/* 脌 ajouter dans votre fichier CSS */
|
21 |
+
.user-info {
|
22 |
+
display: flex;
|
23 |
+
flex-direction: column;
|
24 |
+
align-items: center;
|
25 |
+
margin: 10px 0;
|
26 |
+
font-size: 0.9rem;
|
27 |
+
}
|
28 |
+
|
29 |
+
.logout-btn {
|
30 |
+
margin-top: 5px;
|
31 |
+
padding: 5px 10px;
|
32 |
+
background-color: #f44336;
|
33 |
+
color: white;
|
34 |
+
border: none;
|
35 |
+
border-radius: 4px;
|
36 |
+
cursor: pointer;
|
37 |
+
font-size: 0.8rem;
|
38 |
+
}
|
39 |
+
|
40 |
+
.logout-btn:hover {
|
41 |
+
background-color: #d32f2f;
|
42 |
+
}
|
43 |
+
|
44 |
+
/* ----- Panel lat茅ral (sidebar) ----- */
|
45 |
+
.sidebar-panel {
|
46 |
+
display: flex;
|
47 |
+
flex-direction: column;
|
48 |
+
width: 100%;
|
49 |
+
max-width: 250px;
|
50 |
+
height: 100vh; /* Add fixed height */
|
51 |
+
background-color: #1E2136;
|
52 |
+
color: #ffffff;
|
53 |
+
overflow-y: auto;
|
54 |
+
transition: max-width 0.3s ease;
|
55 |
+
}
|
56 |
+
|
57 |
+
.App.panel-collapsed .main-content {
|
58 |
+
margin-left: 0;
|
59 |
+
}
|
60 |
+
|
61 |
+
.sidebar-panel.collapsed {
|
62 |
+
max-width: 0;
|
63 |
+
overflow: hidden;
|
64 |
+
}
|
65 |
+
|
66 |
+
/* ----- Contenu principal (zone de chat + header) ----- */
|
67 |
+
.main-content {
|
68 |
+
flex: 1;
|
69 |
+
display: flex;
|
70 |
+
flex-direction: column;
|
71 |
+
transition: margin-left 0.3s ease;
|
72 |
+
|
73 |
+
}
|
74 |
+
.new-chat-button {
|
75 |
+
|
76 |
+
background-color: #1e2136;
|
77 |
+
border: none;
|
78 |
+
border-radius: 50%;
|
79 |
+
|
80 |
+
cursor: pointer;
|
81 |
+
}
|
82 |
+
|
83 |
+
.new-chat-button:hover {
|
84 |
+
background-color: #2a2d45;
|
85 |
+
}
|
86 |
+
|
87 |
+
.new-chat-button svg {
|
88 |
+
width: 20px;
|
89 |
+
height: 20px;
|
90 |
+
fill: #ffffff;
|
91 |
+
}
|
92 |
+
/* ----- Header du chat ----- */
|
93 |
+
.chat-header {
|
94 |
+
display: flex;
|
95 |
+
position: relative;
|
96 |
+
justify-content: center;
|
97 |
+
align-items: center;
|
98 |
+
padding: 10px 15px;
|
99 |
+
color: #ffffff;
|
100 |
+
font-size: 1.3rem;
|
101 |
+
margin: 0;
|
102 |
+
}
|
103 |
+
.chat-header .avatar-container {
|
104 |
+
position: absolute;
|
105 |
+
right: 15px;
|
106 |
+
top: 50%;
|
107 |
+
transform: translateY(-50%);
|
108 |
+
}
|
109 |
+
|
110 |
+
.chat-title {
|
111 |
+
font-weight: 400;
|
112 |
+
font-size: 1.3rem;
|
113 |
+
color: #ffffff;
|
114 |
+
text-transform: uppercase;
|
115 |
+
letter-spacing: 1px;
|
116 |
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
|
117 |
+
font-family: 'Montserrat', sans-serif;
|
118 |
+
text-align: center;
|
119 |
+
}
|
120 |
+
/* ----- Conteneur du chat (zone de messages + input) ----- */
|
121 |
+
.chat-container {
|
122 |
+
display: flex;
|
123 |
+
flex-direction: column;
|
124 |
+
height: 100vh;
|
125 |
+
}
|
126 |
+
/* ----- Vue sans message : contenu centr茅 ----- */
|
127 |
+
.no-messages-view {
|
128 |
+
flex: 1;
|
129 |
+
display: flex;
|
130 |
+
flex-direction: column;
|
131 |
+
justify-content: center;
|
132 |
+
align-items: center;
|
133 |
+
padding: 20px;
|
134 |
+
text-align: center;
|
135 |
+
}
|
136 |
+
.no-messages-view .welcome-message {
|
137 |
+
margin-bottom: 20px;
|
138 |
+
color:white;
|
139 |
+
font-size:1.5rem;
|
140 |
+
}
|
141 |
+
|
142 |
+
.no-messages-view .input-container {
|
143 |
+
position: relative;
|
144 |
+
bottom: auto;
|
145 |
+
left: auto;
|
146 |
+
right: auto;
|
147 |
+
margin-top: 20px;
|
148 |
+
width: 100%;
|
149 |
+
}
|
150 |
+
|
151 |
+
|
152 |
+
.welcome-content {
|
153 |
+
flex-direction: column;
|
154 |
+
align-items: center;
|
155 |
+
justify-content: center;
|
156 |
+
max-width: 600px;
|
157 |
+
width: 100%;
|
158 |
+
margin-bottom: 100px;
|
159 |
+
}
|
160 |
+
|
161 |
+
.no-messages-view .input-form {
|
162 |
+
max-width: 600px;
|
163 |
+
width: 100%;
|
164 |
+
}
|
165 |
+
|
166 |
+
/* ----- Zone des messages scrollable ----- */
|
167 |
+
.messages-container {
|
168 |
+
flex: 1;
|
169 |
+
overflow-y: auto;
|
170 |
+
padding: 20px 15px;
|
171 |
+
display: flex;
|
172 |
+
flex-direction: column;
|
173 |
+
align-items: center;
|
174 |
+
justify-content: flex-start;
|
175 |
+
gap: 12px;
|
176 |
+
margin-left: 10vw;
|
177 |
+
margin-right: 10vw;
|
178 |
+
margin-bottom: 8vw;
|
179 |
+
}
|
180 |
+
.messages-container::-webkit-scrollbar {
|
181 |
+
|
182 |
+
display:none;
|
183 |
+
|
184 |
+
}
|
185 |
+
|
186 |
+
@media (max-width: 768px) {
|
187 |
+
.messages-container {
|
188 |
+
margin-left: 5vw;
|
189 |
+
margin-right: 5vw;
|
190 |
+
margin-bottom: 100px;
|
191 |
+
}
|
192 |
+
}
|
193 |
+
|
194 |
+
@media (max-width: 480px) {
|
195 |
+
.messages-container {
|
196 |
+
margin-left: 2vw;
|
197 |
+
margin-right: 2vw;
|
198 |
+
margin-bottom: 120px; /* Ajuste l'espace en bas pour les tr猫s petits 茅crans */
|
199 |
+
}
|
200 |
+
}
|
201 |
+
/* ----- Style des messages ----- */
|
202 |
+
.message {
|
203 |
+
max-width: 70%; /* Limite la largeur des messages */
|
204 |
+
padding: 12px 16px;
|
205 |
+
border-radius: 8px;
|
206 |
+
word-break: break-word;
|
207 |
+
animation: fade-in 0.3s ease-in-out;
|
208 |
+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ajoute une ombre l茅g猫re */
|
209 |
+
}
|
210 |
+
.message.user {
|
211 |
+
align-self: flex-end; /* Aligne 脿 droite */
|
212 |
+
background: rgba(67, 72, 105, 0.3);
|
213 |
+
backdrop-filter: blur(10px);
|
214 |
+
color: #ffffff;
|
215 |
+
font-size: 1rem;
|
216 |
+
line-height: 1.5;
|
217 |
+
border-bottom-right-radius: 4px;
|
218 |
+
}
|
219 |
+
|
220 |
+
.message.bot .message-content{
|
221 |
+
display:flex;
|
222 |
+
align-self: flex-end;
|
223 |
+
}
|
224 |
+
.message.user .message-content{
|
225 |
+
display:flex;
|
226 |
+
align-self: flex-start;
|
227 |
+
}
|
228 |
+
.message.bot {
|
229 |
+
align-self: flex-start;
|
230 |
+
color: #e1e1e1;
|
231 |
+
font-size: 1rem;
|
232 |
+
line-height: 1.5;
|
233 |
+
border-bottom-left-radius: 4px;
|
234 |
+
}
|
235 |
+
|
236 |
+
/* ----- Animation pour l'apparition ----- */
|
237 |
+
@keyframes fade-in {
|
238 |
+
from { opacity: 0; transform: translateY(5px); }
|
239 |
+
to { opacity: 1; transform: translateY(0); }
|
240 |
+
}
|
241 |
+
|
242 |
+
/* ----- Indicateur de chargement ----- */
|
243 |
+
.loading span {
|
244 |
+
display: inline-block;
|
245 |
+
animation: loading-dots 1.4s infinite ease-in-out;
|
246 |
+
font-size: 1.2rem;
|
247 |
+
margin-right: 2px;
|
248 |
+
}
|
249 |
+
|
250 |
+
@keyframes loading-dots {
|
251 |
+
0%, 80%, 100% { transform: scale(0); }
|
252 |
+
40% { transform: scale(1); }
|
253 |
+
}
|
254 |
+
|
255 |
+
.input-container {
|
256 |
+
position: fixed;
|
257 |
+
bottom: 20px;
|
258 |
+
left: 0;
|
259 |
+
right: 0;
|
260 |
+
display: flex;
|
261 |
+
flex-direction: column;
|
262 |
+
align-items: center;
|
263 |
+
z-index: 999;
|
264 |
+
width: 100%;
|
265 |
+
}
|
266 |
+
.disclaimer-text {
|
267 |
+
font-size: 12px;
|
268 |
+
color: #666;
|
269 |
+
text-align: center;
|
270 |
+
margin-top: 8px;
|
271 |
+
font-style: italic;
|
272 |
+
max-width: 600px;
|
273 |
+
}
|
274 |
+
|
275 |
+
.conversation-date{
|
276 |
+
font-size: 0.8rem;
|
277 |
+
font-style: italic;
|
278 |
+
margin-top: 2px;
|
279 |
+
color:rgb(183, 183, 183);
|
280 |
+
}
|
281 |
+
|
282 |
+
/* ----- Formulaire d'entr茅e ----- */
|
283 |
+
.input-form {
|
284 |
+
display: flex;
|
285 |
+
align-items: center;
|
286 |
+
justify-content: space-between;
|
287 |
+
background: linear-gradient(180deg, #1E2136 0%, #1E2136 100%);
|
288 |
+
border-radius: 20px;
|
289 |
+
padding: 12px 16px;
|
290 |
+
width: 100%;
|
291 |
+
max-width: 600px;
|
292 |
+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
293 |
+
}
|
294 |
+
/* Input */
|
295 |
+
.input-form input {
|
296 |
+
flex: 1;
|
297 |
+
padding: 10px 12px;
|
298 |
+
border: none;
|
299 |
+
border-radius: 16px;
|
300 |
+
font-size: 14px;
|
301 |
+
outline: none;
|
302 |
+
background: transparent;
|
303 |
+
color: rgba(255, 255, 255, 0.8);
|
304 |
+
}
|
305 |
+
|
306 |
+
.input-form textarea {
|
307 |
+
flex: 1;
|
308 |
+
padding: 10px 12px;
|
309 |
+
border: none;
|
310 |
+
border-radius: 16px;
|
311 |
+
font-size: 14px;
|
312 |
+
outline: none;
|
313 |
+
background: transparent;
|
314 |
+
color: rgba(255, 255, 255, 0.8);
|
315 |
+
resize: none;
|
316 |
+
overflow-y: auto;
|
317 |
+
height: auto;
|
318 |
+
max-height: 150px;
|
319 |
+
|
320 |
+
}
|
321 |
+
.input-form textarea::placeholder {
|
322 |
+
color: rgba(255, 255, 255, 0.5);
|
323 |
+
}
|
324 |
+
textarea::-webkit-scrollbar {
|
325 |
+
width: 12px;
|
326 |
+
}
|
327 |
+
|
328 |
+
/* For Firefox */
|
329 |
+
textarea {
|
330 |
+
scrollbar-width: thin;
|
331 |
+
scrollbar-color: #acacac transparent;
|
332 |
+
}
|
333 |
+
|
334 |
+
textarea:hover {
|
335 |
+
scrollbar-color: #b1b1b1 transparent;
|
336 |
+
}
|
337 |
+
|
338 |
+
/* Placeholder */
|
339 |
+
.input-form input::placeholder {
|
340 |
+
color: rgba(255, 255, 255, 0.5);
|
341 |
+
}
|
342 |
+
|
343 |
+
/* Bouton d'envoi */
|
344 |
+
.input-form button {
|
345 |
+
display: flex;
|
346 |
+
align-items: center;
|
347 |
+
justify-content: center;
|
348 |
+
background: transparent;
|
349 |
+
border: none;
|
350 |
+
cursor: pointer;
|
351 |
+
color: rgba(255, 255, 255, 0.8);
|
352 |
+
font-size: 16px;
|
353 |
+
padding: 6px 12px;
|
354 |
+
margin-left: 8px;
|
355 |
+
transition: opacity 0.2s;
|
356 |
+
border-radius: 50%;
|
357 |
+
|
358 |
+
}
|
359 |
+
|
360 |
+
.input-form button:hover {
|
361 |
+
opacity: 0.7;
|
362 |
+
}
|
363 |
+
|
364 |
+
/* D茅sactivation du bouton */
|
365 |
+
.input-form button:disabled {
|
366 |
+
opacity: 0.3;
|
367 |
+
cursor: not-allowed;
|
368 |
+
}
|
369 |
+
|
370 |
+
h2{
|
371 |
+
display: block;
|
372 |
+
text-align: center;
|
373 |
+
}
|
374 |
+
/* ----- Bouton de collapse principal ----- */
|
375 |
+
.collapse-button-main {
|
376 |
+
position: absolute;
|
377 |
+
top: 20px;
|
378 |
+
left: 20px;
|
379 |
+
z-index: 999;
|
380 |
+
background: none;
|
381 |
+
border: none;
|
382 |
+
color: #fff;
|
383 |
+
cursor: pointer;
|
384 |
+
font-size: 24px;
|
385 |
+
}
|
386 |
+
|
387 |
+
/* ----- Ic么nes ----- */
|
388 |
+
.material-icons {
|
389 |
+
vertical-align: middle;
|
390 |
+
}
|
391 |
+
|
392 |
+
/* ----- Liste des conversations dans le panel ----- */
|
393 |
+
.conversations-list {
|
394 |
+
display: flex;
|
395 |
+
flex-direction: column;
|
396 |
+
flex: 1;
|
397 |
+
overflow-y: auto;
|
398 |
+
max-height: calc(100vh - 100px);
|
399 |
+
}
|
400 |
+
|
401 |
+
|
402 |
+
.conversations-list::-webkit-scrollbar {
|
403 |
+
width: 12px;
|
404 |
+
}
|
405 |
+
|
406 |
+
.conversation-today-title{
|
407 |
+
display: flex;
|
408 |
+
margin-left: 6%;
|
409 |
+
}
|
410 |
+
.conversation-before-title{
|
411 |
+
display: flex;
|
412 |
+
margin-left: 6%;
|
413 |
+
}
|
414 |
+
.delete-button{
|
415 |
+
background: none;
|
416 |
+
border: none;
|
417 |
+
color: #fff;
|
418 |
+
cursor: pointer;
|
419 |
+
font-size: 24px;
|
420 |
+
margin-left: auto;
|
421 |
+
|
422 |
+
}
|
423 |
+
/* For Firefox */
|
424 |
+
.conversations-list {
|
425 |
+
scrollbar-width: thin;
|
426 |
+
scrollbar-color: #acacac transparent;
|
427 |
+
}
|
428 |
+
|
429 |
+
.conversations-list:hover {
|
430 |
+
scrollbar-color: #b1b1b1 transparent;
|
431 |
+
}
|
432 |
+
|
433 |
+
.conversation-item {
|
434 |
+
padding: 8px;
|
435 |
+
gap: 12px;
|
436 |
+
border-bottom: 1px solid #525467;
|
437 |
+
cursor: pointer;
|
438 |
+
display: flex;
|
439 |
+
align-items: center;
|
440 |
+
}
|
441 |
+
|
442 |
+
.conversation-item:hover {
|
443 |
+
background-color: #525467;
|
444 |
+
}
|
445 |
+
|
446 |
+
.conversation-icon {
|
447 |
+
margin-right: 6px;
|
448 |
+
}
|
449 |
+
|
450 |
+
/* ----- Footer du panel ----- */
|
451 |
+
.sidebar-footer {
|
452 |
+
margin-top: auto;
|
453 |
+
border-top: 1px solid #525467;
|
454 |
+
padding: 8px;
|
455 |
+
}
|
456 |
+
.sidebar-header{
|
457 |
+
display:flex;
|
458 |
+
justify-content: space-between;
|
459 |
+
align-items: center;
|
460 |
+
margin-bottom: 1.3rem;
|
461 |
+
padding-top:0.5rem;
|
462 |
+
padding-inline-start: calc(0.5rem);
|
463 |
+
padding-inline-end: calc(0.5rem); ;}
|
464 |
+
|
465 |
+
.user-info {
|
466 |
+
display: flex;
|
467 |
+
align-items: center;
|
468 |
+
gap: 6px;
|
469 |
+
}
|
470 |
+
|
471 |
+
.user-avatar {
|
472 |
+
font-size: 20px;
|
473 |
+
}
|
474 |
+
|
475 |
+
.collapse-button {
|
476 |
+
background: none;
|
477 |
+
border: none;
|
478 |
+
color: #fff;
|
479 |
+
cursor: pointer;
|
480 |
+
}
|