Spaces:
Sleeping
Sleeping
Download static/style.css from Shakeel401/AskRoss-Chatbot: direct link, hf CLI and curl.
- Browser
- Download file 2.93 kB
-
https://huggingface.co/spaces/Shakeel401/AskRoss-Chatbot/resolve/1794deff2b2befe5c98af749b8a1d074f4e5bb45/static/style.css
- Command line
-
hf download hf://spaces/Shakeel401/AskRoss-Chatbot@1794deff2b2befe5c98af749b8a1d074f4e5bb45/static/style.css
-
curl -L -o style.css https://huggingface.co/spaces/Shakeel401/AskRoss-Chatbot/resolve/1794deff2b2befe5c98af749b8a1d074f4e5bb45/static/style.css
2.93 kB
| * { | |
| box-sizing: border-box; | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | |
| } | |
| :root { | |
| --primary: #1a2b49; | |
| --accent: #f0b91f; | |
| } | |
| /* Launcher */ | |
| .launcher { | |
| position: fixed; | |
| right: 20px; | |
| bottom: 20px; | |
| z-index: 99999; | |
| } | |
| .fab-button { | |
| width: 60px; | |
| height: 60px; | |
| border-radius: 50%; | |
| background: var(--primary); | |
| color: #fff; | |
| border: none; | |
| font-size: 22px; | |
| cursor: pointer; | |
| transition: 0.2s; | |
| } | |
| .fab-button:hover { | |
| transform: scale(1.05); | |
| } | |
| /* Chat container */ | |
| .chatbot-container { | |
| position: fixed; | |
| right: 20px; | |
| bottom: 90px; | |
| width: 380px; | |
| height: 540px; | |
| background: #fff; | |
| border-radius: 18px; | |
| box-shadow: 0 25px 60px rgba(0,0,0,0.25); | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| z-index: 99999; | |
| opacity: 0; | |
| transform: translateY(20px); | |
| pointer-events: none; | |
| transition: 0.25s ease; | |
| } | |
| .chatbot-container.open { | |
| opacity: 1; | |
| transform: translateY(0); | |
| pointer-events: auto; | |
| } | |
| /* Header */ | |
| .chat-header { | |
| background: linear-gradient(135deg, #1a2b49, #243b6b); | |
| color: white; | |
| padding: 14px 16px; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .chat-header-title { | |
| font-size: 15px; | |
| font-weight: 600; | |
| } | |
| .close-btn { | |
| cursor: pointer; | |
| font-size: 18px; | |
| opacity: 0.8; | |
| transition: 0.2s; | |
| } | |
| .close-btn:hover { | |
| opacity: 1; | |
| transform: scale(1.2); | |
| } | |
| /* Messages */ | |
| .chat-messages { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 14px; | |
| background: #f5f7fb; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; | |
| } | |
| /* Suggestions */ | |
| .suggestion-btn { | |
| padding: 12px; | |
| border-radius: 12px; | |
| border: 1px solid #ddd; | |
| background: white; | |
| cursor: pointer; | |
| text-align: left; | |
| font-size: 14px; | |
| transition: 0.2s; | |
| } | |
| .suggestion-btn:hover { | |
| background: #eef3ff; | |
| } | |
| /* Messages */ | |
| .message { | |
| display: flex; | |
| } | |
| .message.user { | |
| justify-content: flex-end; | |
| } | |
| .message.bot { | |
| justify-content: flex-start; | |
| } | |
| .bubble { | |
| max-width: 78%; | |
| padding: 12px 14px; | |
| border-radius: 14px; | |
| font-size: 15px; /* ✅ improved readability */ | |
| line-height: 1.6; | |
| } | |
| .user .bubble { | |
| background: #dbe7ff; | |
| } | |
| .bot .bubble { | |
| background: #fff; | |
| border: 1px solid #e2e8f0; | |
| } | |
| /* Input */ | |
| .chat-form { | |
| display: flex; | |
| padding: 12px; | |
| border-top: 1px solid #eee; | |
| background: #fff; | |
| } | |
| #user-input { | |
| flex: 1; | |
| padding: 12px; | |
| border-radius: 22px; | |
| border: 1px solid #ccc; | |
| font-size: 14px; | |
| } | |
| .send { | |
| margin-left: 8px; | |
| padding: 10px 16px; | |
| background: var(--accent); | |
| border: none; | |
| border-radius: 20px; | |
| cursor: pointer; | |
| font-weight: 600; | |
| } | |
| /* Typing indicator */ | |
| .typing-indicator { | |
| font-size: 13px; | |
| padding: 6px 12px; | |
| color: #666; | |
| } | |
| .hidden { | |
| display: none; | |
| } |