Spaces:
Sleeping
Sleeping
Download frontend/style.css from HarryDeepWise/web_demo: direct link, hf CLI and curl.
- Browser
- Download file 8.93 kB
-
https://huggingface.co/spaces/HarryDeepWise/web_demo/resolve/main/frontend/style.css
- Command line
-
hf download hf://spaces/HarryDeepWise/web_demo/frontend/style.css
-
curl -L -o style.css https://huggingface.co/spaces/HarryDeepWise/web_demo/resolve/main/frontend/style.css
8.93 kB
| :root { | |
| --bg: #f5efe2; | |
| --surface: rgba(255, 251, 245, 0.84); | |
| --surface-strong: rgba(255, 251, 245, 0.96); | |
| --ink: #1d2430; | |
| --muted: #5f6470; | |
| --line: rgba(29, 36, 48, 0.12); | |
| --accent: #0d7a64; | |
| --accent-soft: rgba(13, 122, 100, 0.12); | |
| --danger: #a93a32; | |
| --danger-soft: rgba(169, 58, 50, 0.12); | |
| --shadow: 0 18px 45px rgba(83, 59, 37, 0.14); | |
| } | |
| * { | |
| box-sizing: border-box; | |
| } | |
| body { | |
| margin: 0; | |
| min-height: 100vh; | |
| font-family: Georgia, "Times New Roman", serif; | |
| color: var(--ink); | |
| background: | |
| radial-gradient(circle at top left, rgba(198, 149, 88, 0.22), transparent 34%), | |
| radial-gradient(circle at top right, rgba(13, 122, 100, 0.16), transparent 28%), | |
| linear-gradient(180deg, #f9f4ec 0%, var(--bg) 100%); | |
| } | |
| button, | |
| input, | |
| label { | |
| font: inherit; | |
| } | |
| .app-shell { | |
| width: min(1400px, calc(100vw - 32px)); | |
| margin: 20px auto 32px; | |
| } | |
| .hero, | |
| .status-bar, | |
| .control-panel, | |
| .slice-card { | |
| backdrop-filter: blur(10px); | |
| background: var(--surface); | |
| border: 1px solid var(--line); | |
| box-shadow: var(--shadow); | |
| } | |
| .hero { | |
| display: flex; | |
| justify-content: space-between; | |
| gap: 24px; | |
| padding: 28px; | |
| border-radius: 26px; | |
| } | |
| .eyebrow, | |
| .slice-subtitle, | |
| .status-label { | |
| color: var(--muted); | |
| } | |
| .eyebrow { | |
| text-transform: uppercase; | |
| letter-spacing: 0.16em; | |
| font-size: 0.72rem; | |
| margin: 0 0 10px; | |
| } | |
| h1, | |
| h2, | |
| .slice-title { | |
| margin: 0; | |
| font-weight: 600; | |
| } | |
| h1 { | |
| font-size: clamp(2rem, 4vw, 3.7rem); | |
| line-height: 0.96; | |
| max-width: 12ch; | |
| } | |
| .hero-copy { | |
| margin: 14px 0 0; | |
| max-width: 58ch; | |
| line-height: 1.45; | |
| } | |
| .hero-actions { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| width: min(260px, 100%); | |
| } | |
| .guide-toggle { | |
| min-height: 40px; | |
| color: var(--accent); | |
| background: linear-gradient(180deg, rgba(225, 242, 235, 0.98), rgba(211, 234, 225, 0.98)); | |
| border-color: rgba(13, 122, 100, 0.38); | |
| box-shadow: 0 8px 18px rgba(13, 122, 100, 0.1); | |
| font-weight: 600; | |
| } | |
| .guide-toggle-icon { | |
| margin-right: 8px; | |
| font-size: 0.72em; | |
| } | |
| .usage-guide { | |
| width: min(1120px, calc(100vw - 32px)); | |
| max-width: none; | |
| max-height: calc(100vh - 32px); | |
| padding: 0; | |
| color: var(--ink); | |
| background: var(--surface-strong); | |
| border: 1px solid rgba(255, 255, 255, 0.48); | |
| border-radius: 26px; | |
| box-shadow: 0 28px 80px rgba(16, 21, 29, 0.36); | |
| } | |
| .usage-guide::backdrop { | |
| background: rgba(16, 21, 29, 0.58); | |
| backdrop-filter: blur(2px); | |
| } | |
| .guide-shell { | |
| display: grid; | |
| grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.8fr); | |
| gap: 24px; | |
| align-items: center; | |
| padding: 22px; | |
| } | |
| .guide-copy h2 { | |
| font-size: clamp(1.35rem, 2vw, 1.8rem); | |
| line-height: 1.15; | |
| } | |
| .guide-steps { | |
| display: grid; | |
| gap: 12px; | |
| margin: 20px 0; | |
| padding: 0; | |
| list-style: none; | |
| } | |
| .guide-steps li { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| line-height: 1.35; | |
| } | |
| .guide-steps span { | |
| display: inline-grid; | |
| place-items: center; | |
| width: 28px; | |
| height: 28px; | |
| flex: 0 0 28px; | |
| border-radius: 50%; | |
| color: var(--accent); | |
| background: var(--accent-soft); | |
| font-weight: 600; | |
| } | |
| .guide-dismiss { | |
| min-height: 40px; | |
| padding-inline: 16px; | |
| } | |
| .guide-media { | |
| margin: 0; | |
| overflow: hidden; | |
| border: 1px solid var(--line); | |
| border-radius: 18px; | |
| background: #fff; | |
| box-shadow: 0 12px 30px rgba(83, 59, 37, 0.12); | |
| } | |
| .guide-media video { | |
| display: block; | |
| width: 100%; | |
| height: auto; | |
| } | |
| .upload-button, | |
| button { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| border-radius: 999px; | |
| border: 1px solid rgba(13, 122, 100, 0.18); | |
| background: linear-gradient(180deg, #157d67 0%, #0d7a64 100%); | |
| color: #fff; | |
| min-height: 48px; | |
| padding: 0 18px; | |
| cursor: pointer; | |
| transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease; | |
| box-shadow: 0 12px 24px rgba(13, 122, 100, 0.18); | |
| } | |
| .upload-button:hover, | |
| button:hover { | |
| transform: translateY(-1px); | |
| } | |
| .upload-button input { | |
| display: none; | |
| } | |
| button.secondary { | |
| color: var(--ink); | |
| background: var(--surface-strong); | |
| border-color: var(--line); | |
| box-shadow: none; | |
| } | |
| button:disabled { | |
| cursor: not-allowed; | |
| opacity: 0.7; | |
| transform: none; | |
| } | |
| .status-bar { | |
| display: grid; | |
| grid-template-columns: repeat(4, minmax(0, 1fr)); | |
| gap: 16px; | |
| margin-top: 18px; | |
| padding: 18px 22px; | |
| border-radius: 22px; | |
| } | |
| .status-bar > div { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 4px; | |
| } | |
| .layout { | |
| display: grid; | |
| grid-template-columns: 330px minmax(0, 1fr); | |
| gap: 18px; | |
| margin-top: 18px; | |
| } | |
| .data-credit { | |
| margin: 16px 4px 0; | |
| color: var(--muted); | |
| font-size: 0.82rem; | |
| line-height: 1.5; | |
| text-align: center; | |
| } | |
| .data-credit a { | |
| color: var(--accent); | |
| } | |
| .control-panel { | |
| border-radius: 26px; | |
| padding: 18px; | |
| } | |
| .panel-block + .panel-block { | |
| margin-top: 20px; | |
| } | |
| .tool-grid { | |
| display: grid; | |
| grid-template-columns: 1fr; | |
| gap: 10px; | |
| margin-top: 12px; | |
| } | |
| .polarity-grid { | |
| grid-template-columns: repeat(2, minmax(0, 1fr)); | |
| } | |
| .prompt-guidance { | |
| margin-top: 14px; | |
| padding: 13px 14px 14px; | |
| border: 1px solid rgba(13, 122, 100, 0.2); | |
| border-radius: 16px; | |
| color: var(--ink); | |
| background: rgba(225, 242, 235, 0.58); | |
| transition: background 160ms ease, border-color 160ms ease; | |
| } | |
| .prompt-guidance[data-tone="active"] { | |
| border-color: rgba(13, 122, 100, 0.3); | |
| background: rgba(225, 242, 235, 0.85); | |
| } | |
| .prompt-guidance[data-tone="attention"] { | |
| border-color: rgba(198, 149, 88, 0.42); | |
| background: rgba(250, 238, 211, 0.82); | |
| } | |
| .prompt-guidance[data-tone="attention"] p { | |
| color: #704913; | |
| font-weight: 600; | |
| } | |
| .prompt-guidance-kicker { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| margin-bottom: 5px; | |
| color: var(--accent); | |
| font-size: 0.72rem; | |
| font-weight: 600; | |
| letter-spacing: 0.08em; | |
| text-transform: uppercase; | |
| } | |
| .prompt-guidance-icon { | |
| font-size: 0.95rem; | |
| line-height: 1; | |
| } | |
| .prompt-guidance p { | |
| margin: 0; | |
| font-size: 0.92rem; | |
| line-height: 1.4; | |
| } | |
| .tool-button { | |
| min-height: 44px; | |
| border-radius: 16px; | |
| color: var(--ink); | |
| background: var(--surface-strong); | |
| border: 1px solid var(--line); | |
| box-shadow: none; | |
| } | |
| .tool-button.is-active { | |
| background: var(--accent-soft); | |
| border-color: rgba(13, 122, 100, 0.28); | |
| color: var(--accent); | |
| } | |
| .tool-button[data-polarity="negative"].is-active { | |
| background: var(--danger-soft); | |
| border-color: rgba(169, 58, 50, 0.25); | |
| color: var(--danger); | |
| } | |
| .stack { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; | |
| margin-top: 12px; | |
| } | |
| .viewer-grid { | |
| display: grid; | |
| grid-template-columns: repeat(3, minmax(0, 1fr)); | |
| gap: 18px; | |
| } | |
| .slice-card { | |
| border-radius: 26px; | |
| padding: 16px; | |
| } | |
| .slice-header { | |
| display: flex; | |
| justify-content: space-between; | |
| gap: 12px; | |
| margin-bottom: 14px; | |
| } | |
| .slice-title { | |
| font-size: 1.2rem; | |
| } | |
| .slice-subtitle { | |
| margin: 4px 0 0; | |
| } | |
| .slider-wrap { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| align-items: flex-end; | |
| min-width: 150px; | |
| } | |
| .slider-wrap input { | |
| width: 100%; | |
| } | |
| canvas { | |
| width: 100%; | |
| aspect-ratio: 1; | |
| touch-action: none; | |
| border-radius: 20px; | |
| background: #10151d; | |
| border: 1px solid rgba(255, 255, 255, 0.05); | |
| cursor: crosshair; | |
| } | |
| .loading-overlay { | |
| position: fixed; | |
| inset: 0; | |
| z-index: 1000; | |
| display: grid; | |
| place-items: center; | |
| padding: 24px; | |
| background: rgba(16, 21, 29, 0.52); | |
| backdrop-filter: blur(1.5px); | |
| } | |
| .loading-overlay[hidden] { | |
| display: none; | |
| } | |
| .loading-card { | |
| display: flex; | |
| align-items: center; | |
| gap: 14px; | |
| min-width: min(360px, calc(100vw - 48px)); | |
| padding: 18px 22px; | |
| border: 1px solid rgba(255, 255, 255, 0.36); | |
| border-radius: 18px; | |
| color: var(--ink); | |
| background: var(--surface-strong); | |
| box-shadow: 0 22px 60px rgba(16, 21, 29, 0.3); | |
| } | |
| .loading-card p { | |
| margin: 0; | |
| line-height: 1.4; | |
| } | |
| .loading-copy { | |
| min-width: 0; | |
| } | |
| .loading-hint { | |
| max-width: 46ch; | |
| margin-top: 4px ; | |
| color: var(--muted); | |
| font-size: 0.88rem; | |
| } | |
| .loading-hint[hidden] { | |
| display: none; | |
| } | |
| .loading-spinner { | |
| width: 24px; | |
| height: 24px; | |
| flex: 0 0 24px; | |
| border: 3px solid var(--accent-soft); | |
| border-top-color: var(--accent); | |
| border-radius: 50%; | |
| animation: loading-spin 700ms linear infinite; | |
| } | |
| @keyframes loading-spin { | |
| to { | |
| transform: rotate(360deg); | |
| } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .loading-spinner { | |
| animation: none; | |
| } | |
| } | |
| @media (max-width: 1180px) { | |
| .guide-shell { | |
| grid-template-columns: 1fr; | |
| } | |
| .layout { | |
| grid-template-columns: 1fr; | |
| } | |
| .viewer-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| @media (max-width: 760px) { | |
| .app-shell { | |
| width: min(100vw - 18px, 1400px); | |
| margin: 9px auto 20px; | |
| } | |
| .hero { | |
| flex-direction: column; | |
| } | |
| .hero-actions { | |
| width: 100%; | |
| } | |
| .usage-guide { | |
| width: min(100vw - 18px, 1120px); | |
| max-height: calc(100vh - 18px); | |
| } | |
| .guide-shell { | |
| gap: 18px; | |
| padding: 18px; | |
| } | |
| .status-bar { | |
| grid-template-columns: repeat(2, minmax(0, 1fr)); | |
| } | |
| } | |