-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchat.css
69 lines (58 loc) · 1.08 KB
/
chat.css
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
html, body {
margin: 0;
font-family: monospace;
color: rgb(188, 188, 240);
}
@keyframes slide-from-left {
from {
transform: translateX(-400px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slide-back-to-left {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(-400px);
opacity: 0;
}
}
#chat {
width: 400px;
height: 350px;
overflow-y: auto;
display: flex;
flex-direction: column-reverse;
}
#chat::-webkit-scrollbar {
display: none;
}
#chat ul {
list-style-type: none;
list-style-position: outside;
}
#chat li {
background-color: hsl(197, 26%, 32%);
box-sizing: border-box;
padding: 1rem 10px;
margin-bottom: 10px;
border: 4px solid;
}
#chat li:last-of-type {
animation-name: slide-from-left;
animation-duration: 0.15s;
animation-timing-function: ease-in;
}
#chat li:not(:last-of-type) {
opacity: 0.5;
}
#chat blockquote {
font-size: 1.2rem;
word-wrap: break-word;
}