-
Notifications
You must be signed in to change notification settings - Fork 0
/
timeline-styles.css
245 lines (219 loc) · 5.22 KB
/
timeline-styles.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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
/* ----- Timeline page stylesheet ----- */
/* Adapted from w3schools: https://www.w3schools.com/howto/howto_css_timeline.asp */
* {
box-sizing: border-box;
}
/* Button for essay */
.essay-button {
padding: 10px;
background-color: white;
border: 7px outset powderblue;
font-size: 12pt;
font-family: 'Times New Roman', Times, serif;
}
.essay-button:hover {
background-color: powderblue;
cursor: pointer;
}
.essay:hover {
background-color: powderblue;
}
/* Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 10; /* Sit on top */
padding-top: 10px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content */
.modal-content {
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
margin: auto;
padding: 20px;
width: 70%;
}
/* The Close Button */
.close {
display: inline;
color: rgb(200, 200, 200);
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover, .close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
.pdf {
width: 80%;
height: 700px;
}
/* The Modal (background) */
.t-modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 10; /* Sit on top */
padding-top: 115px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content */
.t-modal-content {
overflow: auto; /* Enable scroll if needed */
background-color: #fefefe;
padding: 40px;
margin-top: auto;
margin-left: auto;
margin-right: auto;
margin-bottom: 30px;
width: 80%;
}
/*------- Timeline --------*/
/* The actual timeline (the vertical ruler) */
.timeline {
position: relative;
max-width: 1200px;
margin: 0 auto;
}
/* The actual timeline (the vertical ruler) */
.timeline::after {
content: '';
position: absolute;
width: 6px;
background-color: #708E92;
top: 0;
bottom: 0;
left: 50%;
margin-left: -3px;
}
/* Container around content */
.t-container {
padding: 10px 40px;
position: relative;
width: 50%;
}
/* The circles on the timeline */
.t-container::after {
content: '';
position: absolute;
width: 25px;
height: 25px;
right: 63px;
background-color: rgb(200, 200, 200);
border: 4px solid powderblue;
top: 15px;
border-radius: 50%;
z-index: 1;
}
.t-left {
left: 0;
}
.t-right {
left: 50%;
}
/* Add arrows to the left container (pointing right) */
.t-left::before {
content: " ";
height: 0;
position: absolute;
top: 22px;
width: 0;
z-index: 1;
right: 30px;
border: medium solid powderblue;
border-width: 10px 0 10px 10px;
border-color: transparent transparent transparent powderblue;
}
/* Add arrows to the right container (pointing left) */
.t-right::before {
content: " ";
height: 0;
position: absolute;
top: 22px;
width: 0;
z-index: 1;
left: 30px;
border: medium solid powderblue;
border-width: 10px 10px 10px 0;
border-color: transparent powderblue transparent transparent;
}
/* Fix the circle for containers on the right side */
.t-right::after {
left: -16px;
}
/* Fix the circle for containers on the left side */
.t-left::after {
left: 403px;
}
/* The actual content */
.t-content {
padding: 10px 50px;
border: 7px outset powderblue;
position: relative;
border-radius: 6px;
font-family: 'Times New Roman', Times, serif;
font-size: 12pt;
background-color: white;
}
.t-button:hover {
transform: scale(1.025);
background-color: powderblue;
cursor: pointer;
}
/* 3 equal columns that float next to each other */
.col {
float: left;
width: 33.33%;
}
.contact-author {
padding: 10px;
background-color: white;
border: 7px outset powderblue;
box-sizing: content-box;
text-decoration: none;
color: black;
}
.contact-author:hover {
background-color: powderblue;
}
/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 850px) {
/* Place the timeline to the left */
.timeline::after {
left: 31px;
}
/* Full-width containers */
.t-container {
width: 100%;
padding-left: 70px;
padding-right: 25px;
}
/* Make sure that all arrows are pointing leftwards */
.t-container::before {
left: 60px;
border: medium solid white;
border-width: 10px 10px 10px 0;
border-color: transparent powderblue transparent transparent;
}
/* Make sure all circles are at the same spot */
.t-left::after, .t-right::after {
left: 15px;
}
/* Make all right containers behave like the left ones */
.t-right {
left: 0%;
}
}