Download src/styles/ChatDialog.css from UnDaoDu/aimindmap: direct link, hf CLI and curl.
- Browser
- Download file 2.84 kB
-
https://huggingface.co/spaces/UnDaoDu/aimindmap/resolve/main/src/styles/ChatDialog.css
- Command line
-
hf download hf://spaces/UnDaoDu/aimindmap/src/styles/ChatDialog.css
-
curl -L -o ChatDialog.css https://huggingface.co/spaces/UnDaoDu/aimindmap/resolve/main/src/styles/ChatDialog.css
2.84 kB
| .chat-dialog { | |
| position: fixed; | |
| bottom: 20px; | |
| left: 20px; | |
| width: 360px; | |
| max-width: 90vw; | |
| background-color: white; | |
| border: 1px solid #e5e7eb; | |
| border-radius: 12px; | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | |
| z-index: 1000; | |
| transition: all 0.3s ease; | |
| overflow: hidden; | |
| } | |
| .chat-dialog.minimized { | |
| height: 60px; | |
| } | |
| .chat-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 12px 16px; | |
| background-color: #f8fafc; | |
| border-bottom: 1px solid #e5e7eb; | |
| cursor: pointer; | |
| } | |
| .chat-title { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| font-weight: 500; | |
| color: #1f2937; | |
| } | |
| .chat-logo { | |
| width: 24px; | |
| height: 24px; | |
| border-radius: 50%; | |
| } | |
| .chat-controls { | |
| display: flex; | |
| gap: 8px; | |
| } | |
| .minimize-button, | |
| .close-button { | |
| background: none; | |
| border: none; | |
| font-size: 18px; | |
| color: #6b7280; | |
| cursor: pointer; | |
| padding: 4px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| border-radius: 4px; | |
| transition: all 0.2s ease; | |
| } | |
| .minimize-button:hover, | |
| .close-button:hover { | |
| background-color: #e5e7eb; | |
| color: #1f2937; | |
| } | |
| .messages-container { | |
| height: 360px; | |
| overflow-y: auto; | |
| padding: 16px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 16px; | |
| scroll-behavior: smooth; | |
| } | |
| .message { | |
| display: flex; | |
| gap: 12px; | |
| max-width: 85%; | |
| } | |
| .message-avatar { | |
| width: 28px; | |
| height: 28px; | |
| border-radius: 50%; | |
| flex-shrink: 0; | |
| } | |
| .user-message { | |
| margin-left: auto; | |
| flex-direction: row-reverse; | |
| } | |
| .message-content { | |
| padding: 10px 14px; | |
| border-radius: 12px; | |
| font-size: 14px; | |
| line-height: 1.5; | |
| } | |
| .assistant-message .message-content { | |
| background-color: #f8fafc; | |
| border: 1px solid #e5e7eb; | |
| color: #1f2937; | |
| } | |
| .user-message .message-content { | |
| background-color: #2563eb; | |
| color: white; | |
| } | |
| .input-container { | |
| display: flex; | |
| gap: 8px; | |
| padding: 12px 16px; | |
| border-top: 1px solid #e5e7eb; | |
| background-color: white; | |
| } | |
| .chat-input { | |
| flex: 1; | |
| padding: 8px 12px; | |
| border: 1px solid #e5e7eb; | |
| border-radius: 6px; | |
| font-size: 14px; | |
| outline: none; | |
| transition: border-color 0.2s ease; | |
| } | |
| .chat-input:focus { | |
| border-color: #2563eb; | |
| } | |
| .send-button { | |
| padding: 8px 16px; | |
| background-color: #2563eb; | |
| color: white; | |
| border: none; | |
| border-radius: 6px; | |
| font-size: 14px; | |
| cursor: pointer; | |
| transition: background-color 0.2s ease; | |
| } | |
| .send-button:hover:not(:disabled) { | |
| background-color: #1d4ed8; | |
| } | |
| .send-button:disabled { | |
| background-color: #93c5fd; | |
| cursor: not-allowed; | |
| } | |
| /* Scrollbar styles */ | |
| .messages-container::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| .messages-container::-webkit-scrollbar-track { | |
| background: #f8fafc; | |
| } | |
| .messages-container::-webkit-scrollbar-thumb { | |
| background: #cbd5e1; | |
| border-radius: 3px; | |
| } | |
| .messages-container::-webkit-scrollbar-thumb:hover { | |
| background: #94a3b8; | |
| } |