Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
| .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; | |
| } | |
| } | |