Spaces:
Sleeping
Sleeping
Download static/style.css from viethung21IT/OCR_Studio: direct link, hf CLI and curl.
- Browser
- Download file 15.2 kB
-
https://huggingface.co/spaces/viethung21IT/OCR_Studio/resolve/main/static/style.css
- Command line
-
hf download hf://spaces/viethung21IT/OCR_Studio/static/style.css
-
curl -L -o style.css https://huggingface.co/spaces/viethung21IT/OCR_Studio/resolve/main/static/style.css
15.2 kB
| :root { | |
| --bg-main: #0a0d14; | |
| --bg-card: rgba(18, 24, 38, 0.75); | |
| --bg-card-hover: rgba(28, 36, 56, 0.85); | |
| --bg-input: rgba(13, 18, 30, 0.85); | |
| --border-subtle: rgba(255, 255, 255, 0.08); | |
| --border-focus: rgba(56, 189, 248, 0.5); | |
| --border-active: #38bdf8; | |
| --text-main: #f8fafc; | |
| --text-muted: #94a3b8; | |
| --text-dim: #64748b; | |
| --primary: #38bdf8; | |
| --primary-glow: rgba(56, 189, 248, 0.25); | |
| --accent: #818cf8; | |
| --success: #34d399; | |
| --warning: #fbbf24; | |
| --danger: #f87171; | |
| --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; | |
| --font-mono: 'JetBrains Mono', monospace; | |
| --radius-sm: 8px; | |
| --radius-md: 12px; | |
| --radius-lg: 16px; | |
| --radius-xl: 24px; | |
| --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37); | |
| --blur-glass: blur(16px); | |
| } | |
| * { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| body { | |
| font-family: var(--font-sans); | |
| background-color: var(--bg-main); | |
| color: var(--text-main); | |
| min-height: 100vh; | |
| overflow-x: hidden; | |
| position: relative; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| /* Ambient Neon Glows */ | |
| .glow-bg { | |
| position: fixed; | |
| border-radius: 50%; | |
| filter: blur(140px); | |
| pointer-events: none; | |
| z-index: 0; | |
| opacity: 0.22; | |
| } | |
| .glow-bg.top-left { | |
| top: -15%; | |
| left: -10%; | |
| width: 50vw; | |
| height: 50vw; | |
| background: radial-gradient(circle, #38bdf8, #6366f1); | |
| } | |
| .glow-bg.bottom-right { | |
| bottom: -15%; | |
| right: -10%; | |
| width: 50vw; | |
| height: 50vw; | |
| background: radial-gradient(circle, #818cf8, #06b6d4); | |
| } | |
| .app-layout { | |
| position: relative; | |
| z-index: 1; | |
| max-width: 1440px; | |
| margin: 0 auto; | |
| padding: 20px 28px 40px; | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 100vh; | |
| } | |
| /* Header */ | |
| .navbar { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 16px 24px; | |
| background: var(--bg-card); | |
| backdrop-filter: var(--blur-glass); | |
| border: 1px solid var(--border-subtle); | |
| border-radius: var(--radius-lg); | |
| box-shadow: var(--shadow-card); | |
| margin-bottom: 24px; | |
| } | |
| .brand { | |
| display: flex; | |
| align-items: center; | |
| gap: 14px; | |
| } | |
| .brand-icon { | |
| width: 44px; | |
| height: 44px; | |
| border-radius: var(--radius-md); | |
| background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.25)); | |
| border: 1px solid rgba(56, 189, 248, 0.4); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: var(--primary); | |
| box-shadow: 0 0 20px var(--primary-glow); | |
| } | |
| .brand-text h1 { | |
| font-size: 1.25rem; | |
| font-weight: 700; | |
| letter-spacing: -0.02em; | |
| } | |
| .brand-text h1 span { | |
| background: linear-gradient(135deg, #38bdf8, #818cf8); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| .subtitle { | |
| font-size: 0.8rem; | |
| color: var(--text-muted); | |
| font-weight: 400; | |
| } | |
| .header-actions { | |
| display: flex; | |
| align-items: center; | |
| gap: 16px; | |
| } | |
| .status-badge { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 6px 14px; | |
| background: rgba(255, 255, 255, 0.04); | |
| border: 1px solid var(--border-subtle); | |
| border-radius: 9999px; | |
| font-size: 0.82rem; | |
| color: var(--text-muted); | |
| } | |
| .status-dot { | |
| width: 8px; | |
| height: 8px; | |
| border-radius: 50%; | |
| background: var(--warning); | |
| } | |
| .status-dot.ready { | |
| background: var(--success); | |
| box-shadow: 0 0 10px rgba(52, 211, 153, 0.6); | |
| } | |
| .status-dot.pulse { | |
| animation: pulseDot 1.8s infinite; | |
| } | |
| @keyframes pulseDot { | |
| 0%, 100% { transform: scale(1); opacity: 1; } | |
| 50% { transform: scale(1.3); opacity: 0.6; } | |
| } | |
| .icon-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| background: rgba(255, 255, 255, 0.05); | |
| border: 1px solid var(--border-subtle); | |
| color: var(--text-main); | |
| padding: 8px 16px; | |
| border-radius: var(--radius-md); | |
| font-family: inherit; | |
| font-size: 0.85rem; | |
| font-weight: 500; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .icon-btn:hover { | |
| background: rgba(255, 255, 255, 0.1); | |
| border-color: var(--border-focus); | |
| transform: translateY(-1px); | |
| } | |
| /* Settings Drawer */ | |
| .settings-drawer { | |
| position: fixed; | |
| top: 0; | |
| right: -380px; | |
| width: 360px; | |
| height: 100vh; | |
| background: #0f1626; | |
| border-left: 1px solid var(--border-subtle); | |
| backdrop-filter: blur(20px); | |
| z-index: 100; | |
| box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5); | |
| transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1); | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .settings-drawer.open { | |
| right: 0; | |
| } | |
| .drawer-header { | |
| padding: 20px 24px; | |
| border-bottom: 1px solid var(--border-subtle); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .drawer-header h3 { | |
| font-size: 1.05rem; | |
| font-weight: 600; | |
| } | |
| .close-btn { | |
| background: none; | |
| border: none; | |
| color: var(--text-muted); | |
| font-size: 1.5rem; | |
| cursor: pointer; | |
| padding: 0 4px; | |
| } | |
| .drawer-body { | |
| padding: 24px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 20px; | |
| } | |
| .setting-group { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| } | |
| .setting-group label { | |
| font-size: 0.85rem; | |
| font-weight: 500; | |
| color: var(--text-muted); | |
| } | |
| .setting-group select, .setting-group input[type="range"] { | |
| width: 100%; | |
| } | |
| .setting-group select { | |
| padding: 10px 14px; | |
| background: var(--bg-input); | |
| border: 1px solid var(--border-subtle); | |
| color: var(--text-main); | |
| border-radius: var(--radius-sm); | |
| outline: none; | |
| font-family: inherit; | |
| font-size: 0.9rem; | |
| } | |
| .label-row { | |
| display: flex; | |
| justify-content: space-between; | |
| font-size: 0.85rem; | |
| } | |
| .label-row span { | |
| font-family: var(--font-mono); | |
| color: var(--primary); | |
| font-weight: 600; | |
| } | |
| .checkbox-group label { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| cursor: pointer; | |
| } | |
| /* Upload Section */ | |
| .upload-section { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 16px; | |
| margin-bottom: 24px; | |
| } | |
| .dropzone { | |
| border: 2px dashed rgba(56, 189, 248, 0.35); | |
| background: var(--bg-card); | |
| backdrop-filter: var(--blur-glass); | |
| border-radius: var(--radius-xl); | |
| padding: 42px 24px; | |
| text-align: center; | |
| cursor: pointer; | |
| transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); | |
| box-shadow: var(--shadow-card); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .dropzone:hover, .dropzone.dragover { | |
| border-color: var(--primary); | |
| background: rgba(28, 38, 62, 0.8); | |
| box-shadow: 0 0 35px var(--primary-glow); | |
| transform: translateY(-2px); | |
| } | |
| .upload-icon { | |
| width: 68px; | |
| height: 68px; | |
| margin: 0 auto 16px; | |
| border-radius: 50%; | |
| background: rgba(56, 189, 248, 0.12); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: var(--primary); | |
| transition: transform 0.3s ease; | |
| } | |
| .dropzone:hover .upload-icon { | |
| transform: scale(1.1) translateY(-2px); | |
| } | |
| .upload-title { | |
| font-size: 1.15rem; | |
| font-weight: 600; | |
| margin-bottom: 8px; | |
| } | |
| .browse-link { | |
| color: var(--primary); | |
| text-decoration: underline; | |
| text-underline-offset: 4px; | |
| } | |
| .upload-hint { | |
| font-size: 0.85rem; | |
| color: var(--text-dim); | |
| } | |
| .upload-hint code { | |
| background: rgba(255, 255, 255, 0.08); | |
| padding: 2px 6px; | |
| border-radius: 4px; | |
| font-family: var(--font-mono); | |
| color: var(--accent); | |
| } | |
| /* Samples Bar */ | |
| .samples-bar { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| flex-wrap: wrap; | |
| } | |
| .samples-label { | |
| font-size: 0.85rem; | |
| color: var(--text-muted); | |
| } | |
| .samples-list { | |
| display: flex; | |
| gap: 10px; | |
| flex-wrap: wrap; | |
| } | |
| .sample-chip { | |
| background: rgba(255, 255, 255, 0.05); | |
| border: 1px solid var(--border-subtle); | |
| color: var(--text-muted); | |
| padding: 6px 14px; | |
| border-radius: 9999px; | |
| font-family: inherit; | |
| font-size: 0.82rem; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .sample-chip:hover { | |
| background: rgba(56, 189, 248, 0.15); | |
| border-color: var(--primary); | |
| color: var(--text-main); | |
| transform: translateY(-1px); | |
| } | |
| /* Processing Banner */ | |
| .processing-banner { | |
| background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(129, 140, 248, 0.15)); | |
| border: 1px solid rgba(56, 189, 248, 0.35); | |
| border-radius: var(--radius-lg); | |
| padding: 20px 28px; | |
| display: flex; | |
| align-items: center; | |
| gap: 20px; | |
| margin-bottom: 24px; | |
| box-shadow: 0 0 30px var(--primary-glow); | |
| animation: pulseBanner 2s infinite ease-in-out; | |
| } | |
| @keyframes pulseBanner { | |
| 0%, 100% { border-color: rgba(56, 189, 248, 0.35); } | |
| 50% { border-color: rgba(129, 140, 248, 0.6); } | |
| } | |
| .loader-spinner { | |
| width: 36px; | |
| height: 36px; | |
| border: 3px solid rgba(56, 189, 248, 0.2); | |
| border-top-color: var(--primary); | |
| border-radius: 50%; | |
| animation: spin 0.8s linear infinite; | |
| } | |
| @keyframes spin { | |
| to { transform: rotate(360deg); } | |
| } | |
| .processing-text h4 { | |
| font-size: 1rem; | |
| font-weight: 600; | |
| margin-bottom: 4px; | |
| } | |
| .processing-text p { | |
| font-size: 0.82rem; | |
| color: var(--text-muted); | |
| } | |
| /* Results Dashboard Grid */ | |
| .results-dashboard { | |
| display: grid; | |
| grid-template-columns: 1.15fr 0.85fr; | |
| gap: 24px; | |
| align-items: start; | |
| } | |
| @media (max-width: 1024px) { | |
| .results-dashboard { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| .card { | |
| background: var(--bg-card); | |
| backdrop-filter: var(--blur-glass); | |
| border: 1px solid var(--border-subtle); | |
| border-radius: var(--radius-xl); | |
| box-shadow: var(--shadow-card); | |
| overflow: hidden; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .card-header { | |
| padding: 16px 20px; | |
| border-bottom: 1px solid var(--border-subtle); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .tabs-container { | |
| display: flex; | |
| gap: 6px; | |
| background: rgba(0, 0, 0, 0.25); | |
| padding: 4px; | |
| border-radius: var(--radius-md); | |
| border: 1px solid var(--border-subtle); | |
| } | |
| .tab-btn { | |
| background: none; | |
| border: none; | |
| color: var(--text-muted); | |
| padding: 6px 14px; | |
| border-radius: var(--radius-sm); | |
| font-family: inherit; | |
| font-size: 0.82rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .tab-btn.active { | |
| background: var(--primary); | |
| color: #050b14; | |
| box-shadow: 0 2px 10px var(--primary-glow); | |
| } | |
| .viewer-actions { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .action-btn { | |
| background: rgba(255, 255, 255, 0.06); | |
| border: 1px solid var(--border-subtle); | |
| color: var(--text-muted); | |
| width: 32px; | |
| height: 32px; | |
| border-radius: var(--radius-sm); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| cursor: pointer; | |
| font-family: var(--font-mono); | |
| font-size: 0.85rem; | |
| text-decoration: none; | |
| transition: all 0.2s ease; | |
| } | |
| .action-btn:hover { | |
| background: rgba(255, 255, 255, 0.12); | |
| color: var(--text-main); | |
| border-color: var(--border-focus); | |
| } | |
| /* Viewer Body */ | |
| .viewer-body { | |
| position: relative; | |
| min-height: 480px; | |
| max-height: 640px; | |
| background: #06090e; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| overflow: auto; | |
| padding: 16px; | |
| } | |
| .image-wrapper { | |
| position: relative; | |
| display: inline-block; | |
| transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); | |
| transform-origin: center center; | |
| } | |
| .ocr-image { | |
| max-width: 100%; | |
| max-height: 600px; | |
| display: block; | |
| border-radius: var(--radius-sm); | |
| box-shadow: 0 8px 24px rgba(0,0,0,0.6); | |
| } | |
| #bbox-overlay-canvas { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| pointer-events: none; | |
| } | |
| .viewer-footer { | |
| padding: 12px 20px; | |
| border-top: 1px solid var(--border-subtle); | |
| display: flex; | |
| justify-content: space-between; | |
| font-size: 0.8rem; | |
| color: var(--text-dim); | |
| font-family: var(--font-mono); | |
| } | |
| #box-count-badge { | |
| color: var(--primary); | |
| font-weight: 600; | |
| } | |
| /* Metrics Row */ | |
| .metrics-row { | |
| display: flex; | |
| gap: 24px; | |
| width: 100%; | |
| } | |
| .metric-item { | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .metric-val { | |
| font-size: 1.35rem; | |
| font-weight: 700; | |
| font-family: var(--font-mono); | |
| color: var(--primary); | |
| } | |
| .metric-label { | |
| font-size: 0.75rem; | |
| color: var(--text-muted); | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| } | |
| /* Scrollable Right Panel */ | |
| .scrollable-body { | |
| padding: 20px; | |
| max-height: 600px; | |
| overflow-y: auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 24px; | |
| } | |
| .scrollable-body::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| .scrollable-body::-webkit-scrollbar-track { | |
| background: transparent; | |
| } | |
| .scrollable-body::-webkit-scrollbar-thumb { | |
| background: rgba(255, 255, 255, 0.15); | |
| border-radius: 3px; | |
| } | |
| .section-block { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| .block-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .block-header h3 { | |
| font-size: 0.95rem; | |
| font-weight: 600; | |
| } | |
| .sub-hint { | |
| font-size: 0.75rem; | |
| color: var(--text-dim); | |
| } | |
| .block-actions { | |
| display: flex; | |
| gap: 8px; | |
| } | |
| .secondary-btn { | |
| background: rgba(255, 255, 255, 0.06); | |
| border: 1px solid var(--border-subtle); | |
| color: var(--text-muted); | |
| padding: 5px 10px; | |
| border-radius: var(--radius-sm); | |
| font-family: inherit; | |
| font-size: 0.78rem; | |
| font-weight: 600; | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .secondary-btn:hover { | |
| background: rgba(56, 189, 248, 0.12); | |
| border-color: var(--primary); | |
| color: var(--text-main); | |
| } | |
| .full-text-display { | |
| background: var(--bg-input); | |
| border: 1px solid var(--border-subtle); | |
| border-radius: var(--radius-md); | |
| padding: 16px; | |
| font-size: 0.92rem; | |
| line-height: 1.65; | |
| color: var(--text-main); | |
| white-space: pre-wrap; | |
| word-break: break-word; | |
| max-height: 180px; | |
| overflow-y: auto; | |
| } | |
| /* BBox List */ | |
| .boxes-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; | |
| } | |
| .box-item { | |
| background: rgba(255, 255, 255, 0.03); | |
| border: 1px solid var(--border-subtle); | |
| border-radius: var(--radius-md); | |
| padding: 12px 14px; | |
| display: flex; | |
| align-items: flex-start; | |
| justify-content: space-between; | |
| gap: 12px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .box-item:hover, .box-item.highlighted { | |
| background: rgba(56, 189, 248, 0.1); | |
| border-color: var(--primary); | |
| transform: translateX(3px); | |
| } | |
| .box-left { | |
| display: flex; | |
| gap: 12px; | |
| align-items: flex-start; | |
| } | |
| .box-index { | |
| background: rgba(56, 189, 248, 0.2); | |
| color: var(--primary); | |
| font-family: var(--font-mono); | |
| font-size: 0.75rem; | |
| font-weight: 700; | |
| padding: 2px 8px; | |
| border-radius: 4px; | |
| } | |
| .box-text { | |
| font-size: 0.9rem; | |
| color: var(--text-main); | |
| word-break: break-word; | |
| line-height: 1.4; | |
| } | |
| .box-right { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: flex-end; | |
| gap: 6px; | |
| min-width: 75px; | |
| } | |
| .confidence-tag { | |
| font-family: var(--font-mono); | |
| font-size: 0.75rem; | |
| font-weight: 600; | |
| color: var(--success); | |
| } | |
| .confidence-bar { | |
| width: 60px; | |
| height: 4px; | |
| background: rgba(255, 255, 255, 0.1); | |
| border-radius: 2px; | |
| overflow: hidden; | |
| } | |
| .confidence-fill { | |
| height: 100%; | |
| background: linear-gradient(90deg, #34d399, #38bdf8); | |
| border-radius: 2px; | |
| } | |
| /* Toast */ | |
| .toast { | |
| position: fixed; | |
| bottom: 28px; | |
| right: 28px; | |
| background: #1e293b; | |
| border: 1px solid var(--border-focus); | |
| color: var(--text-main); | |
| padding: 12px 20px; | |
| border-radius: var(--radius-md); | |
| font-size: 0.88rem; | |
| box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); | |
| transform: translateY(100px); | |
| opacity: 0; | |
| transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); | |
| z-index: 999; | |
| } | |
| .toast.show { | |
| transform: translateY(0); | |
| opacity: 1; | |
| } | |