Spaces:
Running
Running
Create chat_style.css
Browse files- chat_style.css +69 -0
chat_style.css
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
body {
|
2 |
+
background-color: #1e1e1e;
|
3 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
4 |
+
color: #ddd;
|
5 |
+
margin: 0;
|
6 |
+
}
|
7 |
+
|
8 |
+
.chat-container {
|
9 |
+
max-width: 600px;
|
10 |
+
margin: 50px auto;
|
11 |
+
padding: 20px;
|
12 |
+
}
|
13 |
+
|
14 |
+
.message-row {
|
15 |
+
display: flex;
|
16 |
+
margin-bottom: 12px;
|
17 |
+
animation: fadeInUp 0.4s ease;
|
18 |
+
}
|
19 |
+
|
20 |
+
.person-a {
|
21 |
+
justify-content: flex-start;
|
22 |
+
}
|
23 |
+
|
24 |
+
.person-b {
|
25 |
+
justify-content: flex-end;
|
26 |
+
}
|
27 |
+
|
28 |
+
.message {
|
29 |
+
padding: 12px 16px;
|
30 |
+
border-radius: 20px;
|
31 |
+
max-width: 70%;
|
32 |
+
font-size: 15px;
|
33 |
+
line-height: 1.4;
|
34 |
+
word-wrap: break-word;
|
35 |
+
animation: slideIn 0.4s ease;
|
36 |
+
}
|
37 |
+
|
38 |
+
.person-a .message {
|
39 |
+
background-color: #2a2a2a;
|
40 |
+
color: #eee;
|
41 |
+
}
|
42 |
+
|
43 |
+
.person-b .message {
|
44 |
+
background-color: #0078d7;
|
45 |
+
color: white;
|
46 |
+
}
|
47 |
+
|
48 |
+
/* Animations */
|
49 |
+
@keyframes fadeInUp {
|
50 |
+
from {
|
51 |
+
opacity: 0;
|
52 |
+
transform: translateY(10px);
|
53 |
+
}
|
54 |
+
to {
|
55 |
+
opacity: 1;
|
56 |
+
transform: translateY(0);
|
57 |
+
}
|
58 |
+
}
|
59 |
+
|
60 |
+
@keyframes slideIn {
|
61 |
+
from {
|
62 |
+
transform: translateX(20px);
|
63 |
+
opacity: 0;
|
64 |
+
}
|
65 |
+
to {
|
66 |
+
transform: translateX(0);
|
67 |
+
opacity: 1;
|
68 |
+
}
|
69 |
+
}
|