-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimeline.css
More file actions
146 lines (120 loc) · 2.52 KB
/
timeline.css
File metadata and controls
146 lines (120 loc) · 2.52 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
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
/* CaDCC Timeline Template */
:root {
--yellow: #ffd91e;
--blue: #2c5aa0;
--green: #00ada0;
--pink: #ff2a7f;
--violet: #1a0856;
--gray: #606898;
--black: #111;
}
/* Whole timeline */
.timeline {
position: relative;
left: 60px;
width: 100%;
margin: 0 auto;
}
/* Timeline line */
.timeline::after {
content: '';
position: absolute;
width: 3px;
background: var(--gray);
top: 0;
bottom: 0;
left: 32px;
background: linear-gradient(to bottom, rgba(230, 230, 230, 0) 0%, var(--gray) 10%, var(--gray) 90%, rgba(230, 230, 230, 0) 100%);
}
/* Timeline element container */
.tlcontainer {
left: 16px;
padding: 15px 30px;
position: relative;
background: inherit;
width: 95%;
}
/* Circle */
.tlcontainer::after {
content: '';
position: absolute;
width: 16px;
height: 16px;
top: calc(50% - 8px);
left: 7px;
background: #ffffff;
border: 2px solid var(--gray);
border-radius: 16px;
z-index: 1;
}
/* Line to circle */
.tlcontainer::before {
content: '';
position: absolute;
width: 30px;
height: 2px;
top: calc(50% - 1px);
left: 8px;
right: 16px;
background: var(--gray);
z-index: -1;
}
/* Date */
.tlcontainer .tldate {
position: absolute;
display: inline-block;
top: calc(50% - 8px);
text-align: center;
font-size: 14px;
font-weight: bold;
color: var(--gray);
text-transform: uppercase;
letter-spacing: 1px;
z-index: 1;
left: -75px;
}
.tlcontent {
border-radius: 15px;
box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.1);
}
/* Content box */
.tlcontainer .tlcontent {
padding: 30px;
/*background: inherited;*/
position: relative;
border: 15px solid transparent;
border-width: 0px 0px 0px 10px;
}
/* Alternate CaDCC Colors for each item */
.tlcontainer:nth-child(4n - 1) .tlcontent {
border-left-color: var(--green);
}
.tlcontainer:nth-child(4n - 2) .tlcontent {
border-left-color: var(--pink);
}
.tlcontainer:nth-child(4n - 3) .tlcontent {
border-left-color: var(--yellow);
}
.tlcontainer:nth-child(4n - 0) .tlcontent {
border-left-color: var(--blue);
}
/* Text styles */
.tlcontainer .tlcontent h2 {
margin: 0 0 10px 0;
font-size: 18px;
font-weight: normal;
color: var(--gray);
}
.tlcontainer .tlcontent p {
margin: 0;
font-size: 16px;
line-height: 22px;
color: #000000;
}
/* Interior content */
.tlic {
display: block;
margin-left: auto;
margin-right: auto;
width: 95%;
}