Move high contrast CSS into its own file.

Tweaked dialog for HC mode.
This commit is contained in:
Benjamin A. Shelton 2026-11-29 15:43:31 -07:00
commit 6edaf54349
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
2 changed files with 109 additions and 90 deletions

View file

@ -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);