-
Notifications
You must be signed in to change notification settings - Fork 34
/
timeline.css
173 lines (160 loc) · 2.86 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
body{
margin:0;
font-family: sans-serif;
}
*{
box-sizing: border-box;
}
.timeline{
width: 100%;
float: left;
}
.timeline h1{
margin:0;
text-align: center;
padding:50px 30px;
}
.timeline .container{
max-width: 1170px;
margin:50px auto;
}
.timeline .container::after{
content: '';
display: table;
clear: both;
}
.timeline .content{
width: 100%;
float: left;
}
.timeline .content ul{
list-style: none;
margin:0;
padding:0px;
position: relative;
width: 100%;
float: left;
display: block;
}
.timeline .content ul::before{
content: '';
position: absolute;
left:50%;
width: 2px;
margin-left:-1px;
height: 100%;
background-color: #c4c4c4;
}
.timeline .content ul li{
position: relative;
padding:30px 40px;
width: 50%;
display: block;
clear: both;
}
.timeline .content ul li::before{
content: '';
position: absolute;
height: 16px;
width: 16px;
border-radius: 50%;
background-color:#aaa;
/* background-color:#87D0E8; */
top:30px;
margin-left: -8px;
box-shadow: 0 0 0 3px rgb(255,135,36); /* circle outline */
}
.timeline .content ul li:nth-child(odd)::before{
left:100%;
}
.timeline .content ul li:nth-child(even)::before{
left:0%;
}
.timeline .content ul li:nth-child(odd){
float: left;
text-align: right;
}
.timeline .content ul li:nth-child(even){
float: right;
text-align: left;
}
.timeline .content ul li h3{
margin:0;
}
.timeline .content ul li p{
margin:0px;
padding:15px 0px;
line-height: 22px;
}
.timeline h3{
font-family: 'Nunito', sans-serif;
font-size: 1rem;
text-transform: uppercase;
color: #01030A;
word-spacing: 0.2rem;
}
.timeline div{
font-family: 'Nunito', sans-serif;
font-size: 1rem;
/* text-transform: uppercase; */
}
.timeline .content ul li .time{
position: absolute;
padding:10px 20px;
min-width: 140px;
text-align: center;
background-color:#aaa;
/* background-color:#59C9EB; */
/* box-shadow: 0 0 0 3px rgba(3,7,26,0.5); */ /* box outine */
color:#ffffff;
font-size:14px;
border-radius:4px;
top:20px;
display: inline-block;
}
.timeline .content ul li:nth-child(odd) .time{
left:100%;
margin-left: 40px;
}
.timeline .content ul li:nth-child(even) .time{
right:100%;
margin-right: 40px;
}
/*responsive*/
@media(max-width: 767px){
.timeline .content ul::before{
left:30px;
}
.timeline .content ul li{
width: 100%;
}
.timeline .content ul li:nth-child(odd){
text-align: left;
}
.timeline .content ul li:nth-child(odd)::before{
left:30px;
}
.timeline .content ul li:nth-child(even)::before{
left:30px;
}
.timeline .content ul li {
position: relative;
padding: 20px 30px 20px 60px;
}
.timeline .content ul li h3{
padding-top: 20px;
}
.timeline .content ul li .time{
position: relative;
top: auto;
}
.timeline .content ul li:nth-child(odd) .time{
left:0px;
margin-left:0px;
}
.timeline .content ul li:nth-child(even) .time{
left:0px;
right: auto;
margin-right:0px;
}
}