Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download web_app/src/styles/sentence-heading.css from CommunityOne/open-navigator: direct link, hf CLI and curl.
- Browser
- Download file 5.61 kB
-
https://huggingface.co/spaces/CommunityOne/open-navigator/resolve/main/web_app/src/styles/sentence-heading.css
- Command line
-
hf download hf://spaces/CommunityOne/open-navigator/web_app/src/styles/sentence-heading.css
-
curl -L -o sentence-heading.css https://huggingface.co/spaces/CommunityOne/open-navigator/resolve/main/web_app/src/styles/sentence-heading.css
5.61 kB
| /* | |
| * The sentence heading (issue #883): a page title the reader completes, with inline pickers and a "Try" row. | |
| * Generic: it only uses the Folio tokens (--ink, --ink-2, --violet-ink, --paper-raised, --rule, fonts, durations) with fallbacks, | |
| * so it works inside any element that sets them. | |
| */ | |
| .sh { | |
| margin: 8px 0 0; | |
| } | |
| .sh-title { | |
| font-family: var(--font-sans, system-ui, sans-serif); | |
| font-size: clamp(26px, 3vw, 44px); | |
| font-weight: 300; | |
| line-height: 1.18; | |
| letter-spacing: -0.025em; | |
| max-width: 58rem; | |
| margin: 6px 0 0; | |
| color: var(--ink, #121116); | |
| } | |
| .sh-title:focus { | |
| outline: none; | |
| } | |
| .sh-title:focus-visible { | |
| outline: 2px solid var(--violet-ink, #5a3be6); | |
| outline-offset: 4px; | |
| } | |
| /* The mask only clips while the sentence rises in, so the open picker is never cut off afterwards. */ | |
| .sh-mask { | |
| display: block; | |
| padding-bottom: 0.12em; | |
| } | |
| .sh-mask.is-intro { | |
| overflow: hidden; | |
| } | |
| .sh-inner { | |
| display: block; | |
| animation: sh-rise var(--d-4, 900ms) var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) backwards; | |
| } | |
| @keyframes sh-rise { | |
| from { | |
| transform: translateY(105%); | |
| } | |
| to { | |
| transform: none; | |
| } | |
| } | |
| /* A blank: the current value in the accent colour with a dotted underline. */ | |
| .sh-blank { | |
| position: relative; | |
| display: inline-block; | |
| } | |
| .sh .sh-blank-btn { | |
| min-height: 44px; | |
| padding: 0; | |
| margin: 0; | |
| background: none; | |
| border: 0; | |
| border-bottom: 2px dotted currentColor; | |
| border-radius: 0; | |
| color: var(--violet-ink, #5a3be6); | |
| font: inherit; | |
| letter-spacing: inherit; | |
| cursor: pointer; | |
| text-align: left; | |
| } | |
| .sh .sh-blank-btn:hover { | |
| background: color-mix(in srgb, var(--violet-ink, #5a3be6) 8%, transparent); | |
| } | |
| .sh .sh-blank-btn:focus-visible { | |
| outline: 3px solid var(--violet-ink, #5a3be6); | |
| outline-offset: 2px; | |
| } | |
| .sh-fixed { | |
| color: var(--ink, #121116); | |
| } | |
| /* The picker */ | |
| .sh-backdrop { | |
| position: fixed; | |
| inset: 0; | |
| z-index: 60; | |
| background: transparent; | |
| } | |
| .sh-pop { | |
| position: absolute; | |
| z-index: 61; | |
| top: 100%; | |
| left: 0; | |
| width: min(30rem, calc(100vw - 40px)); | |
| margin-top: 6px; | |
| background: var(--paper-raised, #f4f3f8); | |
| color: var(--ink, #121116); | |
| border: 1px solid var(--ink, #121116); | |
| box-shadow: 0 12px 32px color-mix(in srgb, var(--ink, #121116) 22%, transparent); | |
| font-family: var(--font-sans, system-ui, sans-serif); | |
| font-size: 15px; | |
| font-weight: 400; | |
| letter-spacing: 0; | |
| line-height: 1.3; | |
| } | |
| .sh-pop-right { | |
| left: auto; | |
| right: 0; | |
| } | |
| .sh-search { | |
| display: block; | |
| width: 100%; | |
| min-height: 44px; | |
| padding: 8px 12px; | |
| border: 0; | |
| border-bottom: 1px solid var(--rule, #b8b4c4); | |
| background: transparent; | |
| color: inherit; | |
| font: inherit; | |
| } | |
| .sh-search:focus-visible { | |
| outline: 3px solid var(--violet-ink, #5a3be6); | |
| outline-offset: -3px; | |
| } | |
| .sh-list { | |
| max-height: min(22rem, 50vh); | |
| overflow-y: auto; | |
| overscroll-behavior: contain; | |
| } | |
| .sh-list:focus-visible { | |
| outline: 3px solid var(--violet-ink, #5a3be6); | |
| outline-offset: -3px; | |
| } | |
| .sh-group { | |
| margin: 0; | |
| padding: 10px 12px 4px; | |
| font-family: var(--font-mono, ui-monospace, monospace); | |
| font-size: 11px; | |
| letter-spacing: 0.08em; | |
| text-transform: uppercase; | |
| color: var(--ink-2, #4a4752); | |
| } | |
| .sh-option { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 12px; | |
| min-height: 44px; | |
| padding: 6px 12px; | |
| cursor: pointer; | |
| } | |
| .sh-option.is-active { | |
| background: var(--violet-100, #e4dffc); | |
| } | |
| .sh-option-main { | |
| display: flex; | |
| flex-direction: column; | |
| min-width: 0; | |
| } | |
| .sh-option-label { | |
| font-weight: 450; | |
| } | |
| .sh-option.is-current .sh-option-label { | |
| color: var(--violet-ink, #5a3be6); | |
| } | |
| .sh-option-hint { | |
| font-size: 12.5px; | |
| color: var(--ink-2, #4a4752); | |
| } | |
| .sh-check { | |
| color: var(--violet-ink, #5a3be6); | |
| font-weight: 600; | |
| } | |
| .sh-empty { | |
| margin: 0; | |
| padding: 12px; | |
| color: var(--ink-2, #4a4752); | |
| } | |
| /* A phone: the picker is a bottom sheet with a large search field and 44 px rows. */ | |
| @media (max-width: 767px) { | |
| .sh-backdrop { | |
| background: color-mix(in srgb, var(--ink, #121116) 45%, transparent); | |
| } | |
| .sh-pop, | |
| .sh-pop-right { | |
| position: fixed; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| top: auto; | |
| width: auto; | |
| margin: 0; | |
| max-height: 82vh; | |
| display: flex; | |
| flex-direction: column; | |
| border-width: 1px 0 0; | |
| box-shadow: 0 -8px 28px color-mix(in srgb, var(--ink, #121116) 28%, transparent); | |
| } | |
| .sh-search { | |
| min-height: 56px; | |
| font-size: 18px; | |
| padding: 12px 16px; | |
| } | |
| .sh-list { | |
| max-height: none; | |
| flex: 1; | |
| } | |
| .sh-option { | |
| min-height: 48px; | |
| padding: 8px 16px; | |
| } | |
| } | |
| /* Try row */ | |
| .sh-try { | |
| display: flex; | |
| flex-wrap: wrap; | |
| align-items: center; | |
| gap: 0 18px; | |
| margin: 6px 0 0; | |
| font-size: 14px; | |
| } | |
| .sh-try-label { | |
| font-family: var(--font-mono, ui-monospace, monospace); | |
| font-size: 11px; | |
| letter-spacing: 0.08em; | |
| text-transform: uppercase; | |
| color: var(--ink-2, #4a4752); | |
| } | |
| .sh .sh-try-btn { | |
| min-height: 44px; | |
| padding: 0; | |
| background: none; | |
| border: 0; | |
| border-bottom: 1px solid currentColor; | |
| border-radius: 0; | |
| color: var(--ink, #121116); | |
| font: inherit; | |
| cursor: pointer; | |
| line-height: 1.2; | |
| } | |
| .sh .sh-try-btn:hover { | |
| color: var(--violet-ink, #5a3be6); | |
| } | |
| .sh .sh-try-btn:focus-visible { | |
| outline: 3px solid var(--violet-ink, #5a3be6); | |
| outline-offset: 2px; | |
| } | |
| .sh .sh-surprise { | |
| color: var(--violet-ink, #5a3be6); | |
| } | |
| .sh-sr { | |
| position: absolute; | |
| width: 1px; | |
| height: 1px; | |
| margin: -1px; | |
| padding: 0; | |
| overflow: hidden; | |
| clip: rect(0 0 0 0); | |
| white-space: nowrap; | |
| border: 0; | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .sh-inner { | |
| animation: none ; | |
| } | |
| } | |