Repository navigation
Expand file tree
/
Copy pathtimeline.css
More file actions
112 lines (99 loc) · 1.92 KB
/
Copy pathtimeline.css
File metadata and controls
112 lines (99 loc) · 1.92 KB
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
/* timeline (vert. ruler) */
.timeline {
position: relative;
max-width: 1200px;
margin: 0 auto;
}
.timeline::after {
content: '';
position: absolute;
width: 6px;
background-color: #000000;
top: 0;
bottom: 0;
left: 50%;
margin-left: -3px;
}
.tmlcontainer {
padding: 10px 40px;
position: relative;
background-color: inherit;
width: 50%;
}
.tmlcontainer::after {
content: '';
position: absolute;
width: 25px;
height: 25px;
right: -17px;
background-color: #f4f4f4;
border: 4px solid #111;
top: 15px;
border-radius: 50%;
z-index: 1;
}
a {
color: black;
}
.left {
left: 0;
}
.right {
left: 50%;
}
.left::before {
content: " ";
height: 0;
position: absolute;
top: 22px;
width: 0;
z-index: 1;
right: 30px;
border: medium solid #f4f4f4;
border-width: 10px 0 10px 10px;
border-color: transparent transparent transparent #f4f4f4;
}
.right::before {
content: " ";
height: 0;
position: absolute;
top: 22px;
width: 0;
z-index: 1;
left: 30px;
border: medium solid #f4f4f4;
border-width: 10px 10px 10px 0;
border-color: transparent #f4f4f4 transparent transparent;
}
.right::after {
left: -16px;
}
.timeline-content {
padding: 20px 30px;
background-color: #f4f4f4;
border: #111;
position: relative;
border-radius: 6px;
}
@media screen and (max-width: 600px) {
.timeline::after {
left: 31px;
}
.tmlcontainer {
width: 100%;
padding-left: 70px;
padding-right: 25px;
}
.tmlcontainer::before {
left: 60px;
border: medium solid #f4f4f4;
border-width: 10px 10px 10px 0;
border-color: transparent #f4f4f4 transparent transparent;
}
.left::after, .right::after {
left: 15px;
}
.right::before {
left: 60px; /* Fix the left position */
}
}