-
Notifications
You must be signed in to change notification settings - Fork 9
/
timeline.html
116 lines (106 loc) · 2.54 KB
/
timeline.html
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
<style>
#timeline-container {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 100;
background-color: rgba(0,0,0,.7);
}
#timeline-container.collapsed {
bottom: -70px;
}
#timeline-toggle {
background-color: rgba(0,0,0,.7);
border-top-left-radius: 10px;
border-top-right-radius: 10px;
cursor: pointer;
padding: 3px 20px;
position: absolute;
top: -26px;
transform: translateX(-50%);
left: 50%;
color: #ffffff;
font-weight: bold;
}
.slider-step:hover::after {
content: attr(data-date);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background-color: #333;
color: #fff;
padding: 5px;
border-radius: 3px;
white-space: nowrap;
font-size: 12px;
}
#timeline {
display: flex;
align-items: center;
overflow-x: auto;
height: 50px;
padding: 10px 10px 10px 30px;
color: #fff;
}
.slider-container {
position: relative;
height: 100%;
padding: 0 10px;
}
.slider-step {
position: absolute;
top: 50%;
margin-top: 1px;
transform: translateY(-50%);
width: 15px;
height: 15px;
border-radius: 50%;
background-color: #fff;
cursor: pointer;
}
.slider-step[data-gpt-version]::before {
content: attr(data-gpt-version);
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
background-color: #333;
color: #fff;
padding: 2px 4px;
border-radius: 3px;
white-space: nowrap;
font-size: 12px;
}
.slider-track {
position: absolute;
top: 50%;
width: 90vw;
height: 2px;
background-color: #fff;
}
.slider-thumb {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 20px;
height: 20px;
border-radius: 50%;
background-color: #007bff;
cursor: pointer;
z-index: 5;
}
#slider {
position: relative;
}
</style>
<div id="timeline-container" class="collapsed">
<div id="timeline-toggle" title="Toggle timeline feature">∧</div>
<div id="timeline">
<div id="slider">
<div class="slider-track"></div>
<div class="slider-thumb"></div>
</div>
</div>
</div>