diff --git a/src/styles/global.css b/src/styles/global.css index c96bd60..26df298 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -10,6 +10,7 @@ @source "../pages/**/*.astro"; @import "./components.css"; +@import "./hc.css"; @custom-variant dark (&:where(.dark, .dark *)); @@ -48,11 +49,6 @@ html.df { --reading-text: #1e1e1e; } -html.hc { - --reading-bg: #fff; - --reading-text: #000; -} - html.df .study-notes :is(em, i, blockquote) { font-style: normal; } @@ -120,91 +116,6 @@ 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 { - text-decoration: none; - @apply bg-transparent; - } - a.scripture.christ { - text-decoration: none; - @apply text-red-900; - @apply dark:text-red-400; - } -} - -html.hc > body > header { - @apply bg-black text-white border-b border-b-white border-dashed; - - #menu-items { - @apply bg-black border-r-8 border-r-white; - } -} - -html.hc > body > footer { - @apply bg-black border-t border-t-white border-dashed; -} - -html.hc #notes-list { - & > ul > li { - @apply border-neutral-800; - @apply dark:border-neutral-300; - @apply dark:hover:bg-neutral-900; - } - - 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; - } -} - -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; - } -} - @utility study-notes { font-family: var(--reading-font-family); background-color: var(--reading-bg); diff --git a/src/styles/hc.css b/src/styles/hc.css new file mode 100644 index 0000000..0fb9686 --- /dev/null +++ b/src/styles/hc.css @@ -0,0 +1,108 @@ +html.hc { + --reading-bg: #fff; + --reading-text: #000; +} + +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 { + text-decoration: none; + @apply bg-transparent; + } + a.scripture.christ { + text-decoration: none; + @apply text-red-900; + @apply dark:text-red-400; + } +} + +html.hc > body > header { + @apply bg-black text-white border-b border-b-white border-dashed; + + #menu-items { + @apply bg-black border-r-8 border-r-white; + } +} + +html.hc > body > footer { + @apply bg-black border-t border-t-white border-dashed; +} + +html.hc dialog.config { + @apply bg-white border-black text-black border; + @apply dark:bg-black dark:border dark:border-white dark:text-white; + + label.button { + @apply border-black text-black hover:bg-black hover:text-white; + @apply dark:border-white dark:text-white dark:hover:bg-white dark:hover:text-black; + } + + input.button[type=radio]:checked + label.button { + @apply bg-black text-white; + @apply dark:bg-white dark:text-black; + } +} +html.hc dialog.config::backdrop, +html.hc.dark dialog.config::backdrop { + background-color: rgba(0, 0, 0, 0.9); +} + +html.hc #notes-list { + & > ul > li { + @apply border-neutral-800; + @apply dark:border-neutral-300; + @apply dark:hover:bg-neutral-900; + } + + 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; + } +} + +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; + } +} \ No newline at end of file