WIP high contrast dark mode.
I can't seem to find where I'm removing the "dark" class, however.
This commit is contained in:
parent
90c2c38f4e
commit
41e0f6c204
3 changed files with 21 additions and 3 deletions
|
|
@ -63,7 +63,7 @@ html.df .study-notes :is(em, i) {
|
||||||
@apply underline-offset-4;
|
@apply underline-offset-4;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.df body, html.hc body {
|
html.df body {
|
||||||
background-color: var(--reading-bg);
|
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 {
|
html.hc article.content.study-notes {
|
||||||
|
@apply dark:bg-black;
|
||||||
.header {
|
.header {
|
||||||
@apply bg-transparent border-dotted rounded-none bg-none border-4 border-b-black;
|
@apply bg-transparent border-dotted rounded-none bg-none border-4 border-b-black;
|
||||||
|
@apply dark:border-b-white;
|
||||||
}
|
}
|
||||||
section time, section ul.tags {
|
section time, section ul.tags {
|
||||||
@apply text-black;
|
@apply text-black;
|
||||||
|
@apply dark:text-white;
|
||||||
}
|
}
|
||||||
a, a.scripture {
|
a, a.scripture {
|
||||||
@apply decoration-neutral-800;
|
@apply decoration-neutral-800;
|
||||||
|
@apply dark:decoration-neutral-200;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
@apply border-l-gray-800 text-black;
|
@apply border-l-gray-800 text-black;
|
||||||
|
@apply dark:border-l-gray-200 dark:text-white;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote a {
|
blockquote a {
|
||||||
@apply text-black;
|
@apply text-black;
|
||||||
|
@apply dark:text-white;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.scripture.quote, a.scripture.christ {
|
a.scripture.quote, a.scripture.christ {
|
||||||
|
|
@ -144,21 +155,25 @@ html.hc article.content.study-notes {
|
||||||
}
|
}
|
||||||
a.scripture.christ {
|
a.scripture.christ {
|
||||||
@apply text-red-900;
|
@apply text-red-900;
|
||||||
|
@apply dark:text-red-400;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
html.hc #notes-list {
|
html.hc #notes-list {
|
||||||
& > ul > li {
|
& > ul > li {
|
||||||
@apply border-neutral-800;
|
@apply border-neutral-800;
|
||||||
|
@apply dark:border-neutral-300;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.tags > li {
|
ul.tags > li {
|
||||||
@apply text-black bg-white border border-neutral-700;
|
@apply text-black bg-white border border-neutral-700;
|
||||||
|
@apply dark:text-white dark:bg-black dark:border-neutral-400;
|
||||||
@apply text-shadow-none;
|
@apply text-shadow-none;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul li time {
|
ul li time {
|
||||||
@apply text-black;
|
@apply text-black;
|
||||||
|
@apply dark:text-white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -166,9 +181,12 @@ html.hc nav#pagination {
|
||||||
ul > li > a {
|
ul > li > a {
|
||||||
@apply bg-white text-black border border-neutral-600;
|
@apply bg-white text-black border border-neutral-600;
|
||||||
@apply hover:text-white hover:bg-black;
|
@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 {
|
ul > li > a.disabled {
|
||||||
@apply bg-white text-neutral-800 border-neutral-100;
|
@apply bg-white text-neutral-800 border-neutral-100;
|
||||||
|
@apply dark:bg-black dark:text-neutral-200 dark:border-neutral-800;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ export const bindConfig = () => {
|
||||||
}
|
}
|
||||||
} else if (evt.target.value === 'hc') {
|
} else if (evt.target.value === 'hc') {
|
||||||
document.documentElement.classList.remove('df');
|
document.documentElement.classList.remove('df');
|
||||||
document.documentElement.classList.remove('dark');
|
//document.documentElement.classList.remove('dark');
|
||||||
document.documentElement.classList.add('hc');
|
document.documentElement.classList.add('hc');
|
||||||
localStorage.af_enabled = 1;
|
localStorage.af_enabled = 1;
|
||||||
localStorage.af_mode = 'hc';
|
localStorage.af_mode = 'hc';
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ class ThemeToggler {
|
||||||
ele.classList.add('df');
|
ele.classList.add('df');
|
||||||
}
|
}
|
||||||
if (localStorage.af_mode === 'hc') {
|
if (localStorage.af_mode === 'hc') {
|
||||||
ele.classList.remove('dark');
|
//ele.classList.remove('dark');
|
||||||
ele.classList.remove('df');
|
ele.classList.remove('df');
|
||||||
ele.classList.add('hc');
|
ele.classList.add('hc');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue