-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtimeline.css
132 lines (114 loc) · 2.33 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
.timeline .timeline-item::after, .timeline .timeline-item::before {
clear: both;
content: '';
display: block;
width: 100%;
}
.timeline {
margin: 30px auto;
padding: 0 10px;
position: relative;
transition: all 0.25s ease-in;
width: 100%;
}
.timeline::before {
background: #fefefe;
content: '';
height: 100%;
left: 50%;
position: absolute;
top: 0;
width: 3px;
}
.timeline::after {
clear: both;
content: '';
display: table;
width: 100%;
}
.timeline a {
color: #fefefe;
font-weight: bold;
transition: all 0.25s ease-in;
}
.timeline a:hover {
box-shadow: 0 1px 0px 0px #fefefe;
transition: all 0.25s ease-in;
}
.timeline .timeline-item {
margin-bottom: 50px;
position: relative;
}
.timeline .timeline-item .timeline-icon {
background: #fefefe;
border-radius: 50%;
height: 50px;
left: 50%;
margin-left: -23px;
overflow: hidden;
position: absolute;
top: 0;
width: 50px;
}
.timeline .timeline-item .timeline-icon img,
.timeline .timeline-item .timeline-icon svg {
left: 14px;
position: relative;
top: 11px;
}
.timeline .timeline-item .timeline-icon svg {
top: 14px;
}
.timeline .timeline-item .timeline-content {
padding: 20px;
text-align: right;
transition: all 0.25s ease-in;
width: 45%;
background: transparent;
}
.timeline .timeline-item .timeline-content p {
color: #fefefe;
}
.timeline .timeline-item .timeline-content p {
font-size: 16px;
line-height: 1.4;
margin-bottom: 0;
}
.timeline .timeline-item .timeline-content .timeline-content-date {
font-size: 16px;
font-weight: bold;
margin-bottom: 0;
}
.timeline .timeline-item .timeline-content .timeline-content-month {
font-size: 0.875rem;
text-transform: uppercase;
font-weight: 400;
}
.timeline .timeline-item .timeline-content.right {
float: right;
text-align: left;
}
@media screen and (max-width: 39.9375em) {
.timeline {
margin: 30px;
padding: 0;
width: 90%;
}
.timeline::before {
left: 0;
}
.timeline .timeline-item .timeline-content {
float: right;
text-align: left;
width: 90%;
}
.timeline .timeline-item .timeline-content::before, .timeline .timeline-item .timeline-content.right::before {
border-left: 0;
border-right: 7px solid #fefefe;
left: 10%;
margin-left: -6px;
}
.timeline .timeline-item .timeline-icon {
left: 0;
}
}