From ee2c813ee9046e4aee9cfd1e311685726ee3a5bc Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Wed, 25 Nov 2026 19:46:36 -0700 Subject: [PATCH] Wrap entire card in to make clickable. I'm going to revert this and use an ::after pseudo-element to expand the click target, but I need a point to which I can revert my changes. --- src/components/Notes.astro | 8 +++----- src/styles/global.css | 28 ++++++++++++++++------------ 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/src/components/Notes.astro b/src/components/Notes.astro index c5545df..ff606f8 100644 --- a/src/components/Notes.astro +++ b/src/components/Notes.astro @@ -44,7 +44,7 @@ const { notes } = Astro.props;
-

- {note.data.title} -

+

{note.data.title}

{note.data.sub_heading}

- + ))} \ No newline at end of file diff --git a/src/styles/global.css b/src/styles/global.css index de4fbd2..727adbe 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -403,26 +403,29 @@ dialog.scripture { #notes-list > ul > li { border-width: 1px; border-style: solid; - @apply flex flex-col rounded-xl bg-transparent p-2 hover:bg-gray-100 border-gray-200; + @apply flex rounded-xl bg-transparent p-2 hover:bg-gray-100 border-gray-200; @apply dark:bg-transparent dark:text-gray-300 dark:border-gray-800 dark:hover:bg-gray-800; } +#notes-list > ul > li > a { + @apply flex w-full flex-col; + @apply focus-visible:outline-4 focus-visible:outline-offset-8 focus-visible:rounded-2xl; + @apply focus-visible:outline-blue-500; +} + #notes-list ul > li .header-image { @apply relative overflow-hidden rounded-lg shadow-md shadow-gray-300; @apply dark:shadow-gray-900; } -#notes-list ul > li h2 a { - border-bottom: 5px; - border-style: solid; - @apply border-blue-300 transition duration-500 ease-in-out hover:border-blue-900 hover:text-blue-800; - @apply dark:border-blue-500 dark:hover:border-blue-600 dark:hover:text-blue-300; -} - -#notes-list ul > li > hgroup { +#notes-list ul > li > a > hgroup { @apply grow p-4 transition-colors duration-500; - h2 > a { - @apply font-bold text-2xl; + h2 { + @apply font-bold text-2xl inline-block; + border-bottom: 5px; + border-style: solid; + @apply border-blue-300 transition duration-500 ease-in-out hover:border-blue-900 hover:text-blue-800; + @apply dark:border-blue-500 dark:hover:border-blue-600 dark:hover:text-blue-300; } h3 { @apply mt-2 text-xl font-medium; @@ -443,7 +446,8 @@ dialog.scripture { } #notes-list ul li time { - @apply block text-xl text-gray-400 pl-4 pr-4 pt-2 text-right relative bottom-0; + @apply text-xl text-gray-400 pl-4 pr-4 pt-2 text-right; + @apply mt-auto self-end; } #notes-list ul.types li {