json_resume 0.3.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -3
  3. data/bin/json_resume +33 -9
  4. data/examples/prateek_cv.json +1 -1
  5. data/extras/resume_html/core-page.html +18 -0
  6. data/extras/resume_html/index.html +33 -0
  7. data/extras/resume_html/public/css/book.png +0 -0
  8. data/extras/resume_html/public/css/bookmark.png +0 -0
  9. data/extras/resume_html/public/css/bootstrap.min.css +7 -0
  10. data/extras/resume_html/public/css/briefcase.png +0 -0
  11. data/extras/resume_html/public/css/edit.png +0 -0
  12. data/extras/resume_html/public/css/envelope.png +0 -0
  13. data/extras/resume_html/public/css/file.png +0 -0
  14. data/extras/resume_html/public/css/gear.png +0 -0
  15. data/extras/resume_html/public/css/github.png +0 -0
  16. data/extras/resume_html/public/css/globe.png +0 -0
  17. data/extras/resume_html/public/css/icons.data.png.css +96 -0
  18. data/extras/resume_html/public/css/icons.data.svg.css +95 -0
  19. data/extras/resume_html/public/css/icons.fallback.css +96 -0
  20. data/extras/resume_html/public/css/institution.png +0 -0
  21. data/extras/resume_html/public/css/mobile.css +27 -0
  22. data/extras/resume_html/public/css/mortar-board.png +0 -0
  23. data/extras/resume_html/public/css/music.png +0 -0
  24. data/extras/resume_html/public/css/phone.png +0 -0
  25. data/extras/resume_html/public/css/screen.css +527 -0
  26. data/extras/resume_html/public/css/star-o.png +0 -0
  27. data/extras/resume_html/public/css/th-list.png +0 -0
  28. data/extras/resume_html/public/css/user.png +0 -0
  29. data/extras/resume_html/public/images/resume.png +0 -0
  30. data/extras/resume_html/public/js/grunticon.js +2 -0
  31. data/json_resume.gemspec +5 -4
  32. data/lib/json_resume/formatter.rb +92 -92
  33. data/lib/json_resume/formatter_html.rb +1 -1
  34. data/lib/json_resume/formatter_latex.rb +12 -1
  35. data/lib/json_resume/json_resume.rb +2 -2
  36. data/lib/json_resume/version.rb +1 -1
  37. data/locale/en.yml +45 -0
  38. data/locale/es.yml +45 -0
  39. data/locale/pt.yml +45 -0
  40. data/templates/classic_tex.mustache +209 -0
  41. data/templates/default_html.mustache +80 -48
  42. data/templates/default_md.mustache +20 -20
  43. data/templates/default_tex.mustache +20 -21
  44. metadata +70 -27
  45. data/extras/resume_html.tar.gz +0 -0
@@ -0,0 +1,96 @@
1
+
2
+ .icon-book {
3
+ background-image: url('png/book.png');
4
+ background-repeat: no-repeat;
5
+ }
6
+
7
+
8
+ .icon-bookmark {
9
+ background-image: url('png/bookmark.png');
10
+ background-repeat: no-repeat;
11
+ }
12
+
13
+
14
+ .icon-briefcase {
15
+ background-image: url('png/briefcase.png');
16
+ background-repeat: no-repeat;
17
+ }
18
+
19
+
20
+ .icon-edit {
21
+ background-image: url('png/edit.png');
22
+ background-repeat: no-repeat;
23
+ }
24
+
25
+
26
+ .icon-envelope {
27
+ background-image: url('png/envelope.png');
28
+ background-repeat: no-repeat;
29
+ }
30
+
31
+
32
+ .icon-file {
33
+ background-image: url('png/file.png');
34
+ background-repeat: no-repeat;
35
+ }
36
+
37
+
38
+ .icon-gear {
39
+ background-image: url('png/gear.png');
40
+ background-repeat: no-repeat;
41
+ }
42
+
43
+
44
+ .icon-github {
45
+ background-image: url('png/github.png');
46
+ background-repeat: no-repeat;
47
+ }
48
+
49
+
50
+ .icon-globe {
51
+ background-image: url('png/globe.png');
52
+ background-repeat: no-repeat;
53
+ }
54
+
55
+
56
+ .icon-institution {
57
+ background-image: url('png/institution.png');
58
+ background-repeat: no-repeat;
59
+ }
60
+
61
+
62
+ .icon-mortar-board {
63
+ background-image: url('png/mortar-board.png');
64
+ background-repeat: no-repeat;
65
+ }
66
+
67
+
68
+ .icon-music {
69
+ background-image: url('png/music.png');
70
+ background-repeat: no-repeat;
71
+ }
72
+
73
+
74
+ .icon-phone {
75
+ background-image: url('png/phone.png');
76
+ background-repeat: no-repeat;
77
+ }
78
+
79
+
80
+ .icon-star-o {
81
+ background-image: url('png/star-o.png');
82
+ background-repeat: no-repeat;
83
+ }
84
+
85
+
86
+ .icon-th-list {
87
+ background-image: url('png/th-list.png');
88
+ background-repeat: no-repeat;
89
+ }
90
+
91
+
92
+ .icon-user {
93
+ background-image: url('png/user.png');
94
+ background-repeat: no-repeat;
95
+ }
96
+
@@ -0,0 +1,27 @@
1
+ /*added for #PAGE */
2
+ @media screen and (max-width: 800px){
3
+ #page {
4
+ padding: 0.5em 1em 0.5em 1em;
5
+ }
6
+ #site {
7
+ max-width: 46em;
8
+ margin: 0em auto 0em auto;
9
+ }
10
+ #bottom-contact {
11
+ display: inline;
12
+ }
13
+ #top-contact {
14
+ display: none;
15
+ }
16
+ #mobile-table {
17
+ display: inline;
18
+ }
19
+ #desktop-table {
20
+ display: none;
21
+ }
22
+ .contact-details {
23
+ float: right;
24
+ width: 50em;
25
+ font-size: 80%;
26
+ }
27
+ }
@@ -0,0 +1,527 @@
1
+ /* @override http://mark.reid.dev/files/css/screen.css */
2
+
3
+ /* @override
4
+ http://mark.reid.dev/files/css/screen.css
5
+ http://mark.reid.name/files/css/screen.css
6
+ */
7
+
8
+ /* screen.css
9
+ *
10
+ * A clean, simple stylesheet that aims for
11
+ * a consistent vertical rhythm.
12
+ *
13
+ * Base font height: 16px
14
+ * Base line length: 24px
15
+ *
16
+ * AUTHOR: Mark Reid <mark@reid.name>
17
+ */
18
+
19
+ /* @group Reset */
20
+ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,p,blockquote,th,td,abbr { margin:0; padding:0;}
21
+ /* @end */
22
+
23
+ body {
24
+ font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", "times new roman", Georgia, serif;
25
+ background-color: whitesmoke;
26
+ background-position: center -18em;
27
+ background-repeat: repeat-x;
28
+ }
29
+
30
+ /* Hack via Joel Spolsky to make image rescaling nicer in IE */
31
+ img { -ms-interpolation-mode:bicubic; }
32
+
33
+ /* IE6 ignores this and uses default size of 16pt */
34
+ html>body { font-size:16px; }
35
+ p { margin: 0 0 1.5em 0; text-align: justify; }
36
+
37
+ a {
38
+ text-decoration: none;
39
+ color: inherit;
40
+ font-weight: bold;
41
+ }
42
+ a:hover { text-decoration: underline; color: #33f; }
43
+ a.pdf:before {
44
+ margin-right: 1em;
45
+ content: url(/files/css/icon_pdf.gif); }
46
+
47
+ h1,h2,h3,h4 {
48
+ line-height:1em;
49
+ font-size:1.5em;
50
+ font-weight: normal;
51
+ clear: left;
52
+ font-family: 'lucida grande', sans-serif;
53
+ }
54
+ h1 { margin-bottom: 1em; }
55
+ h2 {
56
+ font-size: 100%;
57
+ line-height: 1.5em;
58
+ margin:0.5em 0 0.5em 0;
59
+ font-weight:bold;
60
+ }
61
+
62
+ hr {
63
+ border-top: 1px solid silver;
64
+ border-bottom: none;
65
+ padding: 0;
66
+ margin: 1.46em 0 0 0;
67
+ }
68
+
69
+ sup { line-height: 1ex; }
70
+
71
+ #site {
72
+ max-width: 46em;
73
+ margin: 1.5em auto 3em auto;
74
+ line-height:1.5em;
75
+ }
76
+
77
+ #page {
78
+ background: white;
79
+ padding: 3em 3em 1.5em 3em;
80
+ }
81
+ #bottom-contact {
82
+ display: none;
83
+ }
84
+ #mobile-table {
85
+ display: none;
86
+ }
87
+
88
+ .icon-square {
89
+ width: 16px;
90
+ height: 16px;
91
+ display:inline-block;
92
+
93
+ }
94
+
95
+ .icon-rect {
96
+ width: 21px;
97
+ height: 16px;
98
+ display:inline-block;
99
+
100
+ }
101
+
102
+ .icon-star {
103
+ width: 9px;
104
+ height: 9px;
105
+ display:inline-block;
106
+
107
+ }
108
+
109
+ /* @group FancyFirst */
110
+ .emphnext + p:first-letter, p.emphfirst:first-letter {
111
+ font-size: 48px;
112
+ padding: 0 0.15em 0 0;
113
+ margin: 0.05em 0 -0.15em 0;
114
+ line-height: 1em;
115
+ float: left;
116
+ }
117
+
118
+ .emphnext + p:first-line, p.emphfirst:first-line {
119
+ font-variant: small-caps;
120
+ font-size: larger;
121
+ }
122
+ /* @end */
123
+
124
+ .right { float: right; clear: left; }
125
+ .left { float: left; clear: right; }
126
+ .inset {
127
+ border: 1px solid silver;
128
+ padding: 2px;
129
+ margin: 0em 0.8em 0.8em 0.8em;
130
+ }
131
+ .right.inset { margin-right: 0 !important; }
132
+ .left.inset { margin-left: 0 !important; }
133
+ .quiet {
134
+ color: grey;
135
+ font-size: 0.875em;
136
+ line-height: 1.714em;
137
+ }
138
+ blockquote {
139
+ padding: 0 2.8em;
140
+ margin: 1.714em 0;
141
+ color: #444;
142
+ font-size: 0.875em;
143
+ line-height: 1.714em;
144
+ }
145
+
146
+ .note {
147
+ padding-top: 0.5em;
148
+ background-color: #fafaff;
149
+ border-top: 1px solid silver;
150
+ border-bottom: 1px solid silver;
151
+ }
152
+ /* @group Table */
153
+ table.neat {
154
+ width: 80%;
155
+ margin: 1.5em auto 1.5em auto;
156
+ table-layout: fixed;
157
+ border-spacing: 0;
158
+ }
159
+ table.neat tr { text-align: center; }
160
+ table.neat th { font-weight: normal; background-color: #eeeeee; }
161
+ table.neat td { background-color: white; }
162
+ table.neat th.title { border-bottom: 1px solid gray; border-top: 1px solid gray; vertical-align: bottom; background-color: lightgrey; }
163
+ caption {
164
+ color: #333;
165
+ font-size: 0.875em;
166
+ margin: 0.875em auto 0 auto;
167
+ line-height: 1.14em;
168
+ text-align: justify;
169
+ }
170
+
171
+ /* @end */
172
+
173
+ /* @group Lists */
174
+ ul {
175
+ /* margin-top: 1.5em;
176
+ margin-bottom: 1.5em;
177
+ */
178
+ line-height: 1.3em;
179
+ padding-left: 2.5em;
180
+ }
181
+ ul li {
182
+ list-style-type: square;
183
+ list-style-position: outside;
184
+ }
185
+ ul li ul li {
186
+ font-size: 80%;
187
+ list-style-type: circle;
188
+ list-style-position: outside;
189
+ }
190
+
191
+ ol li {
192
+ list-style-type: decimal;
193
+ list-style-position: inside;
194
+ }
195
+ dt { font-weight: bold;}
196
+ dd { margin: 0 0 1.5em 0; text-align: justify; }
197
+
198
+ ul.compact { margin: 0; padding: 0;}
199
+ ul.compact li { list-style: ;
200
+ list-style-type: square;
201
+ list-style-position: inside;
202
+ }
203
+ ul.compact li span.date {
204
+ display: none;
205
+ color: grey;
206
+ width: 20%;
207
+ }
208
+ ul.compact li a {
209
+ width: 70%;
210
+ }
211
+ /* @end */
212
+
213
+ /* @group Header */
214
+ #header, #header a { color: silver; }
215
+ #header .hover { color: transparent; }
216
+ #header:hover a { color: black; text-shadow: #aaa 2px 2px 3px; }
217
+ #header:hover a #github-header { opacity: 1.0 }
218
+ #header:hover a:hover { text-decoration: none; }
219
+ #header a:hover .hover { color: silver; }
220
+ #header {
221
+ position: relative;
222
+ font-variant: small-caps;
223
+ line-height: 1em;
224
+ margin-top: 0em;
225
+ margin-bottom: 0em;
226
+ }
227
+ #header h1 {
228
+ font-family: Palatino, georgia, "times new roman", serif;
229
+ margin-bottom: 0;
230
+ line-height: 0.9em;
231
+ display: block;
232
+ font-weight: normal;
233
+ }
234
+
235
+ #header ul {
236
+ position: absolute;
237
+ top: 0;
238
+ right: 0;
239
+ font-size: 100%;
240
+ line-height: 1.6em;
241
+ display: block;
242
+ margin: 0;
243
+ width: 50%;
244
+ text-align: right;
245
+ }
246
+ #header ul li { display: inline; }
247
+ #header ul li a {
248
+ padding: 0.4em 0.3em 0 0.3em;
249
+ display: inline;
250
+ }
251
+ #header ul li a:hover {
252
+ color: blue;
253
+ border-bottom: 2px solid blue;
254
+ }
255
+ #header .byline {
256
+ color: silver;
257
+ font-size: 10pt;
258
+ line-height: 75%
259
+ }
260
+ #header:hover .byline a { color: silver; text-shadow: none; }
261
+ #header:hover .byline a:hover { color: black; text-shadow: #aaa 1px 1px 2px;}
262
+
263
+ body#Work #header a.work,
264
+ body#Home #header a.home,
265
+ body#Play #header a.play,
266
+ body#Info #header a.info,
267
+ body#Code #header a.code,
268
+ body#Past #header a.past,
269
+ body#Kith #header a.kith
270
+ {
271
+ border-bottom: 2px solid silver;
272
+ }
273
+
274
+ /* @end */
275
+
276
+ /* @group Footnotes */
277
+ .footnotes { color: grey; }
278
+ .footnotes:hover { color: black; }
279
+ .footnotes ol li {
280
+ list-style-type: decimal;
281
+ list-style-position: inside;
282
+ font-size: 75%;
283
+ line-height: 1.5em;
284
+ }
285
+ .footnotes ol li > a { display: none; }
286
+ /* @end */
287
+
288
+ /* @group Sections */
289
+ .section {
290
+ font-size: 87.5%;
291
+ line-height: 1.43em;
292
+ margin-bottom: 1.43em;
293
+ margin-top: 1.43em;
294
+ margin-left: 7.5em;
295
+ padding-right: 3em;
296
+ }
297
+ .section h1 {
298
+ font-family: Palatino, georgia, serif;
299
+ font-size: 100%;
300
+ line-height: 1.43em;
301
+ position: absolute;
302
+ width: 6em;
303
+ max-width: 6em;
304
+ margin-left: -7.5em;
305
+ font-weight: bold;
306
+ font-variant: small-caps;
307
+ }
308
+ .section p { margin-bottom: 1.43em; }
309
+
310
+ /* @end */
311
+
312
+ .list .title { font-weight: bold; }
313
+ p.line { position: relative; margin: 0; }
314
+ p.excerpt { margin: 0; }
315
+ .comments { font-size: smaller; position: absolute; color: silver; right: 0; top: 0; }
316
+ .excerpt { color: black; }
317
+
318
+ /* @group Signature */
319
+ .signature {
320
+ margin-top: 3em;
321
+ position: relative;
322
+ }
323
+ .signature .author {
324
+ font-variant: small-caps;
325
+ font-style: normal;
326
+ color: black;
327
+ display: block;
328
+ margin-bottom: 1.5em;
329
+ }
330
+ .signature .date {
331
+ font-size: 87.5%;
332
+ line-height: 1.5em;
333
+ display: block;
334
+ font-variant: small-caps;
335
+ font-style: normal;
336
+ position: absolute;
337
+ right: 0;
338
+ top: 0;
339
+ }
340
+ .signature .location {
341
+ display: block;
342
+ font-size: 87.5%;
343
+ line-height: 1.5em;
344
+ position: absolute;
345
+ right: 0;
346
+ top: 1.5em;
347
+ }
348
+ /* @end */
349
+
350
+ /* @group Code */
351
+ pre {
352
+ margin: 1em 0 1.5em 0;
353
+ font-size: 0.75em; /* Hack to make code look same size as body font */
354
+ line-height: 1.5em;
355
+ color: #111;
356
+ background: #fffff0;
357
+ border: 1px solid #ddc;
358
+ padding: 0.5em 1em;
359
+ overflow: hidden;
360
+
361
+ /* Experimental CSS3 stuff */
362
+ box-shadow: 1px 1px 6px #ccc;
363
+ -webkit-box-shadow: 1px 1px 6px #ccc;
364
+ -moz-box-shadow: 1px 1px 6px #ccc;
365
+ }
366
+ pre:hover {
367
+ border-right: none;
368
+ overflow: visible;
369
+ }
370
+ code {
371
+ font-size: 1em;
372
+ background-color: #f7f7ff;
373
+ line-height: 1.4em;
374
+ }
375
+ pre > code {
376
+ background-color: transparent;
377
+ }
378
+ /* @end */
379
+
380
+
381
+ /* @group LibraryThing */
382
+ span.LTtitle { display: none; }
383
+ div.LTitem { display: inline; margin-right: 0.7em; }
384
+ div.LTprovided { display: none; }
385
+ /* @end */
386
+
387
+ /* @group Footer */
388
+ #footer {
389
+ margin-top: 0;
390
+ color: grey;
391
+ font-size: 87.5%;
392
+ line-height: 1.3em;
393
+ }
394
+ #footer address {
395
+ position: relative;
396
+ margin: .5em 0 0 0;
397
+ text-align: right;
398
+ }
399
+ #footer a {
400
+ font-variant: small-caps;
401
+ font-style: normal;
402
+ color: #77d;
403
+ text-decoration: none;
404
+ }
405
+ #footer .copyright {
406
+ position: absolute;
407
+ left: 0;
408
+ text-align: left;
409
+ display: block;
410
+ }
411
+ #footer .engine {
412
+ position: absolute;
413
+ text-align: right;
414
+ display: block;
415
+ right: 0;
416
+ }
417
+ /* @end */
418
+
419
+
420
+ /* @group Figures and images */
421
+ dl.figure {
422
+ margin-top: 1.5em;
423
+ margin-bottom: 1.5em;
424
+ text-align: center;
425
+ }
426
+
427
+ dl.figure dd {
428
+ color: #333;
429
+ font-size: 0.875em;
430
+ margin: 0.875em auto 0 auto;
431
+ line-height: 1.14em;
432
+ text-align: justify;
433
+ width: 85%;
434
+ }
435
+ /* @end */
436
+
437
+ /* @group Equations */
438
+ div.maruku-equation { display: block ;text-align: center; }
439
+ div.maruku-equation img.maruku-png { position: relative; top: -0.75em;}
440
+ span.maruku-inline { }
441
+ img.maruku-png { }
442
+ /* @end */
443
+
444
+ /* .prev-next */
445
+ .prev-next {
446
+ position:relative;
447
+ }
448
+ .prev-next .next{
449
+ float:right;
450
+ }
451
+
452
+ /* tag_box ======================================================== */
453
+ .tag_box {
454
+ list-style:none;
455
+ margin:0;
456
+ padding:5px 0 ;
457
+ overflow:hidden;
458
+ }
459
+ .tag_box li {
460
+ list-style:none;
461
+ line-height:1.8em;
462
+ }
463
+ .tag_box.inline li {
464
+ float:left;
465
+ }
466
+ .tag_box a {
467
+ padding: 3px 6px;
468
+ margin: 2px;
469
+ background: #eee;
470
+ border-radius: 3px;
471
+ border:1px dashed #ccc;
472
+ text-decoration:none;
473
+ }
474
+ .tag_box a span{
475
+ vertical-align:super;
476
+ font-size:0.8em;
477
+ }
478
+ .tag_box a.active {
479
+ background:#57A957;
480
+ border:1px solid #4C964D;
481
+ color:#FFF;
482
+ }
483
+
484
+ .contact-details {
485
+ float: right;
486
+ width: 14em;
487
+ font-size: 80%;
488
+ }
489
+
490
+ .emphnext {
491
+ float: left;
492
+ margin-bottom: 0;
493
+ }
494
+
495
+ .stars {
496
+ float: left;
497
+ font-size: 70%;
498
+ }
499
+
500
+ .icon-star-o {
501
+ background-size: 9px;
502
+ vertical-align: middle;
503
+ width: 9px;
504
+ height: 9px;
505
+ }
506
+
507
+ .languages {
508
+ line-height: 1.6em;
509
+ }
510
+
511
+ .education {
512
+ font-size: 90%;
513
+ }
514
+
515
+ .right {
516
+ float: right;
517
+ }
518
+
519
+ .gray {
520
+ opacity: 0.3
521
+ }
522
+
523
+ @media print {
524
+ a[href]:after {
525
+ content: none !important;
526
+ }
527
+ }