feat: spacing polish
All checks were successful
Build and Deploy Staging / build_and_deploy (pull_request) Successful in 1m31s

This commit is contained in:
Devin Haska 2025-05-30 00:20:58 -07:00
parent ec21586d1b
commit ce66bbece8
Signed by: wonderfulfrog
SSH key fingerprint: SHA256:ejOGyH9064rJiikox4ykOHLeuUg1f9l8wmJxs+MzNw0
9 changed files with 40 additions and 35 deletions

View file

@ -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;
} }

View file

@ -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;

View file

@ -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">
<div class="flow flow-space-1">
<h1>{{ title }}</h1>
{% if pullquote %}<h3 class="text-fadeText">{{ pullquote }}</h3>{% endif %}
</div>
{{ format(page.date) }} {{ format(page.date) }}
<h1>{{ title }}</h1>
{% if pullquote %}<p class="text-fadeText flow-space-1">{{ pullquote }}</p>{% endif %}
</header> </header>
{% if hasSpoilers %} {% if hasSpoilers %}
{{ spoilerWarning() }} {{ spoilerWarning() }}

View file

@ -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">
<div class="flow flow-space-1">
<h1>{{ title }}</h1>
{% if pullquote %}<h3 class="text-fadeText">{{ pullquote }}</h3>{% endif %}
</div>
{{ format(page.date) }} {{ format(page.date) }}
<h1>{{ title }}</h1>
{% if pullquote %}<p class="text-fadeText flow-space-1">{{ pullquote }}</p>{% endif %}
</header> </header>
{% if hasSpoilers %} {% if hasSpoilers %}
{{ spoilerWarning() }} {{ spoilerWarning() }}

View file

@ -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">
<div class="flow flow-space-1">
<h1>{{ title }}</h1>
{% if pullquote %}<h3 class="text-fadeText">{{ pullquote }}</h3>{% endif %}
</div>
{{ format(page.date) }} {{ format(page.date) }}
<h1>{{ title }}</h1>
<p class="text-fadeText flow-space-1">{{ pullquote }}</p>
</header> </header>
{% if hasSpoilers %} {% if hasSpoilers %}
{{ spoilerWarning() }} {{ spoilerWarning() }}

View file

@ -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">
<div class="flow flow-space-1">
<h1>{{ title }}</h1>
<h3 class="text-fadeText">{{ excerpt }}</h3>
</div>
{{ format(page.date) }} {{ format(page.date) }}
<h1>{{ title }}</h1>
<p class="text-fadeText flow-space-1">{{ excerpt }}</p>
<ul class="categories cluster list-none p-0 flow-space-8 line-height-m">
{% for tag in tags | filter(["post"]) %}
<li>
<a class="button" href="/tags/{{ tag | slugify }}">
{% include "svgs/frame.svg" %}
{{ tag }}</a>
</li>
{% endfor %}
</ul>
</header> </header>
{{ content | safe }} <section class="flow flow-space-default">
{{ content | safe }}
</section>
{{ tagList(tags | filter("post") , "/posts") }}
</article> </article>

View file

@ -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">
<div class="flow flow-space-1">
<h1>{{ title }}</h1>
{% if pullquote %}<h3 class="text-fadeText">{{ pullquote }}</h3>{% endif %}
</div>
{{ format(page.date) }} {{ format(page.date) }}
<h1>{{ title }}</h1>
<p class="text-fadeText flow-space-1">{{ pullquote }}</p>
</header> </header>
{% if hasSpoilers %} {% if hasSpoilers %}
{{ spoilerWarning() }} {{ spoilerWarning() }}

View file

@ -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 }}">

View file

@ -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!