Spaces:
Sleeping
Sleeping
Download frontend/src/index.css from werty3684/misinformation-detector: direct link, hf CLI and curl.
- Browser
- Download file 10.9 kB
-
https://huggingface.co/spaces/werty3684/misinformation-detector/resolve/main/frontend/src/index.css
- Command line
-
hf download hf://spaces/werty3684/misinformation-detector/frontend/src/index.css
-
curl -L -o index.css https://huggingface.co/spaces/werty3684/misinformation-detector/resolve/main/frontend/src/index.css
10.9 kB
| /* Immersive Gardenβinspired design β no audio */ | |
| :root { | |
| color-scheme: dark; | |
| --bg: #0a0a0a; | |
| --bg-soft: #111111; | |
| --bg-elevated: #161616; | |
| --border: rgba(255, 255, 255, 0.08); | |
| --text: #f5f5f5; | |
| --text-muted: rgba(255, 255, 255, 0.55); | |
| --accent: #fff; | |
| --accent-soft: rgba(255, 255, 255, 0.12); | |
| --danger: #e85d5d; | |
| --danger-soft: rgba(232, 93, 93, 0.12); | |
| --warning: #e8a85d; | |
| --success: #5de89a; | |
| --font-display: "Syne", system-ui, sans-serif; | |
| --font-body: "DM Sans", system-ui, sans-serif; | |
| } | |
| *, | |
| *::before, | |
| *::after { | |
| box-sizing: border-box; | |
| } | |
| html { | |
| scroll-behavior: smooth; | |
| } | |
| body { | |
| margin: 0; | |
| font-family: var(--font-body); | |
| background: var(--bg); | |
| color: var(--text); | |
| min-height: 100vh; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| .app-root { | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| /* βββ Hero βββ */ | |
| .hero { | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem); | |
| position: relative; | |
| } | |
| .hero-label { | |
| font-family: var(--font-body); | |
| font-size: clamp(0.7rem, 1.5vw, 0.8rem); | |
| font-weight: 500; | |
| letter-spacing: 0.2em; | |
| text-transform: uppercase; | |
| color: var(--text-muted); | |
| margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); | |
| } | |
| .hero-title { | |
| font-family: var(--font-display); | |
| font-weight: 700; | |
| font-size: clamp(2.5rem, 8vw, 5.5rem); | |
| line-height: 1.08; | |
| letter-spacing: -0.03em; | |
| margin: 0; | |
| max-width: 14ch; | |
| } | |
| .hero-title .line { | |
| display: block; | |
| } | |
| .hero-scroll { | |
| position: absolute; | |
| bottom: clamp(2rem, 5vw, 3rem); | |
| left: clamp(1.5rem, 5vw, 3rem); | |
| font-family: var(--font-body); | |
| font-size: 0.75rem; | |
| font-weight: 500; | |
| letter-spacing: 0.15em; | |
| text-transform: uppercase; | |
| color: var(--text-muted); | |
| text-decoration: none; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| transition: color 0.2s; | |
| } | |
| .hero-scroll:hover { | |
| color: var(--text); | |
| } | |
| .hero-scroll::after { | |
| content: ""; | |
| width: 0; | |
| height: 0; | |
| border-left: 4px solid transparent; | |
| border-right: 4px solid transparent; | |
| border-top: 6px solid currentColor; | |
| } | |
| /* βββ Sections (Our approach style) βββ */ | |
| .section { | |
| padding: clamp(3rem, 10vw, 6rem) clamp(1.5rem, 5vw, 4rem); | |
| max-width: 1400px; | |
| margin: 0 auto; | |
| width: 100%; | |
| } | |
| .section-label { | |
| font-family: var(--font-body); | |
| font-size: 0.7rem; | |
| font-weight: 600; | |
| letter-spacing: 0.2em; | |
| text-transform: uppercase; | |
| color: var(--text-muted); | |
| margin: 0 0 1.25rem; | |
| } | |
| .section-title { | |
| font-family: var(--font-display); | |
| font-weight: 700; | |
| font-size: clamp(1.75rem, 4vw, 2.5rem); | |
| letter-spacing: -0.02em; | |
| margin: 0 0 2rem; | |
| max-width: 20ch; | |
| } | |
| .section-intro { | |
| font-size: clamp(0.95rem, 1.2vw, 1.05rem); | |
| line-height: 1.6; | |
| color: var(--text-muted); | |
| max-width: 52ch; | |
| margin: 0 0 2.5rem; | |
| } | |
| /* βββ Card / block βββ */ | |
| .card { | |
| background: var(--bg-soft); | |
| border: 1px solid var(--border); | |
| padding: clamp(1.5rem, 4vw, 2.5rem); | |
| margin-bottom: 1.5rem; | |
| } | |
| .card:last-of-type { | |
| margin-bottom: 0; | |
| } | |
| .card h2 { | |
| font-family: var(--font-body); | |
| font-size: 0.7rem; | |
| font-weight: 600; | |
| letter-spacing: 0.18em; | |
| text-transform: uppercase; | |
| color: var(--text-muted); | |
| margin: 0 0 1.25rem; | |
| } | |
| /* βββ Form βββ */ | |
| .form { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1.25rem; | |
| } | |
| .label { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| font-size: 0.85rem; | |
| color: var(--text-muted); | |
| } | |
| .label textarea, | |
| .label input[type="text"], | |
| .label input[type="url"] { | |
| padding: 0.9rem 1rem; | |
| border: 1px solid var(--border); | |
| background: var(--bg); | |
| color: var(--text); | |
| font-family: var(--font-body); | |
| font-size: 0.95rem; | |
| transition: border-color 0.2s; | |
| } | |
| .label textarea { | |
| resize: vertical; | |
| min-height: 120px; | |
| } | |
| .label textarea:focus, | |
| .label input:focus { | |
| outline: none; | |
| border-color: rgba(255, 255, 255, 0.25); | |
| } | |
| .form-row { | |
| display: flex; | |
| flex-wrap: wrap; | |
| align-items: center; | |
| gap: 1.5rem; | |
| } | |
| .label-inline { | |
| font-size: 0.85rem; | |
| color: var(--text-muted); | |
| } | |
| .label-inline select { | |
| margin-left: 0.5rem; | |
| padding: 0.5rem 2rem 0.5rem 0.75rem; | |
| border: 1px solid var(--border); | |
| background: var(--bg); | |
| color: var(--text); | |
| font-family: var(--font-body); | |
| font-size: 0.9rem; | |
| cursor: pointer; | |
| appearance: none; | |
| background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); | |
| background-repeat: no-repeat; | |
| background-position: right 0.75rem center; | |
| } | |
| .checkbox-label { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| font-size: 0.85rem; | |
| color: var(--text-muted); | |
| cursor: pointer; | |
| } | |
| .checkbox-label input { | |
| accent-color: var(--text); | |
| } | |
| .primary-button { | |
| align-self: flex-start; | |
| margin-top: 0.5rem; | |
| padding: 0.85rem 1.75rem; | |
| font-family: var(--font-body); | |
| font-size: 0.8rem; | |
| font-weight: 600; | |
| letter-spacing: 0.12em; | |
| text-transform: uppercase; | |
| background: var(--text); | |
| color: var(--bg); | |
| border: none; | |
| cursor: pointer; | |
| transition: opacity 0.2s, transform 0.15s; | |
| } | |
| .primary-button:hover:not(:disabled) { | |
| opacity: 0.9; | |
| transform: translateY(-1px); | |
| } | |
| .primary-button:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| } | |
| .hint { | |
| margin: 0.5rem 0 0; | |
| font-size: 0.72rem; | |
| color: var(--text-muted); | |
| } | |
| .hint code { | |
| font-size: 0.7rem; | |
| background: var(--bg-elevated); | |
| padding: 2px 6px; | |
| border: 1px solid var(--border); | |
| } | |
| .placeholder { | |
| margin: 0; | |
| font-size: 0.9rem; | |
| color: var(--text-muted); | |
| } | |
| .alert { | |
| padding: 1rem 1.25rem; | |
| font-size: 0.88rem; | |
| border: 1px solid var(--border); | |
| } | |
| .alert-error { | |
| background: var(--danger-soft); | |
| border-color: rgba(232, 93, 93, 0.35); | |
| color: #f5b5b5; | |
| } | |
| /* βββ Result βββ */ | |
| .result { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .result-header { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 0.75rem; | |
| } | |
| .pill { | |
| font-size: 0.72rem; | |
| letter-spacing: 0.06em; | |
| padding: 0.4rem 0.75rem; | |
| border: 1px solid var(--border); | |
| background: var(--bg); | |
| color: var(--text-muted); | |
| } | |
| .pill strong { | |
| color: var(--text); | |
| } | |
| .pill-warn { | |
| border-color: rgba(232, 168, 93, 0.4); | |
| background: rgba(232, 168, 93, 0.08); | |
| color: var(--warning); | |
| } | |
| .result-main { | |
| padding: 1.25rem 0 0; | |
| border-top: 1px solid var(--border); | |
| } | |
| .prediction-badge { | |
| display: inline-flex; | |
| flex-direction: column; | |
| gap: 0.25rem; | |
| padding: 0.85rem 1.25rem; | |
| border: 1px solid var(--border); | |
| background: var(--bg); | |
| margin-bottom: 1.25rem; | |
| } | |
| .prediction-badge .prediction-label { | |
| font-family: var(--font-display); | |
| font-size: 0.9rem; | |
| font-weight: 700; | |
| letter-spacing: 0.05em; | |
| text-transform: uppercase; | |
| } | |
| .prediction-confidence { | |
| font-size: 0.78rem; | |
| color: var(--text-muted); | |
| } | |
| .text-preview, | |
| .probabilities, | |
| .explanation, | |
| .credibility-audit { | |
| margin-top: 1.25rem; | |
| } | |
| .text-preview h3, | |
| .probabilities h3, | |
| .explanation h3, | |
| .credibility-audit h3 { | |
| font-family: var(--font-body); | |
| font-size: 0.68rem; | |
| font-weight: 600; | |
| letter-spacing: 0.15em; | |
| text-transform: uppercase; | |
| color: var(--text-muted); | |
| margin: 0 0 0.6rem; | |
| } | |
| .text-preview p { | |
| margin: 0; | |
| font-size: 0.9rem; | |
| line-height: 1.55; | |
| color: var(--text-muted); | |
| } | |
| .prob-bars { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .prob-bar-row { | |
| display: grid; | |
| grid-template-columns: minmax(0, 1fr) 3fr auto; | |
| align-items: center; | |
| gap: 0.75rem; | |
| font-size: 0.8rem; | |
| } | |
| .prob-label { | |
| color: var(--text-muted); | |
| } | |
| .prob-bar-track { | |
| height: 6px; | |
| background: var(--bg); | |
| overflow: hidden; | |
| } | |
| .prob-bar-fill { | |
| height: 100%; | |
| background: var(--text); | |
| transition: width 0.3s ease; | |
| } | |
| .prob-value { | |
| font-variant-numeric: tabular-nums; | |
| color: var(--text-muted); | |
| min-width: 2.5rem; | |
| } | |
| .explanation { | |
| padding-top: 1rem; | |
| border-top: 1px solid var(--border); | |
| } | |
| .explanation ul { | |
| list-style: none; | |
| padding: 0; | |
| margin: 0.5rem 0 0; | |
| } | |
| .explanation li { | |
| display: flex; | |
| justify-content: space-between; | |
| gap: 1rem; | |
| font-size: 0.82rem; | |
| padding: 0.4rem 0; | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .explanation li:last-child { | |
| border-bottom: none; | |
| } | |
| .feature { | |
| color: var(--text); | |
| } | |
| .weight { | |
| font-variant-numeric: tabular-nums; | |
| color: var(--text-muted); | |
| } | |
| /* Credibility audit */ | |
| .credibility-audit { | |
| padding-top: 1rem; | |
| border-top: 1px solid var(--border); | |
| } | |
| .audit-metrics { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| margin-top: 0.75rem; | |
| } | |
| .audit-metric { | |
| display: flex; | |
| flex-wrap: wrap; | |
| align-items: center; | |
| gap: 0.75rem; | |
| font-size: 0.82rem; | |
| } | |
| .audit-label { | |
| min-width: 120px; | |
| color: var(--text-muted); | |
| } | |
| .audit-bar-track { | |
| position: relative; | |
| flex: 1; | |
| min-width: 80px; | |
| height: 6px; | |
| background: var(--bg); | |
| overflow: hidden; | |
| } | |
| .audit-bar-fill { | |
| position: absolute; | |
| inset: 0; | |
| transition: width 0.3s ease; | |
| } | |
| .audit-bar-fill.sensational { | |
| background: var(--warning); | |
| } | |
| .audit-bar-fill.factual { | |
| background: var(--success); | |
| } | |
| .audit-value { | |
| font-variant-numeric: tabular-nums; | |
| color: var(--text); | |
| min-width: 3.5rem; | |
| } | |
| .flagged-terms { | |
| margin-top: 1rem; | |
| padding-top: 1rem; | |
| border-top: 1px solid var(--border); | |
| } | |
| .flagged-terms h4 { | |
| font-family: var(--font-body); | |
| font-size: 0.68rem; | |
| font-weight: 600; | |
| letter-spacing: 0.12em; | |
| text-transform: uppercase; | |
| color: var(--text-muted); | |
| margin: 0 0 0.4rem; | |
| } | |
| .flagged-list { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 0.5rem; | |
| margin-top: 0.6rem; | |
| } | |
| .flagged-term { | |
| display: inline-block; | |
| padding: 0.35rem 0.65rem; | |
| font-size: 0.78rem; | |
| font-weight: 500; | |
| background: var(--danger-soft); | |
| border: 1px solid rgba(232, 93, 93, 0.3); | |
| color: #f5b5b5; | |
| cursor: default; | |
| } | |
| /* βββ Footer (Immersive Garden style) βββ */ | |
| .app-footer { | |
| margin-top: auto; | |
| padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 4rem); | |
| border-top: 1px solid var(--border); | |
| font-size: 0.75rem; | |
| color: var(--text-muted); | |
| letter-spacing: 0.04em; | |
| } | |
| .app-footer-inner { | |
| max-width: 1400px; | |
| margin: 0 auto; | |
| display: flex; | |
| flex-wrap: wrap; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 1.5rem; | |
| } | |
| .app-footer code { | |
| font-size: 0.72rem; | |
| background: var(--bg-soft); | |
| padding: 2px 6px; | |
| border: 1px solid var(--border); | |
| } | |
| .footer-link { | |
| font-size: 0.75rem; | |
| font-weight: 500; | |
| letter-spacing: 0.15em; | |
| text-transform: uppercase; | |
| color: var(--text-muted); | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-link:hover { | |
| color: var(--text); | |
| } | |
| /* βββ Layout: two columns on large screens βββ */ | |
| .app-main { | |
| display: grid; | |
| grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); | |
| gap: 2rem; | |
| align-items: start; | |
| } | |
| @media (max-width: 900px) { | |
| .app-main { | |
| grid-template-columns: minmax(0, 1fr); | |
| } | |
| } | |