.figure { --dg-bg: #e1f3fa; --dg-panel: #ffffff; --dg-border: #87cce8; --dg-fill: #e1f3fa; --dg-muted: #4b6572; --dg-js: #8787e8; --dg-js-fill: #dcdcf9; --dg-ui: #e88789; --dg-ui-fill: #f9dcdd; --dg-busy: #e8552f; --dg-busy-fill: #fbeedb; --dg-press: #2f6fed; --dg-press-fill: #e4ecfd; margin: 0 0 1.5rem; font-family: var(--ifm-font-family-base); color: #000; } [data-theme='dark'] .figure { --dg-bg: #172430; --dg-panel: #1e2c3a; --dg-border: #3f7c99; --dg-fill: #22384a; --dg-muted: #a9c1d0; --dg-js-fill: #37375f; --dg-ui-fill: #5a3536; --dg-busy-fill: #5a3a2c; --dg-press-fill: #263a63; color: #f2f7fb; } .layout { display: flex; align-items: stretch; gap: 24px; padding: 24px; background-color: var(--dg-bg); } .scene { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; } .lanes { --playhead: 0; position: relative; display: flex; flex-direction: column; gap: 10px; } .playhead { position: absolute; z-index: 2; top: 0; bottom: 0; left: calc(16px + (100% - 32px) * var(--playhead)); width: 2px; background-color: var(--dg-ui); box-shadow: 0 0 6px color-mix(in srgb, var(--dg-ui) 70%, transparent); pointer-events: none; } .lane { --dg-accent: var(--dg-border); position: relative; margin-top: 28px; padding: 14px; border: 2px solid var(--dg-border); background-color: var(--dg-panel); } .js { --dg-accent: var(--dg-js); } .ui { --dg-accent: var(--dg-ui); } .title { position: absolute; bottom: 100%; left: -2px; padding: 2px 12px; border: 2px solid var(--dg-border); border-bottom: none; background-color: var(--dg-panel); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; line-height: 1.6; white-space: nowrap; } .track { position: relative; height: 46px; } .track::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background-color: color-mix(in srgb, var(--dg-accent) 40%, transparent); } .bar { position: absolute; top: 8px; bottom: 8px; width: 1px; } .jsBar { background-color: var(--dg-press); } .uiBar { background-color: var(--dg-busy); } .jsSwatch { background-color: var(--dg-press); } .uiSwatch { background-color: var(--dg-busy); } .longFrame { position: absolute; top: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center; padding: 0 6px; border: 2px solid var(--dg-press); background-color: var(--dg-press-fill); font-family: var(--swm-code-font, var(--ifm-font-family-monospace)); font-size: 0.66rem; white-space: nowrap; } .legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; font-size: 0.78rem; } .legendItem { display: flex; align-items: center; gap: 8px; } .legendItem > dd { margin: 0; } .legendBar { width: 3px; height: 18px; border-radius: 2px; } @media (max-width: 720px) { .layout { flex-direction: column; align-items: center; } }