Spaces:
Running
Running
Download style.css from facebook/meta-encoder-space: direct link, hf CLI and curl.
- Browser
- Download file 9.07 kB
-
https://huggingface.co/spaces/facebook/meta-encoder-space/resolve/main/style.css
- Command line
-
hf download hf://spaces/facebook/meta-encoder-space/style.css
-
curl -L -o style.css https://huggingface.co/spaces/facebook/meta-encoder-space/resolve/main/style.css
9.07 kB
| :root { | |
| --ink: #1d1d1f; --ink2: #6e6e73; --ink3: #86868b; --card: #f5f5f7; --line: #d2d2d7; | |
| --link: #0066cc; --w: 1080px; | |
| --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Inter, sans-serif; | |
| --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, sans-serif; | |
| } | |
| /* ---- strip Gradio chrome ---- */ | |
| body, .gradio-container { background: #fff ; color: var(--ink); font-family: var(--text) ; | |
| -webkit-font-smoothing: antialiased; } | |
| .gradio-container { max-width: 100% ; padding: 0 ; margin: 0 ; } | |
| .gradio-container .main, .gradio-container .contain, .gradio-container .wrap { gap: 0 ; padding: 0 ; } | |
| footer { display: none ; } | |
| .html-container { padding: 0 ; } | |
| .gradio-container a { color: var(--link) ; text-decoration: none ; } | |
| .gradio-container a:hover { text-decoration: underline ; } | |
| /* ---- nav ---- */ | |
| .top { position: sticky; top: 0; z-index: 100; height: 48px; padding: 0 max(22px, calc((100% - var(--w)) / 2)); | |
| display: flex; align-items: center; justify-content: space-between; | |
| background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); | |
| -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); } | |
| .top .brand { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; | |
| color: var(--ink) ; } | |
| .top .brand:hover, .top nav a:hover { text-decoration: none ; } | |
| .top nav a { margin-left: 28px; font-size: 12px; color: var(--ink) ; opacity: .8; } | |
| .top nav a:hover { opacity: 1; } | |
| /* ---- hero ---- */ | |
| .intro { max-width: var(--w); margin: 0 auto; padding: 120px 24px 88px; text-align: center; } | |
| .intro h1 { font-family: var(--display); font-size: clamp(30px, 5.4vw, 64px) ; font-weight: 600 ; | |
| white-space: nowrap; | |
| line-height: 1.05; letter-spacing: -.035em; margin: 0 ; color: var(--ink) ; } | |
| .intro h1 br { display: none; } | |
| .intro h1 span { display: block; margin-top: 14px; font-size: .42em; font-weight: 500; letter-spacing: -.015em; | |
| color: var(--ink2); } | |
| .intro p { max-width: 640px; margin: 28px auto 0 ; font-size: 21px ; line-height: 1.45; | |
| font-weight: 400; letter-spacing: -.01em; color: var(--ink2) ; } | |
| /* ---- page + tabs: large centered text tabs, underline on the active one ---- */ | |
| .page { max-width: var(--w); margin: 0 auto ; padding: 0 22px 40px ; gap: 0 ; } | |
| .plain-tabs .tab-wrapper { display: flex; justify-content: center; border: 0 ; padding: 0 ; | |
| background: transparent ; } | |
| /* Gradio keeps a hidden copy of the tab bar for measuring, plus an overflow menu: keep both out of sight */ | |
| .plain-tabs .tab-container.visually-hidden, .plain-tabs .overflow-menu { display: none ; } | |
| .plain-tabs .tab-container:not(.visually-hidden) { | |
| display: flex ; justify-content: center; gap: 48px ; padding: 0 ; margin: 0 auto ; | |
| background: transparent ; border: 0 ; height: auto ; } | |
| .plain-tabs .tab-container button { | |
| position: relative; border: 0 ; border-radius: 0 ; padding: 6px 0 14px ; margin: 0 ; | |
| background: transparent ; box-shadow: none ; color: var(--ink3) ; | |
| font-family: var(--display) ; font-size: 28px ; font-weight: 600 ; | |
| letter-spacing: -.02em; line-height: 1.1; transition: color .2s ease; } | |
| .plain-tabs .tab-container button:hover { color: var(--ink) ; } | |
| .plain-tabs .tab-container button.selected { color: var(--ink) ; } | |
| .plain-tabs .tab-container button::after { | |
| content: "" ; display: block ; position: absolute ; left: 50% ; right: auto ; | |
| bottom: 0 ; top: auto ; width: 0 ; height: 2px ; border-radius: 1px; | |
| background: var(--ink) ; transform: translateX(-50%); transition: width .25s ease; } | |
| .plain-tabs .tab-container button.selected::after { width: 32px ; } | |
| .plain-tabs .tabitem, .plain-tabs [role="tabpanel"] { border: 0 ; padding: 0 ; background: transparent ; } | |
| .lede { margin: 36px auto 72px ; text-align: center; font-size: 17px ; | |
| line-height: 1.5; color: var(--ink2) ; } | |
| .lede span { display: block; white-space: nowrap; } | |
| /* ---- modality groups ---- */ | |
| .group + .group { margin-top: 88px; } | |
| .group-title { display: flex; align-items: baseline; gap: 14px; margin: 0 0 24px ; | |
| font-family: var(--display); font-size: 32px ; font-weight: 600 ; | |
| letter-spacing: -.025em; color: var(--ink) ; } | |
| .group-title span { font-family: var(--text); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink3); } | |
| /* ---- example cards: state | prompt | outcome ---- */ | |
| .item { display: grid; grid-template-columns: 240px minmax(0, 1fr) minmax(0, 340px); gap: 40px; align-items: start; | |
| background: var(--card); border-radius: 24px; padding: 32px; margin-bottom: 16px; } | |
| .item .col { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .02em; | |
| color: var(--ink3); } | |
| .item .media img, .item .media video { display: block; width: 100%; height: auto; max-height: 300px; | |
| object-fit: contain; border-radius: 14px; background: #fff; } | |
| .item .text-state { padding: 16px 18px; border-radius: 14px; background: #fff; font-size: 14px; line-height: 1.55; | |
| color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; } | |
| .item h3 { font-family: var(--display); font-size: 24px ; font-weight: 600 ; line-height: 1.15; | |
| letter-spacing: -.02em; margin: 0 0 4px ; color: var(--ink) ; } | |
| .item .src { font-size: 13px ; color: var(--ink3) ; margin: 0 0 18px ; } | |
| .item .ctx { font-size: 14px ; line-height: 1.5; color: var(--ink2) ; margin: 0 0 8px ; } | |
| .item .task { font-size: 17px ; line-height: 1.45; letter-spacing: -.01em; color: var(--ink) ; | |
| margin: 0 ; overflow-wrap: anywhere; } | |
| /* grid/flex children may shrink below their content, so long tokens wrap instead of overflowing */ | |
| .item > div, .item .outcome * { min-width: 0; } | |
| .item .outcome { overflow-wrap: anywhere; word-break: break-word; } | |
| /* decision outcome: label, score, thin bar (no option is highlighted) */ | |
| .opts { list-style: none; padding: 0 ; margin: 0 ; display: flex; flex-direction: column; gap: 14px; } | |
| .opts li { position: relative; display: flex; justify-content: space-between; gap: 16px; margin: 0 ; | |
| padding-bottom: 10px; font-size: 14px; line-height: 1.4; color: var(--ink2); } | |
| .opts li::before, .opts li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; border-radius: 2px; } | |
| .opts li::before { right: 0; background: #e8e8ed; } | |
| .opts li::after { width: var(--p); background: #86868b; } | |
| .opts li span:first-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; word-break: break-word; } | |
| .opts li span:last-child { flex: none; font-variant-numeric: tabular-nums; } | |
| .opts li small { font-size: 13px; font-weight: 400; color: var(--ink2); } | |
| /* retrieval outcome: plain ranked list */ | |
| .item .res { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } | |
| .item .res img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #fff; } | |
| .item .docs { margin: 0 ; padding: 0 0 0 20px ; display: flex; flex-direction: column; gap: 10px; } | |
| .item .docs li { margin: 0 ; padding: 0 0 0 4px; font-size: 13px; line-height: 1.5; color: var(--ink2); } | |
| .item .docs li::marker { color: var(--ink3); } | |
| .item .note { font-size: 12px ; color: var(--ink3) ; margin: 14px 0 0 ; } | |
| /* ---- footer ---- */ | |
| .end { max-width: var(--w); margin: 80px auto 0; padding: 20px 22px 40px; border-top: 1px solid var(--line); | |
| display: flex; justify-content: space-between; gap: 24px; font-size: 12px; color: var(--ink3); } | |
| .end a { color: var(--ink3) ; } | |
| @media (max-width: 600px) { | |
| .intro h1 { white-space: normal; } | |
| } | |
| @media (max-width: 900px) { | |
| .lede span { white-space: normal; } | |
| .plain-tabs .tab-container button { font-size: 22px ; } | |
| .plain-tabs .tab-container:not(.visually-hidden) { gap: 28px ; } | |
| .item { grid-template-columns: 1fr; gap: 24px; padding: 24px; } | |
| .intro { padding: 80px 24px 64px; } | |
| .group-title { font-size: 26px ; } | |
| } | |