Spaces:
Running
Running
Download static/styles.css from OpenTogether/photo-gallery: direct link, hf CLI and curl.
- Browser
- Download file 11.2 kB
-
https://huggingface.co/spaces/OpenTogether/photo-gallery/resolve/main/static/styles.css
- Command line
-
hf download hf://spaces/OpenTogether/photo-gallery/static/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/OpenTogether/photo-gallery/resolve/main/static/styles.css
11.2 kB
| /* Open Together: photo gallery. Night-party theme, HF yellow accents. */ | |
| :root { | |
| --yellow: #FFD21E; | |
| --orange: #FF9D00; | |
| --pink: #ff5fa2; | |
| --violet: #7c5cff; | |
| --bg: #0b0d17; | |
| --bg-2: #12152a; | |
| --surface: rgba(255,255,255,.06); | |
| --surface-2: rgba(255,255,255,.1); | |
| --border: rgba(255,255,255,.12); | |
| --text: #f5f6fb; | |
| --muted: #a9afc4; | |
| --ok: #34d399; | |
| --err: #f87171; | |
| --shadow: 0 10px 30px rgba(0,0,0,.35); | |
| color-scheme: dark; | |
| } | |
| @media (prefers-color-scheme: light) { | |
| :root { | |
| --bg: #fffaf0; --bg-2: #fff3d6; --surface: rgba(255,255,255,.75); --surface-2: #ffffff; | |
| --border: rgba(17,24,39,.1); --text: #14161f; --muted: #5d6475; --ok: #047857; --err: #b91c1c; | |
| --shadow: 0 10px 30px rgba(120,80,0,.12); color-scheme: light; | |
| } | |
| } | |
| * { box-sizing: border-box; } | |
| html { -webkit-text-size-adjust: 100%; } | |
| html, body { margin: 0; background: var(--bg); color: var(--text); } | |
| body { font: 16px/1.5 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; } | |
| a { color: inherit; } | |
| svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } | |
| .glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; } | |
| .glow span { position: absolute; border-radius: 50%; filter: blur(80px); } | |
| .glow .g1 { width: 460px; height: 460px; top: -200px; right: -140px; background: radial-gradient(circle, var(--yellow), transparent 70%); opacity: .4; } | |
| .glow .g2 { width: 420px; height: 420px; top: 260px; left: -240px; background: radial-gradient(circle, var(--violet), transparent 70%); opacity: .3; } | |
| @media (prefers-color-scheme: light) { .glow .g1 { opacity: .28; } .glow .g2 { opacity: .14; } } | |
| /* ---- header ---- */ | |
| .top { | |
| position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; | |
| padding: calc(10px + env(safe-area-inset-top)) 16px 10px; | |
| background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.4); | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; } | |
| .brand-text { display: flex; flex-direction: column; line-height: 1.1; } | |
| .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } | |
| .title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; } | |
| .top-actions { display: flex; align-items: center; gap: 8px; flex: none; } | |
| .avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); } | |
| .wrap { max-width: 1240px; margin: 0 auto; padding: 18px 16px 48px; } | |
| .btn { | |
| display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; | |
| border-radius: 16px; border: 0; background: var(--yellow); color: #1a1300; font: inherit; font-weight: 800; | |
| text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px rgba(255,170,0,.25); | |
| } | |
| .btn svg { width: 18px; height: 18px; stroke-width: 2.2; } | |
| .btn img { width: 20px; height: 20px; } | |
| .btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); box-shadow: none; } | |
| .btn.small { min-height: 38px; padding: 6px 14px; font-size: 14px; border-radius: 999px; } | |
| .btn.danger { background: #dc2626; color: #fff; box-shadow: none; } | |
| .btn.link { background: none; box-shadow: none; padding: 0 6px; min-height: 36px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; } | |
| .btn:focus-visible, .tab:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; } | |
| /* ---- gate ---- */ | |
| .gate { | |
| position: relative; max-width: 440px; margin: 8vh auto 0; padding: 92px 24px 26px; text-align: center; | |
| border-radius: 28px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(14px); box-shadow: var(--shadow); | |
| } | |
| .gate .gate-huggy { position: absolute; top: -64px; left: 50%; transform: translateX(-50%); width: 170px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.35)); } | |
| .gate h2 { font-size: 28px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 10px; } | |
| .gate p { color: var(--muted); margin: 0 0 22px; } | |
| .gate .row { display: flex; flex-direction: column; gap: 10px; align-items: stretch; } | |
| /* ---- intro + tabs ---- */ | |
| .intro { margin: 6px 0 16px; } | |
| h1 { margin: 0; font-size: clamp(30px, 8vw, 44px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; } | |
| .hl { background: linear-gradient(100deg, var(--yellow), var(--orange) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; } | |
| .sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; } | |
| .tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin-bottom: 16px; width: max-content; max-width: 100%; | |
| border-radius: 999px; background: var(--surface); border: 1px solid var(--border); scrollbar-width: none; } | |
| .tabs::-webkit-scrollbar { display: none; } | |
| .tab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 0; background: transparent; | |
| color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; } | |
| @media (max-width: 420px) { .tab { font-size: 13.5px; padding: 7px 10px; } .top .btn.link { padding: 0 2px; } } | |
| .tab[aria-current="true"] { background: var(--yellow); color: #1a1300; } | |
| .tab .count { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: rgba(127,127,127,.18); color: inherit; } | |
| .tab[aria-current="true"] .count { background: rgba(0,0,0,.12); } | |
| .tab .count.alert { background: var(--pink); color: #fff; } | |
| .new-pill { position: sticky; top: 74px; z-index: 3; display: block; margin: 0 auto 12px; padding: 9px 18px; border-radius: 999px; border: 0; | |
| background: var(--yellow); color: #1a1300; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.35); } | |
| .empty { text-align: center; color: var(--muted); padding: 32px 0 12px; } | |
| .empty img { width: 140px; display: block; margin: 0 auto 12px; } | |
| .empty strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; } | |
| /* ---- grid ---- */ | |
| .grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; } | |
| @media (min-width: 700px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } } | |
| @media (min-width: 1040px) { .grid { grid-template-columns: repeat(5, 1fr); gap: 10px; } } | |
| .cell { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--surface-2); } | |
| @media (min-width: 700px) { .cell { border-radius: 14px; } } | |
| .cell::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; } | |
| .cell button { all: unset; position: relative; display: block; width: 100%; height: 100%; cursor: pointer; } | |
| .cell img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s ease, transform .4s ease; } | |
| .cell img.loaded { opacity: 1; } | |
| .cell .by { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 6px; font-size: 12px; font-weight: 700; color: #fff; | |
| background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: opacity .2s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } | |
| @media (hover: hover) { .cell:hover img { transform: scale(1.04); } .cell:hover .by { opacity: 1; } } | |
| .cell .tag { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: rgba(180,83,9,.92); color: #fff; } | |
| .cell button:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; } | |
| .sentinel { height: 40px; } | |
| @keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } } | |
| /* ---- lightbox ---- */ | |
| .lightbox { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 20; display: flex; flex-direction: column; | |
| background: #05060c; color: #fff; overflow: hidden; overscroll-behavior: contain; animation: fade .2s ease both; } | |
| .lb-top, .lb-actions { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; } | |
| .lb-top { justify-content: space-between; padding-top: calc(12px + env(safe-area-inset-top)); } | |
| .lb-actions { justify-content: center; flex-wrap: wrap; padding-bottom: calc(14px + env(safe-area-inset-bottom)); } | |
| .lb-credit { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; } | |
| .lb-credit img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); } | |
| .lb-credit a { color: #fff; text-decoration: none; } | |
| .lb-credit .who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; } | |
| .lb-credit .when { color: #a9afc4; font-weight: 500; font-size: 13px; } | |
| .lb-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: pan-y; } | |
| .lb-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; } | |
| .icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; } | |
| .icon-btn svg { width: 20px; height: 20px; } | |
| .nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; | |
| background: rgba(255,255,255,.12); color: #fff; cursor: pointer; backdrop-filter: blur(8px); } | |
| .nav svg { width: 24px; height: 24px; } | |
| .nav.prev { left: 12px; } .nav.next { right: 12px; } | |
| @media (hover: none) { .nav { display: none; } } | |
| .lightbox .btn { min-height: 44px; padding: 8px 16px; border-radius: 999px; } | |
| .lightbox .btn.secondary { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); } | |
| .state-tag { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #b45309; color: #fff; flex: none; } | |
| .toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; | |
| max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: #fff; color: #111; font-weight: 700; box-shadow: 0 12px 40px rgba(0,0,0,.4); animation: fade .2s ease both; } | |
| .frame-banner { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--yellow); color: #111; font-size: 14px; font-weight: 700; } | |
| .pill-link { padding: 6px 12px; border-radius: 999px; background: #111; color: #fff; text-decoration: none; font-weight: 800; } | |
| @keyframes fade { from { opacity: 0; } to { opacity: 1; } } | |
| [hidden] { display: none ; } | |
| @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none ; transition: none ; } } | |