This repository has been archived by the owner on Apr 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
curriculum_vitae.css
441 lines (363 loc) · 8.55 KB
/
curriculum_vitae.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
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
@page {
size: a4 portrait;
margin: 1in 0.5in 1in 0.25in;
}
* {
box-sizing: border-box;
}
:root {
--page-width: 8.5in;
--margin-right: 0.5in;
--margin-left: 0.25in;
--content-width: calc(var(--page-width) - var(--margin-right) - var(--margin-left));
--root-font-size: 12pt;
--sidebar-width: 15rem;
--sidebar-background-color: #f2f2f2;
--main-width: calc(var(--content-width) - var(--sidebar-width));
--decorator-horizontal-margin: 0.2in;
--sidebar-horizontal-padding: 0.2in;
/* XXX: using px for very good precision control */
--decorator-outer-offset-top: 10px;
--decorator-outer-offset-left: -5px;
--decorator-border-width: 1px;
--decorator-outer-dim: 9px;
--decorator-border: 1px solid #ccc;
--row-blocks-padding-top: 0.5rem;
--date-block-width: 0.7in;
--main-blocks-title-icon-offset-left: calc(-17pt - 0.25 * var(--root-font-size));
--viewer-background-color: #222222;
--viewer-pages-spacing: 12px;
--viewer-shadow-color: #313131;
}
.pagedjs_page {
--content-area-height: calc(var(--pagedjs-height) - var(--pagedjs-margin-top) - var(--pagedjs-margin-bottom));
--sidebar-background-width: calc(var(--pagedjs-margin-right) + var(--sidebar-width));
}
@page {
background: linear-gradient(to left, var(--sidebar-background-color), var(--sidebar-background-color) var(--sidebar-background-width), white var(--sidebar-background-width));
}
html {
font-size: var(--root-font-size);
}
body {
width: var(--content-width);
font-family: "Open Sans", sans-serif;
font-weight: 300;
line-height: 1.3;
color: #444;
hyphens: auto;
}
h1, h2, h3 {
margin: 0;
color: #000;
}
#main > h1, #aside > h1, #disclaimer > h2 {
display: none;
}
li {
list-style-type: none;
}
a {
color: #4169e1;
text-decoration: none;
}
img {
max-width: 100%;
}
#main {
width: var(--main-width);
padding: 0 0.25in 0 0.25in;
font-size: 0.7rem;
float: left;
}
#aside {
position: relative; /* for disclaimer */
height: var(--content-area-height);
}
.aside {
width: var(--sidebar-width);
padding: 0.6in var(--sidebar-horizontal-padding);
font-size: 0.8rem;
float: right;
position: absolute;
right: 0;
}
/* main */
/** big title **/
h1, h2 {
text-transform: uppercase;
}
#title {
position: relative;
left: 0.55in;
margin: auto 0.55in 0.3in auto;
line-height: 1.2;
}
#title h1 {
font-weight: 300;
font-size: 1.8rem;
line-height: 1.5;
color: #4169e1;
}
#title h3 {
font-size: 0.8rem;
}
/*** categorial blocks ***/
.main-block {
margin-top: 0.1in;
}
#main h2 {
position: relative;
top: var(--row-blocks-padding-top);
/* XXX: 0.5px for aligning fx printing */
left: calc((var(--date-block-width) + var(--decorator-horizontal-margin)));
font-weight: 400;
font-size: 1.1rem;
color: #4169e1;
}
#main h2 > i {
/* use absolute position to prevent icon's width from misaligning title */
/* assigning a fixed width here is no better due to needing to align decorator
line too */
position: absolute;
left: var(--main-blocks-title-icon-offset-left);
z-index: 1; /* over decorator line */
color: #444;
}
#main h2::after { /* extends the decorator line */
height: calc(var(--row-blocks-padding-top) * 2);
position: relative;
top: calc(-1 * var(--row-blocks-padding-top));
/* XXX: 0.5px for aligning fx printing */
left: calc(-1 * var(--decorator-horizontal-margin));
display: block;
border-left: var(--decorator-border);
z-index: 0;
line-height: 0;
font-size: 0;
content: ' ';
}
/**** minor tweaks on the icon fonts ****/
#main h2 > .fa-graduation-cap {
left: calc(var(--main-blocks-title-icon-offset-left) - 2pt);
top: 2pt;
}
#main h2 > .fa-suitcase {
top: 1pt;
}
#main h2 > .fa-folder-open {
top: 1.5pt;
}
/**** individual row blocks (date - decorator - details) ****/
.blocks {
display: flex;
flex-flow: row nowrap;
}
.blocks > div {
padding-top: var(--row-blocks-padding-top);
}
.date {
flex: 0 0 var(--date-block-width);
padding-top: calc(var(--row-blocks-padding-top) + 0.25rem) !important;
padding-right: var(--decorator-horizontal-margin);
font-size: 0.65rem;
text-align: right;
line-height: 1;
max-width: var(--date-block-width);
color: #4169e1;
}
.date span {
display: block;
text-align: center;
}
.date span:nth-child(2)::before {
position: relative;
top: 0.1rem;
right: 0;
display: block;
height: 1rem;
content: '|';
}
.decorator {
flex: 0 0 0;
position: relative;
width: 2pt;
min-height: 100%;
border-left: var(--decorator-border);
}
/*
* XXX: Use two filled circles to achieve the circle-with-white-border effect.
* The normal technique of only using one pseudo element and
* border: 1px solid white; style makes firefox erroneously either:
* 1) overflows the grayshade background (if no background-clip is set), or
* 2) shows decorator line which should've been masked by the white border
*
*/
.decorator::before {
position: absolute;
top: var(--decorator-outer-offset-top);
left: var(--decorator-outer-offset-left);
content: ' ';
display: block;
width: var(--decorator-outer-dim);
height: var(--decorator-outer-dim);
border-radius: calc(var(--decorator-outer-dim) / 2);
background-color: #fff;
}
.decorator::after {
position: absolute;
top: calc(var(--decorator-outer-offset-top) + var(--decorator-border-width));
left: calc(var(--decorator-outer-offset-left) + var(--decorator-border-width));
content: ' ';
display: block;
width: calc(var(--decorator-outer-dim) - (var(--decorator-border-width) * 2));
height: calc(var(--decorator-outer-dim) - (var(--decorator-border-width) * 2));
border-radius: calc((var(--decorator-outer-dim) - (var(--decorator-border-width) * 2)) / 2);
background-color: #555;
}
.blocks:last-child .decorator { /* slightly shortens it */
margin-bottom: 0.25in;
}
/***** fine-tunes on the details block where the real juice is *****/
.details {
flex: 1 0 0;
padding-left: var(--decorator-horizontal-margin);
padding-top: calc(var(--row-blocks-padding-top) - 0.05rem) !important; /* not sure why but this is needed for better alignment */
}
.details header {
color: #000;
}
.details h3 {
font-size: 0.8rem;
}
.main-block:not(.concise) .details div {
margin: 0.18in 0 0.1in 0;
}
.main-block:not(.concise) .blocks:last-child .details div {
margin-bottom: 0;
}
.main-block.concise .details div:not(.concise) {
/* use padding to work around the fact that margin doesn't affect floated
neighboring elements */
padding: 0.05in 0 0.07in 0;
}
.details .place {
float: left;
font-size: 0.75rem;
}
.details .location {
float: right;
color: #4169e1;
}
.details div {
clear: both;
}
/***** fine-tunes on the lists... *****/
#main ul {
padding-left: 0.07in;
margin: 0.08in 0;
}
#main li {
margin: 0 0 0.025in 0;
}
/****** customize list symbol style ******/
#main li::before {
position: relative;
margin-left: -4.25pt;
content: '• ';
}
.aside li::before {
content: none;
}
.details .concise ul {
margin: 0 !important;
-webkit-columns: 2;
-moz-columns: 2;
columns: 2;
}
.details .concise li {
margin: 0 !important;
}
.details .concise li {
margin-left: 0 !important;
}
/* sidebar */
.aside h2 {
font-weight: 400;
font-size: 1.1rem;
}
.aside .level2 {
margin-top: 0.5in;
}
#contact {
color: #000;
}
#contact a {
color: #000;
}
#contact ul {
margin-top: 0.05in;
padding-left: 0;
font-weight: 400;
line-height: 1.75;
}
#contact li > i {
width: 0.9rem; /* for text alignment */
text-align: right;
}
#skills {
line-height: 1.5;
font-size: 1.rem;
}
#skills ul {
margin: 0.05in 0 0.15in;
padding: 0;
}
#disclaimer {
position: absolute;
bottom: 0;
right: var(--sidebar-horizontal-padding);
font-size: 0.75rem;
font-style: italic;
line-height: 1.1;
text-align: right;
color: #777;
}
#disclaimer code {
color: #666;
font-family: "Source Code Pro";
font-weight: 400;
font-style: normal;
}
/* Paged.js viewer */
@media screen {
body {
background-color: var(--viewer-background-color);
margin: 0; /* for mobile */
width: calc(var(--pagedjs-width) + 2 * var(--viewer-pages-spacing)); /* for mobile */
}
.pagedjs_pages {
max-width: var(--pagedjs-width);
margin: 0 auto;
display: flex;
flex-direction: column;
}
.pagedjs_page {
box-shadow: 0 0 calc(0.66667 * var(--viewer-pages-spacing)) var(--viewer-shadow-color);
margin: var(--viewer-pages-spacing) 0;
}
}
@media screen and (min-width: 8.5in) {
/* not a mobile */
body {
margin: auto;
width: unset;
}
}
#picture {
border-style: solid;
border-width: 2pt;
border-color: #4169e1;
border-radius: 50%;
padding: 5pt;
}