-
Notifications
You must be signed in to change notification settings - Fork 0
/
style2.css
305 lines (252 loc) · 4.69 KB
/
style2.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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
@charset "utf-8";
/* CSS Document */
* {
box-sizing: border-box;
font-family: Helvetica, sans-serif;
}
/* Set a background color */
header {
background-color: #6CC0B8;
font-size: 1.5em;
padding: 2em;
color: aliceblue;
text-align: center;
}
div.educationAndExperience {
background-color: #2D3135;
padding: 2em;
color: white;
}
div.portfolio {
background-color: white;
padding: 2em;
color: #232629;
}
div.skillsSection {
background-color: #2D3135;
padding: 2em;
color: white;
}
h1 {
text-align: center;
}
h2 {
font-family: Helvetica, sans-serif;
font-size: 1.5em;
}
.responsive {
width: 90%;
height: auto;
}
.graduate {
position: absolute;
right: 1em;
top: 1em;
width: 20%;
height: auto;
}
p.location {
font-style: italic;
}
p.degree {
font-weight: 600;
}
/* The actual timeline (the vertical ruler) */
.timeline {
position: relative;
max-width: 800px;
margin: 0 auto;
}
/* The actual timeline (the vertical ruler) */
.timeline::after {
content: '';
position: absolute;
width: 0.5em;
background-color: white;
top: 0;
bottom: 0;
left: 50%;
margin-left: -0.25em;
}
/* Container around content */
.container {
padding: 0.5em 2em;
position: relative;
background-color: inherit;
width: 50%;
}
.clearLeft {
clear: left;
}
/* The circles on the timeline */
.container::after {
content: '';
position: absolute;
width: 1.5em;
height: 1.5em;
right: -1.05em;
background-color: white;
border: 0.35em solid #29ACA0;
top: 2em;
border-radius: 50%;
z-index: 1;
}
/* Place the container to the left */
.experience {
left: 0;
}
/* Place the container to the right */
.education {
left: 50%;
}
/* Add arrows to the left container (pointing right) */
.experience::before {
content: " ";
height: 0;
position: absolute;
top: 2.5em;
width: 0;
z-index: 1;
right: 1.5em;
border: medium solid white;
border-width: 0.6em 0 0.6em 0.6em;
border-color: transparent transparent transparent white;
}
/* Add arrows to the right container (pointing left) */
.education::before {
content: " ";
height: 0;
position: absolute;
top: 2.5em;
width: 0;
z-index: 0;
left: 1.5em;
border: medium solid white;
border-width: 0.6em 0.6em 0.6em 0;
border-color: transparent white transparent transparent;
}
/* Fix the circle for containers on the right side */
.education::after {
left: -1.05em;
border: 0.35em solid #22D036;
}
/* The actual content */
.content {
padding: 1em 2em;
background-color: white;
position: relative;
border-radius: 1em;
color: black;
}
.portfolio section {
width: 25%;
float: left;
text-align: center;
}
.portfolioElement {
width: 80%;
padding-top: 80%;
margin: 0 auto;
background: #6CC0B8;
}
.portfolio img {
width: 80%;
display: block;
margin: 0 auto;
}
.clearLeft {
clear: left;
}
.proficiencyLevel {
width: 80%;
/* Full width */
height: 1.5em;
background-color: #ddd;
/* Grey background */
border-radius: 1em;
margin: 1em;
}
.programming {
grid-area: programming;
}
.design {
right: 1em;
grid-area: design;
}
.skillGrid {
display: grid;
grid-gap: 1em;
grid-template-columns: 1fr 1fr;
grid-template-areas:
"programming design";
}
.skills {
text-align: left;
/* Right-align text */
padding-left: 1em;
/* Add some right padding */
line-height: 1.5em;
/* Set the line-height to center the text inside the skill bar, and to expand the height of the container */
color: white;
/* White text color */
border-top-left-radius: 1em;
border-bottom-left-radius: 1em;
}
.html {
width: 90%;
background-color: #4CAF50;
}
/* Green */
.css {
width: 80%;
background-color: #2196F3;
}
/* Blue */
.js {
width: 65%;
background-color: #f44336;
}
/* Red */
.php {
width: 60%;
background-color: #E99C1E;
}
/* Dark Grey */
/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {}
@media screen and (max-width: 600px) {
/* Place the timelime to the left */
.timeline::after {
left: 31px;
}
/* Full-width containers */
.container {
width: 100%;
padding-left: 70px;
padding-right: 25px;
}
/* Make sure that all arrows are pointing leftwards */
.container::before {
left: 60px;
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 */
.experience::after,
.education::after {
left: 0.8em;
}
/* Make all right containers behave like the left ones */
.education {
left: 0%;
}
.portfolio section {
width: 100%;
float: none;
}
.portfolioElement {
width: 60%;
padding-top: 60%;
}
}