-
Notifications
You must be signed in to change notification settings - Fork 1
/
simple_timeline.css
93 lines (78 loc) · 1.63 KB
/
simple_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
.simple-timeline ul {
width: 100%;
margin: 0 auto;
position: relative;
display: inline-block;
list-style: none;
background: url('./img/ul-bg.png') center top repeat-y;
padding: 0 !important;
}
.simple-timeline ul li {
display: block;
position: relative;
width: 50%;
clear: both;
margin: 0;
}
.simple-timeline ul li .timeline-text {
width: 65%;
float: left;
font-size: 14px;
line-height: 17px;
margin-left: 2%;
}
.simple-timeline ul li.even {
float: right;
}
.simple-timeline ul li.even > div {
display: block;
float: left;
background: url('./img/li-bg.png') left center no-repeat;
margin-left: -10px;
padding-left: 30px;
}
.simple-timeline .timeline-date {
text-align: right;
margin: 0 0 1% 0;
}
.simple-timeline ul li.even > div .timeline-date {
text-align: left;
}
.simple-timeline ul li.odd {
float: left;
text-align: right;
}
.simple-timeline ul li.odd > div {
display: block;
float: right;
background: url('./img/li-bg.png') right center no-repeat;
margin-right: -10px;
padding-right: 30px;
}
.simple-timeline ul li.odd > div .timeline-text {
float: right;
text-align: right;
margin-right: 2%;
margin-left: 0;
}
.simple-timeline ul .timeline-image {
height: auto;
overflow-x: hidden;
}
.simple-timeline ul li.odd > div .timeline-image {
float: right;
}
.simple-timeline ul li.even > div .timeline-image {
float: left;
}
.simple-timeline ul .timeline-content {
min-width: 125px;
}
.simple-timeline ul li.odd > div .timeline-content {
float: left;
padding-right: 2px;
}
.simple-timeline ul li.even > div .timeline-content {
float: right;
padding-left: 2px;
}