2022-11-02 21:41:30 +08:00
|
|
|
.chat-replying-indicator {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
display: inline-flex;
|
|
|
|
font-size: var(--font-down-2);
|
|
|
|
|
2023-05-18 00:03:15 +08:00
|
|
|
&-container {
|
|
|
|
display: flex;
|
2023-07-06 00:18:27 +08:00
|
|
|
height: 16px;
|
2023-05-18 00:03:15 +08:00
|
|
|
}
|
|
|
|
|
2022-11-02 21:41:30 +08:00
|
|
|
&:before {
|
|
|
|
// unicode zero width space character
|
|
|
|
// Ensures the span height is consistent even when empty
|
|
|
|
content: "\200b";
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-replying-indicator__text {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-replying-indicator__wave {
|
|
|
|
flex: 0 0 auto;
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
|
|
.chat-replying-indicator__dot {
|
|
|
|
display: inline-block;
|
|
|
|
animation: chat-replying-indicator__wave 1.8s linear infinite;
|
|
|
|
&:nth-child(2) {
|
|
|
|
animation-delay: -1.6s;
|
|
|
|
}
|
|
|
|
&:nth-child(3) {
|
|
|
|
animation-delay: -1.4s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes chat-replying-indicator__wave {
|
|
|
|
0%,
|
|
|
|
60%,
|
|
|
|
100% {
|
|
|
|
transform: initial;
|
|
|
|
}
|
|
|
|
30% {
|
|
|
|
transform: translateY(-0.2em);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|