66 lines
1.3 KiB
CSS
66 lines
1.3 KiB
CSS
.Messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 1rem 1.25rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* Typing indicator */
|
|
.Messages__typing {
|
|
display: flex;
|
|
align-items: center;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.Messages__typingIndicator {
|
|
display: flex;
|
|
gap: 0.25rem;
|
|
padding: 0.75rem 1rem;
|
|
background: var(--ifm-color-emphasis-100);
|
|
border-radius: 1.25rem;
|
|
border-top-left-radius: 0.25rem;
|
|
}
|
|
|
|
.Messages__typingIndicator span {
|
|
width: 0.5rem;
|
|
height: 0.5rem;
|
|
background: var(--ifm-color-emphasis-500);
|
|
border-radius: 50%;
|
|
animation: bounce 1.4s infinite ease-in-out;
|
|
}
|
|
|
|
.Messages__typingIndicator span:nth-child(1) { animation-delay: -0.32s; }
|
|
.Messages__typingIndicator span:nth-child(2) { animation-delay: -0.16s; }
|
|
|
|
@keyframes bounce {
|
|
0%, 80%, 100% { transform: scale(0); }
|
|
40% { transform: scale(1); }
|
|
}
|
|
|
|
/* Scrollbar */
|
|
.Messages::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.Messages::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.Messages::-webkit-scrollbar-thumb {
|
|
background: var(--ifm-color-emphasis-300);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.Messages::-webkit-scrollbar-thumb:hover {
|
|
background: var(--ifm-color-emphasis-400);
|
|
}
|
|
|
|
@media (min-width: 576px) {
|
|
.Messages {
|
|
padding: 1.5rem;
|
|
}
|
|
}
|