Download static/style.css from skelon/faceswap: direct link, hf CLI and curl.
- Browser
- Download file 15.1 kB
-
https://huggingface.co/spaces/skelon/faceswap/resolve/main/static/style.css
- Command line
-
hf download hf://spaces/skelon/faceswap/static/style.css
-
curl -L -o style.css https://huggingface.co/spaces/skelon/faceswap/resolve/main/static/style.css
15.1 kB
| @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap'); | |
| *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } | |
| :root { | |
| --bg-base: #0f0f0f; | |
| --bg-surface: #1a1a1a; | |
| --bg-elevated: #242424; | |
| --bg-hover: #2e2e2e; | |
| --accent: #3b82f6; | |
| --accent-dim: rgba(59,130,246,.12); | |
| --accent-glow: rgba(59,130,246,.35); | |
| --text-primary: #f5f5f5; | |
| --text-secondary:#a0a0a0; | |
| --text-muted: #606060; | |
| --border: rgba(255,255,255,.08); | |
| --border-accent:rgba(59,130,246,.5); | |
| --error: #ef4444; | |
| --success: #22c55e; | |
| --radius-sm: 8px; | |
| --radius-md: 14px; | |
| --radius-lg: 20px; | |
| --shadow-card: 0 4px 24px rgba(0,0,0,.5); | |
| --shadow-accent:0 0 32px rgba(59,130,246,.2); | |
| --transition: .2s cubic-bezier(.4,0,.2,1); | |
| } | |
| html { scroll-behavior: smooth; } | |
| body { | |
| font-family: 'IBM Plex Sans', system-ui, sans-serif; | |
| background: var(--bg-base); | |
| color: var(--text-primary); | |
| line-height: 1.6; | |
| min-height: 100vh; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| body::before { | |
| content: ''; | |
| position: fixed; | |
| inset: 0; | |
| background-image: | |
| linear-gradient(rgba(59,130,246,.025) 1px, transparent 1px), | |
| linear-gradient(90deg, rgba(59,130,246,.025) 1px, transparent 1px); | |
| background-size: 48px 48px; | |
| pointer-events: none; | |
| z-index: 0; | |
| } | |
| h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15; } | |
| h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.25; } | |
| h3 { font-size: 1.05rem; font-weight: 600; } | |
| p { color: var(--text-secondary); } | |
| .highlight { color: var(--accent); } | |
| .container { | |
| max-width: 1100px; | |
| margin: 0 auto; | |
| padding: 0 24px; | |
| position: relative; | |
| z-index: 1; | |
| } | |
| section { padding: 88px 0; } | |
| /* ── Header ── */ | |
| #site-header { | |
| position: sticky; top: 0; z-index: 100; | |
| background: rgba(15,15,15,.88); | |
| backdrop-filter: blur(16px); | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .nav-inner { | |
| display: flex; align-items: center; | |
| justify-content: space-between; height: 64px; | |
| } | |
| .logo { | |
| display: flex; align-items: center; gap: 10px; | |
| text-decoration: none; color: var(--text-primary); | |
| } | |
| .logo-icon { | |
| width: 32px; height: 32px; | |
| background: var(--accent); border-radius: var(--radius-sm); | |
| display: grid; place-items: center; font-size: 16px; | |
| box-shadow: 0 0 16px var(--accent-glow); flex-shrink: 0; | |
| } | |
| .logo-wordmark { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; } | |
| .logo-wordmark span { color: var(--accent); } | |
| nav { display: flex; gap: 4px; } | |
| nav a { | |
| color: var(--text-secondary); text-decoration: none; | |
| font-size: .9rem; font-weight: 500; | |
| padding: 8px 14px; border-radius: var(--radius-sm); | |
| transition: color var(--transition), background var(--transition); | |
| } | |
| nav a:hover { color: var(--text-primary); background: var(--bg-elevated); } | |
| /* ── Hero ── */ | |
| #home { padding: 120px 0 88px; text-align: center; } | |
| .hero-badge { | |
| display: inline-flex; align-items: center; gap: 8px; | |
| background: var(--accent-dim); border: 1px solid var(--border-accent); | |
| color: var(--accent); font-size: .78rem; font-weight: 600; | |
| letter-spacing: .06em; text-transform: uppercase; | |
| padding: 6px 14px; border-radius: 100px; margin-bottom: 28px; | |
| } | |
| .hero-badge::before { | |
| content: ''; width: 6px; height: 6px; | |
| background: var(--accent); border-radius: 50%; | |
| box-shadow: 0 0 8px var(--accent); | |
| animation: pulse 2s ease-in-out infinite; | |
| } | |
| @keyframes pulse { | |
| 0%,100% { opacity:1; transform:scale(1); } | |
| 50% { opacity:.5; transform:scale(.8); } | |
| } | |
| .hero-headline { margin-bottom: 18px; } | |
| .hero-subheadline { | |
| font-size: 1.1rem; color: var(--text-secondary); | |
| max-width: 540px; margin: 0 auto 36px; | |
| } | |
| .btn-primary { | |
| display: inline-flex; align-items: center; gap: 8px; | |
| background: var(--accent); color: #fff; | |
| font-family: inherit; font-size: 1rem; font-weight: 600; | |
| padding: 14px 32px; border-radius: var(--radius-md); border: none; | |
| cursor: pointer; text-decoration: none; | |
| transition: transform var(--transition), box-shadow var(--transition), background var(--transition); | |
| box-shadow: 0 4px 20px var(--accent-glow); | |
| } | |
| .btn-primary:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); } | |
| .btn-primary:active { transform: translateY(0); } | |
| .btn-primary:disabled { opacity:.5; cursor:not-allowed; transform:none; box-shadow:none; } | |
| .btn-secondary { | |
| display: inline-flex; align-items: center; gap: 8px; | |
| background: var(--bg-elevated); color: var(--text-primary); | |
| font-family: inherit; font-size: .95rem; font-weight: 500; | |
| padding: 12px 24px; border-radius: var(--radius-md); | |
| border: 1px solid var(--border); cursor: pointer; | |
| transition: background var(--transition), border-color var(--transition), transform var(--transition); | |
| } | |
| .btn-secondary:hover { background: var(--bg-hover); border-color: rgba(255,255,255,.18); transform: translateY(-1px); } | |
| .hero-stats { | |
| display: flex; justify-content: center; gap: 48px; | |
| margin-top: 60px; padding-top: 44px; border-top: 1px solid var(--border); | |
| } | |
| .stat-item { text-align: center; } | |
| .stat-number { font-size: 2rem; font-weight: 700; line-height: 1; } | |
| .stat-number span { color: var(--accent); } | |
| .stat-label { font-size: .78rem; color: var(--text-muted); margin-top: 4px; } | |
| /* ── Swap Tool ── */ | |
| #swap-tool { padding: 40px 0 88px; } | |
| .section-label { | |
| display: flex; align-items: center; gap: 12px; | |
| color: var(--accent); font-size: .78rem; font-weight: 600; | |
| letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; | |
| } | |
| .section-label::after { content:''; flex:1; height:1px; background:var(--border); } | |
| .tool-card { | |
| background: var(--bg-surface); border: 1px solid var(--border); | |
| border-radius: var(--radius-lg); padding: 36px; | |
| box-shadow: var(--shadow-card); | |
| } | |
| .upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; } | |
| .upload-zone { | |
| position: relative; background: var(--bg-base); | |
| border: 2px dashed var(--border); border-radius: var(--radius-md); | |
| min-height: 260px; display: flex; flex-direction: column; | |
| align-items: center; justify-content: center; cursor: pointer; | |
| transition: border-color var(--transition), background var(--transition), box-shadow var(--transition); | |
| overflow: hidden; | |
| } | |
| .upload-zone:hover, | |
| .upload-zone.dragover { | |
| border-color: var(--accent); background: var(--accent-dim); | |
| box-shadow: 0 0 0 4px var(--accent-dim); | |
| } | |
| .upload-zone input[type="file"] { | |
| position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; | |
| } | |
| .upload-placeholder { | |
| display: flex; flex-direction: column; align-items: center; | |
| gap: 10px; pointer-events: none; padding: 24px; text-align: center; | |
| } | |
| .upload-icon { | |
| width: 52px; height: 52px; background: var(--bg-elevated); | |
| border-radius: var(--radius-md); display: grid; place-items: center; | |
| font-size: 22px; margin-bottom: 4px; transition: background var(--transition); | |
| } | |
| .upload-zone:hover .upload-icon, .upload-zone.dragover .upload-icon { background: var(--accent-dim); } | |
| .upload-title { font-size: .95rem; font-weight: 600; color: var(--text-primary); } | |
| .upload-hint { font-size: .8rem; color: var(--text-muted); } | |
| .upload-tag { | |
| display: inline-block; font-size: .7rem; font-weight: 700; | |
| letter-spacing: .06em; text-transform: uppercase; | |
| background: var(--accent-dim); color: var(--accent); | |
| border: 1px solid var(--border-accent); | |
| padding: 3px 10px; border-radius: 100px; | |
| } | |
| .upload-preview { | |
| width: 100%; height: 100%; position: absolute; inset: 0; | |
| object-fit: cover; border-radius: calc(var(--radius-md) - 2px); | |
| } | |
| .preview-overlay { | |
| position: absolute; inset: 0; background: rgba(0,0,0,.52); | |
| display: flex; align-items: center; justify-content: center; gap: 8px; | |
| opacity: 0; transition: opacity var(--transition); | |
| border-radius: calc(var(--radius-md) - 2px); pointer-events: none; | |
| } | |
| .upload-zone:hover .preview-overlay { opacity: 1; } | |
| .preview-overlay-text { color: #fff; font-size: .85rem; font-weight: 600; } | |
| .face-badge { | |
| position: absolute; top: 10px; right: 10px; | |
| background: var(--success); color: #fff; | |
| font-size: .72rem; font-weight: 700; | |
| padding: 3px 9px; border-radius: 100px; | |
| pointer-events: none; animation: fadeIn .3s ease; | |
| } | |
| /* Controls */ | |
| .controls-row { | |
| display: flex; align-items: center; | |
| justify-content: space-between; flex-wrap: wrap; | |
| gap: 16px; margin-bottom: 24px; | |
| } | |
| .toggle-group { display: flex; align-items: center; gap: 12px; } | |
| .toggle-label { font-size: .9rem; color: var(--text-secondary); cursor: pointer; user-select: none; } | |
| .toggle-label strong { color: var(--text-primary); } | |
| .toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; } | |
| .toggle-switch input { display: none; } | |
| .toggle-track { | |
| position: absolute; inset: 0; | |
| background: var(--bg-elevated); border: 1px solid var(--border); | |
| border-radius: 100px; cursor: pointer; | |
| transition: background var(--transition), border-color var(--transition); | |
| } | |
| .toggle-track::after { | |
| content: ''; position: absolute; top: 3px; left: 3px; | |
| width: 16px; height: 16px; background: var(--text-muted); | |
| border-radius: 50%; | |
| transition: transform var(--transition), background var(--transition); | |
| } | |
| .toggle-switch input:checked + .toggle-track { background: var(--accent); border-color: var(--accent); } | |
| .toggle-switch input:checked + .toggle-track::after { transform: translateX(20px); background: #fff; } | |
| .swap-btn-row { display: flex; justify-content: center; } | |
| #swap-btn { font-size: 1.05rem; padding: 16px 48px; min-width: 220px; justify-content: center; } | |
| .spinner { | |
| width: 18px; height: 18px; | |
| border: 2.5px solid rgba(255,255,255,.3); | |
| border-top-color: #fff; border-radius: 50%; | |
| animation: spin .7s linear infinite; display: none; | |
| } | |
| @keyframes spin { to { transform: rotate(360deg); } } | |
| /* Result */ | |
| #result-area { display: none; margin-top: 36px; animation: fadeIn .4s ease; } | |
| @keyframes fadeIn { | |
| from { opacity:0; transform: translateY(10px); } | |
| to { opacity:1; transform: translateY(0); } | |
| } | |
| .result-inner { | |
| background: var(--bg-base); border: 1px solid var(--border); | |
| border-radius: var(--radius-md); padding: 28px; | |
| display: flex; flex-direction: column; align-items: center; gap: 20px; | |
| } | |
| .result-img-wrap { | |
| width: 100%; max-width: 600px; | |
| border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); | |
| } | |
| #result-img { display: block; width: 100%; height: auto; } | |
| .result-meta { display: flex; align-items: center; gap: 8px; font-size: .83rem; color: var(--text-muted); } | |
| .result-meta .dot { color: var(--accent); } | |
| .result-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; } | |
| /* How It Works */ | |
| #how-it-works { background: var(--bg-surface); } | |
| .section-header { text-align: center; margin-bottom: 60px; } | |
| .section-header p { margin-top: 12px; font-size: 1.05rem; } | |
| .steps-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; } | |
| .step-card { | |
| background: var(--bg-elevated); border: 1px solid var(--border); | |
| border-radius: var(--radius-md); padding: 32px 24px; text-align: center; | |
| transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); | |
| } | |
| .step-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-accent); transform: translateY(-4px); } | |
| .step-number { | |
| width: 52px; height: 52px; background: var(--accent-dim); | |
| border: 1px solid var(--border-accent); border-radius: 50%; | |
| display: grid; place-items: center; | |
| font-size: 1.2rem; font-weight: 700; color: var(--accent); | |
| margin: 0 auto 16px; | |
| } | |
| .step-icon { font-size: 1.5rem; margin-bottom: 14px; } | |
| .step-title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; } | |
| .step-desc { font-size: .87rem; color: var(--text-muted); } | |
| /* FAQ */ | |
| .faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; } | |
| .faq-item { | |
| background: var(--bg-surface); border: 1px solid var(--border); | |
| border-radius: var(--radius-md); overflow: hidden; | |
| transition: border-color var(--transition); | |
| } | |
| .faq-item.open { border-color: var(--border-accent); } | |
| .faq-question { | |
| display: flex; align-items: center; justify-content: space-between; | |
| padding: 18px 22px; cursor: pointer; font-weight: 500; | |
| font-size: .95rem; user-select: none; gap: 16px; | |
| transition: background var(--transition); | |
| } | |
| .faq-question:hover { background: var(--bg-elevated); } | |
| .faq-chevron { | |
| width: 20px; height: 20px; flex-shrink: 0; | |
| color: var(--text-muted); | |
| transition: transform var(--transition), color var(--transition); | |
| } | |
| .faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); } | |
| .faq-answer { | |
| max-height: 0; overflow: hidden; | |
| transition: max-height .35s cubic-bezier(.4,0,.2,1), padding var(--transition); | |
| font-size: .88rem; color: var(--text-secondary); padding: 0 22px; | |
| } | |
| .faq-item.open .faq-answer { max-height: 200px; padding: 0 22px 18px; } | |
| /* Footer */ | |
| footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 36px 0; } | |
| .footer-inner { | |
| display: flex; align-items: center; | |
| justify-content: space-between; flex-wrap: wrap; gap: 20px; | |
| } | |
| .footer-left { display: flex; flex-direction: column; gap: 6px; } | |
| .footer-brand { font-size: .88rem; color: var(--text-secondary); } | |
| .footer-disclaimer { font-size: .76rem; color: var(--text-muted); max-width: 420px; } | |
| .footer-links { display: flex; gap: 20px; } | |
| .footer-links a { font-size: .85rem; color: var(--text-muted); text-decoration: none; transition: color var(--transition); } | |
| .footer-links a:hover { color: var(--accent); } | |
| /* Toast */ | |
| #toast-container { | |
| position: fixed; bottom: 24px; right: 24px; z-index: 9999; | |
| display: flex; flex-direction: column; gap: 8px; | |
| } | |
| .toast { | |
| display: flex; align-items: flex-start; gap: 12px; | |
| background: var(--bg-elevated); border: 1px solid var(--border); | |
| border-radius: var(--radius-md); padding: 14px 18px; | |
| min-width: 280px; max-width: 380px; | |
| box-shadow: 0 8px 32px rgba(0,0,0,.5); | |
| animation: slideIn .3s cubic-bezier(.4,0,.2,1); | |
| } | |
| .toast.error { border-color: var(--error); } | |
| .toast.success { border-color: var(--success); } | |
| @keyframes slideIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } } | |
| .toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; } | |
| .toast-body { flex: 1; } | |
| .toast-title { font-size: .88rem; font-weight: 600; } | |
| .toast.error .toast-title { color: var(--error); } | |
| .toast.success .toast-title { color: var(--success); } | |
| .toast-message { font-size: .82rem; color: var(--text-muted); margin-top: 2px; } | |
| /* Responsive */ | |
| @media (max-width: 768px) { | |
| .upload-grid { grid-template-columns: 1fr; } | |
| .steps-row { grid-template-columns: 1fr; } | |
| .hero-stats { gap: 24px; } | |
| .footer-inner { flex-direction: column; } | |
| .controls-row { flex-direction: column; align-items: flex-start; } | |
| nav { display: none; } | |
| .tool-card { padding: 22px 16px; } | |
| } | |
| @media (max-width: 480px) { | |
| .hero-stats { flex-direction: column; gap: 16px; } | |
| #home { padding: 72px 0 56px; } | |
| } | |