Spaces:
Running
Running
Download docs.css from pgg-engineering/rankfence: direct link, hf CLI and curl.
- Browser
- Download file 6.9 kB
-
https://huggingface.co/spaces/pgg-engineering/rankfence/resolve/main/docs.css
- Command line
-
hf download hf://spaces/pgg-engineering/rankfence/docs.css
-
curl -L -o docs.css https://huggingface.co/spaces/pgg-engineering/rankfence/resolve/main/docs.css
6.9 kB
| @font-face { | |
| font-family: "Instrument Sans"; | |
| src: url("fonts/instrument-sans.woff2") format("woff2"); | |
| font-style: normal; | |
| font-weight: 400 700; | |
| font-display: swap; | |
| } | |
| @font-face { | |
| font-family: "IBM Plex Mono"; | |
| src: url("fonts/ibm-plex-mono.woff2") format("woff2"); | |
| font-weight: 400; | |
| font-style: normal; | |
| font-display: swap; | |
| } | |
| :root { | |
| color-scheme: light; | |
| --paper: #FAFAFA; | |
| --ink: #141619; | |
| --blue: #315BFF; | |
| --muted: #555C65; | |
| --rule: #DADDE1; | |
| --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace; | |
| --sans: "Instrument Sans", system-ui, "Helvetica Neue", Arial, sans-serif; | |
| } | |
| * { box-sizing: border-box; } | |
| body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 var(--sans); } | |
| main, header, footer { width: min(1120px, calc(100% - 64px)); margin-inline: auto; } | |
| header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--rule); } | |
| .brand { display: inline-flex; align-items: center; font-weight: 650; font-size: 1.13rem; letter-spacing: -.025em; color: var(--ink); text-decoration: none; } | |
| header nav, .links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; } | |
| header nav a { color: var(--ink); font-size: .92rem; font-weight: 550; } | |
| a { color: var(--ink); text-underline-offset: .19em; } | |
| a:hover { text-decoration-thickness: 2px; } | |
| :is(a,button,select,input,textarea):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; } | |
| h1, h2, h3, p { margin: 0; } | |
| h1 { font-size: clamp(2.1rem, 3.75vw, 3.5rem); font-weight: 550; letter-spacing: -.045em; line-height: 1.06; } | |
| h2 { font-size: clamp(1.18rem, 2vw, 1.45rem); font-weight: 575; letter-spacing: -.025em; line-height: 1.24; } | |
| .intro { display: grid; grid-template-columns: 1fr 1.2fr; align-items: start; gap: clamp(25px, 5vw, 68px); padding: clamp(26px, 4vw, 52px) 0 34px; } | |
| .intro p { margin-bottom: 14px; max-width: 60ch; color: var(--muted); } | |
| .button { display: inline-flex; align-items: center; padding: 9px 16px; min-height: 42px; border: 1px solid var(--ink); border-radius: 2px; font: 550 .91rem var(--sans); background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none; } | |
| .button:hover { background: var(--muted); color: var(--paper); } | |
| .button:disabled { opacity: .58; cursor: wait; } | |
| .hero { border-block: 1px solid var(--rule); } | |
| .barhead, .detail { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 15px 22px; } | |
| .barhead div, .controls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; } | |
| select, input, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--muted); border-radius: 3px; } | |
| select, input { padding: 7px; min-height: 40px; } | |
| select:disabled { opacity: .62; } | |
| .numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 22px 17px; border-top: 1px solid var(--rule); } | |
| .numbers>div { padding: 12px 10px 0 0; } | |
| .numbers strong { display: block; font: 500 clamp(1.25rem, 2.8vw, 2.35rem)/1.25 var(--mono); letter-spacing: -.05em; font-variant-numeric: tabular-nums; } | |
| .numbers span,.plotLabel,.caption,#input-help,footer { color: var(--muted); } | |
| .numbers span, .plotLabel, output, .row span:last-child { font: .82rem/1.35 var(--mono); } | |
| .plotArea { padding: 0 22px 14px; } | |
| .plotLabel { display: flex; justify-content: space-between; margin: 6px 0; } | |
| .bars { height: 150px; display: flex; gap: 2px; background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), var(--rule) 25%); border-bottom: 1px solid var(--ink); } | |
| .bars button { position: relative; flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; transform-origin: bottom; } | |
| .bars button::after { content: ""; position: absolute; inset: auto 0 0; height: var(--h); min-height: 2px; background: var(--muted); } | |
| .bars button:hover::after { background: var(--ink); } | |
| .bars button.active::after { background: var(--blue); outline: 1px solid var(--blue); } | |
| .detail { border-block: 1px solid var(--rule); } | |
| .detail label { display: flex; gap: 8px; align-items: center; } | |
| .detail select { max-width: 180px; } | |
| .caption { padding: 15px 22px; font-size: .9rem; max-width: 95ch; } | |
| .below { display: grid; grid-template-columns: 1.12fr 1fr; gap: 48px; padding: 38px 0; } | |
| .below p { margin: 12px 0; } | |
| pre { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--rule); background: transparent; font: .86rem/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; } | |
| .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); } | |
| .row span:last-child { flex: none; align-self: center; } | |
| footer { border-top: 1px solid var(--rule); padding: 15px 0 24px; font-size: .87rem; } | |
| article { max-width: 920px; margin: 0 auto; padding: 44px 24px 65px; } | |
| article h1 { max-width: 20ch; margin: 0 0 18px; font-size: clamp(2rem, 4vw, 2.8rem); } | |
| article h2 { margin: 30px 0 12px; } | |
| article p { margin: 12px 0; } | |
| article table { display: block; overflow: auto; border-collapse: collapse; margin: 15px 0; } | |
| article :is(td,th) { padding: 8px 12px; border-bottom: 1px solid var(--rule); text-align: left; } | |
| article code { overflow-wrap: anywhere; } | |
| article textarea { display: block; width: 100%; padding: 10px 12px; font: .88rem/1.45 var(--mono); resize: vertical; } | |
| .controls { margin: 14px 0; } | |
| .controls input { width: 66px; } | |
| #example { color: var(--ink); background: transparent; } | |
| #example:hover { background: var(--rule); } | |
| #input-help { font-size: .9rem; } | |
| article label, .controls { font-size: .91rem; } | |
| #input { margin-top: 5px; } | |
| .meter { max-width: 650px; margin: 12px 0 0; } | |
| .meter label { display: block; font: .8rem/1.4 var(--mono); margin: 0 0 4px; } | |
| .meter progress { display: block; width: 100%; height: 10px; border: none; border-radius: 0; background: repeating-linear-gradient(135deg, transparent 0 5px, var(--rule) 5px 6px); color: var(--ink); } | |
| .meter progress::-webkit-progress-bar { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--rule) 5px 6px); } | |
| .meter progress::-webkit-progress-value { background: var(--ink); } | |
| .meter progress::-moz-progress-bar { background: var(--ink); } | |
| [hidden] { display: none ; } | |
| @media (max-width: 730px) { | |
| main, header, footer { width: calc(100% - 30px); } | |
| header { min-height: 66px; flex-wrap: wrap; gap: 4px 12px; padding: 8px 0; } | |
| header nav { gap: 6px 12px; } | |
| header nav a { font-size: .84rem; } | |
| .intro, .below { grid-template-columns: 1fr; gap: 18px; } | |
| .barhead, .plotArea, .detail, .caption { padding-inline: 12px; } | |
| .numbers { margin-inline: 12px; } | |
| .numbers span, .plotLabel { font-size: .72rem; } | |
| .bars { gap: 1px; } | |
| .below { padding: 26px 0; } | |
| article { padding-inline: 16px; } | |
| } | |