Improve article children spacing

This commit is contained in:
Rafael Bardini 2020-10-31 13:19:52 +01:00
parent 28d6f247d6
commit d5104af1a5
9 changed files with 202 additions and 184 deletions

View File

@ -4,6 +4,7 @@
<div class="stack"> <div class="stack">
{{#each resume.awards}} {{#each resume.awards}}
<article> <article>
<header>
<div class="spaced-list"> <div class="spaced-list">
<h4>{{title}}</h4> <h4>{{title}}</h4>
{{#date}} {{#date}}
@ -17,6 +18,7 @@
</div> </div>
{{/awarder}} {{/awarder}}
</div> </div>
</header>
{{#summary}} {{#summary}}
<p>{{.}}</p> <p>{{.}}</p>
{{/summary}} {{/summary}}

View File

@ -4,6 +4,7 @@
<div class="stack"> <div class="stack">
{{#each resume.education}} {{#each resume.education}}
<article> <article>
<header>
<div class="spaced-list"> <div class="spaced-list">
<h4>{{institution}}</h4> <h4>{{institution}}</h4>
<span> <span>
@ -19,6 +20,7 @@
<a href="{{.}}">{{.}}</a> <a href="{{.}}">{{.}}</a>
{{/url}} {{/url}}
</div> </div>
</header>
{{#studyType}} {{#studyType}}
<p>{{.}}</p> <p>{{.}}</p>
{{/studyType}} {{/studyType}}

View File

@ -1,4 +1,4 @@
<header> <header class="masthead">
{{#name}} {{#name}}
<h1>{{.}}</h1> <h1>{{.}}</h1>
{{/name}} {{/name}}

View File

@ -4,6 +4,7 @@
<div class="stack"> <div class="stack">
{{#each resume.projects}} {{#each resume.projects}}
<article> <article>
<header>
<div class="spaced-list"> <div class="spaced-list">
<h4>{{name}}</h4> <h4>{{name}}</h4>
<span> <span>
@ -24,6 +25,7 @@
<a href="{{.}}">{{.}}</a> <a href="{{.}}">{{.}}</a>
{{/url}} {{/url}}
</div> </div>
</header>
{{#description}} {{#description}}
<p>{{.}}</p> <p>{{.}}</p>
{{/description}} {{/description}}

View File

@ -4,6 +4,7 @@
<div class="stack"> <div class="stack">
{{#each resume.publications}} {{#each resume.publications}}
<article> <article>
<header>
<div class="spaced-list"> <div class="spaced-list">
<h4>{{name}}</h4> <h4>{{name}}</h4>
{{#releaseDate}} {{#releaseDate}}
@ -20,6 +21,7 @@
<a href="{{.}}">{{.}}</a> <a href="{{.}}">{{.}}</a>
{{/url}} {{/url}}
</div> </div>
</header>
{{#summary}} {{#summary}}
<p>{{.}}</p> <p>{{.}}</p>
{{/summary}} {{/summary}}

View File

@ -4,6 +4,7 @@
<div class="stack"> <div class="stack">
{{#each resume.volunteer}} {{#each resume.volunteer}}
<article> <article>
<header>
<div class="spaced-list"> <div class="spaced-list">
<h4>{{organization}}</h4> <h4>{{organization}}</h4>
<span> <span>
@ -19,6 +20,7 @@
<a href="{{.}}">{{.}}</a> <a href="{{.}}">{{.}}</a>
{{/url}} {{/url}}
</div> </div>
</header>
{{#summary}} {{#summary}}
<p>{{.}}</p> <p>{{.}}</p>
{{/summary}} {{/summary}}

View File

@ -4,6 +4,7 @@
<div class="stack"> <div class="stack">
{{#each resume.work}} {{#each resume.work}}
<article> <article>
<header>
<div class="spaced-list"> <div class="spaced-list">
<h4>{{name}}</h4> <h4>{{name}}</h4>
<span> <span>
@ -19,6 +20,7 @@
<a href="{{.}}">{{.}}</a> <a href="{{.}}">{{.}}</a>
{{/url}} {{/url}}
</div> </div>
</header>
{{#summary}} {{#summary}}
<p>{{.}}</p> <p>{{.}}</p>
{{/summary}} {{/summary}}

View File

@ -116,14 +116,6 @@ h6 {
font-size: var(--scale0); font-size: var(--scale0);
} }
p:not(:first-child) {
margin-top: 1em;
}
p:not(:last-child) {
margin-bottom: 1em;
}
blockquote { blockquote {
border-left: 0.2em solid var(--mutedColor); border-left: 0.2em solid var(--mutedColor);
padding-left: 1em; padding-left: 1em;
@ -138,7 +130,7 @@ cite::before {
content: '— '; content: '— ';
} }
header { .masthead {
background: var(--mutedColor); background: var(--mutedColor);
display: inherit; display: inherit;
gap: inherit; gap: inherit;
@ -148,11 +140,16 @@ header {
row-gap: 0; row-gap: 0;
} }
header > *, .masthead > *,
section { section {
grid-column: main; grid-column: main;
} }
article > * + *,
blockquote > * + * {
margin-top: 0.6em;
}
.stack { .stack {
display: grid; display: grid;
gap: 1.5em; gap: 1.5em;
@ -200,7 +197,7 @@ section {
margin-bottom: inherit; margin-bottom: inherit;
} }
header > *, .masthead > *,
section { section {
grid-column: content; grid-column: content;
} }

View File

@ -132,14 +132,6 @@ h6 {
font-size: var(--scale0); font-size: var(--scale0);
} }
p:not(:first-child) {
margin-top: 1em;
}
p:not(:last-child) {
margin-bottom: 1em;
}
blockquote { blockquote {
border-left: 0.2em solid var(--mutedColor); border-left: 0.2em solid var(--mutedColor);
padding-left: 1em; padding-left: 1em;
@ -154,7 +146,7 @@ cite::before {
content: '— '; content: '— ';
} }
header { .masthead {
background: var(--mutedColor); background: var(--mutedColor);
display: inherit; display: inherit;
gap: inherit; gap: inherit;
@ -164,11 +156,16 @@ header {
row-gap: 0; row-gap: 0;
} }
header > *, .masthead > *,
section { section {
grid-column: main; grid-column: main;
} }
article > * + *,
blockquote > * + * {
margin-top: 0.6em;
}
.stack { .stack {
display: grid; display: grid;
gap: 1.5em; gap: 1.5em;
@ -216,7 +213,7 @@ section {
margin-bottom: inherit; margin-bottom: inherit;
} }
header > *, .masthead > *,
section { section {
grid-column: content; grid-column: content;
} }
@ -232,7 +229,7 @@ section {
</style> </style>
</head> </head>
<body> <body>
<header> <header class="masthead">
<h1>Richard Hendriks</h1> <h1>Richard Hendriks</h1>
<h2>Programmer</h2> <h2>Programmer</h2>
</header> </header>
@ -277,6 +274,7 @@ section {
<h3>Work</h3> <h3>Work</h3>
<div class="stack"> <div class="stack">
<article> <article>
<header>
<div class="spaced-list"> <div class="spaced-list">
<h4>Pied Piper</h4> <h4>Pied Piper</h4>
<span> <span>
@ -288,6 +286,7 @@ section {
<strong>CEO/President</strong> <strong>CEO/President</strong>
<a href="http://piedpiper.example.com">http://piedpiper.example.com</a> <a href="http://piedpiper.example.com">http://piedpiper.example.com</a>
</div> </div>
</header>
<p>Pied Piper is a multi-platform technology based on a proprietary universal compression algorithm that has consistently fielded high Weisman Scores that are not merely competitive, but approach the theoretical limit of lossless compression.</p> <p>Pied Piper is a multi-platform technology based on a proprietary universal compression algorithm that has consistently fielded high Weisman Scores that are not merely competitive, but approach the theoretical limit of lossless compression.</p>
<h5>Highlights</h5> <h5>Highlights</h5>
<ul> <ul>
@ -302,6 +301,7 @@ section {
<h3>Volunteer</h3> <h3>Volunteer</h3>
<div class="stack"> <div class="stack">
<article> <article>
<header>
<div class="spaced-list"> <div class="spaced-list">
<h4>CoderDojo</h4> <h4>CoderDojo</h4>
<span> <span>
@ -313,6 +313,7 @@ section {
<strong>Teacher</strong> <strong>Teacher</strong>
<a href="http://coderdojo.example.com/">http://coderdojo.example.com/</a> <a href="http://coderdojo.example.com/">http://coderdojo.example.com/</a>
</div> </div>
</header>
<p>Global movement of free coding clubs for young people.</p> <p>Global movement of free coding clubs for young people.</p>
<h5>Highlights</h5> <h5>Highlights</h5>
<ul> <ul>
@ -325,6 +326,7 @@ section {
<h3>Education</h3> <h3>Education</h3>
<div class="stack"> <div class="stack">
<article> <article>
<header>
<div class="spaced-list"> <div class="spaced-list">
<h4>University of Oklahoma</h4> <h4>University of Oklahoma</h4>
<span> <span>
@ -336,6 +338,7 @@ section {
<strong>Information Technology</strong> <strong>Information Technology</strong>
<a href="https://www.ou.edu/">https://www.ou.edu/</a> <a href="https://www.ou.edu/">https://www.ou.edu/</a>
</div> </div>
</header>
<p>Bachelor</p> <p>Bachelor</p>
<h5>Courses</h5> <h5>Courses</h5>
<ul> <ul>
@ -349,6 +352,7 @@ section {
<h3>Projects</h3> <h3>Projects</h3>
<div class="stack"> <div class="stack">
<article> <article>
<header>
<div class="spaced-list"> <div class="spaced-list">
<h4>Miss Direction</h4> <h4>Miss Direction</h4>
<span> <span>
@ -363,6 +367,7 @@ section {
</span> </span>
<a href="missdirection.example.com">missdirection.example.com</a> <a href="missdirection.example.com">missdirection.example.com</a>
</div> </div>
</header>
<p>A mapping engine that misguides you</p> <p>A mapping engine that misguides you</p>
<h5>Highlights</h5> <h5>Highlights</h5>
<ul> <ul>
@ -377,6 +382,7 @@ section {
<h3>Awards</h3> <h3>Awards</h3>
<div class="stack"> <div class="stack">
<article> <article>
<header>
<div class="spaced-list"> <div class="spaced-list">
<h4>Digital Compression Pioneer Award</h4> <h4>Digital Compression Pioneer Award</h4>
<time datetime="2014-11-01">Nov 2014</time> <time datetime="2014-11-01">Nov 2014</time>
@ -386,6 +392,7 @@ section {
Awarded by <strong>Techcrunch</strong> Awarded by <strong>Techcrunch</strong>
</div> </div>
</div> </div>
</header>
<p>There is no spoon.</p> <p>There is no spoon.</p>
</article> </article>
</div> </div>
@ -394,6 +401,7 @@ section {
<h3>Publications</h3> <h3>Publications</h3>
<div class="stack"> <div class="stack">
<article> <article>
<header>
<div class="spaced-list"> <div class="spaced-list">
<h4>Video compression for 3d media</h4> <h4>Video compression for 3d media</h4>
<time datetime="2014-10-01">Oct 2014</time> <time datetime="2014-10-01">Oct 2014</time>
@ -404,6 +412,7 @@ section {
</span> </span>
<a href="http://en.wikipedia.org/wiki/Silicon_Valley_(TV_series)">http://en.wikipedia.org/wiki/Silicon_Valley_(TV_series)</a> <a href="http://en.wikipedia.org/wiki/Silicon_Valley_(TV_series)">http://en.wikipedia.org/wiki/Silicon_Valley_(TV_series)</a>
</div> </div>
</header>
<p>Innovative middle-out compression algorithm that changes the way we store data.</p> <p>Innovative middle-out compression algorithm that changes the way we store data.</p>
</article> </article>
</div> </div>