feat: Style improvements, use Source Code Pro for monospace, update Inter to 4.0, pill-like nav on desktop, color changes

This commit is contained in:
daudix-UFO
2023-11-22 03:29:55 +03:00
parent 0ce950d0b3
commit 9202b7fe92
24 changed files with 194 additions and 108 deletions

View File

@ -2,7 +2,7 @@
{% block content %}
<picture>
<source srcset="{{ get_url(path='404.png') }}" class="full pixels transparent no-hover" media="(prefers-reduced-motion: reduce)"></source>
<source srcset="{{ get_url(path='404.png') }}" media="(prefers-reduced-motion: reduce)"></source>
<img srcset="{{ get_url(path='404.gif') }}" class="full pixels transparent no-hover">
</picture>

View File

@ -13,7 +13,7 @@
{%- for name, taxon in page.taxonomies %}
{%- for item in taxon %}
<a href="{{ get_taxonomy_url(kind=name, name=item) }}">
<a class="pill" href="{{ get_taxonomy_url(kind=name, name=item) }}">
<i class="bi bi-tag-fill"></i>
{{ item }}
</a>&nbsp;
@ -25,21 +25,21 @@
{% if page.extra.archive %}
<div class="statement-container archive">
<h2>⚠ Archived</h2>
<strong class="big">⚠ Archived</strong>
{{ page.extra.archive | markdown | safe }}
</div>
{% endif %}
{% if page.extra.trigger %}
<div class="statement-container trigger">
<h2>⚠ Trigger Warning</h2>
<strong class="big">⚠ Trigger Warning</strong>
{{ page.extra.trigger | markdown | safe }}
</div>
{% endif %}
{% if page.extra.disclaimer %}
<div class="statement-container disclaimer">
<h2>⚠ Disclaimer(s)</h2>
<strong class="big">⚠ Disclaimer(s)</strong>
{{ page.extra.disclaimer | markdown | safe }}
</div>
{% endif %}

View File

@ -13,9 +13,9 @@
{% for page in section.pages %}
<article>
<h2>
<h3>
<a class="link-page" href="{{ page.permalink | safe }}">{{ page.title }}</a>
</h2>
</h3>
{%- if page.description %}
<p>{{ page.description }}</p>
{%- endif %}
@ -28,7 +28,7 @@
{%- for name, taxon in page.taxonomies %}
{%-for item in taxon %}
<a href="{{ get_taxonomy_url(kind=name, name=item) }}">
<a class="pill" href="{{ get_taxonomy_url(kind=name, name=item) }}">
<i class="bi bi-tag-fill"></i>
{{ item }}
</a>&nbsp;
@ -38,5 +38,6 @@
</small>
{%- endif %}
</article>
<hr>
{% endfor %}
{% endblock content %}

View File

@ -8,7 +8,7 @@
<br />
{% for tag in terms %}
<small>
<a href="{{ get_taxonomy_url(kind='tags', name=tag.name) }}">
<a class="pill" href="{{ get_taxonomy_url(kind='tags', name=tag.name) }}">
<i class="bi bi-tag-fill"></i>
{{ tag.name }}
</a>

View File

@ -9,11 +9,11 @@
</small>
<article>
{% for page in term.pages %}
<h2>
<h3>
<a class="link-page" href="{{ page.permalink | safe }}">
{{ page.title }}
</a>
</h2>
</h3>
<small>
<time datetime='{{ page.date | date(format='%+') }}' pubdate>
{{- page.date | date(format=config.extra.date_format) -}}
@ -22,7 +22,7 @@
{%- for name, taxon in page.taxonomies %}
{%- for item in taxon %}
<a href="{{ get_taxonomy_url(kind=name, name=item) }}">
<a class="pill" href="{{ get_taxonomy_url(kind=name, name=item) }}">
<i class="bi bi-tag-fill"></i>
{{ item }}
</a>&nbsp;