Spaces:
Running
Running
Download styles.css from ChadSaglam/mushroom-classifier: direct link, hf CLI and curl.
- Browser
- Download file 7.58 kB
-
https://huggingface.co/spaces/ChadSaglam/mushroom-classifier/resolve/main/styles.css
- Command line
-
hf download hf://spaces/ChadSaglam/mushroom-classifier/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/ChadSaglam/mushroom-classifier/resolve/main/styles.css
7.58 kB
| :root { | |
| color-scheme: light; | |
| --page: #f5f6f2; | |
| --surface: #ffffff; | |
| --ink: #1c2921; | |
| --muted: #5d6861; | |
| --line: #dce2da; | |
| --green: #285d42; | |
| --green-dark: #1c4631; | |
| --green-soft: #eaf1eb; | |
| --red: #8d3037; | |
| --red-soft: #fff1ef; | |
| --amber: #7b5416; | |
| --amber-soft: #fff7e6; | |
| } | |
| * { box-sizing: border-box; } | |
| body { margin: 0; background: var(--page); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; } | |
| a { color: var(--green); text-underline-offset: 3px; } | |
| a:hover { color: var(--green-dark); } | |
| button, select { font: inherit; } | |
| button { cursor: pointer; } | |
| .site-header { max-width: 1160px; margin: 0 auto; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; } | |
| .brand { color: var(--ink); font-size: 17px; font-weight: 750; text-decoration: none; letter-spacing: -0.02em; } | |
| .resource-links { display: flex; gap: 22px; font-size: 14px; } | |
| .resource-links a { text-decoration: none; } | |
| main { max-width: 1160px; margin: 0 auto; padding: 24px 28px 64px; } | |
| .hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr); gap: 64px; align-items: center; padding: 30px 0 42px; } | |
| .eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; } | |
| h1, h2, h3 { line-height: 1.2; letter-spacing: -0.025em; } | |
| h1 { max-width: 760px; margin: 0; font-size: clamp(36px, 5vw, 58px); font-weight: 740; } | |
| h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 34px); } | |
| h3 { margin: 0 0 10px; font-size: 18px; } | |
| .intro { max-width: 690px; margin: 24px 0; color: var(--muted); font-size: 18px; } | |
| .hero-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; font-weight: 650; } | |
| .hero-photo { margin: 0; } | |
| .hero-photo img { display: block; width: 100%; height: 310px; object-fit: cover; object-position: 50% 60%; border-radius: 16px; } | |
| .hero-photo figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; } | |
| .safety-notice { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr); gap: 24px; padding: 22px 24px; border: 1px solid #ebcdd0; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 14px; } | |
| .safety-notice strong { font-size: 15px; } | |
| .tabs { display: flex; gap: 28px; margin: 42px 0 34px; border-bottom: 1px solid var(--line); overflow-x: auto; } | |
| .tab { flex: 0 0 auto; padding: 0 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-weight: 650; } | |
| .tab:hover { color: var(--ink); } | |
| .tab.active { border-bottom-color: var(--green); color: var(--green); } | |
| .panel[hidden] { display: none; } | |
| .section-heading { max-width: 760px; margin-bottom: 28px; } | |
| .section-heading > p:last-child { margin: 0; color: var(--muted); } | |
| .feature-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); } | |
| .feature-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 650; } | |
| select { width: 100%; min-height: 46px; padding: 9px 36px 9px 12px; border: 1px solid #cbd3c9; border-radius: 8px; background: var(--surface); color: var(--ink); } | |
| select:focus, button:focus-visible, a:focus-visible { outline: 3px solid #a9c8b4; outline-offset: 2px; } | |
| .form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding-top: 4px; } | |
| .form-actions span { color: var(--muted); font-size: 13px; } | |
| .primary-button { min-height: 44px; padding: 10px 20px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: white; font-weight: 700; } | |
| .primary-button:hover { background: var(--green-dark); } | |
| .primary-button:disabled { cursor: wait; opacity: 0.55; } | |
| .result { margin-top: 24px; padding: 26px 28px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px; background: var(--surface); } | |
| .result h3 { font-size: 24px; } | |
| .result p { margin-bottom: 0; } | |
| .result .eyebrow { margin-bottom: 8px; } | |
| .result.danger { border-left-color: var(--red); background: var(--red-soft); } | |
| .result.danger .eyebrow { color: var(--red); } | |
| .result.unclear { border-left-color: var(--amber); background: var(--amber-soft); } | |
| .result.unclear .eyebrow { color: var(--amber); } | |
| .result.dataset-match { border-left-color: var(--green); background: var(--green-soft); } | |
| .score-note { margin-top: 14px ; color: var(--muted); font-size: 13px; } | |
| .card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } | |
| .info-card, .plain-card, .credit-list article { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); } | |
| .info-card p, .plain-card p, .credit-list p { margin: 0; color: var(--muted); } | |
| .info-card p + p, .plain-card p + p { margin-top: 12px; } | |
| .section-note { margin: 24px 0 0; padding-left: 16px; border-left: 3px solid var(--red); font-weight: 650; } | |
| .metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 34px; } | |
| .metric { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); } | |
| .metric span { display: block; min-height: 42px; color: var(--muted); font-size: 13px; } | |
| .metric strong { display: block; margin-top: 8px; font-size: 28px; letter-spacing: -0.03em; } | |
| .metric.warning strong { color: var(--red); } | |
| .model-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: start; } | |
| .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); } | |
| table { width: 100%; border-collapse: collapse; font-size: 14px; } | |
| th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: right; } | |
| th:first-child { text-align: left; } | |
| thead th { color: var(--muted); font-size: 12px; } | |
| tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; } | |
| .credit-list { display: grid; gap: 16px; } | |
| .credit-list article { max-width: 900px; } | |
| code { padding: 2px 5px; border-radius: 4px; background: var(--green-soft); font-size: 0.9em; } | |
| footer { max-width: 1160px; margin: 0 auto; padding: 24px 28px 38px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; } | |
| @media (max-width: 820px) { | |
| .hero { grid-template-columns: 1fr; gap: 28px; } | |
| .hero-photo { max-width: 520px; } | |
| .hero-photo img { height: 280px; } | |
| .safety-notice { grid-template-columns: 1fr; gap: 8px; } | |
| .feature-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } | |
| .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } | |
| .model-layout { grid-template-columns: 1fr; } | |
| } | |
| @media (max-width: 540px) { | |
| .site-header { align-items: flex-start; padding: 18px; } | |
| .resource-links { gap: 12px; font-size: 13px; } | |
| main { padding: 12px 18px 44px; } | |
| .hero { padding-top: 18px; } | |
| h1 { font-size: 37px; } | |
| .intro { font-size: 16px; } | |
| .tabs { gap: 22px; margin-top: 32px; } | |
| .feature-form, .card-grid { grid-template-columns: 1fr; padding: 20px; } | |
| .card-grid { padding: 0; } | |
| .form-actions { align-items: flex-start; flex-direction: column; } | |
| .metric-grid { gap: 10px; } | |
| .metric { padding: 16px; } | |
| .metric strong { font-size: 24px; } | |
| footer { padding: 22px 18px; flex-direction: column; gap: 4px; } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| *, *::before, *::after { scroll-behavior: auto ; transition: none ; } | |
| } | |