AchyuthGamer
commited on
Commit
·
ae2f7e5
1
Parent(s):
36526b2
Update client/css/message.css
Browse files- client/css/message.css +78 -22
client/css/message.css
CHANGED
@@ -1,28 +1,84 @@
|
|
1 |
-
.
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
}
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
border-right: 3px solid;
|
14 |
-
font-family: monospace;
|
15 |
-
font-size: 2em;
|
16 |
}
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
22 |
}
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
|
|
1 |
+
.message {
|
2 |
+
width: 100%;
|
3 |
+
overflow-wrap: break-word;
|
4 |
+
display: flex;
|
5 |
+
gap: var(--section-gap);
|
6 |
+
padding: var(--section-gap);
|
7 |
+
padding-bottom: 0;
|
8 |
+
width: 22ch;
|
9 |
+
animation: typing 2s steps(22), blink .5s step-end infinite alternate;
|
10 |
+
white-space: nowrap;
|
11 |
+
overflow: hidden;
|
12 |
+
border-right: 3px solid;
|
13 |
+
font-family: monospace;
|
14 |
+
font-size: 2em;
|
15 |
+
}
|
16 |
+
|
17 |
+
.message:last-child {
|
18 |
+
animation: 5.5s show_message;
|
19 |
}
|
20 |
|
21 |
+
@keyframes show_message {
|
22 |
+
from {
|
23 |
+
transform: translateY(10px);
|
24 |
+
opacity: 0;
|
25 |
+
}
|
|
|
|
|
|
|
26 |
}
|
27 |
|
28 |
+
.message .avatar-container img {
|
29 |
+
max-width: 48px;
|
30 |
+
max-height: 48px;
|
31 |
+
box-shadow: 0.4px 0.5px 0.7px -2px rgba(0, 0, 0, 0.08), 1.1px 1.3px 2px -2px rgba(0, 0, 0, 0.041),
|
32 |
+
2.7px 3px 4.8px -2px rgba(0, 0, 0, 0.029), 9px 10px 16px -2px rgba(0, 0, 0, 0.022);
|
33 |
}
|
34 |
+
|
35 |
+
.message .content {
|
36 |
+
display: flex;
|
37 |
+
flex-direction: column;
|
38 |
+
width: 90%;
|
39 |
+
gap: 18px;
|
40 |
+
}
|
41 |
+
|
42 |
+
.message .content p,
|
43 |
+
.message .content li,
|
44 |
+
.message .content code {
|
45 |
+
font-size: 1rem;
|
46 |
+
line-height: 1.3;
|
47 |
+
}
|
48 |
+
|
49 |
+
@media screen and (max-height: 720px) {
|
50 |
+
.message {
|
51 |
+
padding: 12px;
|
52 |
+
gap: 0;
|
53 |
+
}
|
54 |
+
|
55 |
+
.message .content {
|
56 |
+
margin-left: 8px;
|
57 |
+
width: 80%;
|
58 |
+
}
|
59 |
+
|
60 |
+
.message .avatar-container img {
|
61 |
+
max-width: 32px;
|
62 |
+
max-height: 32px;
|
63 |
+
}
|
64 |
+
|
65 |
+
.message .content,
|
66 |
+
.message .content p,
|
67 |
+
.message .content li,
|
68 |
+
.message .content code {
|
69 |
+
font-size: 0.875rem;
|
70 |
+
line-height: 1.3;
|
71 |
+
}
|
72 |
+
}
|
73 |
+
|
74 |
+
|
75 |
+
|
76 |
+
|
77 |
+
|
78 |
+
|
79 |
+
.wrapper {
|
80 |
+
height: 100vh;
|
81 |
+
/*This part is important for centering*/
|
82 |
+
display: grid;
|
83 |
+
place-items: center;
|
84 |
}
|