3.0.1
Add draggable timeline
This commit is contained in:
+117
-32
@@ -235,50 +235,131 @@
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
/* Time-lapse toggle beneath the dial. Brass pill matching the scope bezel. */
|
||||
.scope-play {
|
||||
display: inline-flex;
|
||||
/* Outer wrapper — matches scope dial width at every breakpoint */
|
||||
.scope-daycycle-wrap {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
width: 100%;
|
||||
max-width: 270px; /* matches .scope-ring desktop size */
|
||||
}
|
||||
|
||||
/* Unified pill: icon on left, bar fills the right */
|
||||
.scope-daycycle-pill {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
padding: 4px 12px;
|
||||
gap: 8px;
|
||||
padding: 4px 7px 4px 10px;
|
||||
background: rgba(40, 28, 10, 0.55);
|
||||
border: 1px solid rgba(200, 146, 42, 0.5);
|
||||
border-radius: 999px;
|
||||
background: rgba(40, 28, 10, 0.55);
|
||||
color: #e8d8c0;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Play/stop button — text + icon, no own background (pill provides it) */
|
||||
.scope-play {
|
||||
flex-shrink: 0;
|
||||
background: none;
|
||||
border: none;
|
||||
color: rgba(220, 195, 145, 0.8);
|
||||
font-family: 'Manrope', sans-serif;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.5px;
|
||||
letter-spacing: 0.4px;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, border-color 0.15s, color 0.15s;
|
||||
}
|
||||
.scope-play:hover {
|
||||
background: rgba(16, 10, 3, 0.8);
|
||||
border-color: rgba(200, 146, 42, 0.85);
|
||||
color: #f5edd6;
|
||||
}
|
||||
.scope-play.is-playing {
|
||||
padding: 4px 14px;
|
||||
background: #241708; /* solid dark so the clock pops */
|
||||
border-color: rgba(200, 146, 42, 0.9);
|
||||
color: #ffd98a;
|
||||
}
|
||||
.scope-play.is-playing:hover {
|
||||
background: #160d03;
|
||||
color: #ffe6b0;
|
||||
padding: 0;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
transition: color 0.15s;
|
||||
}
|
||||
.scope-play:hover { color: #f5edd6; }
|
||||
.scope-play.is-playing { color: #ffd98a; }
|
||||
.scope-play.is-playing:hover { color: #ffe6b0; }
|
||||
.scope-play-icon { font-size: 9px; line-height: 1; }
|
||||
/* While playing, the simulated clock is the readout — same size as the idle
|
||||
label, but monospaced + tabular so the digits don't jitter as they tick. */
|
||||
.scope-play.is-playing .scope-play-label {
|
||||
/* Fixed-width label prevents the bar from shifting when text swaps */
|
||||
.scope-play-label {
|
||||
display: inline-block;
|
||||
min-width: 58px;
|
||||
font-family: 'JetBrains Mono', ui-monospace, monospace;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.5px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
min-width: 40px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Kill all transitions while the user is scrubbing the timeline */
|
||||
body.tl-scrubbing * { transition: none !important; }
|
||||
|
||||
/* Timeline — fills the row beside the play icon, ticks sit below the track */
|
||||
.day-timeline {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
.day-timeline-track {
|
||||
position: relative;
|
||||
height: 16px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid rgba(0, 0, 0, 0.35);
|
||||
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
|
||||
cursor: pointer;
|
||||
overflow: visible;
|
||||
}
|
||||
.day-timeline-thumb {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
width: 3px;
|
||||
height: 26px;
|
||||
background: #fff8e8;
|
||||
border-radius: 2px;
|
||||
transform: translateX(-50%);
|
||||
pointer-events: none;
|
||||
box-shadow: 0 0 6px rgba(255, 230, 150, 0.8), 0 0 0 1px rgba(0,0,0,0.3);
|
||||
}
|
||||
.day-timeline-label {
|
||||
position: absolute;
|
||||
bottom: calc(100% + 5px);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-family: 'JetBrains Mono', ui-monospace, monospace;
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: #ffd98a;
|
||||
white-space: nowrap;
|
||||
pointer-events: none;
|
||||
background: rgba(20, 12, 4, 0.75);
|
||||
padding: 2px 5px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid rgba(200, 146, 42, 0.4);
|
||||
}
|
||||
.day-timeline-sun-marker {
|
||||
position: absolute;
|
||||
top: -13px;
|
||||
font-size: 9px;
|
||||
color: #ffd98a;
|
||||
transform: translateX(-50%);
|
||||
pointer-events: none;
|
||||
line-height: 1;
|
||||
text-shadow: 0 0 4px rgba(0,0,0,0.8);
|
||||
}
|
||||
.day-timeline-ticks {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
/* indent to align with bar start (icon ≈ 10px + gap 8px + pill padding 7px) */
|
||||
padding: 0 8px 0 27px;
|
||||
}
|
||||
.day-timeline-tick {
|
||||
font-family: 'JetBrains Mono', ui-monospace, monospace;
|
||||
font-size: 9px;
|
||||
color: rgba(220, 200, 160, 0.65);
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* The environment selector sits just below the dial, centred under it.
|
||||
@@ -547,6 +628,10 @@
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.scope-daycycle-wrap {
|
||||
max-width: 250px;
|
||||
}
|
||||
|
||||
.scope-env-row {
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user