-
Notifications
You must be signed in to change notification settings - Fork 2
/
timeline.css
93 lines (81 loc) · 1.37 KB
/
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
/**
* Timeline
*/
.timeline {
list-style: none;
margin-left: 1em;
padding-bottom: 1em;
/**
* Line
*/
}
.timeline::before {
content: '';
position: absolute;
top: 0.8em;
left: 0;
bottom: 0;
width: 0.15em;
background: #ddd;
}
.timeline-event {
padding-left: 0.75em;
/**
* Circle
*/
}
.timeline-event:not(:last-child) {
margin-bottom: .25em;
}
.timeline-event:hover .timeline-event-date {
background: navy;
color: #fff;
}
.timeline-event:hover .timeline-event-date::before {
border-right-color: navy;
}
.timeline-event:hover::before {
background: navy;
}
.timeline-event::before {
content: '';
position: absolute;
top: 0;
left: 0;
border-radius: 100%;
width: 0.5em;
height: 0.5em;
background: #999;
border: 0.15em solid #eee;
margin-left: -0.28571em;
margin-top: 0.4em;
}
.timeline-event::after {
content: '';
display: table;
clear: both;
}
.timeline-event-date {
float: left;
background: #666;
color: #fff;
border-radius: 2px;
padding: 0 .35em;
margin-right: 1em;
margin-left: .3em;
}
.timeline-event-date::before {
content: '';
position: absolute;
width: 0;
height: 0;
top: 50%;
left: -.3em;
margin-top: -.3em;
border-right: 0.3em solid #666;
border-top: .3em solid transparent;
border-bottom: .3em solid transparent;
}
.timeline-event-title {
float: left;
}