Download frontend/src/components/chat.css from berohan/studyrag: direct link, hf CLI and curl.
- Browser
- Download file 3.12 kB
-
https://huggingface.co/spaces/berohan/studyrag/resolve/main/frontend/src/components/chat.css
- Command line
-
hf download hf://spaces/berohan/studyrag/frontend/src/components/chat.css
-
curl -L -o chat.css https://huggingface.co/spaces/berohan/studyrag/resolve/main/frontend/src/components/chat.css
3.12 kB
| .chat-container { | |
| background: var(--bg-card); | |
| border-radius: 16px; | |
| box-shadow: var(--shadow-md); | |
| display: flex; | |
| flex-direction: column; | |
| height: 600px; | |
| } | |
| .messages-area { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 2rem; | |
| } | |
| .empty-state { | |
| height: 100%; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| color: var(--text-secondary); | |
| text-align: center; | |
| } | |
| .empty-icon { | |
| font-size: 4rem; | |
| margin-bottom: 1rem; | |
| opacity: 0.5; | |
| } | |
| .empty-state h3 { | |
| font-size: 1.5rem; | |
| margin-bottom: 0.5rem; | |
| color: var(--text-primary); | |
| } | |
| .message { | |
| margin-bottom: 1.5rem; | |
| display: flex; | |
| gap: 1rem; | |
| animation: slideIn 0.3s ease; | |
| } | |
| .message-bubble { | |
| max-width: 70%; | |
| padding: 1.25rem 1.5rem; | |
| border-radius: 16px; | |
| line-height: 1.6; | |
| } | |
| .message.user .message-bubble { | |
| background: var(--gradient-primary); | |
| color: white; | |
| margin-left: auto; | |
| border-bottom-right-radius: 4px; | |
| } | |
| .message.assistant .message-bubble { | |
| background: var(--bg-main); | |
| color: var(--text-primary); | |
| border-bottom-left-radius: 4px; | |
| } | |
| .typing-indicator { | |
| display: flex; | |
| gap: 0.3rem; | |
| padding: 0.25rem 0; | |
| } | |
| .typing-indicator span { | |
| width: 7px; | |
| height: 7px; | |
| border-radius: 50%; | |
| background: var(--text-secondary); | |
| animation: pulse 1.2s infinite; | |
| } | |
| .typing-indicator span:nth-child(2) { | |
| animation-delay: 0.2s; | |
| } | |
| .typing-indicator span:nth-child(3) { | |
| animation-delay: 0.4s; | |
| } | |
| .message-sources { | |
| margin-top: 1rem; | |
| padding-top: 1rem; | |
| border-top: 1px solid var(--border); | |
| font-size: 0.875rem; | |
| } | |
| .message.user .message-sources { | |
| border-top: 1px solid rgba(255, 255, 255, 0.2); | |
| } | |
| .sources-loading { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| color: var(--text-secondary); | |
| font-style: italic; | |
| } | |
| .source-item { | |
| margin-top: 0.75rem; | |
| padding: 0.75rem; | |
| background: rgba(102, 126, 234, 0.08); | |
| border-radius: 8px; | |
| font-size: 0.85rem; | |
| } | |
| .message.user .source-item { | |
| background: rgba(255, 255, 255, 0.1); | |
| } | |
| .source-item strong { | |
| display: block; | |
| margin-bottom: 0.25rem; | |
| } | |
| .chat-input-area { | |
| padding: 1.5rem; | |
| border-top: 1px solid var(--border); | |
| } | |
| .chat-input-wrapper { | |
| display: flex; | |
| gap: 1rem; | |
| align-items: center; | |
| } | |
| .chat-input { | |
| flex: 1; | |
| padding: 1rem 1.5rem; | |
| border: 2px solid var(--border); | |
| border-radius: 12px; | |
| font-size: 1rem; | |
| font-family: inherit; | |
| transition: all 0.3s ease; | |
| background: var(--bg-card); | |
| color: var(--text-primary); | |
| } | |
| .chat-input:focus { | |
| outline: none; | |
| border-color: var(--primary); | |
| box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1); | |
| } | |
| .chat-input:disabled { | |
| opacity: 0.6; | |
| } | |
| .btn-send { | |
| width: 50px; | |
| height: 50px; | |
| border-radius: 12px; | |
| background: var(--gradient-primary); | |
| border: none; | |
| color: white; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: all 0.3s ease; | |
| flex-shrink: 0; | |
| } | |
| .btn-send:hover { | |
| transform: scale(1.05); | |
| box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); | |
| } | |
| .btn-cancel { | |
| background: var(--danger); | |
| } | |
| @media (max-width: 768px) { | |
| .message-bubble { | |
| max-width: 85%; | |
| } | |
| } | |