Spaces:
Running
Running
Download library.css from finnbusse/handschrift: direct link, hf CLI and curl.
- Browser
- Download file 4.91 kB
-
https://huggingface.co/spaces/finnbusse/handschrift/resolve/main/library.css
- Command line
-
hf download hf://spaces/finnbusse/handschrift/library.css
-
curl -L -o library.css https://huggingface.co/spaces/finnbusse/handschrift/resolve/main/library.css
4.91 kB
| /* "Meine Zeilen" (#/zeilen). Uses the tokens of styles.css. A plain list: each line is | |
| its ink, its text and its date, separated by hairlines. */ | |
| .view-lines { padding: 8px var(--gutter) max(48px, env(safe-area-inset-bottom)); overflow-y: auto; } | |
| .lib { max-width: 820px; width: 100%; margin: 0 auto; } | |
| .lib-head { display: flex; align-items: center; gap: 4px; margin: 4px 0 4px -12px; } | |
| .lib-head h1 { font-size: 30px; } | |
| .lib-back { flex: none; } | |
| .lib-count { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; min-height: 22px; } | |
| .lib-note { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); | |
| display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; } | |
| .lib-note p { flex: 1 1 280px; font-size: 15px; } | |
| .lib-empty { margin-top: 28px; color: var(--muted); } | |
| .lib-empty a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; } | |
| .lib-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); } | |
| .lib-row { border-bottom: 1px solid var(--line); } | |
| .lib-item { | |
| appearance: none; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; | |
| width: 100%; min-height: 48px; padding: 14px 12px; margin: 0; display: grid; gap: 6px; | |
| cursor: pointer; touch-action: manipulation; border-radius: 12px; | |
| } | |
| .lib-item:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); } | |
| .lib-item:active { background: color-mix(in srgb, var(--ink) 7%, transparent); } | |
| /* The ink: the preview PNG (dark ink on white) without its white box, so it sits on the | |
| page in both themes. Until it is loaded the box keeps its height: nothing jumps. */ | |
| .lib-ink { display: block; height: 56px; min-width: 0; overflow: hidden; } | |
| .lib-ink img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left center; mix-blend-mode: multiply; } | |
| .lib-ink:not(.ready) { background: linear-gradient(to bottom, transparent 70%, var(--line) 70%, var(--line) calc(70% + 1px), transparent calc(70% + 1px)); max-width: 320px; } | |
| .lib-ink.noink, .lib-ink.failed { background: none; height: 22px; } | |
| .lib-ink.noink::after { content: "Keine Tinte"; color: var(--muted); font-size: 14px; } | |
| .lib-ink.failed::after { content: "Bild gerade nicht verfügbar"; color: var(--muted); font-size: 14px; } | |
| @media (prefers-color-scheme: dark) { | |
| .lib-ink img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; } | |
| } | |
| .lib-text { font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; } | |
| .lib-text.loading { color: var(--muted); } | |
| .lib-meta { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; } | |
| .lib-row[data-state="queued"] .lib-meta, .lib-row[data-state="rejected"] .lib-meta { color: var(--accent); } | |
| .lib-more-row { display: flex; justify-content: center; margin-top: 20px; } | |
| .lib-sentinel { height: 1px; } | |
| /* ---------- one line, larger ---------- */ | |
| .dlg.lib-dlg { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 20px 24px 24px; } | |
| .ld-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; } | |
| .lib-dlg .ld-head h2 { margin: 0; } | |
| .lib-ink.ld-ink { height: auto; max-width: none; background: none; margin-top: 14px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } | |
| .ld-ink img { height: auto; max-height: 150px; } | |
| .ld-ink:has(img[hidden]) { min-height: 166px; } | |
| .lib-dlg .ld-meta { margin: 8px 0 0; font-size: 14px; } | |
| .ld-edit, .ld-confirm { margin-top: 18px; } | |
| .lib-dlg .ld-prompt { display: grid; gap: 2px; margin-bottom: 14px; color: var(--ink); font-size: 17px; } | |
| .ld-label { font-size: 15px; color: var(--muted); } | |
| .ld-field input { font-size: 18px; } | |
| .lib-dlg .ld-hint { margin: 8px 0 0; font-size: 15px; } | |
| .ld-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 22px; } | |
| .ld-actions .btn.primary { min-width: 168px; } | |
| .ld-confirm h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; } | |
| .lib-dlg .ld-confirm p:not(.err) { color: var(--ink); margin: 0; } | |
| @media (max-width: 560px) { | |
| .dlg.lib-dlg { padding: 16px; } | |
| .ld-actions .btn { flex: 1 1 auto; } | |
| } | |
| /* The way in from the capture screen: "N Zeilen geschrieben" is a link, 48 px tall to | |
| touch without making the progress row taller. While a line is being written it steps | |
| back like the tabs, so a stray tap cannot leave the line. */ | |
| #cap-total { display: inline-flex; align-items: center; min-height: 48px; margin: -13px 0 -13px 0; padding: 0 6px; opacity: 1; | |
| color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; border-radius: 8px; } | |
| #cap-total:hover { color: var(--ink); text-decoration-color: currentColor; } | |
| #cap-total:empty { display: none; } | |
| body[data-inline] #cap-total { pointer-events: none; opacity: .5; } | |