chore: cleanup

This commit is contained in:
Cory Dransfeldt 2024-10-03 08:22:35 -07:00
parent 192fcbfcf9
commit cc917e45c5
No known key found for this signature in database
19 changed files with 42 additions and 54 deletions

12
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "1.0.4", "version": "1.0.5",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "1.0.4", "version": "1.0.5",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cdransf/api-text": "^1.5.0", "@cdransf/api-text": "^1.5.0",
@ -39,7 +39,7 @@
"postcss-import-ext-glob": "^2.1.1", "postcss-import-ext-glob": "^2.1.1",
"postcss-js": "^4.0.1", "postcss-js": "^4.0.1",
"rimraf": "^6.0.1", "rimraf": "^6.0.1",
"sanitize-html": "^2.13.0", "sanitize-html": "^2.13.1",
"slugify": "^1.6.6", "slugify": "^1.6.6",
"terser": "^5.34.1", "terser": "^5.34.1",
"truncate-html": "^1.1.2" "truncate-html": "^1.1.2"
@ -4439,9 +4439,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/sanitize-html": { "node_modules/sanitize-html": {
"version": "2.13.0", "version": "2.13.1",
"resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-2.13.0.tgz", "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-2.13.1.tgz",
"integrity": "sha512-Xff91Z+4Mz5QiNSLdLWwjgBDm5b1RU6xBT0+12rapjiaR7SwfRdjw8f+6Rir2MXKLrDicRFHdb51hGOAxmsUIA==", "integrity": "sha512-ZXtKq89oue4RP7abL9wp/9URJcqQNABB5GGJ2acW1sdO8JTVl92f4ygD7Yc9Ze09VAZhnt2zegeU0tbNsdcLYg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "1.0.4", "version": "1.0.5",
"description": "The source for my personal site. Built using 11ty (and other tools).", "description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module", "type": "module",
"scripts": { "scripts": {
@ -52,7 +52,7 @@
"postcss-import-ext-glob": "^2.1.1", "postcss-import-ext-glob": "^2.1.1",
"postcss-js": "^4.0.1", "postcss-js": "^4.0.1",
"rimraf": "^6.0.1", "rimraf": "^6.0.1",
"sanitize-html": "^2.13.0", "sanitize-html": "^2.13.1",
"slugify": "^1.6.6", "slugify": "^1.6.6",
"terser": "^5.34.1", "terser": "^5.34.1",
"truncate-html": "^1.1.2" "truncate-html": "^1.1.2"

View file

@ -18,27 +18,27 @@ body {
} }
::-moz-selection { ::-moz-selection {
color: var(--color-lightest); color: var(--text-color-inverted);
background: var(--accent-color); background: var(--accent-color);
} }
::selection { ::selection {
color: var(--color-lightest); color: var(--text-color-inverted);
background: var(--accent-color); background: var(--accent-color);
} }
p { p {
margin: var(--margin-vertical-base-horizontal-zero); margin: var(--margin-vertical-base-horizontal-zero);
overflow: visible; overflow: visible;
}
& a { :is(p, ul, ol) a {
text-decoration: underline; text-decoration: underline;
text-underline-offset: var(--spacing-xs); text-underline-offset: var(--spacing-xs);
} }
}
.highlight-text { .highlight-text {
color: var(--color-lightest); color: var(--text-color-inverted);
background-color: var(--accent-color); background-color: var(--accent-color);
padding: var(--spacing-xs); padding: var(--spacing-xs);
border-radius: var(--border-radius-slight); border-radius: var(--border-radius-slight);

View file

@ -19,7 +19,7 @@ button,
font-weight: var(--font-weight-bold); font-weight: var(--font-weight-bold);
line-height: var(--line-height-base); line-height: var(--line-height-base);
white-space: nowrap; white-space: nowrap;
color: var(--color-lightest); color: var(--text-color-inverted);
background-color: var(--accent-color); background-color: var(--accent-color);
appearance: none; appearance: none;
transition-property: border; transition-property: border;

View file

@ -50,5 +50,9 @@ select {
& li { & li {
margin: var(--spacing-sm) 0; margin: var(--spacing-sm) 0;
& a {
text-decoration: none;
}
} }
} }

View file

@ -15,6 +15,10 @@ menu {
margin: 0; margin: 0;
display: flex; display: flex;
& a {
text-decoration: none;
}
& .icon > svg, & .icon > svg,
& .active > svg { & .active > svg {
display: block; display: block;

View file

@ -96,10 +96,6 @@
& .title { & .title {
font-weight: var(--font-weight-bold); font-weight: var(--font-weight-bold);
&.window {
margin-bottom: calc(var(--spacing-sm) * -1);
}
} }
& .title, & .title,

View file

@ -54,9 +54,9 @@
--books-light: #1a7b1a; --books-light: #1a7b1a;
--collected-light: #9a501a; --collected-light: #9a501a;
--concerts-light: #cb426e; --concerts-light: #cb426e;
--country-light: #1a908d; --country-light: #146a67;
--error-light: #b81f1f; --error-light: #b81f1f;
--favorite-light: #cc5490; --favorite-light: #b03c72;
--link-light: #7b5cba; --link-light: #7b5cba;
--music-light: #1565c3; --music-light: #1565c3;
--newsletter-light: #37b0b0; --newsletter-light: #37b0b0;

View file

@ -7,7 +7,7 @@
<li value="{{ item.rank }}"> <li value="{{ item.rank }}">
<div class="item"> <div class="item">
<div class="info"> <div class="info">
<a class="title window" href="{{ item.url }}">{{ item.title }}</a> <a class="title" href="{{ item.url }}">{{ item.title }}</a>
{%- capture playsLabel -%} {%- capture playsLabel -%}
{%- if item.plays > 1 -%} {%- if item.plays > 1 -%}
plays plays

View file

@ -1,4 +1,3 @@
{%- capture alt -%}{{ movie.title | escape }} ({{ movie.year }}){%- endcapture -%}
<a href="{{ movie.url }}"> <a href="{{ movie.url }}">
<div class="watching hero"> <div class="watching hero">
<div class="meta-text"> <div class="meta-text">
@ -22,7 +21,6 @@
(max-width: 1000px) 1024px, (max-width: 1000px) 1024px,
2048px" 2048px"
src="https://cdn.coryd.dev{{ movie.backdrop }}?class=bannerlg" src="https://cdn.coryd.dev{{ movie.backdrop }}?class=bannerlg"
alt="{{ alt }}"
loading="eager" loading="eager"
decoding="async" decoding="async"
width="1080" width="1080"

View file

@ -9,7 +9,7 @@
{%- endif -%} {%- endif -%}
</span> </span>
{%- else -%} {%- else -%}
<a class="{% if icon %}{{ icon | downcase }} icon {% endif %}{{ class }}" href="{{ categoryUrl }}" rel="me"> <a class="{% if icon %}{{ icon | downcase }} icon {% endif %}{{ class }}" href="{{ categoryUrl }}" rel="me" aria-label="{{ title }}">
{%- if icon -%} {%- if icon -%}
{% tablericon icon %} {% tablericon icon %}
<span>{{ title }}</span> <span>{{ title }}</span>

View file

@ -1,8 +0,0 @@
<a
class="{{ icon }}"
href="{{ url | downcase }}"
rel="me"
title="{{ title }}"
tabindex="0">
{% tablericon icon %}
</a>

View file

@ -5,10 +5,7 @@
{% tablericon "arrow-left" %} {% tablericon "arrow-left" %}
</a> </a>
{%- else -%} {%- else -%}
<span <span class="disabled" disabled>
class="disabled"
aria-label="Previous page (disabled)"
disabled>
{% tablericon "arrow-left" %} {% tablericon "arrow-left" %}
</span> </span>
{%- endif -%} {%- endif -%}
@ -29,10 +26,7 @@
{% tablericon "arrow-right" %} {% tablericon "arrow-right" %}
</a> </a>
{%- else -%} {%- else -%}
<span <span class="disabled" disabled>
class="disabled"
aria-label="Next page (disabled)"
disabled>
{% tablericon "arrow-right" %} {% tablericon "arrow-right" %}
</span> </span>
{%- endif -%} {%- endif -%}

View file

@ -1,7 +1,7 @@
<script type="module" src="/assets/scripts/components/theme-toggle.js?v={% appVersion %}" crossorigin="anonymous"></script> <script type="module" src="/assets/scripts/components/theme-toggle.js?v={% appVersion %}" crossorigin="anonymous"></script>
<span class="client-side"> <span class="client-side">
<theme-toggle> <theme-toggle>
<button class="theme-toggle"> <button aria-label="Light and dark theme toggle" class="theme-toggle">
<span class="light"> <span class="light">
{% tablericon "sun" %} {% tablericon "sun" %}
</span> </span>

View file

@ -18,16 +18,16 @@ description: These are awesome blogs that I enjoy and you may enjoy too.
<td><a href="{{ blog.url }}">{{ blog.url | replace: "https://", "" }}</a></td> <td><a href="{{ blog.url }}">{{ blog.url | replace: "https://", "" }}</a></td>
<td class="blog-roll-icons"> <td class="blog-roll-icons">
{%- if blog.rss_feed -%} {%- if blog.rss_feed -%}
<a class="rss" href="{{ blog.rss_feed }}">{% tablericon "rss" %}</a>&nbsp; <a class="rss" href="{{ blog.rss_feed }}" aria-label="RSS feed for {{ blog.name }}">{% tablericon "rss" %}</a>&nbsp;
{%- endif -%} {%- endif -%}
{%- if blog.json_feed -%} {%- if blog.json_feed -%}
<a class="json" href="{{ blog.json_feed }}">{% tablericon "json" %}</a>&nbsp; <a class="json" href="{{ blog.json_feed }}" aria-label="JSON feed for {{ blog.name }}">{% tablericon "json" %}</a>&nbsp;
{%- endif -%} {%- endif -%}
{%- if blog.newsletter -%} {%- if blog.newsletter -%}
<a class="mail-plus" href="{{ blog.newsletter }}">{% tablericon "mail-plus" %}</a>&nbsp; <a class="mail-plus" href="{{ blog.newsletter }}" aria-label="Subscribe to {{ blog.name }}'s newsletter">{% tablericon "mail-plus" %}</a>&nbsp;
{%- endif -%} {%- endif -%}
{%- if blog.mastodon -%} {%- if blog.mastodon -%}
<a class="brand-mastodon" href="{{ blog.mastodon }}">{% tablericon "brand-mastodon" %}</a>&nbsp; <a class="brand-mastodon" href="{{ blog.mastodon }}" aria-label="Follow {{ blog.name }} on Mastodon">{% tablericon "brand-mastodon" %}</a>&nbsp;
{%- endif -%} {%- endif -%}
</td> </td>
</tr> </tr>

View file

@ -54,7 +54,7 @@ schema: book
</div> </div>
{% if book.review %} {% if book.review %}
{% render "partials/blocks/banners/warning.liquid", text: "There are probably spoilers after this banner — this is a warning about them." %} {% render "partials/blocks/banners/warning.liquid", text: "There are probably spoilers after this banner — this is a warning about them." %}
<h3>My thoughts</h3> <h2>My thoughts</h2>
{{ book.review | markdown }} {{ book.review | markdown }}
<hr /> <hr />
{% endif %} {% endif %}
@ -65,7 +65,7 @@ schema: book
{% render "partials/blocks/associated-media.liquid", shows:book.shows %} {% render "partials/blocks/associated-media.liquid", shows:book.shows %}
{% render "partials/blocks/associated-media.liquid", genres:book.genres %} {% render "partials/blocks/associated-media.liquid", genres:book.genres %}
{% if book.description %} {% if book.description %}
<h3>Overview</h3> <h2>Overview</h2>
{{ book.description | markdown }} {{ book.description | markdown }}
{% endif %} {% endif %}
</article> </article>

View file

@ -63,7 +63,7 @@ schema: artist
{% render "partials/blocks/associated-media.liquid", movies:artist.movies %} {% render "partials/blocks/associated-media.liquid", movies:artist.movies %}
{% render "partials/blocks/associated-media.liquid", shows:artist.shows %} {% render "partials/blocks/associated-media.liquid", shows:artist.shows %}
{%- if artist.description -%} {%- if artist.description -%}
<h3>Overview</h3> <h2>Overview</h2>
<div data-toggle-content class="text-toggle-hidden">{{ artist.description | markdown }}</div> <div data-toggle-content class="text-toggle-hidden">{{ artist.description | markdown }}</div>
<button data-toggle-button>Show more</button> <button data-toggle-button>Show more</button>
{%- endif -%} {%- endif -%}

View file

@ -52,7 +52,7 @@ schema: movie
</div> </div>
{% if movie.review %} {% if movie.review %}
{% render "partials/blocks/banners/warning.liquid", text: "There are probably spoilers after this banner — this is a warning about them." %} {% render "partials/blocks/banners/warning.liquid", text: "There are probably spoilers after this banner — this is a warning about them." %}
<h3>My thoughts</h3> <h2>My thoughts</h2>
{{ movie.review | markdown }} {{ movie.review | markdown }}
<hr /> <hr />
{% endif %} {% endif %}
@ -63,7 +63,7 @@ schema: movie
{% render "partials/blocks/associated-media.liquid", books:movie.books %} {% render "partials/blocks/associated-media.liquid", books:movie.books %}
{% render "partials/blocks/associated-media.liquid", genres:movie.genres %} {% render "partials/blocks/associated-media.liquid", genres:movie.genres %}
{% if movie.description %} {% if movie.description %}
<h3>Overview</h3> <h2>Overview</h2>
{{ movie.description | markdown }} {{ movie.description | markdown }}
{% endif %} {% endif %}
</article> </article>

View file

@ -54,7 +54,7 @@ schema: show
</div> </div>
{% if show.review %} {% if show.review %}
{% render "partials/blocks/banners/warning.liquid", text: "There are probably spoilers after this banner — this is a warning about them." %} {% render "partials/blocks/banners/warning.liquid", text: "There are probably spoilers after this banner — this is a warning about them." %}
<h3>My thoughts</h3> <h2>My thoughts</h2>
{{ show.review | markdown }} {{ show.review | markdown }}
<hr /> <hr />
{% endif %} {% endif %}
@ -64,7 +64,7 @@ schema: show
{% render "partials/blocks/associated-media.liquid", movies:show.movies %} {% render "partials/blocks/associated-media.liquid", movies:show.movies %}
{% render "partials/blocks/associated-media.liquid", books:show.books %} {% render "partials/blocks/associated-media.liquid", books:show.books %}
{% if show.description %} {% if show.description %}
<h3>Overview</h3> <h2>Overview</h2>
{{ show.description | markdown }} {{ show.description | markdown }}
{% endif %} {% endif %}
</article> </article>