From fa00a9c640cab1d1f04a019bc102f50ab90fad48 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Mon, 11 Jan 2016 13:47:14 -0500 Subject: [PATCH] Improve markup consistency. --- partials/html/section/education.html | 6 +- partials/html/section/employment.html | 4 +- partials/html/section/projects.html | 4 +- partials/html/section/recognition.html | 4 +- partials/html/section/samples.html | 4 +- partials/html/section/service.html | 6 +- partials/html/section/skills.html | 2 +- partials/html/section/speaking.html | 4 +- partials/html/section/writing.html | 9 +- themes/positive/src/positive-doc.xml | 33 ++++- themes/positive/src/positive-html.css | 35 +++-- themes/positive/src/positive-html.html | 185 ++++--------------------- 12 files changed, 113 insertions(+), 183 deletions(-) diff --git a/partials/html/section/education.html b/partials/html/section/education.html index 69daaec..b46fd1f 100644 --- a/partials/html/section/education.html +++ b/partials/html/section/education.html @@ -3,11 +3,13 @@

{{{sectionTitle "Education"}}}

+ {{#> icon-education }}{{/icon-education}}
- {{#> icon-education }}{{/icon-education}} {{#each r.education.history}} +

{{{ institution }}}

- {{dateRange .}} + {{dateRange .}} +
{{/each}}
{{/section}} diff --git a/partials/html/section/employment.html b/partials/html/section/employment.html index 30c2d51..6b376ce 100644 --- a/partials/html/section/employment.html +++ b/partials/html/section/employment.html @@ -3,9 +3,10 @@

{{{sectionTitle "Employment"}}}

-
{{#> icon-employment }}{{/icon-employment}} + {{#each r.employment.history}} +

{{ position }}, {{#if url }} {{ employer }} @@ -22,6 +23,7 @@ {{/each}} {{/if}} +

{{/each}}
{{/section}} diff --git a/partials/html/section/projects.html b/partials/html/section/projects.html index 0f39f41..3887fe5 100644 --- a/partials/html/section/projects.html +++ b/partials/html/section/projects.html @@ -3,9 +3,10 @@

{{{sectionTitle "Projects"}}}

+ {{#> icon-projects }}{{/icon-projects}}
- {{#> icon-projects }}{{/icon-projects}} {{#each r.projects}} +

{{#if role}}{{camelCase role }},{{/if}} {{#if url}} {{ title }} @@ -21,6 +22,7 @@ {{/each}} {{/if}} +

{{/each}}
{{/section}} diff --git a/partials/html/section/recognition.html b/partials/html/section/recognition.html index 1464e7e..dcc526c 100644 --- a/partials/html/section/recognition.html +++ b/partials/html/section/recognition.html @@ -3,11 +3,13 @@

{{{sectionTitle "recognition" "Awards"}}}

-
{{#> icon-recognition }}{{/icon-recognition}} + {{#each r.recognition}} +

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

{{ summary }} +
{{/each}}
{{/section}} diff --git a/partials/html/section/samples.html b/partials/html/section/samples.html index a28c381..7407385 100644 --- a/partials/html/section/samples.html +++ b/partials/html/section/samples.html @@ -3,9 +3,10 @@

{{{sectionTitle "Samples"}}}

-
{{#> icon-samples }}{{/icon-samples}} + {{#each r.samples}} +

{{#if url}} {{ title }} @@ -21,6 +22,7 @@ {{/each}} {{/if}} +

{{/each}}
{{/section}} diff --git a/partials/html/section/service.html b/partials/html/section/service.html index e574f6d..a5a9b1a 100644 --- a/partials/html/section/service.html +++ b/partials/html/section/service.html @@ -3,9 +3,10 @@

{{{sectionTitle "Service"}}}

-
{{#> icon-service }}{{/icon-service}} + {{#each r.service.history}} +

{{ position }}, {{#if url}} {{ organization }} @@ -13,7 +14,7 @@ {{ organization }} {{/if}}

- {{dateRange .}} + {{dateRange .}}

{{{ summary }}}

{{#if highlights}}
    @@ -22,6 +23,7 @@ {{/each}}
{{/if}} +
{{/each}}
{{/section}} diff --git a/partials/html/section/skills.html b/partials/html/section/skills.html index 36a0509..a36a262 100644 --- a/partials/html/section/skills.html +++ b/partials/html/section/skills.html @@ -3,8 +3,8 @@

{{{sectionTitle "Skills"}}}

-
{{#> icon-skills }}{{/icon-skills}} + diff --git a/partials/html/section/speaking.html b/partials/html/section/speaking.html index 4f37309..7b31dc4 100644 --- a/partials/html/section/speaking.html +++ b/partials/html/section/speaking.html @@ -3,11 +3,13 @@

{{{sectionTitle "speaking" "Speaking Engagements"}}}

-
{{#> icon-speaking }}{{/icon-speaking}} + {{#each r.speaking}} +

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

{{ summary }} +
{{/each}}
{{/section}} diff --git a/partials/html/section/writing.html b/partials/html/section/writing.html index 59f8bfa..ca6095d 100644 --- a/partials/html/section/writing.html +++ b/partials/html/section/writing.html @@ -3,12 +3,15 @@

{{{sectionTitle "Writing"}}}

-
{{#> icon-writing }}{{/icon-writing}} + {{#each r.writing }} +

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

- {{# if summary}}{{{ summary }}}{{/if}} + {{ publisher.name }} + {{formatDate safe.date 'YYYY'}} + {{{ summary }}} +
{{/each}}
{{/section}} diff --git a/themes/positive/src/positive-doc.xml b/themes/positive/src/positive-doc.xml index 1cd8c0f..97ebafa 100644 --- a/themes/positive/src/positive-doc.xml +++ b/themes/positive/src/positive-doc.xml @@ -526,12 +526,43 @@ {{/has}} {{#section "skills"}}{{> skills }}{{/section}} + + {{#*inline "header-employment"}} + {{> header-icon _title="EMPLOYMENT" _section="employment" _icon="pict/emp" }} + {{/inline}} {{#section "employment"}}{{> section/employment }}{{/section}} - {{#section "education"}}{{> section/education }}{{/section}} + + {{#*inline "header-projects"}} + {{> header-icon _title="PROJECTS" _section="projects" _icon="pict/star" }} + {{/inline}} {{#section "projects"}}{{> section/projects }}{{/section}} + + {{#*inline "header-education"}} + {{> header-icon _title="EDUCATION" _section="education" _icon="pict/edu" }} + {{/inline}} + {{#section "education"}}{{> section/education }}{{/section}} + + {{#*inline "header-service"}} + {{> header-icon _title="SERVICE" _section="service" _icon="pict/srv" }} + {{/inline}} {{#section "service"}}{{> section/service }}{{/section}} + + {{#*inline "header-writing"}} + {{> header-icon _title="WRITING" _section="writing" _icon="pict/wri" }} + {{/inline}} {{#section "writing"}}{{> section/writing }}{{/section}} + + {{#*inline "header-recognition"}} + {{> header-icon _title="RECOGNITION" _section="recognition" _icon="pict/rec" }} + {{/inline}} {{#section "recognition"}}{{> section/recognition }}{{/section}} + + {{#*inline "header-speaking"}} + {{> header-icon _title="SPEAKING" _section="speaking" _icon="pict/arrow" }} + {{/inline}} + {{#section "speaking"}}{{> section/speaking }}{{/section}} + + diff --git a/themes/positive/src/positive-html.css b/themes/positive/src/positive-html.css index 1eae74d..616c61e 100644 --- a/themes/positive/src/positive-html.css +++ b/themes/positive/src/positive-html.css @@ -33,6 +33,9 @@ h2 { h3 { font-size: 1em; + margin-top: 0; + width: 66%; + float: left; } table { @@ -52,6 +55,10 @@ td:last-child { text-align: justify; /* HTML justification sucks, but in this case... */ } +hr { + display: none; +} + main { padding: 15px; max-width: 800px; @@ -62,12 +69,21 @@ section { margin-top: 1em; } -li { - margin-left: 2em; +section > div { + margin-top: 1em; + overflow: hidden; /* Clear floated children */ } -h3 { - margin-top: 1em; +section > div p { + clear: both; +} + +section > header { + position: relative; +} + +li { + margin-left: 2em; } p, li { @@ -88,12 +104,11 @@ main > header { margin-bottom: 1em; } - -main > header > h1 { +h1 { float: left; } -main > header > h1, .label { +h1, h2, .label { font-size: 2.5em; text-transform: uppercase; font-weight: 300; @@ -105,11 +120,13 @@ main > header > h1, .label { float: right; } -h2 > span.fa { +header > span.fa { text-align: center; margin-right: 3px; position: absolute; width: 40px; + top: 10px; + font-size: 30px; transform: translateX(-110%); color: #DADADA; } @@ -121,5 +138,5 @@ h2 > span.fa { #summary { color: #717171; - font-size: 1.25em; + font-size: 1.25em; } diff --git a/themes/positive/src/positive-html.html b/themes/positive/src/positive-html.html index 130368e..acc4908 100644 --- a/themes/positive/src/positive-html.html +++ b/themes/positive/src/positive-html.html @@ -20,182 +20,47 @@ -{{#has "info.brief"}} + {{#has "info.brief"}}
{{{ r.info.brief }}}
-{{/has}} + {{/has}} -{{#section "skills"}} -
-
-

Skills

-
-
- - - - - - - - {{#each r.skills.sets}} - - - - - {{/each}} - -
{{{sectionTitle "Skills"}}}Keywords
{{{ name }}}{{#each skills}}{{{ this }}} {{/each}}
-
-{{/section}} + {{!}} + {{#*inline "icon-skills"}}{{/inline}} + {{> section/skills }} -{{#section "employment"}} -
-
-

{{{sectionTitle "Employment"}}}

-
+ {{#*inline "icon-employment"}}{{/inline}} + {{> section/employment }} - {{#each r.employment.history }} -

{{ position }}, - {{#if url }} - {{{ employer }}} - {{else}} - {{{ employer }}} - {{/if}} - {{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }}

-

{{{ summary }}}

- {{#if highlights}} - - {{/if}} - {{/each}} + {{#*inline "icon-projects"}}{{/inline}} + {{> section/projects }} -
-{{/section}} + {{#*inline "icon-education"}}{{/inline}} + {{> section/education }} -{{#section 'projects'}} -
-
-
-

{{{sectionTitle "Projects"}}}

-
- - {{#each r.projects}} - {{#if url}} -

{{ role }}, {{ title }}

- {{else}} -

{{ role }}, {{ title }}

- {{/if}} - {{formatDate safe.start 'YYYY-MM' }}—{{formatDate safe.end 'YYYY-MM' }} - {{{ summary }}} - {{#if proj.highlights}} - - {{/if}} - {{/each}} + {{#*inline "icon-service"}}{{/inline}} + {{> section/service }} -
-{{/section}} + {{#*inline "icon-samples"}}{{/inline}} + {{> section/samples }} -{{#section 'samples'}} -
-
-
-

{{{sectionTitle "Samples"}}}

-
- - {{#each r.samples}} - {{#if url}} -

{{ role }}, {{ title }}

- {{else}} -

{{ role }}, {{ title }}

- {{/if}} - {{formatDate safe.start 'YYYY-MM' }}—{{formatDate safe.end 'YYYY-MM' }} - {{{ summary }}} - {{#if proj.highlights}} - - {{/if}} - {{/each}} + {{#*inline "icon-writing"}}{{/inline}} + {{> section/writing }} -
-{{/section}} + {{#*inline "icon-recognition"}}{{/inline}} + {{> section/recognition }} -{{#section "education"}} -
-
-

{{{sectionTitle "Education"}}}

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

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

- {{/each}} + {{#*inline "icon-speaking"}}{{/inline}} + {{> section/speaking }} -
-{{/section}} - -{{#section "service"}} -
-
-

{{{sectionTitle "Service"}}}

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

{{{ position }}}, - {{#if url}} - {{{ organization }}} - {{else}} - {{{ organization }}} - {{/if}} - {{formatDate safe.start 'YYYY' }} — {{formatDate safe.end 'YYYY' }}

-

{{{ summary }}}

- {{#if highlights}} - - {{/if}} - {{/each}} - -
-{{/section}} - -{{#section "writing"}} -
-
-

{{{sectionTitle "Writing"}}}

-
- {{#each r.writing }} -

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

- {{# if summary}}{{{ summary }}}{{/if}} - {{/each}} -
-{{/section}} - -{{#section "recognition"}} -
-
-

{{{"sectionTitle" "recognition" "Awards"}}}

-
- {{#each r.recognition}} -

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

- {{{ summary }}} - {{/each}} -
-{{/section}}