From 0475bb5a9e84a4c2c5caeb1cfe2e6193c62fd140 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Fri, 18 Dec 2015 16:07:01 -0500 Subject: [PATCH] Positive: Fix PDF format. --- themes/positive/src/positive-pdf.css | 65 ++++++++++++++++++++++----- themes/positive/src/positive-pdf.html | 51 ++++++++++----------- 2 files changed, 80 insertions(+), 36 deletions(-) diff --git a/themes/positive/src/positive-pdf.css b/themes/positive/src/positive-pdf.css index cf4fa4c..3a94a5c 100644 --- a/themes/positive/src/positive-pdf.css +++ b/themes/positive/src/positive-pdf.css @@ -1,6 +1,6 @@ html, body, main, section, header, ul, p, h1, h2, h3 { - font-family: Helvetica, sans-serif; - font-size: 12px; + font-family: Calibri, 'Open Sans', sans-serif; + font-size: 14px; margin: 0; padding: 0; display: block; } @@ -18,17 +18,43 @@ a:hover { text-decoration: underline; } +h1 { + text-transform: uppercase; + font-size: +} + h2 { text-transform: uppercase; + color: #898989; + font-size: 2em; + position: relative; + font-weight: 400; } h3 { font-size: 1em; } +table { + width: 100%; + text-transform: uppercase; + font-size: 1.3em; +} + +td:first-child { + text-align: right; + color: #A9A9A9; + /*letter-spacing: 5px;*/ + font-weight: bold; +} + +td:last-child { + text-align: justify; /* HTML justification sucks, but in this case... */ +} + main { padding: 15px; - max-width: 700px; + max-width: 800px; margin: 0 auto; } @@ -65,18 +91,35 @@ main > header { main > header > h1 { float: left; - font-size: 1.5em; -} -#contact { - float: right; } -#contact > div { - display: inline-block; - margin-left: 5px; +main > header > h1, .label { + font-size: 2.5em; + text-transform: uppercase; + font-weight: 300; + font-family: 'Open Sans', 'Segoe UI', sans-serif; +} + +#contact { + clear: both; + float: right; } h2 > span.fa { - text-align: left; + text-align: center; margin-right: 3px; + position: absolute; + width: 40px; + transform: translateX(-110%); + color: #DADADA; +} + +.label { + float: right; + color: #DADADA; +} + +#summary { + color: #717171; + font-size: 1.25em; } diff --git a/themes/positive/src/positive-pdf.html b/themes/positive/src/positive-pdf.html index cf0c941..0b5f5e4 100644 --- a/themes/positive/src/positive-pdf.html +++ b/themes/positive/src/positive-pdf.html @@ -5,24 +5,25 @@ {{ r.name }}
-

{{ r.name }}

-
- {{#if r.contact.email}}{{/if}} - {{#if r.contact.phone}}
{{ r.contact.phone }}
{{/if}} - {{#if r.contact.website}}{{/if}} -
+

{{initialWords r.name }} {{lastWord r.name }}

+ {{{ r.info.label }}} +

+ {{#if r.contact.email}}{{/if}} + {{#if r.contact.phone}}{{{ r.contact.phone }}}{{/if}} + {{#if r.contact.website}}{{{ r.contact.website }}}{{/if}} +

{{#if r.info.brief}}
- {{ r.info.brief }} + {{{ r.info.brief }}}
{{/if}} @@ -30,7 +31,7 @@ {{#if r.skills}}
-

Skills


+

Skills

@@ -42,8 +43,8 @@ {{#each r.skills.sets}} - - + + {{/each}} @@ -56,7 +57,7 @@ {{#if r.employment}}
-

Employment


+

Employment

{{#each r.employment.history }} @@ -68,11 +69,11 @@ {{ employer }} {{/if}} {{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }} -

{{ summary }}

+

{{{ summary }}}

{{#if highlights}}
    {{#each highlights}} -
  • {{ this }}
  • +
  • {{{ this }}}
  • {{/each}}
{{/if}} @@ -81,11 +82,11 @@ {{#compare @index 4 operator="=="}}

Previously...

-

Prior to {{ employer }}, I worked on a range of projects for companies large and small.

+

Prior to {{{ employer }}}, I worked on a range of projects for companies large and small.

    {{/compare}} -
  • {{ position }}, {{ employer }}
  • +
  • {{{ position }}}, {{{ employer }}}
  • {{#if @last}}
@@ -99,10 +100,10 @@ {{# if r.education}}
-

Education


+

Education

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

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

+

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

{{/each}}
@@ -111,7 +112,7 @@ {{#if r.service}}
-

Service


+

Service

{{#each r.service.history}}

{{ position }}, @@ -121,7 +122,7 @@ {{ organization }} {{/if}} {{formatDate safe.start 'YYYY' }} — {{formatDate safe.end 'YYYY' }}

-

{{ summary }}

+

{{{ summary }}}

{{#if highlights}}
    {{#each highlights}} @@ -137,12 +138,12 @@ {{#if r.writing}}
    -

    Writing


    +

    Writing

    {{#each r.writing }}

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

    - {{# if summary}}{{ summary }}{{/if}} + {{{ publisher.name }}} {{formatDate safe.date 'YYYY'}} + {{# if summary}}{{{ summary }}}{{/if}} {{/each}}
    {{/if}} @@ -150,11 +151,11 @@ {{# if r.recognition}}
    -

    Awards


    +

    Awards

    {{#each r.recognition}}

    {{ title }}, {{ from }} {{formatDate safe.date 'YYYY' }}

    - {{ summary }} + {{{ summary }}} {{/each}}
    {{/if}}
{{ name }}{{#each skills}}{{ this }} {{/each}}{{{ name }}}{{#each skills}}{{{ this }}} {{/each}}