新增 labels 下的韩泰 EOT 标注工作台
This commit is contained in:
@@ -0,0 +1,116 @@
|
||||
.timeline {
|
||||
overflow: hidden;
|
||||
color: #333c34;
|
||||
background: #fffefb;
|
||||
border: 1px solid #e5e8dd;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 18px 22px 15px;
|
||||
}
|
||||
|
||||
.toolbarTitle, .tools, .zoom, .bottomBar, .timeReadout, .decisionControls, .decisionControls > label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.toolbarTitle { gap: 14px; }
|
||||
.title { font-size: 14px; font-weight: 650; letter-spacing: .01em; }
|
||||
.duration { color: #6c776b; font-family: var(--font-geist-mono, monospace); font-size: 12px; }
|
||||
.duration > span { margin-left: 5px; font-family: inherit; font-size: 10px; color: #90978d; }
|
||||
.tools { gap: 13px; }
|
||||
.tools button { font: inherit; cursor: pointer; }
|
||||
.tools button:disabled { opacity: .35; cursor: default; }
|
||||
.locate { display: flex; align-items: center; gap: 5px; border: 0; background: none; color: #728064; font-size: 11px !important; }
|
||||
.locate > span { font-size: 20px; line-height: 1; }
|
||||
.zoom { height: 28px; gap: 3px; border: 1px solid #e7e9e0; border-radius: 7px; background: #fafbf5; }
|
||||
.zoom button { display: grid; place-items: center; width: 28px; height: 26px; border: 0; background: none; color: #606b57; font-size: 17px; }
|
||||
.zoom button:not(:disabled):hover { background: #edf0e6; }
|
||||
.zoom > span { width: 30px; text-align: center; font-size: 11px; color: #646d5c; }
|
||||
|
||||
.trackLayout { display: grid; grid-template-columns: 88px minmax(0, 1fr); border-block: 1px solid #ecede5; }
|
||||
.trackNames { background: #fbfcf7; border-right: 1px solid #e9ebe2; font-size: 11px; color: #828b7b; user-select: none; }
|
||||
.trackNames > div { padding-left: 21px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #eceee6; }
|
||||
.rulerName { height: 32px; font-size: 10px; }
|
||||
.waveName { height: 76px; }
|
||||
.speechName { height: 48px; }
|
||||
.markerName { height: 44px; border-bottom: 0 !important; }
|
||||
.agentDot, .userDot, .playheadDot, .decisionDot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; }
|
||||
.agentDot { background: #b2bca8; }
|
||||
.userDot { background: #d2b48d; }
|
||||
.playheadDot { background: #566653; }
|
||||
.decisionDot { background: #d66d40; }
|
||||
.viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #cbd1c0 #f8faf2; }
|
||||
.viewport::-webkit-scrollbar { height: 7px; }
|
||||
.viewport::-webkit-scrollbar-thumb { background: #cbd1c0; border-radius: 4px; }
|
||||
.viewport::-webkit-scrollbar-track { background: #f8faf2; }
|
||||
.canvas { width: var(--timeline-width); height: 248px; position: relative; outline: none; touch-action: pan-y; cursor: crosshair; }
|
||||
.canvas:focus-visible { box-shadow: inset 0 0 0 2px #9aa987; }
|
||||
.ruler { position: relative; height: 32px; background: #fbfcf7; border-bottom: 1px solid #eceee6; overflow: hidden; }
|
||||
.tick { position: absolute; top: 0; height: 32px; padding-top: 8px; padding-left: 6px; color: #8b9384; font-family: var(--font-geist-mono, monospace); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.tick::after { content: ""; position: absolute; left: 0; bottom: 0; width: 1px; height: 5px; background: #cbd1c1; }
|
||||
.waveTrack { height: 76px; position: relative; background: #fdfef9; border-bottom: 1px solid #eceee6; }
|
||||
.waveform { display: block; width: 100%; height: 76px; color: #a3ad98; pointer-events: none; }
|
||||
.waveEmpty { position: sticky; left: 0; height: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; color: #929b88; font-size: 11px; }
|
||||
.waveEmpty svg { color: #b2baa9; }
|
||||
.speechTrack { position: relative; height: 48px; border-bottom: 1px solid #eceee6; background: #fffefb; }
|
||||
.speechBlock { position: absolute; top: 9px; height: 29px; overflow: hidden; border: 1px solid; border-radius: 5px; transition: filter .12s; }
|
||||
.speechBlock:hover { filter: brightness(.96); }
|
||||
.speechBlock > span { display: block; overflow: hidden; padding: 6px 9px; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; line-height: 15px; }
|
||||
.agentBlock { background: #eef2e5; border-color: #dfe6d2; color: #697854; }
|
||||
.userBlock { background: #f8f0e5; border-color: #eadcc6; color: #8d7353; }
|
||||
.annotationTrack { height: 44px; position: relative; background: #fbfcf7; }
|
||||
.annotation { z-index: 4; position: absolute; top: 13px; transform: translateX(-50%); display: grid; place-items: center; width: 22px; height: 23px; border-radius: 5px; border: 1px solid; cursor: pointer; font-family: var(--font-geist-mono, monospace); font-size: 11px; font-weight: 650; }
|
||||
.annotation:hover { filter: brightness(.94); }
|
||||
.annotationStem { position: absolute; width: 1px; height: 11px; top: -12px; left: 50%; background: currentColor; opacity: .4; }
|
||||
.positive { background: #e8efdb; color: #62764a; border-color: #d4dfc2; }
|
||||
.negative { background: #f6e4d9; color: #ab7150; border-color: #edcfbc; }
|
||||
.pending { background: #f0f1eb; color: #87917c; border-color: #dce0d3; }
|
||||
.selectedLabel { position: absolute; z-index: 3; top: 13px; transform: translateX(-50%); padding: 4px 9px; border: 1px solid #efc7b4; border-radius: 5px; background: #fcf0e8; color: #b86038; font-size: 10px; white-space: nowrap; }
|
||||
.playhead { position: absolute; z-index: 5; top: 25px; bottom: 0; width: 1px; background: #6b7a5c; pointer-events: none; }
|
||||
.playhead > span { position: absolute; top: -5px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: #6b7a5c; }
|
||||
.decisionMarker { position: absolute; z-index: 6; top: 0; bottom: 0; width: 0; pointer-events: none; }
|
||||
.decisionLine { position: absolute; top: 23px; bottom: 0; left: -1px; border-left: 1.5px dashed #d66d40; }
|
||||
.decisionHandle { position: absolute; left: -14px; top: 1px; display: grid; place-items: center; width: 28px; height: 30px; padding: 0; border: 0; background: transparent; cursor: ew-resize; pointer-events: auto; touch-action: none; }
|
||||
.decisionHandle > span { width: 14px; height: 19px; background: #d66d40; clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); border-radius: 2px; transition: transform .15s; }
|
||||
.decisionHandle:hover > span { transform: scale(1.13); }
|
||||
.decisionHandle:focus-visible { outline: 2px solid #b95b32; outline-offset: 1px; border-radius: 4px; background: #faeadf; }
|
||||
.annotation:focus-visible, .tools button:focus-visible { outline: 2px solid #758962; outline-offset: 3px; }
|
||||
|
||||
.bottomBar { justify-content: space-between; gap: 12px; padding: 11px 22px 7px; }
|
||||
.timeReadout { gap: 6px; color: #8b9382; font-size: 10px; }
|
||||
.timeReadout strong { margin-left: 3px; font-family: var(--font-geist-mono, monospace); color: #66735b; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
|
||||
.help { font-size: 10px; color: #9aa18f; }
|
||||
.decisionControls { gap: 12px; padding: 5px 22px 15px; }
|
||||
.decisionControls > label:first-child { gap: 6px; color: #947158; font-size: 10px; white-space: nowrap; }
|
||||
.decisionControls > input { flex: 1; min-width: 40px; height: 16px; accent-color: #d66d40; cursor: pointer; }
|
||||
.decisionControls > input:disabled { opacity: .35; cursor: default; }
|
||||
.numberInput { width: 99px; gap: 4px; padding: 4px 7px; border: 1px solid #e7e8df; border-radius: 6px; background: #fcfcf7; }
|
||||
.numberInput:focus-within { border-color: #d6a58b; box-shadow: 0 0 0 2px #f9eadf; }
|
||||
.numberInput input { width: 100%; min-width: 0; border: 0; background: transparent; outline: none; color: #8c6952; text-align: right; font-family: var(--font-geist-mono, monospace); font-size: 11px; -moz-appearance: textfield; }
|
||||
.numberInput input::-webkit-inner-spin-button, .numberInput input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
|
||||
.numberInput span { color: #a6ad9d; font-size: 10px; }
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.toolbar { gap: 7px; padding: 14px 12px 12px; }
|
||||
.toolbarTitle { align-items: flex-start; flex-direction: column; gap: 3px; }
|
||||
.title { font-size: 12px; }
|
||||
.duration { font-size: 10px; }
|
||||
.tools { gap: 6px; }
|
||||
.locate { padding: 0; font-size: 10px !important; }
|
||||
.trackLayout { grid-template-columns: 65px minmax(0, 1fr); }
|
||||
.trackNames > div { padding-left: 10px; gap: 5px; font-size: 10px; }
|
||||
.bottomBar { padding-inline: 12px; }
|
||||
.help { max-width: 160px; text-align: right; font-size: 9px; }
|
||||
.decisionControls { gap: 8px; padding-inline: 12px; }
|
||||
.numberInput { width: 80px; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.speechBlock, .decisionHandle > span { transition: none; }
|
||||
}
|
||||
Reference in New Issue
Block a user