From 5e6fbf97f9de09e8d4329add559c8f2405a1086d Mon Sep 17 00:00:00 2001 From: hacksalot Date: Fri, 18 Dec 2015 16:10:10 -0500 Subject: [PATCH] Compact: Fix PDF format. --- themes/compact/src/compact-pdf.css | 16 +++++++++++++--- themes/compact/src/compact-pdf.html | 28 ++++++++++++++-------------- 2 files changed, 27 insertions(+), 17 deletions(-) diff --git a/themes/compact/src/compact-pdf.css b/themes/compact/src/compact-pdf.css index 9fe2a2d..0e1740d 100644 --- a/themes/compact/src/compact-pdf.css +++ b/themes/compact/src/compact-pdf.css @@ -1,6 +1,5 @@ - html, body, main, section, header, ul, p, h1, h2, h3 { - font-family: 'Calibri', 'Helvetica Neue', Helvetica, 'Segoe UI', sans-serif; + font-family: Calibri, 'Helvetica Neue', Helvetica, 'Segoe UI', sans-serif; font-size: 12px; margin: 0; padding: 0; display: block; @@ -27,6 +26,11 @@ h3 { font-size: 1em; } +hr { + border: none; + border-top: 1px solid #B3B3B3; +} + main { padding: 15px; max-width: 700px; @@ -60,16 +64,22 @@ thead { main > header { width: 100%; float: left; - margin-bottom: 1em; + margin-bottom: 0; + position: relative; } main > header > h1 { float: left; font-size: 1.5em; + text-transform: uppercase; + line-height: 1; } #contact { float: right; + position: absolute; + right: 0; + bottom: 0; } #contact > div { diff --git a/themes/compact/src/compact-pdf.html b/themes/compact/src/compact-pdf.html index 46ed3ae..ee8c031 100644 --- a/themes/compact/src/compact-pdf.html +++ b/themes/compact/src/compact-pdf.html @@ -10,18 +10,18 @@
-

{{ r.name }}

+

{{{ r.name }}}

- {{#if r.contact.email}}{{/if}} - {{#if r.contact.phone}}
{{ r.contact.phone }}
{{/if}} - {{#if r.contact.website}}{{/if}} + {{#if r.contact.email}}{{/if}} + {{#if r.contact.phone}}
{{ RAW.contact.phone }}
{{/if}} + {{#if r.contact.website}}{{/if}}
{{#if r.info.brief}}
- {{ r.info.brief }} + {{{ r.info.brief }}}
{{/if}} @@ -58,7 +58,7 @@

Employment


- {{#each r.employment.history }} + {{#each r.employment.history}} {{#compare @index 4 operator="<"}}

{{ position }}, {{#if url }} @@ -67,11 +67,11 @@ {{ employer }} {{/if}} {{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }}

-

{{ summary }}

+

{{{ summary }}}

{{#if highlights}} {{/if}} @@ -84,7 +84,7 @@ @@ -101,7 +101,7 @@

Education


{{#each r.education.history}} -

{{ institution }} {{formatDate safe.start 'YYYY' }} — {{formatDate safe.end 'YYYY' }}

+

{{{ institution }}} {{formatDate safe.start 'YYYY' }} — {{formatDate safe.end 'YYYY' }}

{{/each}} @@ -120,11 +120,11 @@ {{ organization }} {{/if}} {{formatDate safe.start 'YYYY' }} — {{formatDate safe.end 'YYYY' }} -

{{ summary }}

+

{{{ summary }}}

{{#if highlights}}
    {{#each highlights}} -
  • {{ this }}
  • +
  • {{{ this }}}
  • {{/each}}
{{/if}} @@ -139,9 +139,9 @@

Writing


{{#each r.writing }} -

{{#if url}}{{ title }}{{else}}{{ title }}{{/if}}, +

{{#if url}}{{{ title }}}{{else}}{{{ title }}}{{/if}}, {{ publisher }} {{formatDate safe.date 'YYYY'}}

- {{# if summary}}{{ summary }}{{/if}} + {{# if summary}}{{{ summary }}}{{/if}} {{/each}} {{/if}}