diff --git a/src/styles/global.css b/src/styles/global.css index e08525f..892e3f8 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -63,7 +63,7 @@ html.df .study-notes :is(em, i) { @apply underline-offset-4; } -html.df body, html.hc body { +html.df body { background-color: var(--reading-bg); } @@ -120,23 +120,34 @@ html.df article.content.study-notes { } } +html.hc body { + @apply text-black bg-white; + @apply dark:text-white dark:bg-black; +} + html.hc article.content.study-notes { + @apply dark:bg-black; .header { @apply bg-transparent border-dotted rounded-none bg-none border-4 border-b-black; + @apply dark:border-b-white; } section time, section ul.tags { @apply text-black; + @apply dark:text-white; } a, a.scripture { @apply decoration-neutral-800; + @apply dark:decoration-neutral-200; } blockquote { @apply border-l-gray-800 text-black; + @apply dark:border-l-gray-200 dark:text-white; } blockquote a { @apply text-black; + @apply dark:text-white; } a.scripture.quote, a.scripture.christ { @@ -144,21 +155,25 @@ html.hc article.content.study-notes { } a.scripture.christ { @apply text-red-900; + @apply dark:text-red-400; } } html.hc #notes-list { & > ul > li { @apply border-neutral-800; + @apply dark:border-neutral-300; } ul.tags > li { @apply text-black bg-white border border-neutral-700; + @apply dark:text-white dark:bg-black dark:border-neutral-400; @apply text-shadow-none; } ul li time { @apply text-black; + @apply dark:text-white; } } @@ -166,9 +181,12 @@ html.hc nav#pagination { ul > li > a { @apply bg-white text-black border border-neutral-600; @apply hover:text-white hover:bg-black; + @apply dark:bg-black dark:text-white dark:border-neutral-400; + @apply dark:hover:text-black dark:hover:bg-white; } ul > li > a.disabled { @apply bg-white text-neutral-800 border-neutral-100; + @apply dark:bg-black dark:text-neutral-200 dark:border-neutral-800; } } diff --git a/src/utils/config.js b/src/utils/config.js index 73728b4..7d1388e 100644 --- a/src/utils/config.js +++ b/src/utils/config.js @@ -43,7 +43,7 @@ export const bindConfig = () => { } } else if (evt.target.value === 'hc') { document.documentElement.classList.remove('df'); - document.documentElement.classList.remove('dark'); + //document.documentElement.classList.remove('dark'); document.documentElement.classList.add('hc'); localStorage.af_enabled = 1; localStorage.af_mode = 'hc'; diff --git a/src/utils/theme.ts b/src/utils/theme.ts index 15e2fe6..9f7f3d3 100644 --- a/src/utils/theme.ts +++ b/src/utils/theme.ts @@ -84,7 +84,7 @@ class ThemeToggler { ele.classList.add('df'); } if (localStorage.af_mode === 'hc') { - ele.classList.remove('dark'); + //ele.classList.remove('dark'); ele.classList.remove('df'); ele.classList.add('hc'); }