From 54f3c40e7d8691ee7433b113f1796c8453c861e2 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Sun, 29 Nov 2026 18:07:44 -0700 Subject: [PATCH] Styles fixes for high-contrast mode. --- src/styles/global.css | 5 ++++- src/styles/hc.css | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/src/styles/global.css b/src/styles/global.css index 26df298..bd4f14c 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -193,7 +193,10 @@ header { margin-left: -1rem; z-index: 1000; li { - @apply hover:text-neutral-100 text-neutral-300 mb-2 pl-4 text-2xl; + @apply mb-2 pl-4 text-2xl; + } + li a { + @apply hover:text-neutral-100 text-neutral-300; } li span.heading { @apply font-bold underline; diff --git a/src/styles/hc.css b/src/styles/hc.css index 0fb9686..91ec2f3 100644 --- a/src/styles/hc.css +++ b/src/styles/hc.css @@ -24,7 +24,9 @@ html.hc article.content.study-notes { } blockquote { + @apply border-t border-r border-b; @apply border-l-gray-800 text-black; + @apply bg-transparent; @apply dark:border-l-gray-200 dark:text-white; } @@ -49,6 +51,35 @@ html.hc > body > header { #menu-items { @apply bg-black border-r-8 border-r-white; + li > a { + @apply text-white; + @apply decoration-white; + @apply hover:border-b border-dotted border-b-white; + } + li > a:hover::after { + content: "🡄"; + @apply pl-2; + display: inline-block; + animation-duration: 1.5s; + animation-iteration-count: infinite; + animation-name: hc-arrow-pointer; + } + & li > a > .icon, & li > a > .icon svg { + @apply opacity-100; + @apply text-white; + } + } +} + +@keyframes hc-arrow-pointer { + 0% { + transform: translate(0); + } + 50% { + transform: translate(10px); + } + 100% { + transform: translate(0); } }