Download src/static/css/profile.css from anaselamr/yaz: direct link, hf CLI and curl.
- Browser
- Download file 8.04 kB
-
https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/static/css/profile.css
- Command line
-
hf download hf://spaces/anaselamr/yaz/src/static/css/profile.css
-
curl -L -o profile.css https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/static/css/profile.css
8.04 kB
| /* ───────────────────────────────────────────────────────────── | |
| * profile.css — YAZ User Profile Page | |
| * ─────────────────────────────────────────────────────────── */ | |
| /* ── YAZ design tokens (exact match) ── */ | |
| :root { | |
| --primary: #5c6bc0; | |
| --primary-hover: #4a5ab8; | |
| --bg: #fafbfc; | |
| --surface: #ffffff; | |
| --border: #e5e7eb; | |
| --text: #1a1f2e; | |
| --text-muted: #5c6370; | |
| --text-light: #8b929f; | |
| --success: #4caf7c; | |
| --radius: 6px; | |
| --radius-lg: 10px; | |
| --radius-xl: 14px; | |
| --shadow-sm: 0 1px 3px rgba(0,0,0,.06); | |
| --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04); | |
| --t: .12s ease; | |
| } | |
| [data-theme="dark"] { | |
| --primary: #8b9ad8; | |
| --primary-hover: #9aa7e1; | |
| --bg: #0c0f14; | |
| --surface: #141921; | |
| --border: #2a3140; | |
| --text: #eaeef4; | |
| --text-muted: #9ba4b2; | |
| --text-light: #6b7280; | |
| --shadow-sm: 0 1px 3px rgba(0,0,0,.2); | |
| --shadow-md: 0 4px 6px -1px rgba(0,0,0,.25), 0 2px 4px -1px rgba(0,0,0,.15); | |
| } | |
| *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } | |
| body { | |
| font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | |
| background: var(--bg); color: var(--text); | |
| font-size: 14px; line-height: 1.6; | |
| -webkit-font-smoothing: antialiased; | |
| transition: background var(--t), color var(--t); | |
| } | |
| /* ── layout ── */ | |
| .page { max-width: 680px; margin: 0 auto; padding: 32px 16px 64px; } | |
| /* ── theme button ── */ | |
| .theme-btn { | |
| position: fixed; top: 16px; right: 16px; z-index: 10; | |
| width: 32px; height: 32px; | |
| border: 1px solid var(--border); border-radius: var(--radius); | |
| background: var(--surface); color: var(--text-muted); | |
| cursor: pointer; display: flex; align-items: center; justify-content: center; | |
| font-size: 14px; | |
| transition: background var(--t), border-color var(--t); | |
| } | |
| .theme-btn:hover { color: var(--text); background: var(--bg); } | |
| /* ── profile header ── */ | |
| .profile-header { | |
| display: flex; align-items: flex-start; gap: 20px; | |
| padding: 28px 0 24px; | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .avatar { | |
| width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; | |
| background: var(--primary); | |
| display: flex; align-items: center; justify-content: center; | |
| font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.02em; | |
| box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--border); | |
| } | |
| .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; } | |
| .profile-meta { flex: 1; min-width: 0; } | |
| .profile-name { | |
| font-size: 18px; font-weight: 700; letter-spacing: -.02em; | |
| display: flex; align-items: center; gap: 8px; | |
| } | |
| .verified-badge { | |
| display: inline-flex; align-items: center; justify-content: center; | |
| width: 16px; height: 16px; | |
| background: var(--primary); border-radius: 50%; | |
| font-size: 9px; color: #fff; flex-shrink: 0; | |
| } | |
| .profile-handle { | |
| font-size: 13px; font-weight: 500; color: var(--primary); margin-top: 2px; | |
| } | |
| .profile-tagline { | |
| font-size: 13px; color: var(--text-muted); margin-top: 6px; | |
| } | |
| .profile-bio { | |
| font-size: 13px; color: var(--text-muted); margin-top: 8px; line-height: 1.7; | |
| } | |
| .profile-stats { | |
| display: flex; gap: 20px; margin-top: 14px; | |
| } | |
| .stat { display: flex; flex-direction: column; } | |
| .stat-value { font-size: 15px; font-weight: 600; color: var(--text); } | |
| .stat-label { font-size: 11px; color: var(--text-light); margin-top: 1px; } | |
| .avail { | |
| display: inline-flex; align-items: center; gap: 6px; | |
| font-size: 11px; font-weight: 500; color: var(--success); margin-top: 10px; | |
| } | |
| .avail-dot { | |
| width: 6px; height: 6px; border-radius: 50%; background: var(--success); | |
| animation: pulse 2.4s ease-in-out infinite; | |
| } | |
| @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} } | |
| /* ── links (card-style) ── */ | |
| .section-title { | |
| font-size: 11px; font-weight: 600; color: var(--text-light); | |
| letter-spacing: .06em; text-transform: uppercase; | |
| margin: 28px 0 10px; | |
| } | |
| .links { display: flex; flex-direction: column; gap: 4px; } | |
| .link { | |
| display: flex; align-items: center; gap: 10px; | |
| padding: 9px 10px; border-radius: var(--radius-lg); | |
| border: 1px solid transparent; | |
| text-decoration: none; color: var(--text); | |
| transition: background var(--t), border-color var(--t); | |
| } | |
| .link:hover { background: var(--surface); border-color: var(--border); } | |
| .link-icon { | |
| width: 30px; height: 30px; border-radius: var(--radius); | |
| background: var(--bg); border: 1px solid var(--border); | |
| display: flex; align-items: center; justify-content: center; flex-shrink: 0; | |
| transition: border-color var(--t); | |
| } | |
| .link:hover .link-icon { border-color: var(--primary); } | |
| .mono { font-size: 11px; font-weight: 700; color: var(--text-muted); transition: color var(--t); } | |
| .link:hover .mono { color: var(--primary); } | |
| .link-text { flex: 1; } | |
| .link-label { font-size: 13px; font-weight: 500; } | |
| .link-sub { font-size: 11px; color: var(--text-light); margin-top: 1px; } | |
| .link-arrow svg { width: 11px; height: 11px; stroke: var(--text-light); } | |
| /* ── cases grid ── */ | |
| .cases-grid { | |
| display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); | |
| gap: 12px; margin-top: 10px; | |
| } | |
| .case-card { | |
| background: var(--surface); border: 1px solid var(--border); | |
| border-radius: var(--radius-lg); | |
| padding: 16px; cursor: pointer; text-decoration: none; color: inherit; | |
| display: flex; flex-direction: column; gap: 8px; | |
| transition: border-color var(--t), box-shadow var(--t); | |
| } | |
| .case-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); } | |
| .case-title { font-size: 13px; font-weight: 600; line-height: 1.4; } | |
| .case-meta { | |
| display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; | |
| } | |
| .badge { | |
| font-size: 10px; font-weight: 500; padding: 2px 7px; | |
| border-radius: 20px; background: var(--bg); border: 1px solid var(--border); | |
| color: var(--text-muted); | |
| } | |
| .badge.primary { background: rgba(92,107,192,.12); border-color: transparent; color: var(--primary); } | |
| .case-abstract { | |
| font-size: 12px; color: var(--text-light); line-height: 1.6; | |
| display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| .case-footer { | |
| display: flex; gap: 12px; margin-top: auto; padding-top: 8px; | |
| border-top: 1px solid var(--border); | |
| } | |
| .case-stat { font-size: 11px; color: var(--text-light); display: flex; align-items: center; gap: 4px; } | |
| .case-stat svg { width: 11px; height: 11px; stroke: currentColor; } | |
| /* ── empty state ── */ | |
| .empty-cases { | |
| padding: 32px 0; text-align: center; | |
| color: var(--text-light); font-size: 13px; | |
| } | |
| /* ── footer ── */ | |
| .page-footer { | |
| margin-top: 48px; padding-top: 20px; | |
| border-top: 1px solid var(--border); | |
| display: flex; align-items: center; justify-content: space-between; | |
| font-size: 11px; color: var(--text-light); | |
| } | |
| .page-footer a { color: var(--primary); text-decoration: none; } | |
| @media (max-width: 480px) { | |
| .profile-header { flex-direction: column; gap: 14px; } | |
| .cases-grid { grid-template-columns: 1fr; } | |
| } | |