feat: spacing polish
All checks were successful
Build and Deploy Staging / build_and_deploy (pull_request) Successful in 1m31s
All checks were successful
Build and Deploy Staging / build_and_deploy (pull_request) Successful in 1m31s
This commit is contained in:
parent
ec21586d1b
commit
ce66bbece8
9 changed files with 40 additions and 35 deletions
|
@ -6,10 +6,10 @@ spacing, regardless of their size
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.cluster {
|
.cluster {
|
||||||
--gap: var(--spacing-2);
|
--gap: var(--spacing-4);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: var(--gap, --spacing-2);
|
gap: var(--gap, --spacing-4);
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,14 +52,14 @@ h2 {
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
font-weight: var(--font-weight-bold);
|
font-weight: var(--font-weight-normal);
|
||||||
letter-spacing: -0.05rem;
|
letter-spacing: -0.05rem;
|
||||||
line-height: 1.5rem;
|
line-height: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
font-weight: var(--font-weight-bold);
|
font-weight: var(--font-weight-normal);
|
||||||
letter-spacing: -0.05rem;
|
letter-spacing: -0.05rem;
|
||||||
line-height: 1.125rem;
|
line-height: 1.125rem;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|
|
@ -5,11 +5,13 @@ layout: "layouts/base"
|
||||||
{% from "macros/date.njk" import format %}
|
{% from "macros/date.njk" import format %}
|
||||||
{% from "macros/utils.njk" import stars, spoilerWarning %}
|
{% from "macros/utils.njk" import stars, spoilerWarning %}
|
||||||
{% from "macros/tags.njk" import tagList %}
|
{% from "macros/tags.njk" import tagList %}
|
||||||
<article class="flow flow-space-8">
|
<article class="flow">
|
||||||
<header class="flow flow-space-4">
|
<header class="flow">
|
||||||
{{ format(page.date) }}
|
<div class="flow flow-space-1">
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
{% if pullquote %}<p class="text-fadeText flow-space-1">{{ pullquote }}</p>{% endif %}
|
{% if pullquote %}<h3 class="text-fadeText">{{ pullquote }}</h3>{% endif %}
|
||||||
|
</div>
|
||||||
|
{{ format(page.date) }}
|
||||||
</header>
|
</header>
|
||||||
{% if hasSpoilers %}
|
{% if hasSpoilers %}
|
||||||
{{ spoilerWarning() }}
|
{{ spoilerWarning() }}
|
||||||
|
|
|
@ -5,11 +5,13 @@ layout: "layouts/base"
|
||||||
{% from "macros/date.njk" import format %}
|
{% from "macros/date.njk" import format %}
|
||||||
{% from "macros/utils.njk" import stars, spoilerWarning %}
|
{% from "macros/utils.njk" import stars, spoilerWarning %}
|
||||||
{% from "macros/tags.njk" import tagList %}
|
{% from "macros/tags.njk" import tagList %}
|
||||||
<article class="flow flow-space-8">
|
<article class="flow">
|
||||||
<header class="flow flow-space-4">
|
<header class="flow">
|
||||||
{{ format(page.date) }}
|
<div class="flow flow-space-1">
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
{% if pullquote %}<p class="text-fadeText flow-space-1">{{ pullquote }}</p>{% endif %}
|
{% if pullquote %}<h3 class="text-fadeText">{{ pullquote }}</h3>{% endif %}
|
||||||
|
</div>
|
||||||
|
{{ format(page.date) }}
|
||||||
</header>
|
</header>
|
||||||
{% if hasSpoilers %}
|
{% if hasSpoilers %}
|
||||||
{{ spoilerWarning() }}
|
{{ spoilerWarning() }}
|
||||||
|
|
|
@ -5,11 +5,13 @@ layout: "layouts/base"
|
||||||
{% from "macros/date.njk" import format %}
|
{% from "macros/date.njk" import format %}
|
||||||
{% from "macros/utils.njk" import stars, spoilerWarning %}
|
{% from "macros/utils.njk" import stars, spoilerWarning %}
|
||||||
{% from "macros/tags.njk" import tagList %}
|
{% from "macros/tags.njk" import tagList %}
|
||||||
<article class="flow flow-space-8">
|
<article class="flow">
|
||||||
<header class="flow flow-space-4">
|
<header class="flow">
|
||||||
{{ format(page.date) }}
|
<div class="flow flow-space-1">
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
<p class="text-fadeText flow-space-1">{{ pullquote }}</p>
|
{% if pullquote %}<h3 class="text-fadeText">{{ pullquote }}</h3>{% endif %}
|
||||||
|
</div>
|
||||||
|
{{ format(page.date) }}
|
||||||
</header>
|
</header>
|
||||||
{% if hasSpoilers %}
|
{% if hasSpoilers %}
|
||||||
{{ spoilerWarning() }}
|
{{ spoilerWarning() }}
|
||||||
|
|
|
@ -3,20 +3,17 @@ layout: "layouts/base"
|
||||||
---
|
---
|
||||||
|
|
||||||
{% from "macros/date.njk" import format %}
|
{% from "macros/date.njk" import format %}
|
||||||
|
{% from "macros/tags.njk" import tagList %}
|
||||||
<article class="flow">
|
<article class="flow">
|
||||||
<header class="flow flow-space-4 mb-2">
|
<header class="flow">
|
||||||
{{ format(page.date) }}
|
<div class="flow flow-space-1">
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
<p class="text-fadeText flow-space-1">{{ excerpt }}</p>
|
<h3 class="text-fadeText">{{ excerpt }}</h3>
|
||||||
<ul class="categories cluster list-none p-0 flow-space-8 line-height-m">
|
</div>
|
||||||
{% for tag in tags | filter(["post"]) %}
|
{{ format(page.date) }}
|
||||||
<li>
|
|
||||||
<a class="button" href="/tags/{{ tag | slugify }}">
|
|
||||||
{% include "svgs/frame.svg" %}
|
|
||||||
{{ tag }}</a>
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</header>
|
</header>
|
||||||
|
<section class="flow flow-space-default">
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
|
</section>
|
||||||
|
{{ tagList(tags | filter("post") , "/posts") }}
|
||||||
</article>
|
</article>
|
||||||
|
|
|
@ -5,11 +5,13 @@ layout: "layouts/base"
|
||||||
{% from "macros/date.njk" import format %}
|
{% from "macros/date.njk" import format %}
|
||||||
{% from "macros/utils.njk" import stars, spoilerWarning %}
|
{% from "macros/utils.njk" import stars, spoilerWarning %}
|
||||||
{% from "macros/tags.njk" import tagList %}
|
{% from "macros/tags.njk" import tagList %}
|
||||||
<article class="flow flow-space-8">
|
<article class="flow">
|
||||||
<header class="flow flow-space-4">
|
<header class="flow">
|
||||||
{{ format(page.date) }}
|
<div class="flow flow-space-1">
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
<p class="text-fadeText flow-space-1">{{ pullquote }}</p>
|
{% if pullquote %}<h3 class="text-fadeText">{{ pullquote }}</h3>{% endif %}
|
||||||
|
</div>
|
||||||
|
{{ format(page.date) }}
|
||||||
</header>
|
</header>
|
||||||
{% if hasSpoilers %}
|
{% if hasSpoilers %}
|
||||||
{{ spoilerWarning() }}
|
{{ spoilerWarning() }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% macro tagList(tags, urlPrefix) %}
|
{% macro tagList(tags, urlPrefix) %}
|
||||||
<ul class="categories cluster list-none p-0 line-height-m">
|
<ul class="categories cluster list-none p-0 line-height-m flow-space-default">
|
||||||
{% for tag in tags %}
|
{% for tag in tags %}
|
||||||
<li>
|
<li>
|
||||||
<a class="button" href="{{ urlPrefix }}/tag/{{ tag | slugify }}">
|
<a class="button" href="{{ urlPrefix }}/tag/{{ tag | slugify }}">
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro spoilerWarning() %}
|
{% macro spoilerWarning() %}
|
||||||
<section class="bg-surface radius-1 p-4">
|
<section class="bg-surface radius-1 p-4 flow-space-default">
|
||||||
<span class="text-secondary">{% include "svgs/triangle-exclamation.svg" %}</span>
|
<span class="text-secondary">{% include "svgs/triangle-exclamation.svg" %}</span>
|
||||||
<strong>Warning!</strong>
|
<strong>Warning!</strong>
|
||||||
The following may contain spoilers!
|
The following may contain spoilers!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue