Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
File size: 4,321 Bytes
b8952af f457ce6 b8952af f457ce6 878012f f457ce6 b8952af f457ce6 b8952af 878012f f457ce6 b8952af f457ce6 b8952af f457ce6 878012f f457ce6 878012f b8952af | 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 241 242 243 244 245 246 247 | .timeline {
height: 100%;
display: flex;
align-items: center;
padding: 16px 24px;
gap: 16px;
overflow-x: auto;
scrollbar-width: thin;
scrollbar-color: var(--color-text-muted) transparent;
}
/* Play/Pause button */
.timeline-play-btn {
flex-shrink: 0;
align-self: center;
width: 48px;
height: 48px;
border-radius: 50%;
border: 2px solid var(--color-text-muted);
background: transparent;
color: var(--color-text);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.timeline-play-btn:hover {
border-color: var(--color-text);
background: rgba(255, 255, 255, 0.1);
}
.timeline-play-btn:active {
transform: scale(0.95);
}
.timeline-play-btn .pause-icon {
display: none;
}
.timeline-play-btn.playing .play-icon {
display: none;
}
.timeline-play-btn.playing .pause-icon {
display: block;
}
.timeline-play-btn.playing {
border-color: var(--color-blue);
background: rgba(0, 85, 164, 0.2);
}
.timeline::-webkit-scrollbar {
height: 6px;
}
.timeline::-webkit-scrollbar-track {
background: transparent;
}
.timeline::-webkit-scrollbar-thumb {
background: var(--color-text-muted);
border-radius: 3px;
}
.timeline-months {
display: flex;
align-items: center;
gap: 24px;
padding: 16px 24px 16px 0;
flex-shrink: 0;
}
.timeline-year {
font-size: 1.5rem;
font-weight: 700;
color: var(--color-text);
padding: 0 8px;
opacity: 0.3;
flex-shrink: 0;
}
.timeline-month {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.timeline-month-label {
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--color-text-muted);
white-space: nowrap;
}
.timeline-events {
display: flex;
gap: 10px;
align-items: center;
}
.timeline-event {
position: relative;
width: 16px;
height: 16px;
border-radius: 50%;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
border: 2px solid transparent;
}
.timeline-event::before {
content: '';
position: absolute;
inset: -4px;
border-radius: 50%;
background: radial-gradient(circle, currentColor 0%, transparent 70%);
opacity: 0;
transition: opacity 0.2s;
}
.timeline-event:hover {
transform: scale(1.3);
}
.timeline-event:hover::before {
opacity: 0.3;
}
.timeline-event.selected {
transform: scale(1.4);
border-color: var(--color-white);
}
.timeline-event.selected::before {
opacity: 0.5;
}
/* Event type colors */
.timeline-event.international {
background: var(--color-blue);
color: var(--color-blue);
}
.timeline-event.national {
background: var(--color-red);
color: var(--color-red);
}
.timeline-event.training {
background: var(--color-text-muted);
color: var(--color-text-muted);
}
/* Tooltip - appears below the dot */
.timeline-event-tooltip {
position: absolute;
top: calc(100% + 8px);
left: 50%;
transform: translateX(-50%);
background: var(--color-bg);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 4px;
padding: 4px 8px;
white-space: nowrap;
font-size: 0.65rem;
line-height: 1.4;
opacity: 0;
pointer-events: none;
transition: opacity 0.15s;
z-index: 100;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.timeline-event-tooltip strong {
font-weight: 600;
}
.timeline-event:hover .timeline-event-tooltip {
opacity: 1;
}
.timeline-event-tooltip::after {
content: '';
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
border: 4px solid transparent;
border-bottom-color: var(--color-bg);
}
/* Mobile: horizontal scrolling timeline */
@media (max-width: 768px) {
.timeline {
padding: 4px 16px;
gap: 12px;
}
.timeline-play-btn {
width: 40px;
height: 40px;
}
.timeline-play-btn svg {
width: 16px;
height: 16px;
}
.timeline-months {
gap: 16px;
padding: 4px 16px 4px 0;
}
.timeline-year {
font-size: 1.1rem;
padding: 0 4px;
}
.timeline-month {
gap: 6px;
}
.timeline-month-label {
font-size: 0.6rem;
}
.timeline-events {
gap: 8px;
}
.timeline-event {
width: 14px;
height: 14px;
}
/* Hide tooltip on mobile */
.timeline-event-tooltip {
display: none;
}
}
|