From dbf0683b22c0c7450eb8bcc9a508b43070d200a4 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Thu, 26 Nov 2026 15:10:59 -0700 Subject: [PATCH] Dyslexia style changes, mostly to text underlines but also to
and other substitute formatting. --- src/styles/global.css | 50 ++++++++++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 17 deletions(-) diff --git a/src/styles/global.css b/src/styles/global.css index ef9bcfe..3fdc258 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -55,6 +55,7 @@ html.df .study-notes :is(em, i) { text-decoration: underline; text-decoration-color: var(--color-neutral-300); text-decoration-thickness: 0.1em; + @apply underline-offset-4; } html.df body { @@ -72,7 +73,7 @@ html.df article.content.study-notes { background-color: transparent; } blockquote { - @apply border-l-0 ml-10; + @apply bg-transparent border-l-6 lg:border-l-4 xl:border-l-4 2xl:border-l-4 border-neutral-300 -ml-4 pl-6 lg:ml-0 xl:ml-0 2xl:ml-0 lg:pl-10 xl:pl-10 2xl:pl-10; } blockquote::before { content: "“"; @@ -96,6 +97,16 @@ html.df article.content.study-notes { content: "[" attr(href) "]"; font-size: 1rem; } + ul > li > a { + line-height: 1.8; + @apply underline-offset-8; + } + a { + @apply hover:text-black; + } + a.scripture { + @apply underline-offset-4; + } } @utility study-notes { @@ -512,13 +523,13 @@ article.content { .content-body { @apply p-6; a { - border-bottom: 5px; - border-style: solid; - @apply border-cyan-300 transition duration-500 ease-in-out hover:border-cyan-900 hover:text-cyan-600; - @apply dark:border-blue-500 dark:hover:border-blue-600 dark:hover:text-blue-200 dark:hover:bg-blue-900; + text-decoration-thickness: 0.2em; + @apply underline underline-offset-4; + @apply decoration-cyan-300 transition duration-500 ease-in-out hover:decoration-cyan-900 hover:text-cyan-600; + @apply dark:decoration-blue-500 dark:hover:decoration-blue-600 dark:hover:text-blue-200 dark:hover:bg-blue-900; } sup a { - @apply border-none font-bold text-blue-800 hover:text-blue-600; + @apply decoration-0 font-bold text-blue-800 hover:text-blue-600; @apply dark:text-blue-400 dark:hover:text-blue-300; @apply underline bg-blue-100 dark:bg-blue-950; @apply hover:bg-blue-200 dark:hover:bg-blue-900; @@ -534,31 +545,36 @@ article.content { content: ""; } a.scripture { - @apply border-green-400 hover:border-green-700 hover:text-green-800; - @apply dark:border-emerald-600 dark:hover:border-emerald-700 dark:hover:text-emerald-100 dark:hover:bg-emerald-900; + text-decoration-thickness: 0.2em; + @apply underline underline-offset-4; + @apply decoration-green-400 hover:decoration-green-700; + @apply border-b-0; + @apply dark:decoration-emerald-600 dark:hover:decoration-emerald-700; + @apply hover:text-green-800; + @apply dark:hover:text-emerald-100 dark:hover:bg-emerald-900; } a.scripture.quote { - @apply font-bold bg-purple-50 border-purple-100 text-gray-800 hover:text-black; - @apply dark:bg-purple-950 dark:border-purple-900 dark:text-gray-300 dark:hover:text-gray-300; + @apply font-bold bg-purple-50 decoration-purple-100 text-gray-800 hover:text-black; + @apply dark:bg-purple-950 dark:decoration-purple-900 dark:text-gray-300 dark:hover:text-gray-300; } a.scripture.quote[href]:not([href=""]) { - @apply border-purple-400 hover:border-purple-900 hover:text-purple-900; - @apply dark:border-purple-950 dark:hover:border-purple-900 dark:hover:text-gray-300; + @apply decoration-purple-400 hover:decoration-purple-900 hover:text-purple-900; + @apply dark:decoration-purple-950 dark:hover:decoration-purple-900 dark:hover:text-gray-300; } a.scripture.christ { @apply font-bold text-rose-900; } a.scripture.christ:not([href]) { - @apply border-none text-rose-900 hover:text-rose-900; + @apply decoration-0 text-rose-900 hover:text-rose-900; @apply dark:text-rose-400 dark:hover:text-rose-400 dark:hover:bg-transparent; } a.scripture.christ[href]:not([href=""]) { - @apply border-rose-900 hover:text-rose-800 hover:border-rose-800; - @apply dark:border-rose-400 dark:hover:text-rose-500 dark:hover:border-rose-500; + @apply decoration-rose-900 hover:text-rose-800 hover:decoration-rose-800; + @apply dark:decoration-rose-400 dark:hover:text-rose-500 dark:hover:decoration-rose-500; } a.scripture.christ { - @apply border-rose-900 text-rose-900; - @apply dark:border-rose-400 dark:text-rose-400; + @apply decoration-rose-900 text-rose-900; + @apply dark:decoration-rose-400 dark:text-rose-400; } h1, h2, h3, h4, h5, h6 { @apply font-bold mb-6 mt-6;