mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 18:34:02 +00:00
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VVYRAqiQj9Y1V9ZfG1RcDH
332 lines
5.9 KiB
CSS
332 lines
5.9 KiB
CSS
/* ------------------------------------------------------------------ */
|
|
/* Time machine (DESIGN.md §12.5) */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.ribbon.tm {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 0;
|
|
height: auto;
|
|
padding: 6px 6px 4px;
|
|
border-radius: 20px;
|
|
background: rgba(7, 9, 12, 0.78);
|
|
-webkit-backdrop-filter: blur(24px) saturate(1.5);
|
|
backdrop-filter: blur(24px) saturate(1.5);
|
|
box-shadow:
|
|
inset 0 0.5px 0 rgba(255, 255, 255, 0.2),
|
|
inset 0 0 0 0.5px var(--hairline-strong),
|
|
0 12px 40px rgba(0, 0, 0, 0.45);
|
|
}
|
|
|
|
.tm-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-height: 40px;
|
|
}
|
|
|
|
.tm-play {
|
|
flex: none;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
display: grid;
|
|
place-items: center;
|
|
color: #050607;
|
|
background: #f4f7fb;
|
|
font-size: 1.05rem;
|
|
transition:
|
|
transform var(--dur-1) var(--ease-out),
|
|
background var(--dur-2) linear;
|
|
}
|
|
|
|
.tm-play:hover {
|
|
background: #fff;
|
|
}
|
|
|
|
.tm-play:active {
|
|
transform: scale(0.92);
|
|
}
|
|
|
|
.ribbon.tm.is-playing .tm-play {
|
|
background: var(--b-sky);
|
|
}
|
|
|
|
.tm-read {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
line-height: 1.1;
|
|
padding-left: 4px;
|
|
}
|
|
|
|
.tm-delta {
|
|
font-family: var(--mono);
|
|
font-size: 1.0625rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.02em;
|
|
white-space: nowrap;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.ribbon.tm.is-live .tm-delta {
|
|
color: #ff6b61;
|
|
}
|
|
|
|
.ribbon.tm[data-future='true'] .tm-delta {
|
|
color: var(--b-orbit);
|
|
}
|
|
|
|
.tm-abs {
|
|
font-family: var(--mono);
|
|
font-size: 0.6875rem;
|
|
font-weight: 500;
|
|
color: var(--ink-3);
|
|
letter-spacing: 0.05em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tm-speeds {
|
|
flex: none;
|
|
display: flex;
|
|
padding: 2px;
|
|
border-radius: 10px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.tm-speeds button {
|
|
min-width: 34px;
|
|
height: 30px;
|
|
padding: 0 4px;
|
|
border-radius: 8px;
|
|
font-family: var(--mono);
|
|
font-size: 0.6875rem;
|
|
font-weight: 600;
|
|
color: var(--ink-3);
|
|
transition:
|
|
background var(--dur-1) linear,
|
|
color var(--dur-1) linear;
|
|
}
|
|
|
|
.tm-speeds button:hover {
|
|
color: var(--ink);
|
|
}
|
|
|
|
.tm-speeds button[aria-checked='true'] {
|
|
color: #050607;
|
|
background: var(--ink);
|
|
}
|
|
|
|
.tm-clip.icon-btn {
|
|
flex: none;
|
|
width: 34px;
|
|
height: 34px;
|
|
font-size: 1.05rem;
|
|
color: var(--ink-2);
|
|
background: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.tm-clip[aria-pressed='true'] {
|
|
color: #2a1a00;
|
|
background: var(--b-inside);
|
|
}
|
|
|
|
.ribbon.tm .tm-now {
|
|
height: 34px;
|
|
padding: 0 10px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.tm-track.rb-track {
|
|
flex: none;
|
|
height: 52px;
|
|
margin: 2px 0 0;
|
|
border-radius: 12px;
|
|
cursor: grab;
|
|
}
|
|
|
|
.ribbon.tm.scrubbing .tm-track {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.ribbon.tm.is-clipping .tm-track {
|
|
cursor: crosshair;
|
|
}
|
|
|
|
.tm-head.rb-head {
|
|
top: 4px;
|
|
bottom: 4px;
|
|
width: 2px;
|
|
margin-left: -1px;
|
|
background: #fff;
|
|
box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
|
|
}
|
|
|
|
.tm-head i {
|
|
position: absolute;
|
|
top: -2px;
|
|
left: 50%;
|
|
width: 9px;
|
|
height: 6px;
|
|
margin-left: -4.5px;
|
|
background: inherit;
|
|
clip-path: polygon(0 0, 100% 0, 50% 100%);
|
|
}
|
|
|
|
.ribbon.tm.is-live .tm-head {
|
|
background: #ff453a;
|
|
box-shadow: 0 0 12px rgba(255, 69, 58, 0.7);
|
|
}
|
|
|
|
.ribbon.tm.is-playing .tm-head {
|
|
background: var(--b-sky);
|
|
box-shadow: 0 0 14px rgba(163, 216, 255, 0.8);
|
|
animation: none;
|
|
}
|
|
|
|
/* Floats above the whole time machine, so it never covers the readout. */
|
|
.tm-callout {
|
|
position: absolute;
|
|
z-index: 2;
|
|
left: 50%;
|
|
bottom: calc(100% + 8px);
|
|
transform: translateX(-50%);
|
|
max-width: 82%;
|
|
padding: 5px 9px;
|
|
border-radius: 8px;
|
|
background: rgba(8, 10, 14, 0.92);
|
|
box-shadow: inset 0 0 0 0.5px var(--hairline-strong);
|
|
color: var(--ink);
|
|
font-size: 0.6875rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
border-left: 3px solid var(--c, #fff);
|
|
pointer-events: none;
|
|
animation: tm-pop 260ms var(--spring) both;
|
|
}
|
|
|
|
@keyframes tm-pop {
|
|
from {
|
|
opacity: 0;
|
|
transform: translate(-50%, 6px) scale(0.96);
|
|
}
|
|
}
|
|
|
|
.tm-cliprow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 2px 2px;
|
|
}
|
|
|
|
.tm-cliprow[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.tm-cliplen {
|
|
flex: 1;
|
|
min-width: 0;
|
|
color: var(--ink-2);
|
|
font-size: 0.6875rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.tm-cliplen b {
|
|
color: var(--b-inside);
|
|
}
|
|
|
|
.tm-cliprow .pill-btn {
|
|
height: 34px;
|
|
padding: 0 12px;
|
|
font-size: var(--t-foot);
|
|
}
|
|
|
|
.tm-clipgo.pill-btn.primary {
|
|
background: var(--b-inside);
|
|
color: #2a1a00;
|
|
}
|
|
|
|
.tm-clipgo:disabled {
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.ribbon.tm.custom .tm-speeds,
|
|
.ribbon.tm.custom .tm-clip,
|
|
.ribbon.tm.custom .tm-play {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 380px) {
|
|
.tm-speeds button {
|
|
min-width: 28px;
|
|
}
|
|
.tm-delta {
|
|
font-size: 0.9375rem;
|
|
}
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.tm-track:hover {
|
|
background: rgba(255, 255, 255, 0.02);
|
|
}
|
|
}
|
|
|
|
/* The tab-bar accessory takes a row above the tab bar: chrome sits above it. */
|
|
:root.has-accessory {
|
|
--chrome-bottom: calc(var(--tabbar-h) + var(--tabbar-gap) + 66px);
|
|
}
|
|
|
|
.tm-cliplen {
|
|
white-space: normal;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
/* NOW snap: a ring pulses out of the playhead and the NOW pill. */
|
|
.ribbon.tm.snap .tm-head::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 10px;
|
|
height: 10px;
|
|
margin: -5px 0 0 -5px;
|
|
border-radius: 50%;
|
|
box-shadow: 0 0 0 2px rgba(255, 69, 58, 0.9);
|
|
animation: tm-snap 760ms var(--ease-out) both;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ribbon.tm.snap .tm-now {
|
|
animation: tm-now-pop 520ms var(--spring) both;
|
|
}
|
|
|
|
@keyframes tm-snap {
|
|
from {
|
|
opacity: 1;
|
|
transform: scale(0.6);
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
transform: scale(6);
|
|
}
|
|
}
|
|
|
|
@keyframes tm-now-pop {
|
|
40% {
|
|
transform: scale(1.12);
|
|
box-shadow: 0 0 0 4px rgba(255, 69, 58, 0.28);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.ribbon.tm.snap .tm-head::after,
|
|
.ribbon.tm.snap .tm-now {
|
|
animation: none;
|
|
}
|
|
}
|