Spaces:
Running
Running
File size: 1,579 Bytes
2aad597 80e61b9 2aad597 80e61b9 2aad597 80e61b9 2aad597 7db2a6d | 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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | .typing-indicator {
display: flex;
gap: 6px;
padding: 0.5rem;
align-items: center;
}
.typing-indicator .dot {
width: 8px;
height: 8px;
background-color: #ccc;
border-radius: 50%;
animation: blink 1.4s infinite both;
}
.typing-indicator .dot:nth-child(2) {
animation-delay: 0.2s;
}
.typing-indicator .dot:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes blink {
0%, 80%, 100% { opacity: 0; }
40% { opacity: 1; }
}
.message {
display: block; /* ensures full-width layout */
width: fit-content;
max-width: 85%;
margin-bottom: 12px;
padding: 10px 14px;
border-radius: 16px;
line-height: 1.5;
word-wrap: break-word;
}
.message.user {
align-self: flex-end;
margin-left: auto;
background: #333c4d;
color: #e3f2fd;
border-bottom-right-radius: 0;
}
.message.assistant {
align-self: flex-start;
margin-right: auto;
background: #383838;
border-bottom-left-radius: 0;
}
.chat-box {
flex-grow: 1;
overflow-y: auto;
padding: 12px;
border: 1px solid #2d2d2d;
border-radius: 8px;
background: #2a2a2a;
margin-bottom: 16px;
display: flex;
flex-direction: column;
}
.chat-box p {
margin: 0.5em 0;
line-height: 1.6;
}
.chat-box li {
margin: 0.3em 0;
}
.chat-box ul, .chat-box ol {
margin: 0.5em 0 0.5em 1.2em;
padding: 0;
}
.code-block-wrapper pre {
background: #2d2d2d; /* override if needed */
padding: 1em;
font-size: 0.9em;
line-height: 1.5;
}
.code-block-wrapper {
margin: 12px 0;
background-color: #2d2d2d;
border-radius: 8px;
overflow: auto;
}
|