-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
211 lines (185 loc) · 3.5 KB
/
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
:root {
--color1: #7356E2;
}
* {
box-sizing: border-box;
}
html {
height: 100%;
overflow: auto;
}
body {
font-family: Arial;
display: flex;
flex-direction: column;
margin: 0 auto;
height: 100%;
overflow: auto;
}
h1 {
font-size: 48px;
}
header a {
color: #777777;
margin-right: 16px;
text-decoration: none;
}
header div {
margin-bottom: 20px;
}
header {
flex: 0 0 auto;
padding: 0 10vw;
}
#main-content {
padding: 0 10vw;
height: 100%;
flex-grow: 1;
font-size: 14px;
overflow-y: auto;
}
i.fa {
font-size: 18px;
}
.timeline-content {
margin-bottom: 50px;
}
ul {
margin-bottom: 0;
padding-left: 10px;
}
/* The actual timeline (the vertical ruler) */
.timeline {
position: relative;
max-width: 1200px;
margin: 0 auto;
min-height: 250px;
}
/* The actual timeline (the vertical ruler) */
.timeline::after {
content: '';
position: absolute;
width: 2px;
top: 24px;
bottom: -24px;
left: 50%;
margin-left: -1px;
}
/* Item */
.item {
padding: 10px 40px;
position: relative;
background-color: inherit;
width: 50%;
}
/* The circles on the timeline */
.item::after {
content: '';
position: absolute;
width: 15px;
height: 15px;
right: -8px;
top: 24px;
border-radius: 50%;
z-index: 1;
}
/* Place the item to the left */
.left {
left: 0;
}
/* Place the item to the right */
.right {
left: 50%;
}
/* Add arrows to the left item (pointing right) */
.left::before {
content: ' ';
height: 0;
position: absolute;
top: 22px;
width: 0;
z-index: 1;
right: 30px;
border: medium solid var(--color1);
border-width: 10px 0 10px 10px;
border-color: transparent transparent transparent var(--color1);
}
/* Add arrows to the right item (pointing left) */
.right::before {
content: ' ';
height: 0;
position: absolute;
top: 22px;
width: 0;
z-index: 1;
left: 30px;
border: medium solid var(--color1);
border-width: 10px 10px 10px 0;
border-color: transparent var(--color1) transparent transparent;
}
/* Fix the circle for items on the right side */
.right::after {
left: -7px;
}
/* The actual content */
.content {
padding: 15px;
background-color: var(--color1);
position: relative;
border-radius: 6px;
color: white;
}
.color1::after {
background-color: var(--color1);
}
.color1 > .item::after {
background-color: var(--color1);
}
/* -- HOME PAGE -- */
.banner {
margin-top: 32px;
max-width: 450px;
margin: auto;
text-align: center;
}
.banner h2 {
color: var(--color1);
}
.banner p {
line-height: 2;
}
.image-center {
height: 125px;
display: block;
margin-left: auto;
margin-right: auto;
}
/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
/* Place the timelime to the left */
.timeline::after {
left: 25px;
}
/* Full-width items */
.item {
width: 100%;
padding-left: 60px;
padding-right: 20px;
}
/* Make sure that all arrows are pointing leftwards */
.item::before {
left: 50px;
border: medium solid white;
border-width: 10px 10px 10px 0;
border-color: transparent white transparent transparent;
}
/* Make sure all circles are at the same spot */
.left::after,
.right::after {
left: 18px;
}
/* Make all right items behave like the left ones */
.right {
left: 0%;
}
}