Repository navigation
Expand file tree
/
Copy pathtimeline.css
More file actions
240 lines (213 loc) · 4.53 KB
/
Copy pathtimeline.css
File metadata and controls
240 lines (213 loc) · 4.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
.timeline-panel {
position: relative;
overflow: hidden;
margin-top: 8px;
background: var(--bg);
border: 1px solid var(--line);
border-radius: 8px;
}
.timeline-rows {
max-height: 320px;
overflow-y: auto;
padding: 0px;
display: flex;
flex-direction: column;
gap: 4px;
}
.timeline-row {
display: grid;
grid-template-columns: 120px 1fr;
min-height: 46px;
background: var(--panel);
}
.hours {
display: flex;
position: relative;
overflow: hidden;
width: 100%;
}
.city-label {
display: flex;
align-items: center;
justify-content: space-between;
gap: 4px;
min-width: 0;
padding: 7px 4px 7px 10px;
border-right: 1px solid var(--line);
}
.city-label-text {
min-width: 0;
flex: 1;
}
.city-name {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
font-weight: 700;
}
.city-time {
display: block;
margin-top: 2px;
color: var(--muted);
font-size: 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.remove-city-btn {
display: grid;
place-items: center;
width: 16px;
height: 16px;
padding: 0;
border: 0;
border-radius: 50%;
background: #edf1ee;
color: var(--muted);
font-size: 12px;
line-height: 1;
cursor: pointer;
flex-shrink: 0;
transition: background-color 0.2s, color 0.2s;
}
.hour-cell {
position: relative;
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 calc(100% / 24);
min-width: 0;
box-sizing: border-box;
border-right: 1px solid rgba(255, 255, 255, .28);
color: #ffffff;
font-size: 11px;
font-weight: 700;
cursor: crosshair;
}
.date-badge {
position: absolute;
top: 3px;
left: 50%;
transform: translateX(-50%);
font-size: 9px;
font-weight: 500;
line-height: 1;
opacity: 0.85;
pointer-events: none;
white-space: nowrap;
}
/*
.hour-cell.is-now::before {
content: "";
position: absolute;
inset: 5px 3px;
border: 2px solid rgba(255, 255, 255, .82);
border-radius: 5px;
pointer-events: none;
}
*/
/* ======================================
Timeline Vertical Lines
====================================== */
/* Shared base for both lines */
.timeline-vline {
position: absolute;
top: 0;
bottom: 0;
width: 0;
pointer-events: none;
z-index: 5;
}
/* Container for multiple scrub lines */
#scrubLinesContainer {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
pointer-events: none;
z-index: 5;
}
/* Group wrapper for a single dynamic scrub line */
.scrub-line-group {
position: absolute;
top: 0;
bottom: 0;
width: 0;
pointer-events: none;
z-index: 5;
}
/* Now Line — always visible, teal solid line (current time) */
.now-line {
border-left: 2.5px solid var(--scrub-color);
box-shadow: 1px 0 6px var(--scrub-shadow);
}
/* Scrub Line — draggable teal dashed line (night area controller) */
.scrub-line {
border-left: 2px dashed var(--scrub-color);
transition: border-color 0.15s, box-shadow 0.15s;
}
.scrub-line.is-dragging {
border-left-style: solid;
border-left-color: var(--scrub-active-color);
box-shadow: 1px 0 8px var(--scrub-active-shadow);
}
/* Scrub Handle — wider invisible hit area centered on scrub line */
.scrub-handle {
position: absolute;
top: 0;
bottom: 0;
width: 20px;
transform: translateX(-10px);
background: transparent;
cursor: ew-resize;
pointer-events: auto;
z-index: 6;
border-radius: 3px;
transition: background-color 0.15s;
}
.scrub-handle:hover,
.scrub-handle.is-dragging {
background: var(--scrub-hover-bg);
}
/* Reset Scrub Line button - small [x] at the top of the scrub line */
.scrub-reset-btn {
position: absolute;
top: -1px;
transform: translateX(-50%) scale(0.7);
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--scrub-reset-btn-bg);
color: #ffffff;
border: 1px solid rgba(255, 255, 255, 0.6);
font-size: 10px;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 10;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
padding: 0;
line-height: 1;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease;
}
.scrub-reset-btn.is-visible {
opacity: 1;
transform: translateX(-50%) scale(1);
pointer-events: auto;
}
.scrub-reset-btn:hover {
background: rgba(222, 107, 35, 0.95);
/* Highlight orange color */
border-color: rgba(255, 255, 255, 0.8);
transform: translateX(-50%) scale(1.15);
}
.scrub-reset-btn:active {
transform: translateX(-50%) scale(0.95);
}