diff options
author | Paul Duncan <pabs@pablotron.org> | 2024-05-27 13:58:13 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2024-05-27 13:58:13 -0400 |
commit | 48f3534fade8ecf107b5d797d2ddcc30520e798f (patch) | |
tree | 9e51aa4c0242bbea06cb110d98a6a8c02db2db70 /themes/hugo-pt2021/assets/dark.sass | |
parent | 2c6fe60f0fa20e7d57d690e188ba39fe4aa6804a (diff) | |
download | pablotron.org-48f3534fade8ecf107b5d797d2ddcc30520e798f.tar.bz2 pablotron.org-48f3534fade8ecf107b5d797d2ddcc30520e798f.zip |
themes/hugo-pt2021: add dark mode
Diffstat (limited to 'themes/hugo-pt2021/assets/dark.sass')
-rw-r--r-- | themes/hugo-pt2021/assets/dark.sass | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/themes/hugo-pt2021/assets/dark.sass b/themes/hugo-pt2021/assets/dark.sass new file mode 100644 index 0000000..16660dd --- /dev/null +++ b/themes/hugo-pt2021/assets/dark.sass @@ -0,0 +1,42 @@ +// disabled for now; breaks light mode +// +// @media (prefers-color-scheme: dark) +// html +// background: #222 +// color: #eee +// body +// background: #222 +// color: #eee +// html.light, html.light body +// background: #fff +// color: #fff + +html.dark + background: #222 + color: #eee + + body + background: #222 + color: #eee + + h1, h2, h3, h4, h5, h1.title, h2.title, h4.title, h5.title, figcaption, + strong + color: #eee + + h3.subtitle + color: #ccc + + .content + .title, h3, .subtitle, h4 + color: #ddd + + code, blockquote + color: #ddd + background: #333 + + // keep original table color for now + table strong + color: black + + a, a:hover + color: #0ae |