From da4925753d67708518aeb8ab5fc29b49dab5b13b Mon Sep 17 00:00:00 2001 From: badbl0cks <4161747+badbl0cks@users.noreply.github.com> Date: Sun, 22 Mar 2026 13:56:24 -0700 Subject: [PATCH] Rename content slot to main, remove h1 from header for better accessibility, and unify SVG fill color to #fff Update BaseLayout to use a header
for the website title, rename the main slot/id to "main", and update all pages to match. Add CSS rule svg { fill: currentColor } and size header > p the same as h1. Fix a minor comment typo. --- public/mit.svg | 14 +++++--------- public/theme.css | 9 +++++++-- src/layouts/BaseLayout.astro | 10 +++++----- src/pages/article.astro | 2 +- src/pages/contact.astro | 2 +- src/pages/index.astro | 2 +- src/pages/parallax.astro | 2 +- src/pages/tools.astro | 2 +- 8 files changed, 22 insertions(+), 21 deletions(-) diff --git a/public/mit.svg b/public/mit.svg index 9fad476..3fc8ea0 100644 --- a/public/mit.svg +++ b/public/mit.svg @@ -1,11 +1,7 @@ diff --git a/public/theme.css b/public/theme.css index 02aff4a..29ff08d 100644 --- a/public/theme.css +++ b/public/theme.css @@ -4,7 +4,8 @@ h1.giga { h1.mega { font-size: var(--pt-canon); } -h1 { +h1, +header > p { font-size: var(--pt-double-great-primer); } h2 { @@ -417,7 +418,7 @@ textarea, display: grid; } .textarea-wrapper::after { - content: attr(data-replicated-value) " "; /* Needed to preventy jumpy behavior */ + content: attr(data-replicated-value) " "; /* Needed to prevent jumpy behavior */ visibility: hidden; white-space: pre-wrap; } @@ -463,6 +464,10 @@ input[type="reset"]:active:enabled { background-color: var(--color-accent-bright); } +svg { + fill: currentColor; +} + /*input[type="checkbox"], input[type="radio"] { appearance: none; diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 36d0ffb..a675fce 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -18,8 +18,8 @@
-badblocks.dev