From d1cb8b62f39beac493a89141fc5ea222fd0fb45b Mon Sep 17 00:00:00 2001 From: Rioting Pacifist Date: Tue, 10 Mar 2020 15:44:28 +0000 Subject: [PATCH] Switch to using summary/details for sections * This makes them foldable * Probably some code from other changes in here too --- src/partials/about.html | 12 ++++++++---- src/partials/education.html | 14 +++++++++----- src/partials/experience.html | 12 ++++++++---- src/partials/interests.html | 12 ++++++++---- src/partials/projects.html | 20 ++++++++++++-------- src/partials/recognition.html | 10 ++++++---- src/partials/references.html | 8 +++++--- src/partials/skills.html | 33 ++++++++++++--------------------- src/partials/style.html | 19 +++++++++++++++++++ src/partials/volunteer.html | 10 ++++++---- 10 files changed, 93 insertions(+), 57 deletions(-) diff --git a/src/partials/about.html b/src/partials/about.html index 161f6bf..6ea0e2d 100644 --- a/src/partials/about.html +++ b/src/partials/about.html @@ -1,13 +1,17 @@ {{#if r.info.brief}} -
-
About
+
+ +
About
+
+

About

+
+
-

About

{{{r.info.brief}}}

-
+ {{/if}} diff --git a/src/partials/education.html b/src/partials/education.html index 9934e81..be151dd 100644 --- a/src/partials/education.html +++ b/src/partials/education.html @@ -1,8 +1,12 @@ {{#if r.education}} -
-
Education
+
+ +
Education
+
+

Education

+
+
-

Education

    {{#each r.education.history}} @@ -19,8 +23,8 @@
{{/each}} - -
+
+ {{/if}} diff --git a/src/partials/experience.html b/src/partials/experience.html index 7a2b8bc..5828732 100644 --- a/src/partials/experience.html +++ b/src/partials/experience.html @@ -1,8 +1,12 @@ {{#if r.employment}} -
-
Work Experience
+
+ +
Work Experience
+
+

Work Experience

+
+
-

Work Experience

{{{r.employment.summary}}}

    {{#each r.employment.history}} @@ -17,5 +21,5 @@ {{/each}}
-
+ {{/if}} diff --git a/src/partials/interests.html b/src/partials/interests.html index 5719599..81a1931 100644 --- a/src/partials/interests.html +++ b/src/partials/interests.html @@ -1,8 +1,12 @@ {{#if r.interests}} -
-
Interests
+
+ +
Interests
+
+

Interests

+
+
-

Interests

    {{#each r.interests}} @@ -19,5 +23,5 @@
-
+ {{/if}} diff --git a/src/partials/projects.html b/src/partials/projects.html index 7ec7e1c..0900779 100644 --- a/src/partials/projects.html +++ b/src/partials/projects.html @@ -1,17 +1,21 @@ {{#if r.projects}} -
-
Projects
+
+ +
Projects
+

Projects

+
-

Projects

    {{#each r.projects}}
  • -
    -

    {{role}}{{title}}

    - {{> date}} - {{{summary}}} +
    + +

    {{role}}{{title}}

    + {{> date}} + {{{summary}}} +
    {{> highlights}} -
    +
  • {{/each}}
diff --git a/src/partials/recognition.html b/src/partials/recognition.html index 0673d73..b67c59b 100644 --- a/src/partials/recognition.html +++ b/src/partials/recognition.html @@ -1,8 +1,10 @@ {{#if r.recognition}} -
-
Awards
+
+ +
Awards
+

Awards

+
-

Awards

    {{#each r.recognition}} @@ -19,5 +21,5 @@
-
+ {{/if}} diff --git a/src/partials/references.html b/src/partials/references.html index 96b6018..36109d3 100644 --- a/src/partials/references.html +++ b/src/partials/references.html @@ -1,8 +1,10 @@ {{#if r.references}} -
+
+
References
+

References

+
-

References

    {{#each r.references}} @@ -19,5 +21,5 @@
-
+ {{/if}} diff --git a/src/partials/skills.html b/src/partials/skills.html index bd41eec..a6cb2e9 100644 --- a/src/partials/skills.html +++ b/src/partials/skills.html @@ -1,36 +1,27 @@ -
-
Skills
+
+ +
Skills
+
+

Skills

+
+
-

Skills

    {{#each r.skills.sets}}
  • -
    -
    -
    -
    {{name}} +
    {{name}} ({{level}})
    {{#each skills}} - {{this}} + + {{name}} ({{level}}) + {{/each}}
  • {{/each}} - {{#each r.skills.list}} -
  • -
    -
    -
    -
    {{name}} ({{years}} years) -
    -

    {{summary}}

    -
    -
    -
  • - {{/each}}
-
+ diff --git a/src/partials/style.html b/src/partials/style.html index 16b6d2d..f584a5c 100644 --- a/src/partials/style.html +++ b/src/partials/style.html @@ -703,4 +703,23 @@ body { page-break-before: always; } } + +details > summary { + display: list-item; + counter-increment: list-item 0; + list-style: disclosure-closed inside; +} + +details[open] > summary { + list-style: disclosure-open inside; +} + +summary.empty, details[open] > summary.empty { + list-style: disc inside; +} + +details.detail > summary { + list-style: none; +} + diff --git a/src/partials/volunteer.html b/src/partials/volunteer.html index 883e5da..0825080 100644 --- a/src/partials/volunteer.html +++ b/src/partials/volunteer.html @@ -1,8 +1,10 @@ {{#if r.service}} -
-
Volunteer Work
+
+ +
Volunteer Work
+

Volunteer Work

+
-

Volunteer Work

    {{#each r.service.history}} @@ -18,5 +20,5 @@
-
+ {{/if}}