chore(*): remove unused styles, images, clean up and format

This commit is contained in:
Cory Dransfeldt 2025-05-04 15:36:44 -07:00
parent 573b66a170
commit 10b343b964
No known key found for this signature in database
16 changed files with 46 additions and 91 deletions

View file

@ -25,9 +25,7 @@ function renderPaginator(array $pagination, int $totalPages): void {
<?php endforeach; ?>
</select>
<noscript>
<p>
<span aria-current="page"><?= $pagination['pageNumber'] ?></span> of <?= $totalPages ?>
</p>
<p><span aria-current="page"><?= $pagination['pageNumber'] ?></span> of <?= $totalPages ?></p>
</noscript>
</select-pagination>

View file

@ -8,11 +8,6 @@
to { opacity: 0; transform: scale(0.95); }
}
dialog {
width: var(--sizing-full);
height: var(--sizing-full);
}
.dialog-open,
.dialog-close {
display: inline-flex;
@ -32,11 +27,18 @@ dialog {
}
dialog {
width: var(--sizing-full);
height: var(--sizing-full);
background: var(--background-color);
padding: var(--spacing-lg) var(--spacing-base);
overflow-y: auto;
border-radius: var(--border-radius-slight);
font-size: var(--font-size-base);
animation: fadeIn var(--transition-duration-default) var(--transition-ease-in-out);
&::backdrop {
background: var(--dialog-overlay-background);
}
&.closing {
animation: fadeOut var(--transition-duration-default) var(--transition-ease-in-out);
@ -78,11 +80,3 @@ dialog {
}
}
}
dialog {
animation: fadeIn var(--transition-duration-default) var(--transition-ease-in-out);
}
dialog::backdrop {
background: var(--dialog-overlay-background);
}

View file

@ -5,19 +5,19 @@ progress {
background-color: var(--gray-light);
border-radius: var(--border-radius-full);
overflow: hidden;
}
progress::-webkit-progress-bar {
background-color: var(--gray-light);
border-radius: var(--border-radius-full);
}
&::-webkit-progress-bar {
background-color: var(--gray-light);
border-radius: var(--border-radius-full);
}
progress::-webkit-progress-value {
background-color: var(--accent-color);
border-radius: var(--border-radius-full);
}
&::-webkit-progress-value {
background-color: var(--accent-color);
border-radius: var(--border-radius-full);
}
progress::-moz-progress-bar {
background-color: var(--accent-color);
border-radius: var(--border-radius-full);
&::-moz-progress-bar {
background-color: var(--accent-color);
border-radius: var(--border-radius-full);
}
}

View file

@ -11,7 +11,6 @@
@import url("./base/index.css") layer(base);
/* page styles */
@import url("./pages/about.css") layer(page);
@import url("./pages/books.css") layer(page);
@import url("./pages/contact.css") layer(page);
@import url("./pages/links.css") layer(page);

View file

@ -8,7 +8,8 @@
height: unset !important;
overflow: unset !important;
margin-bottom: unset !important;
}
[data-toggle-content].text-toggle-hidden::after {
display: none !important;
&::after {
display: none !important;
}
}

View file

@ -1,21 +0,0 @@
.avatar-wrapper {
--avatar-size: 16rem;
display: flex;
justify-content: center;
width: var(--sizing-full);
@media screen and (min-width: 768px) {
--avatar-size: 24rem;
}
img {
width: var(--avatar-size);
height: var(--avatar-size);
}
}
.about-title {
margin: var(--margin-vertical-base-horizontal-zero);
text-align: center;
}

View file

@ -21,7 +21,7 @@
}
}
.image-media {
.media-image {
border: var(--border-gray);
}

View file

@ -1,5 +1,5 @@
.artist-focus {
.image-media {
.media-image {
aspect-ratio: var(--aspect-ratio-square);
width: var(--sizing-full);
height: auto;

View file

@ -1,5 +1,3 @@
<div class="banner coffee">
<p>
{% tablericon "coffee" %} <a class="coffee" href="https://buymeacoffee.com/cory">If you found this post helpful, you can buy me a coffee.</a>
</p>
<p>{% tablericon "coffee" %} <a class="coffee" href="https://buymeacoffee.com/cory">If you found this post helpful, you can buy me a coffee.</a></p>
</div>

View file

@ -1,5 +1,3 @@
<div class="banner mail">
<p>
{% tablericon "mail" %} <a class="mail" href="/contact">Reply to or discuss this post via email.</a>
</p>
<p>{% tablericon "mail" %} <a class="mail" href="/contact">Reply to or discuss this post via email.</a></p>
</div>

View file

@ -57,8 +57,8 @@
{%- endif -%}
</h3>
{% render "blocks/tags.liquid",
18 tags:item.tags
19 %}
tags:item.tags
%}
</article>
{%- endfor -%}
</article>

View file

@ -9,13 +9,13 @@
{%- endif -%}
{%- endcapture -%}
{%- capture pageDescription -%}
{% if page.description %}
{%- if page.description -%}
{{ page.description }}
{% elsif description %}
{%- elsif description -%}
{{ description }}
{% else %}
{%- else -%}
{{ globals.site_description }}
{% endif %}
{%- endif -%}
{%- endcapture -%}
{%- assign ogImage = globals.cdn_url | append: globals.avatar -%}
{%- case schema -%}
@ -83,7 +83,7 @@
{% render "metadata/static.liquid"
fullUrl:fullUrl,
pageTitle:pageTitle,
pageDescription:pageDescription
pageDescription:pageDescription,
ogImage:ogImage,
globals:globals,
%}

View file

@ -1,8 +1,8 @@
{%- assign description = pageDescription | markdown | strip_html | htmlTruncate | escape -%}
<title>{{- pageTitle -}}</title>
<meta property="og:title" content="{{- pageTitle -}}" />
<meta name="description" content="{{- description -}}" />
<meta property="og:description" content="{{- description -}}" />
<title>{{ pageTitle }}</title>
<meta property="og:title" content="{{ pageTitle }}" />
<meta name="description" content="{{ description }}" />
<meta property="og:description" content="{{ description }}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="{{ fullUrl }}" />
<link rel="canonical" href="{{ fullUrl }}" />

View file

@ -6,16 +6,11 @@
{%- assign prevHref = pagination.href.previous -%}
{%- assign nextHref = pagination.href.next -%}
{% if prevHref %}
<a
href="{{ prevHref }}"
aria-label="Previous page"
>
<a href="{{ prevHref }}" aria-label="Previous page">
{% tablericon "arrow-left" %}
</a>
{% else %}
<span>
{% tablericon "arrow-left" %}
</span>
<span>{% tablericon "arrow-left" %}</span>
{% endif %}
<select-pagination>
<select class="client-side" aria-label="Page selection">
@ -26,22 +21,15 @@
{%- endfor -%}
</select>
<noscript>
<p>
<span aria-current="page">{{ pagination.pageNumber | plus:1 }}</span> of {{ pagination.links.size }}
</p>
<p><span aria-current="page">{{ pagination.pageNumber | plus:1 }}</span> of {{ pagination.links.size }}</p>
</noscript>
</select-pagination>
{% if nextHref %}
<a
href="{{ nextHref }}"
aria-label="Next page"
>
<a href="{{ nextHref }}" aria-label="Next page">
{% tablericon "arrow-right" %}
</a>
{% else %}
<span>
{% tablericon "arrow-right" %}
</span>
<span>{% tablericon "arrow-right" %}</span>
{% endif %}
</nav>
{%- endunless -%}

View file

@ -7,7 +7,7 @@ schema: artist
<article class="artist-focus">
<div class="artist-display">
<img
class="image-media"
class="media-image"
srcset="
{{ globals.cdn_url }}<?= htmlspecialchars($artist["image"]) ?>?class=w200&type=webp 200w,
{{ globals.cdn_url }}<?= htmlspecialchars($artist["image"]) ?>?class=w600&type=webp 400w,

View file

@ -7,7 +7,7 @@ schema: book
<article class="book-focus">
<div class="book-display">
<img
class="image-media"
class="media-image"
srcset="
{{ globals.cdn_url }}<?= htmlspecialchars($book["image"]) ?>?class=verticalsm&type=webp 200w,
{{ globals.cdn_url }}<?= htmlspecialchars($book["image"]) ?>?class=verticalmd&type=webp 400w,