This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathjst-timeline.css
124 lines (110 loc) · 2.32 KB
/
jst-timeline.css
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
.timeline-box {
overflow-y: hidden;
overflow-x: scroll;
position: relative;
width: 100%;
height: 150px;
cursor: grab;
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none;
user-select: none;
overflow: -moz-scrollbars-none;
-ms-overflow-style: none;
scrollbar-width: none; /* Firefox 64 */
}
.timeline-box::-webkit-scrollbar {
width: 0 !important;
}
.timeline-box .line-timeline {
position: absolute;
bottom: 33px;
height: 1px;
width: 100%;
background-color: #aaa;
z-index: 0;
}
@-moz-document url-prefix() {
.timeline-box .line-timeline {
bottom: 49px;
}
}
.timeline-box .father-box {
position: relative;
box-sizing: content-box;
display: flex;
flex-wrap: nowrap;
padding-left: 15px;
}
.timeline-box .father-box .data-box {
display: inline-block;
text-align: center;
position: relative;
white-space: nowrap;
margin-right: 20px;
z-index: 1;
}
.timeline-box .father-box .data-box .data {
display: block;
font-family: "Exo 2", "Regular";
padding: 8px;
font-size: 12px;
color: #fff;
background-color: #076e95;
border-radius: 4px;
box-shadow: 2px 2px 4px #888888;
width: 155px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.timeline-box .father-box .data-box .vertical-line {
width: 1px;
background-color: #aaa;
height: 34px;
margin: 0 auto;
}
.timeline-box .father-box .data-box .ball {
position: absolute;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
width: 8px;
height: 8px;
border: 2px solid #076e95;
background-color: #fff;
border-radius: 50%;
}
.timeline-box .father-box .empty-day-box {
position: relative;
display: inline-block;
min-width: 30px;
width: 30px;
}
.timeline-box .father-box .empty-day-box .empty-day {
position: absolute;
bottom: 35px;
width: 1px;
height: 20px;
left: 50%;
background-color: #aaa;
}
.timeline-box .father-box .empty-day-box .empty-first-day {
bottom: 30px;
height: 30px;
}
.timeline-box .father-box .empty-day-box .date {
position: absolute;
color: #000;
bottom: 0px;
left: -15px;
transition: 0.5s;
}
.timeline-box .father-box .empty-day-box .hide-date {
opacity: 0;
bottom: 40px;
}
.timeline-box .father-box .empty-day-box .show-date {
opacity: 1;
bottom: 60px;
}