Download styles.css from fffiloni/cdn-live: direct link, hf CLI and curl.
- Browser
- Download file 19.5 kB
-
https://huggingface.co/spaces/fffiloni/cdn-live/resolve/main/styles.css
- Command line
-
hf download hf://spaces/fffiloni/cdn-live/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/fffiloni/cdn-live/resolve/main/styles.css
19.5 kB
| :root { | |
| color-scheme: dark; | |
| font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; | |
| color: #f4f4f5; | |
| background: #101114; | |
| --panel: #15171c; | |
| --line: #ffffff1e; | |
| --muted: #a7abb5; | |
| --dim: #c0c2ca; | |
| --accent: #ffd21e; | |
| --orange: #ff9d00; | |
| --brand-gray: #6b7280; | |
| font-synthesis: none; | |
| } | |
| * { box-sizing: border-box; } | |
| body { margin: 0; height: 100vh; height: 100svh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; } | |
| [hidden] { display: none ; } | |
| button, a, summary { -webkit-tap-highlight-color: transparent; } | |
| button { font: inherit; color: inherit; cursor: pointer; } | |
| a { color: inherit; text-underline-offset: .2em; } | |
| :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; } | |
| .masthead { | |
| padding: .63rem clamp(1rem, 3vw, 2.5rem); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| gap: .75rem; | |
| border-bottom: 1px solid var(--line); | |
| background: #101114; | |
| } | |
| .brand { display: flex; align-items: center; gap: .75rem; flex: none; } | |
| .brand h1 { margin: 0; font-size: .96rem; line-height: 1.1; font-weight: 640; letter-spacing: -.022em; } | |
| .brand-mark { display: grid; place-items: center; position: relative; width: 1.75rem; height: 1.75rem; border: 1px solid var(--brand-gray); border-radius: 50%; } | |
| .brand-mark::before { content: ""; position: absolute; width: 1.75rem; height: .6rem; border-radius: 50%; border: 1px solid var(--accent); transform: rotate(-35deg); } | |
| .brand-mark::after { content: ""; position: absolute; width: .34rem; height: .34rem; border-radius: 50%; background: var(--orange); top: .16rem; right: .17rem; } | |
| .masthead-actions, .feed-meta { display: flex; gap: .65rem; align-items: center; justify-content: flex-end; min-width: 0; } | |
| .feed-meta { flex-wrap: wrap; } | |
| .status { color: var(--dim); padding: .33rem .62rem; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; gap: .38rem; font-size: .82rem; } | |
| .status[data-state="live"] { color: var(--accent); background: #2c2415; border-color: #584520; } | |
| .status[data-state="live"]::before { content: ""; width: .38rem; height: .38rem; border-radius: 50%; background: currentColor; } | |
| .status[data-state="delayed"], .status[data-state="unavailable"] { color: #ffc891; } | |
| .feed-time { color: var(--muted); font-size: .82rem; white-space: nowrap; } | |
| .open-app { color: var(--accent); font-size: .8rem; } | |
| .dashboard { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(21rem, 25rem); } | |
| .details-hidden .dashboard { grid-template-columns: minmax(0, 1fr); } | |
| .stage { | |
| position: relative; min-height: 0; overflow: hidden; isolation: isolate; | |
| --map-surface: #1d212a; --map-space: #101218; --map-edge: #0d0f14; | |
| --stage-inset: clamp(.8rem, 2vw, 1.6rem); | |
| background: radial-gradient(ellipse at 50% 53%, var(--map-surface), var(--map-space) 52%, var(--map-edge) 86%); | |
| } | |
| .stage[data-globe-style="midnight"] { --map-surface: #141d35; --map-space: #0b1020; --map-edge: #080b14; } | |
| .globe, .map-markers { position: absolute; inset: 0; } | |
| .globe canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; } | |
| .globe canvas:active { cursor: grabbing; } | |
| .globe canvas:focus-visible { outline-offset: -4px; } | |
| .map-markers { --marker-size: 12px; pointer-events: none; z-index: 1; } | |
| .map-point { | |
| --icon-size: var(--marker-size); | |
| --caption-gap: calc(var(--icon-size) / 2 + 4px); | |
| position: absolute; | |
| } | |
| .map-point:is([data-active], [data-open]) { --icon-size: calc(var(--marker-size) + 2px); } | |
| .map-point:focus-within, .map-point:hover { z-index: 2; } | |
| .map-point[data-active] { z-index: 3; } | |
| .map-point[data-open] { z-index: 4; } | |
| .marker { | |
| position: absolute; | |
| pointer-events: auto; | |
| transform: translate(-50%, -50%); | |
| display: grid; | |
| place-items: center; | |
| width: 2.75rem; | |
| height: 2.75rem; | |
| background: transparent; | |
| border: 0; | |
| padding: 0; | |
| border-radius: 50%; | |
| } | |
| .marker::before { | |
| content: ""; | |
| width: var(--icon-size); | |
| height: var(--icon-size); | |
| background: url("./assets/hugging-face-mark.svg") center / contain no-repeat; | |
| opacity: .9; | |
| } | |
| .map-point[data-muted]:not([data-open]) .marker:not(:hover, :focus-visible)::before { opacity: .65; } | |
| .marker:is(:hover, :focus-visible)::before, .map-point:is([data-active], [data-open]) .marker::before { opacity: 1; } | |
| .marker .marker-label { | |
| display: none; | |
| position: absolute; | |
| left: calc(50% + var(--caption-gap)); | |
| white-space: nowrap; | |
| background: #14171bed; | |
| border: 1px solid #ffffff25; | |
| font-size: .8rem; | |
| font-weight: 600; | |
| border-radius: .3rem; | |
| padding: .28rem .42rem; | |
| } | |
| .map-point.label-left .marker-label { left: auto; right: calc(50% + var(--caption-gap)); } | |
| .marker:hover .marker-label, .marker:focus-visible .marker-label, .map-point[data-active] .marker-label { display: block; } | |
| .marker[aria-expanded="true"] .marker-label { display: none; } | |
| .marker-choices { | |
| position: absolute; top: -.55rem; left: var(--caption-gap); width: 11.5rem; | |
| display: grid; padding: .2rem; max-height: min(18rem, calc(100vh - 5rem)); overflow: auto; | |
| pointer-events: auto; background: #14171bf5; border: 1px solid #ffffff2d; border-radius: .35rem; | |
| box-shadow: 0 .4rem 1rem #08090b80; | |
| } | |
| .map-point.choices-left .marker-choices { left: auto; right: var(--caption-gap); } | |
| .map-point.choices-above .marker-choices { top: auto; bottom: -.55rem; } | |
| .marker-choices button { | |
| min-height: 2.75rem; padding: .35rem .55rem; background: transparent; border: 0; | |
| border-radius: .2rem; text-align: left; font-size: .78rem; | |
| } | |
| .marker-choices button:is(:hover, :focus-visible, [aria-pressed="true"]) { background: #ffffff16; } | |
| .marker-choices button:focus-visible { outline-offset: -2px; } | |
| .marker-choices button[aria-pressed="true"] { color: #f1d294; } | |
| .city-overlay, .city-label { position: absolute; inset: 0; pointer-events: none; } | |
| .city-card { position: absolute; top: 0; left: 0; } | |
| .city-card { | |
| height: 44px; | |
| padding: .32rem .44rem; | |
| border: 1px solid #ffffff25; | |
| border-radius: .27rem; | |
| background: #14151aef; | |
| box-shadow: 0 3px 10px #08090b58; | |
| overflow: hidden; | |
| } | |
| .city-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; line-height: 1.18; } | |
| .city-card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: .24rem; margin-top: .15rem; font-size: .66rem; line-height: 1.15; } | |
| .city-country { min-width: 0; display: flex; align-items: center; gap: 4px; } | |
| .city-flag { flex: none; display: block; opacity: .95; border-radius: 1px; } | |
| .city-country-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--dim); } | |
| .city-card-meta b { flex: none; white-space: nowrap; color: #ffe187; font-weight: 590; font-variant-numeric: tabular-nums; } | |
| .total { position: absolute; top: clamp(1rem, 3.3vw, 2.8rem); left: clamp(1rem, 3.4vw, 3.25rem); pointer-events: none; text-shadow: 0 2px 14px #101114; } | |
| .total-label { color: var(--dim); font-size: .86rem; font-weight: 560; letter-spacing: .018em; } | |
| .total-value { font-size: clamp(3.2rem, 7vw, 6.3rem); letter-spacing: -.085em; line-height: 1; font-weight: 630; font-variant-numeric: tabular-nums; } | |
| .total-value small { color: var(--accent); letter-spacing: -.035em; margin-left: .34em; font-size: .29em; } | |
| .total-window { margin: .45rem 0 0; color: var(--muted); font-size: .75rem; } | |
| .rate-history { margin: .7rem 0 0; width: 7.25rem; display: grid; gap: .2rem; font-size: .62rem; color: var(--muted); } | |
| .rate-history svg { width: 100%; height: 1.55rem; overflow: visible; } | |
| .history-baseline, .history-line, .history-points { fill: none; stroke-width: 1; } | |
| .history-baseline { stroke: var(--line); } | |
| .history-line { stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; } | |
| .history-points { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; } | |
| .stage-toolbar { | |
| position: absolute; z-index: 3; bottom: var(--stage-inset); inset-inline: var(--stage-inset); | |
| display: flex; align-items: flex-end; justify-content: space-between; gap: .65rem; pointer-events: none; | |
| } | |
| .stage-tools { display: flex; gap: .48rem; align-items: center; pointer-events: auto; } | |
| .icon-button, .quiet-button { | |
| display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; | |
| padding: .55rem; color: inherit; border: 1px solid #ffffff29; border-radius: .45rem; | |
| background: #15171cee; cursor: pointer; | |
| } | |
| .quiet-button { font-size: .79rem; } | |
| .icon-button:hover, .quiet-button:hover { background: #252932; } | |
| .icon-button svg, .details-toggle svg { width: 1.1rem; height: 1.1rem; } | |
| .style-menu { position: relative; } | |
| .style-menu summary { list-style: none; } | |
| .style-menu summary::-webkit-details-marker { display: none; } | |
| .style-menu[open] summary { color: var(--accent); } | |
| .style-options { | |
| position: absolute; right: 0; bottom: calc(100% + .58rem); min-width: 10rem; | |
| display: grid; padding: .28rem; background: #15171c; border: 1px solid #ffffff29; border-radius: .5rem; | |
| box-shadow: 0 .6rem 1.5rem #0006; | |
| } | |
| .style-option { | |
| display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; text-align: left; | |
| padding: .35rem .6rem; color: var(--dim); background: transparent; border: 0; border-radius: .27rem; font-size: .83rem; | |
| } | |
| .style-option:is(:hover, [aria-pressed="true"]) { background: #24272e; color: #fff; } | |
| .style-option[aria-pressed="true"]::after { content: ""; margin-left: auto; width: .35rem; height: .35rem; border-radius: 50%; background: var(--accent); } | |
| .style-swatch { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1px solid #ffffff48; } | |
| .style-swatch.satellite { background: radial-gradient(at 31% 27%, #a6b098, #46617a 42%, #0c1321 78%); } | |
| .style-swatch.midnight { background: radial-gradient(at 38% 35%, #203a6b, #0c1321 62%); } | |
| .style-actions { display: flex; gap: .28rem; border-top: 1px solid var(--line); margin: .28rem .22rem 0; padding-top: .32rem; } | |
| .style-actions .icon-button { border-color: transparent; background: transparent; color: var(--dim); } | |
| .style-actions .icon-button:hover { background: #24272e; } | |
| .map-selection { | |
| position: absolute; z-index: 2; right: var(--stage-inset); bottom: calc(var(--stage-inset) + 4.2rem); | |
| width: min(17.5rem, calc(100% - 2 * var(--stage-inset))); | |
| display: flex; align-items: center; justify-content: space-between; gap: .55rem; | |
| padding: .63rem .64rem .63rem .76rem; | |
| background: #15171ceb; border-left: 2px solid var(--accent); border-radius: 0 .36rem .36rem 0; | |
| } | |
| .map-selection-copy { display: grid; gap: .15rem; min-width: 0; } | |
| .map-selection strong { font-size: .95rem; font-weight: 640; } | |
| .map-selection span { font-size: .7rem; line-height: 1.3; color: var(--dim); } | |
| .map-selection span:empty { display: none; } | |
| .map-selection .icon-button { color: var(--accent); flex: none; background: transparent; border-color: transparent; } | |
| body:not(.details-hidden) .map-selection { display: none; } | |
| .radio-player { display: grid; justify-items: start; gap: .4rem; flex: none; pointer-events: auto; } | |
| .radio-dock { | |
| position: relative; display: flex; align-items: center; gap: .375rem; padding: .25rem; | |
| border: 1px solid #4a4c56; border-radius: .5rem; background: #18191ded; | |
| } | |
| .radio-toggle, .radio-volume-menu summary { | |
| display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; | |
| color: var(--dim); border: 0; border-radius: .3rem; background: transparent; | |
| } | |
| .radio-toggle:hover, .radio-volume-menu summary:hover { background: #25262c; color: #fff; } | |
| .radio-toggle[data-state="playing"], .radio-toggle[data-state="connecting"] { color: var(--accent); } | |
| .radio-link { display: inline-flex; align-items: center; min-height: 2.75rem; white-space: nowrap; font-size: .8rem; text-decoration: none; } | |
| .radio-link:hover { text-decoration: underline; } | |
| .radio-dock :focus-visible { outline-offset: 1px; } | |
| .radio-glyph { display: block; width: .64rem; height: .78rem; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); } | |
| .radio-toggle[data-state="playing"] .radio-glyph, .radio-toggle[data-state="connecting"] .radio-glyph { | |
| clip-path: none; | |
| background: linear-gradient(90deg, currentColor 0 33%, transparent 33% 67%, currentColor 67%); | |
| } | |
| .radio-wave { display: flex; align-items: center; gap: 2px; color: var(--accent); opacity: 0; } | |
| .radio-wave i { width: 2px; height: .58rem; border-radius: 2px; background: currentColor; transform: scaleY(.38); } | |
| .radio-player[data-state="playing"] .radio-wave { opacity: 1; } | |
| .radio-player[data-state="playing"] .radio-wave i { animation: radio-wave .88s ease-in-out infinite alternate; } | |
| .radio-player[data-state="playing"] .radio-wave i:nth-child(2) { animation-delay: -.5s; } | |
| .radio-player[data-state="playing"] .radio-wave i:nth-child(3) { animation-delay: -.24s; } | |
| @keyframes radio-wave { from { transform: scaleY(.22); } to { transform: scaleY(1); } } | |
| @media (prefers-reduced-motion: reduce) { | |
| .radio-player[data-state="playing"] .radio-wave i { animation: none; } | |
| .radio-player[data-state="playing"] .radio-wave i:nth-child(2) { transform: scaleY(.82); } | |
| } | |
| .radio-volume-menu summary { list-style: none; cursor: pointer; } | |
| .radio-volume-menu summary::-webkit-details-marker { display: none; } | |
| .volume-glyph { position: relative; width: .95rem; height: .85rem; display: block; } | |
| .volume-glyph::before, .volume-glyph::after { content: ""; position: absolute; } | |
| .volume-glyph::before { inset: 0 38% 0 0; background: currentColor; clip-path: polygon(0 33%, 44% 33%, 100% 0, 100% 100%, 44% 67%, 0 67%); } | |
| .volume-glyph::after { inset: 15% 0 15% 48%; border-right: 1px solid currentColor; border-radius: 50%; } | |
| .radio-volume-box { | |
| position: absolute; inset-inline: -1px; bottom: calc(100% + .625rem); | |
| display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .3rem; | |
| padding: .6rem .75rem .5rem; border: 1px solid #4a4c56; border-radius: .5rem; | |
| background: #18191d; color: var(--dim); font-size: .76rem; | |
| } | |
| .radio-volume-box output { color: var(--accent); font-variant-numeric: tabular-nums; } | |
| .radio-volume-box input { grid-column: 1 / -1; width: 100%; min-height: 2rem; margin: 0; accent-color: var(--accent); } | |
| .radio-status { max-width: 10rem; color: var(--dim); font-size: .72rem; text-shadow: 0 1px 4px #101114; } | |
| .radio-status:empty { display: none; } | |
| .details-toggle { display: inline-flex; align-items: center; gap: .45rem; padding-inline: .63rem; white-space: nowrap; } | |
| .details-toggle[aria-expanded="true"] { color: var(--accent); } | |
| .globe-help { position: absolute; top: 48%; left: 10%; right: 10%; text-align: center; color: var(--dim); } | |
| .rail { background: var(--panel); border-left: 1px solid var(--line); min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; } | |
| .rail-header, .section-heading, .selection-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; } | |
| .rail-header { padding: .75rem 1.05rem .42rem 1.38rem; } | |
| .rail-header .icon-button { background: transparent; border-color: transparent; color: var(--dim); } | |
| .rail-header .icon-button:hover { background: #252932; } | |
| .rail h2, .rail h3, .rail h4 { margin: 0; font-weight: 630; line-height: 1.18; letter-spacing: -.022em; } | |
| .rail h2 { font-size: 1.15rem; } | |
| .rail h3 { font-size: .94rem; } | |
| .rail h4 { font-size: .8rem; } | |
| .metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 1.35rem; padding: .6rem 0 1.05rem; border-bottom: 1px solid var(--line); } | |
| .metrics div { display: flex; flex-direction: column-reverse; gap: .34rem; min-width: 0; } | |
| .metrics dd { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 580; letter-spacing: -.055em; font-variant-numeric: tabular-nums; } | |
| .metrics dt, .dim { color: var(--muted); font-size: .7rem; line-height: 1.35; } | |
| .rail-body { padding: 1rem 1.35rem; display: grid; gap: 1.2rem; } | |
| .data-list { margin: .45rem 0 0; padding: 0; list-style: none; } | |
| .entry { | |
| width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .45rem; | |
| padding: .5rem 0; font-size: .81rem; border-bottom: 1px solid var(--line); min-height: 2.1rem; | |
| } | |
| .entry > :first-child { min-width: 0; overflow-wrap: anywhere; text-align: left; } | |
| .entry > :last-child { flex: none; font-variant-numeric: tabular-nums; color: var(--dim); } | |
| .location-list button { position: relative; min-height: 2.75rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; } | |
| .location-list button::after { content: ""; position: absolute; bottom: -1px; left: 0; width: var(--rate-width); height: 1px; background: #ffd21e82; transition: width 1.35s ease; } | |
| .location-list button:hover { color: var(--accent); } | |
| .location-list button[aria-pressed="true"], .location-list button[aria-pressed="true"] > :last-child { color: var(--accent); } | |
| .location-list button[aria-pressed="true"]::after { background: var(--accent); } | |
| .location-name b, .destination-name b { font-weight: 560; } | |
| .location-name small { margin-left: .38rem; font-size: .68rem; color: var(--muted); } | |
| .selection { padding-bottom: .7rem; border-bottom: 1px solid var(--line); } | |
| .selection h3 { color: var(--accent); } | |
| .selection-meta { margin: 0 0 .8rem; color: var(--dim); font-size: .75rem; line-height: 1.5; } | |
| .selection .dim { margin: .25rem 0 0; } | |
| .selection .entry:last-child { border-bottom: 0; } | |
| .segmented { display: flex; gap: .1rem; flex: none; } | |
| .segmented button, .text-button { min-height: 2.3rem; padding: .2rem .36rem; font-size: .72rem; border: 0; background: transparent; color: var(--muted); } | |
| .segmented button[aria-pressed="true"] { color: var(--accent); text-decoration: underline; text-underline-offset: .35em; } | |
| .text-button:hover, .segmented button:hover { color: #fff; } | |
| .text-button { padding-inline: 0; color: var(--accent); text-align: left; } | |
| .destination-name, .repo-list a { display: grid; gap: .14rem; } | |
| .destination-name small, .repo-list a small { color: var(--muted); font-size: .69rem; } | |
| .repo-list a { text-decoration: none; } | |
| .repo-list a:hover { text-decoration: underline; } | |
| footer { display: grid; gap: .28rem; padding: .65rem 1.35rem 1.2rem; color: var(--muted); font-size: .69rem; line-height: 1.45; } | |
| footer p { margin: 0; } | |
| @media (max-width: 840px), (max-device-width: 760px) and (any-pointer: coarse) { | |
| .dashboard { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 44%); } | |
| .details-hidden .dashboard { grid-template-rows: minmax(0, 1fr); } | |
| .rail { border-left: 0; border-top: 1px solid #ffffff30; } | |
| } | |
| @media (max-width: 540px) { | |
| .masthead { padding: .52rem .8rem; gap: .4rem; } | |
| .brand { gap: .54rem; } | |
| .feed-time { font-size: .66rem; } | |
| .feed-meta { gap: .3rem; } | |
| .status { padding: .2rem .4rem; font-size: .69rem; } | |
| .total { top: .85rem; } | |
| .total-value { font-size: clamp(2.55rem, 11vw, 3.9rem); } | |
| .total-window { margin-top: .28rem; } | |
| .rate-history { margin-top: .45rem; width: 5.5rem; } | |
| .rate-history svg { height: 1.1rem; } | |
| .details-toggle { min-width: 2.75rem; padding-inline: .55rem; } | |
| #details-toggle-label { display: none; } | |
| .rail-body, footer { padding-inline: .95rem; } | |
| .metrics { margin-inline: .95rem; } | |
| .rail-header { padding-left: .95rem; padding-right: .65rem; } | |
| body:not(.details-hidden) .rate-history { display: none; } | |
| } | |
| @media (max-height: 500px) { | |
| .rate-history { display: none; } | |
| } | |
| .motion-paused .location-list button::after { transition: none; } | |
| @media (prefers-reduced-motion: reduce) { | |
| .location-list button::after { transition: none; } | |
| } | |