Download static/style.css from sinhal/SageCam: direct link, hf CLI and curl.
- Browser
- Download file 10.5 kB
-
https://huggingface.co/spaces/sinhal/SageCam/resolve/main/static/style.css
- Command line
-
hf download hf://spaces/sinhal/SageCam/static/style.css
-
curl -L -o style.css https://huggingface.co/spaces/sinhal/SageCam/resolve/main/static/style.css
10.5 kB
| * { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; | |
| } | |
| body { | |
| background: #111; | |
| color: #e5e5e5; | |
| height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| } | |
| /* Header */ | |
| .header { | |
| display: flex; | |
| align-items: center; | |
| padding: 0 24px; | |
| height: 56px; | |
| background: #1a1a1a; | |
| border-bottom: 1px solid #2a2a2a; | |
| flex-shrink: 0; | |
| } | |
| .logo { | |
| font-size: 18px; | |
| font-weight: 700; | |
| color: #fff; | |
| letter-spacing: -0.5px; | |
| } | |
| .logo span { | |
| color: #0ea5e9; | |
| } | |
| .tagline { | |
| font-size: 13px; | |
| color: #666; | |
| margin-left: 16px; | |
| padding-left: 16px; | |
| border-left: 1px solid #2a2a2a; | |
| } | |
| .stats { | |
| margin-left: auto; | |
| font-size: 13px; | |
| color: #aaa; | |
| display: flex; | |
| align-items: center; | |
| gap: 7px; | |
| } | |
| .stats-dot { | |
| width: 7px; | |
| height: 7px; | |
| background: #22c55e; | |
| border-radius: 50%; | |
| } | |
| /* Main Layout */ | |
| .main-container { | |
| display: flex; | |
| flex: 1; | |
| overflow: hidden; | |
| padding: 20px; | |
| gap: 20px; | |
| } | |
| /* Left Video Section */ | |
| .video-section { | |
| width: 420px; | |
| flex-shrink: 0; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| .video-box { | |
| flex: 0 0 62%; | |
| background: #000; | |
| border-radius: 10px; | |
| overflow: hidden; | |
| position: relative; | |
| border: 1px solid #2a2a2a; | |
| } | |
| /* Curate Sage Prompt Panel */ | |
| .prompt-panel { | |
| flex: 1; | |
| background: #1a1a1a; | |
| border: 1px solid #2a2a2a; | |
| border-radius: 10px; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| } | |
| .prompt-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 10px 14px; | |
| border-bottom: 1px solid #2a2a2a; | |
| flex-shrink: 0; | |
| } | |
| .prompt-title { | |
| font-size: 12px; | |
| font-weight: 600; | |
| color: #aaa; | |
| letter-spacing: 0.3px; | |
| } | |
| .prompt-actions { | |
| display: flex; | |
| gap: 6px; | |
| } | |
| .prompt-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 5px; | |
| padding: 5px 10px; | |
| border-radius: 6px; | |
| font-size: 12px; | |
| font-weight: 500; | |
| cursor: pointer; | |
| border: 1px solid #333; | |
| transition: all 0.15s; | |
| } | |
| .random-btn { | |
| background: #222; | |
| color: #aaa; | |
| } | |
| .random-btn:hover { | |
| background: #2a2a2a; | |
| color: #fff; | |
| } | |
| .apply-btn { | |
| background: #0ea5e9; | |
| color: #fff; | |
| border-color: #0ea5e9; | |
| } | |
| .apply-btn:hover { | |
| background: #0284c7; | |
| } | |
| .prompt-textarea { | |
| flex: 1; | |
| background: transparent; | |
| border: none; | |
| resize: none; | |
| padding: 12px 14px; | |
| font-size: 12.5px; | |
| color: #ccc; | |
| outline: none; | |
| line-height: 1.6; | |
| font-family: 'Inter', sans-serif; | |
| } | |
| .prompt-textarea::placeholder { | |
| color: #3a3a3a; | |
| } | |
| .prompt-hint { | |
| font-size: 10.5px; | |
| color: #3a3a3a; | |
| padding: 6px 14px; | |
| border-top: 1px solid #222; | |
| flex-shrink: 0; | |
| } | |
| .video-element { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| display: block; | |
| } | |
| .avatar-placeholder { | |
| width: 100%; | |
| height: 100%; | |
| background: #1a1a1a; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .avatar-placeholder img { | |
| width: 96px; | |
| height: 96px; | |
| border-radius: 50%; | |
| filter: grayscale(30%); | |
| border: 2px solid #2a2a2a; | |
| } | |
| .avatar-icon { | |
| width: 90px; | |
| height: 90px; | |
| background: #2a2a2a; | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: #444; | |
| } | |
| .avatar-icon svg { | |
| width: 48px; | |
| height: 48px; | |
| } | |
| .avatar-text { | |
| color: #555; | |
| font-size: 13px; | |
| } | |
| .video-controls { | |
| position: absolute; | |
| bottom: 12px; | |
| left: 12px; | |
| right: 12px; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .label-badge { | |
| background: rgba(0, 0, 0, 0.65); | |
| padding: 4px 10px; | |
| border-radius: 6px; | |
| font-size: 12px; | |
| font-weight: 600; | |
| color: #ccc; | |
| } | |
| .toggle-btn { | |
| background: rgba(0, 0, 0, 0.6); | |
| color: #ccc; | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| padding: 5px 10px; | |
| border-radius: 6px; | |
| cursor: pointer; | |
| font-size: 12px; | |
| font-weight: 500; | |
| display: flex; | |
| align-items: center; | |
| gap: 5px; | |
| transition: background 0.15s; | |
| } | |
| .toggle-btn:hover { | |
| background: rgba(255, 255, 255, 0.12); | |
| color: #fff; | |
| } | |
| /* Right Chat Section */ | |
| .chat-section { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| background: #1a1a1a; | |
| border: 1px solid #2a2a2a; | |
| border-radius: 10px; | |
| overflow: hidden; | |
| min-width: 0; | |
| } | |
| .chat-log { | |
| flex: 1; | |
| padding: 20px; | |
| overflow-y: auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 4px; | |
| } | |
| .chat-log::-webkit-scrollbar { width: 5px; } | |
| .chat-log::-webkit-scrollbar-track { background: transparent; } | |
| .chat-log::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; } | |
| .status-msg { | |
| text-align: center; | |
| color: #555; | |
| font-size: 12px; | |
| margin: 6px 0; | |
| padding: 0 10px; | |
| } | |
| /* Message Row Layout */ | |
| .message-row { | |
| display: flex; | |
| flex-direction: column; | |
| margin-bottom: 14px; | |
| width: 100%; | |
| animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; | |
| } | |
| .message-row-you { | |
| align-items: flex-end; | |
| } | |
| .message-row-stranger { | |
| align-items: flex-start; | |
| } | |
| /* Chat Bubbles */ | |
| .msg { | |
| max-width: 68%; | |
| padding: 12px 18px; | |
| font-size: 14.5px; | |
| line-height: 1.55; | |
| word-break: break-word; | |
| box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12); | |
| } | |
| .msg-you { | |
| background: #18181b; | |
| color: #f4f4f5; | |
| border: 1px solid #27272a; | |
| border-radius: 16px 16px 4px 16px; | |
| } | |
| .msg-stranger { | |
| background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%); | |
| color: #ffffff; | |
| border-radius: 16px 16px 16px 4px; | |
| box-shadow: 0 4px 14px rgba(236, 72, 153, 0.2); | |
| } | |
| .msg-label { | |
| font-size: 11px; | |
| margin-bottom: 4px; | |
| font-weight: 600; | |
| letter-spacing: 0.5px; | |
| text-transform: uppercase; | |
| } | |
| .msg-label-stranger { | |
| color: #f472b6; | |
| padding-left: 6px; | |
| } | |
| .msg-label-you { | |
| color: #71717a; | |
| padding-right: 6px; | |
| } | |
| .prefix { display: none; } | |
| /* Typing Dots Loader inside bubble */ | |
| .typing-dots { | |
| display: flex; | |
| align-items: center; | |
| gap: 5px; | |
| height: 20px; | |
| padding: 2px 4px; | |
| } | |
| .typing-dots span { | |
| width: 7px; | |
| height: 7px; | |
| background: #ffffff; | |
| border-radius: 50%; | |
| display: inline-block; | |
| animation: typing 1.4s infinite ease-in-out both; | |
| } | |
| .typing-dots span:nth-child(1) { | |
| animation-delay: -0.32s; | |
| } | |
| .typing-dots span:nth-child(2) { | |
| animation-delay: -0.16s; | |
| } | |
| @keyframes typing { | |
| 0%, 80%, 100% { | |
| transform: scale(0.6); | |
| opacity: 0.5; | |
| } | |
| 40% { | |
| transform: scale(1.15); | |
| opacity: 1; | |
| } | |
| } | |
| @keyframes slideIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(12px) scale(0.97); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0) scale(1); | |
| } | |
| } | |
| /* Chat Controls */ | |
| .chat-controls { | |
| display: flex; | |
| align-items: stretch; | |
| padding: 16px; | |
| border-top: 1px solid #2a2a2a; | |
| gap: 10px; | |
| background: #1a1a1a; | |
| } | |
| .control-btn { | |
| width: 72px; | |
| border: none; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| font-size: 13px; | |
| font-weight: 600; | |
| transition: opacity 0.15s, background 0.15s; | |
| flex-shrink: 0; | |
| } | |
| .new-btn { | |
| background: #272727; | |
| color: #f87171; | |
| border: 1px solid #333; | |
| } | |
| .new-btn:hover { background: #333; } | |
| .send-btn { | |
| background: #0ea5e9; | |
| color: #fff; | |
| } | |
| .send-btn:hover:not(:disabled) { background: #0284c7; } | |
| .send-btn:disabled { | |
| background: #1f2937; | |
| color: #4b5563; | |
| cursor: not-allowed; | |
| } | |
| .sub-text { | |
| font-size: 10px; | |
| opacity: 0.55; | |
| margin-top: 3px; | |
| font-weight: 400; | |
| } | |
| .input-container { | |
| flex: 1; | |
| } | |
| #chat-input { | |
| width: 100%; | |
| height: 100%; | |
| min-height: 48px; | |
| background: #111; | |
| border: 1px solid #2a2a2a; | |
| border-radius: 8px; | |
| resize: none; | |
| padding: 13px 16px; | |
| font-size: 14px; | |
| color: #e5e5e5; | |
| outline: none; | |
| transition: border-color 0.15s; | |
| line-height: 1.4; | |
| } | |
| #chat-input:focus { | |
| border-color: #0ea5e9; | |
| } | |
| #chat-input::placeholder { | |
| color: #444; | |
| } | |
| /* Prompt Toggle Arrow */ | |
| .toggle-arrow { | |
| display: inline-block; | |
| transition: transform 0.2s ease; | |
| margin-left: 6px; | |
| font-size: 10px; | |
| color: #666; | |
| vertical-align: middle; | |
| } | |
| /* ββ Mobile Responsive Design (max-width: 768px) βββββββββββββββββββββββββββ */ | |
| @media (max-width: 768px) { | |
| body { | |
| height: 100dvh; | |
| } | |
| .header { | |
| padding: 0 12px; | |
| height: 48px; | |
| } | |
| .logo { | |
| font-size: 16px; | |
| } | |
| .tagline { | |
| font-size: 11px; | |
| margin-left: 10px; | |
| padding-left: 10px; | |
| } | |
| .stats { | |
| font-size: 11px; | |
| } | |
| .main-container { | |
| flex-direction: column; | |
| padding: 10px; | |
| gap: 10px; | |
| overflow: hidden; | |
| } | |
| .video-section { | |
| width: 100%; | |
| flex-shrink: 0; | |
| gap: 8px; | |
| } | |
| .video-box { | |
| height: 180px; | |
| flex: none; | |
| } | |
| /* Collapsible Prompt Panel on Mobile */ | |
| .prompt-panel { | |
| flex: none; | |
| width: 100%; | |
| } | |
| .prompt-panel .prompt-textarea, | |
| .prompt-panel .prompt-hint { | |
| display: none; | |
| } | |
| .prompt-panel.expanded .prompt-textarea, | |
| .prompt-panel.expanded .prompt-hint { | |
| display: block; | |
| } | |
| .prompt-panel.expanded .prompt-textarea { | |
| height: 120px; | |
| } | |
| .prompt-panel .toggle-arrow { | |
| transform: rotate(-90deg); | |
| } | |
| .prompt-panel.expanded .toggle-arrow { | |
| transform: rotate(0deg); | |
| } | |
| .prompt-header { | |
| cursor: pointer; | |
| } | |
| /* Chat Section */ | |
| .chat-section { | |
| flex: 1; | |
| min-height: 0; | |
| } | |
| .chat-log { | |
| padding: 12px; | |
| } | |
| .msg { | |
| max-width: 85%; | |
| padding: 10px 14px; | |
| font-size: 13.5px; | |
| } | |
| /* Chat Controls */ | |
| .chat-controls { | |
| padding: 10px; | |
| gap: 8px; | |
| } | |
| .control-btn { | |
| width: 60px; | |
| font-size: 12px; | |
| border-radius: 6px; | |
| } | |
| .sub-text { | |
| display: none; | |
| } | |
| #chat-input { | |
| padding: 10px 12px; | |
| font-size: 13px; | |
| min-height: 40px; | |
| } | |
| } | |