Spaces:
Sleeping
Sleeping
Download project/ui/css.py from devank2000/agentic-rag: direct link, hf CLI and curl.
- Browser
- Download file 8.08 kB
-
https://huggingface.co/spaces/devank2000/agentic-rag/resolve/main/project/ui/css.py
- Command line
-
hf download hf://spaces/devank2000/agentic-rag/project/ui/css.py
-
curl -L -o css.py https://huggingface.co/spaces/devank2000/agentic-rag/resolve/main/project/ui/css.py
8.08 kB
| custom_css = """ | |
| /* ============================================ | |
| MAIN CONTAINER | |
| ============================================ */ | |
| .gradio-container { | |
| max-width: 1100px !important; | |
| width: 100% !important; | |
| margin: 0 auto !important; | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif; | |
| background: #0b1220 !important; | |
| padding: 20px !important; | |
| } | |
| #app-header { | |
| background: linear-gradient(120deg, #132a32, #111c30); | |
| border: 1px solid #294454; | |
| border-radius: 16px; | |
| padding: 24px; | |
| margin-bottom: 18px; | |
| } | |
| #app-header p, #privacy-note p { | |
| color: #cbd5e1 !important; | |
| } | |
| #privacy-note { | |
| padding: 12px 4px; | |
| font-size: 13px; | |
| } | |
| /* ============================================ | |
| TABS | |
| ============================================ */ | |
| button[role="tab"] { | |
| color: #a3a3a3 !important; | |
| border-bottom: 2px solid transparent !important; | |
| border-radius: 0 !important; | |
| transition: all 0.2s ease !important; | |
| background: transparent !important; | |
| } | |
| button[role="tab"]:hover { | |
| color: #e5e5e5 !important; | |
| } | |
| button[role="tab"][aria-selected="true"] { | |
| color: #ffffff !important; | |
| border-bottom: 2px solid #2dd4bf !important; | |
| border-radius: 0 !important; | |
| background: transparent !important; | |
| } | |
| .tabs { | |
| border-bottom: none !important; | |
| border-radius: 0 !important; | |
| } | |
| .tab-nav { | |
| border-bottom: 1px solid #3f3f3f !important; | |
| border-radius: 0 !important; | |
| } | |
| button[role="tab"]::before, | |
| button[role="tab"]::after, | |
| .tabs::before, | |
| .tabs::after, | |
| .tab-nav::before, | |
| .tab-nav::after { | |
| display: none !important; | |
| content: none !important; | |
| border-radius: 0 !important; | |
| } | |
| #doc-management-tab { | |
| max-width: 680px !important; | |
| margin: 0 auto !important; | |
| } | |
| /* ============================================ | |
| BUTTONS | |
| ============================================ */ | |
| button { | |
| border-radius: 8px !important; | |
| border: none !important; | |
| font-weight: 500 !important; | |
| transition: all 0.2s ease !important; | |
| box-shadow: none !important; | |
| } | |
| .primary { | |
| background: #0f766e !important; | |
| color: white !important; | |
| } | |
| .primary:hover { | |
| background: #115e59 !important; | |
| transform: translateY(-1px) !important; | |
| } | |
| .stop { | |
| background: #ef4444 !important; | |
| color: white !important; | |
| } | |
| .stop:hover { | |
| background: #dc2626 !important; | |
| transform: translateY(-1px) !important; | |
| } | |
| /* ============================================ | |
| CHAT INPUT BOX | |
| ============================================ */ | |
| textarea[placeholder="Type a message..."], | |
| textarea[data-testid*="textbox"]:not(#file-list-box textarea) { | |
| background: transparent !important; | |
| border: none !important; | |
| box-shadow: none !important; | |
| } | |
| textarea[placeholder="Type a message..."]:focus { | |
| background: transparent !important; | |
| border: none !important; | |
| box-shadow: none !important; | |
| } | |
| .gr-text-input:has(textarea[placeholder="Type a message..."]), | |
| [class*="chatbot"] + * [data-testid="textbox"], | |
| form:has(textarea[placeholder="Type a message..."]) > div { | |
| background: transparent !important; | |
| border: none !important; | |
| gap: 12px !important; | |
| } | |
| form:has(textarea[placeholder="Type a message..."]) button, | |
| [class*="chatbot"] ~ * button[type="submit"] { | |
| background: transparent !important; | |
| border: none !important; | |
| padding: 8px !important; | |
| } | |
| form:has(textarea[placeholder="Type a message..."]) button:hover { | |
| background: rgba(59, 130, 246, 0.1) !important; | |
| } | |
| form:has(textarea[placeholder="Type a message..."]) { | |
| gap: 12px !important; | |
| display: flex !important; | |
| } | |
| /* ============================================ | |
| FILE UPLOAD | |
| ============================================ */ | |
| .file-preview, | |
| [data-testid="file-upload"] { | |
| background: #1a1a1a !important; | |
| border: 1px solid #3f3f3f !important; | |
| border-radius: 5px !important; | |
| color: #ffffff !important; | |
| min-height: 200px !important; | |
| } | |
| .file-preview:hover, | |
| [data-testid="file-upload"]:hover { | |
| border-color: #2dd4bf !important; | |
| background: #1f1f1f !important; | |
| } | |
| .file-preview *, | |
| [data-testid="file-upload"] * { | |
| color: #ffffff !important; | |
| } | |
| .file-preview .label, | |
| [data-testid="file-upload"] .label { | |
| display: none !important; | |
| } | |
| /* ============================================ | |
| INPUTS & TEXTAREAS | |
| ============================================ */ | |
| input, | |
| textarea { | |
| background: #1a1a1a !important; | |
| border: 1px solid #3f3f3f !important; | |
| border-radius: 10px !important; | |
| color: #e5e5e5 !important; | |
| transition: border-color 0.2s ease !important; | |
| } | |
| input:focus, | |
| textarea:focus { | |
| border-color: #2dd4bf !important; | |
| outline: none !important; | |
| box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2) !important; | |
| } | |
| textarea[readonly] { | |
| background: #1a1a1a !important; | |
| color: #a3a3a3 !important; | |
| } | |
| /* ============================================ | |
| FILE LIST BOX | |
| ============================================ */ | |
| #file-list-box { | |
| background: #1a1a1a !important; | |
| border: 1px solid #3f3f3f !important; | |
| border-radius: 5px !important; | |
| padding: 10px !important; | |
| } | |
| #file-list-box textarea { | |
| background: transparent !important; | |
| border: none !important; | |
| color: #e5e5e5 !important; | |
| padding: 0 !important; | |
| } | |
| /* ============================================ | |
| CHATBOT CONTAINER | |
| ============================================ */ | |
| .chatbot { | |
| border-radius: 14px !important; | |
| background: #1a1a1a !important; | |
| border: none !important; | |
| } | |
| .chatbot .message-wrap, | |
| .chatbot > div { | |
| gap: 8px !important; | |
| padding: 12px !important; | |
| } | |
| /* ============================================ | |
| MESSAGE BUBBLES | |
| ============================================ */ | |
| .message { | |
| border-radius: 10px !important; | |
| } | |
| .message.user { | |
| background: #0f766e !important; | |
| color: white !important; | |
| } | |
| .message.bot { | |
| background: #1f1f1f !important; | |
| color: #e5e5e5 !important; | |
| border: 1px solid #3f3f3f !important; | |
| width: fit-content !important; | |
| max-width: 90% !important; | |
| } | |
| .message-row img { | |
| margin: 0px !important; | |
| } | |
| .avatar-container img { | |
| padding: 0px !important; | |
| } | |
| /* ============================================ | |
| PROGRESS BAR | |
| ============================================ */ | |
| .progress-bar-wrap { | |
| border-radius: 10px !important; | |
| overflow: hidden !important; | |
| background: #1a1a1a !important; | |
| } | |
| .progress-bar { | |
| border-radius: 10px !important; | |
| background: #0f766e !important; | |
| } | |
| /* ============================================ | |
| TYPOGRAPHY | |
| ============================================ */ | |
| h1, h2, h3, h4, h5, h6 { | |
| color: #e5e5e5 !important; | |
| } | |
| /* ============================================ | |
| GLOBAL OVERRIDES | |
| ============================================ */ | |
| button:focus-visible { | |
| outline: 2px solid #2dd4bf !important; | |
| outline-offset: 3px; | |
| } | |
| footer { | |
| visibility: hidden; | |
| } | |
| """ |