Spaces:
Running
Running
Download captioning.css from cltsangwork/Topic5APIC: direct link, hf CLI and curl.
- Browser
- Download file 4.28 kB
-
https://huggingface.co/spaces/cltsangwork/Topic5APIC/resolve/main/captioning.css
- Command line
-
hf download hf://spaces/cltsangwork/Topic5APIC/captioning.css
-
curl -L -o captioning.css https://huggingface.co/spaces/cltsangwork/Topic5APIC/resolve/main/captioning.css
4.28 kB
| /* Caption-specific controls. The shared course style.css is unchanged. */ | |
| [hidden] { display: none ; } | |
| .token-controls { margin-top: 18px; } | |
| #token-value { min-width: 48px; text-align: right; color: #334155; font-variant-numeric: tabular-nums; } | |
| #max-tokens { width: 100%; margin-top: 13px; accent-color: #111827; } | |
| .caption-output { font-size: 1.1rem; white-space: pre-wrap; overflow-wrap: anywhere; } | |
| .caption-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; } | |
| .history-actions { display: flex; flex-wrap: wrap; gap: 8px; } | |
| .stop-button { width: 100%; margin-top: 10px; } | |
| #image-source { font-size: .78rem; } | |
| #image-source a { color: #52627a; } | |
| #history-body td:nth-child(4) { min-width: 230px; line-height: 1.5; overflow-wrap: anywhere; } | |
| button:focus-visible { outline: 3px solid #52627a; outline-offset: 3px; } | |
| .guide-section { margin-top: 20px; padding: 24px; } | |
| .guide-section h2 { margin-top: 0; } | |
| .guide-section p, .guide-section li { color: #475569; line-height: 1.65; } | |
| .guide-section code { overflow-wrap: anywhere; } | |
| .guide-section a { color: #174f9e; } | |
| .guide-section pre { padding: 16px; background: #f7f8fa; overflow-x: auto; border-radius: 12px; } | |
| /* Three captioners side by side under one shared image. */ | |
| .workspace { grid-template-columns: 1fr; } | |
| .result { position: static; } | |
| .controls .sample-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } | |
| .file-input { max-width: 560px; } | |
| #preview-wrap { min-height: 220px; } | |
| #preview-image { max-height: 420px; } | |
| .captioner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; } | |
| .captioner-panel { | |
| display: flex; | |
| flex-direction: column; | |
| min-width: 0; | |
| padding: 15px; | |
| border: 1px solid #e0e5ed; | |
| border-radius: 16px; | |
| background: #fff; | |
| } | |
| .panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; } | |
| .panel-kicker { margin: 0 0 3px; color: #7a8595; font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; } | |
| .panel-title { margin: 0; font-size: 1.03rem; letter-spacing: -.01em; } | |
| .panel-badge { padding: 5px 8px; font-size: .7rem; } | |
| .panel-note { margin: 7px 0 10px; font-size: .78rem; line-height: 1.45; } | |
| .panel-caption { | |
| flex: none; | |
| height: 170px; | |
| overflow-y: auto; | |
| margin: 0; | |
| padding: 11px 12px; | |
| border-radius: 11px; | |
| background: #f7f8fa; | |
| color: #52627a; | |
| font-size: .92rem; | |
| font-weight: 650; | |
| line-height: 1.5; | |
| white-space: pre-wrap; | |
| overflow-wrap: anywhere; | |
| } | |
| .panel-caption.has-caption { color: #1f2937; } | |
| .panel-meta { margin: 7px 0 0; color: #7a8595; font-size: .72rem; line-height: 1.4; } | |
| .panel-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 9px 0 13px; } | |
| .panel-actions .secondary-button { flex: 0 1 auto; margin-top: 0; padding: 6px 9px; font-size: .76rem; } | |
| .captioner-panel .panel-options { padding-top: 13px; border-top: 1px solid #eceff4; } | |
| .panel-options-title { margin: 0 0 8px; color: #52627a; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; } | |
| .captioner-panel .control-label { font-size: .8rem; } | |
| .captioner-panel .model-select { margin-top: 6px; padding: 8px 10px; font-size: .85rem; } | |
| .captioner-panel .model-select:disabled { background: #f5f6f8; color: #667085; } | |
| .captioner-panel .helper { margin-top: 5px; font-size: .74rem; line-height: 1.4; } | |
| .captioner-panel .token-controls { margin-top: 13px; } | |
| .captioner-panel .slider-row { gap: 8px; } | |
| .captioner-panel .token-value { min-width: 32px; text-align: right; color: #334155; font-variant-numeric: tabular-nums; } | |
| .captioner-panel .token-slider { width: 100%; margin-top: 9px; accent-color: #111827; } | |
| .captioner-panel .clip-controls { margin-top: 13px; } | |
| .captioner-panel textarea { margin-top: 6px; padding: 8px 9px; border-radius: 10px; font-size: .8rem; } | |
| .panel-stale { color: #8a5a00; font-weight: 650; } | |
| @media (max-width: 1000px) { | |
| .captioner-grid { grid-template-columns: 1fr; } | |
| .controls .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } | |
| } | |
| @media (max-width: 820px) { | |
| #preview-image { max-height: 340px; } | |
| } | |
| @media (max-width: 520px) { | |
| .captioner-panel { padding: 13px; } | |
| } | |