Skip to content

Commit 2e0433a

Browse files
committed
chat
1 parent 438a618 commit 2e0433a

File tree

4 files changed

+1169
-1262
lines changed

4 files changed

+1169
-1262
lines changed

chat/assets/css/loader-v1.0.0.1.css

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
.user-list-loader .user-item {
2+
display: flex;
3+
align-items: center;
4+
padding: 10px;
5+
}
6+
7+
.avatar-loader {
8+
width: 50px;
9+
height: 50px;
10+
aspect-ratio: 1 / 1;
11+
background-color: #e0e0e0;
12+
animation: shimmer 1.5s infinite;
13+
}
14+
15+
.name-loader,
16+
.desc-loader {
17+
height: 14px;
18+
background-color: #e0e0e0;
19+
animation: shimmer 1.5s infinite;
20+
}
21+
22+
.name-loader {
23+
width: 150px;
24+
margin-bottom: 6px;
25+
}
26+
27+
.desc-loader {
28+
width: 100px;
29+
}
30+
31+
@keyframes shimmer {
32+
0% {
33+
background-position: -468px 0;
34+
}
35+
100% {
36+
background-position: 468px 0;
37+
}
38+
}
39+
40+
.user-list-loader .avatar-loader,
41+
.user-list-loader .name-loader,
42+
.user-list-loader .desc-loader {
43+
background: #f6f7f8;
44+
background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
45+
background-repeat: no-repeat;
46+
background-size: 800px 104px;
47+
display: inline-block;
48+
position: relative;
49+
}

0 commit comments

Comments
 (0)