Download demo/src/style.css from KGAudioLab/InstVELA-models-onnx: direct link, hf CLI and curl.
- Browser
- Download file 10.5 kB
-
https://huggingface.co/KGAudioLab/InstVELA-models-onnx/resolve/main/demo/src/style.css
- Command line
-
hf download hf://KGAudioLab/InstVELA-models-onnx/demo/src/style.css
-
curl -L -o style.css https://huggingface.co/KGAudioLab/InstVELA-models-onnx/resolve/main/demo/src/style.css
10.5 kB
| :root { | |
| font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; | |
| color-scheme: dark; | |
| line-height: 1.5; | |
| font-synthesis: none; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| --bg: #1e1e1e; | |
| --panel: #2d2d2d; | |
| --inset: #252525; | |
| --control: #3a3a3a; | |
| --control-hover: #4a4a4a; | |
| --border: #3a3a3a; | |
| --control-border: #555; | |
| --fg: #e0e0e0; | |
| --muted: #b0b0b0; | |
| --accent: #5a9fd4; | |
| --accent-hover: #4a8fc4; | |
| --ok: #9bc17c; | |
| --warn: #d0a56b; | |
| --bad: #ff6b6b; | |
| --roll-white: #2d2d2d; | |
| --roll-black: #252525; | |
| --roll-beat: #3a3a3a; | |
| --roll-bar: #888; | |
| --roll-keys: #1e1e1e; | |
| --roll-keys-text: #e0e0e0; | |
| --roll-preroll: rgba(208, 165, 107, 0.2); | |
| --roll-preroll-text: #d0a56b; | |
| --roll-playhead: #4ecdc4; | |
| --roll-velocity: rgba(255, 255, 255, 0.72); | |
| } | |
| * { box-sizing: border-box; } | |
| body { | |
| margin: 0; | |
| background: var(--bg); | |
| color: var(--fg); | |
| font-size: 14px; | |
| } | |
| header { | |
| background: var(--inset); | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .header-content, | |
| main { | |
| max-width: 1120px; | |
| margin: 0 auto; | |
| padding-inline: 24px; | |
| } | |
| .header-content { | |
| display: grid; | |
| grid-template-columns: auto minmax(0, 1fr) auto; | |
| align-items: start; | |
| column-gap: 14px; | |
| padding-block: 20px 16px; | |
| } | |
| .header-logo { | |
| grid-area: 1 / 1 / span 2; | |
| align-self: stretch; | |
| width: min(var(--header-logo-height, 64px), 22vw); | |
| background: url("../../assets/vela-logo.png") left top / contain no-repeat; | |
| } | |
| .header-content > .instrument-control { | |
| grid-area: 1 / 3; | |
| align-self: center; | |
| } | |
| main { | |
| display: grid; | |
| gap: 16px; | |
| padding-block: 20px 36px; | |
| } | |
| h1, h2, h3 { | |
| margin: 0; | |
| color: #fff; | |
| font-weight: 600; | |
| } | |
| h1 { font-size: 24px; } | |
| h2 { font-size: 16px; margin-bottom: 12px; } | |
| h3 { font-size: 14px; margin-bottom: 12px; } | |
| .card { | |
| min-width: 0; | |
| padding: 20px; | |
| background: var(--panel); | |
| border: 1px solid var(--border); | |
| border-radius: 8px; | |
| } | |
| .section-header { margin-bottom: 14px; } | |
| .section-header h2 { margin: 0; } | |
| .muted { margin: 0; color: var(--muted); font-size: 13px; } | |
| .monophony-hint { margin-bottom: 10px; } | |
| .warn { color: var(--warn); } | |
| .bad { color: var(--bad); } | |
| .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } | |
| .space { justify-content: space-between; } | |
| .instrument-control, .zoom-control { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| #instrument { min-width: 136px; text-transform: capitalize; } | |
| .button { | |
| display: inline-block; | |
| padding: 8px 16px; | |
| border: 1px solid var(--control-border); | |
| border-radius: 4px; | |
| background: var(--control); | |
| color: var(--fg); | |
| font: inherit; | |
| font-weight: 500; | |
| text-decoration: none; | |
| overflow-wrap: anywhere; | |
| cursor: pointer; | |
| transition: background-color .2s ease, border-color .2s ease; | |
| } | |
| .button:hover { | |
| background-color: var(--control-hover); | |
| border-color: #666; | |
| } | |
| .button.small { padding: 6px 10px; font-size: 12px; } | |
| .button.primary { | |
| background-color: var(--accent); | |
| border-color: var(--accent); | |
| color: #fff; | |
| } | |
| .button.primary:not(:disabled):hover, .drop-content:hover .button { | |
| background-color: var(--accent-hover); | |
| border-color: var(--accent-hover); | |
| } | |
| .button:disabled { | |
| background: var(--control); | |
| border-color: var(--control-border); | |
| color: #aaa; | |
| cursor: not-allowed; | |
| } | |
| :where(button, a, input, summary):focus-visible { | |
| outline: 2px solid var(--accent); | |
| outline-offset: 2px; | |
| } | |
| .drop-content { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| width: 100%; | |
| padding: 20px 12px 24px; | |
| border: 1px solid transparent; | |
| border-radius: 8px; | |
| background: var(--bg); | |
| color: inherit; | |
| font: inherit; | |
| cursor: pointer; | |
| transition: background-color .2s ease, border-color .2s ease; | |
| } | |
| .drop-content:hover, .drop.over .drop-content { | |
| background-color: #252b2f; | |
| border-color: var(--accent); | |
| } | |
| .drop.over .drop-content { background-color: #293540; } | |
| .drop-icon { font-size: 36px; line-height: 1.25; opacity: .75; margin-bottom: 8px; } | |
| .drop-label { font-size: 18px; font-weight: 500; } | |
| .drop-content .button { margin-top: 14px; padding: 9px 20px; border-radius: 6px; } | |
| #file-info, #out-info, .field small { overflow-wrap: anywhere; } | |
| #file-info:not(:empty) { margin-top: 10px; } | |
| #file-info ul { margin: 4px 0 0; padding-left: 18px; } | |
| .device { | |
| grid-area: 2 / 2 / auto / -1; | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 6px; | |
| margin-top: 12px; | |
| } | |
| .badge { | |
| padding: 4px 8px; | |
| border: 1px solid #444; | |
| border-radius: 999px; | |
| background: #313131; | |
| color: #bbb; | |
| font-size: 11px; | |
| } | |
| .badge.webgpu { color: var(--ok); } | |
| .badge.fallback { color: var(--warn); } | |
| .settings-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); | |
| align-items: start; | |
| gap: 16px; | |
| } | |
| #score-settings { | |
| grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .85fr); | |
| } | |
| .field { display: grid; gap: 5px; justify-items: start; min-width: 0; } | |
| .field label, .field-heading { font-size: 14px; font-weight: 500; } | |
| .field-heading { margin: 0; color: var(--fg); } | |
| .field small { color: var(--muted); font-size: 12px; } | |
| .field small.bad { color: var(--bad); } | |
| .field small:empty, .field:not(.changed) .default-value { display: none; } | |
| .field.changed label::after { content: " (changed)"; color: var(--warn); } | |
| .keyswitch-table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| background: var(--inset); | |
| font-size: 12px; | |
| } | |
| .keyswitch-table th, .keyswitch-table td { | |
| padding: 4px 8px; | |
| border: 1px solid var(--border); | |
| text-align: left; | |
| } | |
| .keyswitch-table thead { background: var(--control); } | |
| .keyswitch-table thead th { font-weight: 600; } | |
| .keyswitch-table tbody th { font-weight: 400; text-transform: capitalize; } | |
| .keyswitch-table td { font-variant-numeric: tabular-nums; } | |
| select, | |
| .field input[type="number"], | |
| .field textarea { | |
| width: 100%; | |
| padding: 8px 12px; | |
| border: 1px solid var(--control-border); | |
| border-radius: 4px; | |
| background-color: var(--control); | |
| color: var(--fg); | |
| font: inherit; | |
| transition: border-color .2s ease; | |
| } | |
| select { | |
| appearance: none; | |
| padding-right: 34px; | |
| background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23b0b0b0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); | |
| background-repeat: no-repeat; | |
| background-position: right 12px center; | |
| background-size: 10px 6px; | |
| text-overflow: ellipsis; | |
| cursor: pointer; | |
| } | |
| .field input[type="number"] { max-width: 100px; } | |
| .field textarea { resize: vertical; font-size: 12px; } | |
| .field textarea::placeholder { color: var(--muted); } | |
| select:focus, | |
| .field input[type="number"]:focus, | |
| .field textarea:focus { | |
| outline: none; | |
| border-color: var(--accent); | |
| box-shadow: 0 0 0 2px rgba(90, 159, 212, .2); | |
| } | |
| #advanced-settings { margin-top: 16px; border-top: 1px solid var(--control-border); } | |
| summary { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| width: fit-content; | |
| color: var(--muted); | |
| font-weight: 500; | |
| list-style: none; | |
| cursor: pointer; | |
| } | |
| summary::-webkit-details-marker { display: none; } | |
| summary::before { | |
| content: ""; | |
| border-block: 4px solid transparent; | |
| border-left: 6px solid currentColor; | |
| transition: transform .15s ease; | |
| } | |
| summary:hover, details[open] > summary { color: var(--fg); } | |
| details[open] > summary::before { transform: rotate(90deg); } | |
| #advanced-settings > summary { padding-block: 10px 0; } | |
| .expander-content { display: flow-root; } | |
| #advanced-fields { display: grid; gap: 8px; padding-top: 10px; } | |
| @media (prefers-reduced-motion: reduce) { | |
| summary::before { transition: none; } | |
| } | |
| .settings-group { | |
| min-width: 0; | |
| padding: 14px; | |
| background: var(--inset); | |
| border: 1px solid var(--border); | |
| border-radius: 6px; | |
| } | |
| .roll { | |
| position: relative; | |
| overflow: auto; | |
| border: 1px solid var(--border); | |
| border-radius: 4px; | |
| } | |
| .roll canvas { position: sticky; left: 0; display: block; } | |
| #roll-spacer { position: absolute; top: 0; left: 0; pointer-events: none; } | |
| #roll-footer { | |
| display: flex; | |
| flex-wrap: wrap; | |
| align-items: flex-end; | |
| gap: 10px 16px; | |
| margin-top: 10px; | |
| } | |
| #roll-footer #file-info { flex: 1 1 320px; margin: 0; } | |
| #upload-own { margin-inline-start: auto; } | |
| #zoom { | |
| width: 108px; | |
| height: 4px; | |
| appearance: none; | |
| border-radius: 2px; | |
| background: var(--control); | |
| } | |
| #zoom::-webkit-slider-thumb { | |
| appearance: none; | |
| width: 10px; | |
| height: 10px; | |
| border-radius: 50%; | |
| background: var(--fg); | |
| cursor: pointer; | |
| } | |
| #zoom::-moz-range-thumb { | |
| width: 10px; | |
| height: 10px; | |
| border: 0; | |
| border-radius: 50%; | |
| background: var(--fg); | |
| cursor: pointer; | |
| } | |
| .legend { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 8px 12px; | |
| margin-bottom: 8px; | |
| color: var(--muted); | |
| font-size: 12px; | |
| } | |
| .legend i { | |
| display: inline-block; | |
| width: 12px; | |
| height: 10px; | |
| margin-right: 4px; | |
| border-radius: 2px; | |
| vertical-align: -1px; | |
| } | |
| .legend .edit-outline { border: 1px dotted var(--warn); border-radius: 0; } | |
| .legend .edit-outline.cropped { border-left: 0; } | |
| progress { | |
| display: block; | |
| width: 100%; | |
| height: 8px; | |
| margin-top: 12px; | |
| appearance: none; | |
| overflow: hidden; | |
| border: 1px solid var(--border); | |
| border-radius: 999px; | |
| background: #1d1d1d; | |
| } | |
| progress::-webkit-progress-bar { background: #1d1d1d; } | |
| progress::-webkit-progress-value { background: linear-gradient(90deg, var(--accent), #7cc2f1); } | |
| progress::-moz-progress-bar { background: linear-gradient(90deg, var(--accent), #7cc2f1); } | |
| .stages:not(:empty) { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); | |
| gap: 6px; | |
| margin-top: 8px; | |
| color: var(--muted); | |
| font-size: 13px; | |
| } | |
| .stages .active { color: var(--fg); font-weight: 600; } | |
| .stages .done { color: var(--ok); } | |
| #render-output { margin-top: 14px; } | |
| audio { display: block; width: 100%; margin-bottom: 10px; } | |
| pre { | |
| max-height: 260px; | |
| margin: 10px 0 0; | |
| padding: 10px; | |
| border-radius: 4px; | |
| background: var(--bg); | |
| font-size: 12px; | |
| white-space: pre-wrap; | |
| overflow-wrap: anywhere; | |
| overflow: auto; | |
| } | |
| @media (max-width: 720px) { | |
| .header-content { grid-template-columns: auto minmax(0, 1fr); } | |
| .header-content > .instrument-control { | |
| grid-area: 3 / 2; | |
| justify-self: start; | |
| margin-top: 12px; | |
| } | |
| #score-settings { grid-template-columns: 1fr; } | |
| } | |
| @media (max-width: 480px) { | |
| .header-content, main { padding-inline: 12px; } | |
| .header-content { column-gap: 10px; } | |
| .card { padding: 14px; } | |
| h1 { font-size: 21px; } | |
| } | |