From 75ec1e9158beacdc4aad9a30ecc5181be1eb71b8 Mon Sep 17 00:00:00 2001 From: ch0ccyra1n Date: Wed, 27 Mar 2024 16:26:18 -0700 Subject: [PATCH] new, more accessible color scheme --- layouts/partials/footer.html | 5 ++- .../static/css/style.css | 34 +++++++++++++------ 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 6600eba..2d8d6a3 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -33,8 +33,7 @@

a cat with a wide-eyed stare {{ .Site.Author.name }}'s website - +

-
-

Copyright (c) {{ now.Format "2006"}} ch0ccyra1n

+

Copyright (c) {{ now.Format "2006"}} ch0ccyra1n | Colors brought to you by randoma11y.

diff --git a/themes/ch0ccy-in-the-nineties/static/css/style.css b/themes/ch0ccy-in-the-nineties/static/css/style.css index 97e7f9f..05a09d5 100644 --- a/themes/ch0ccy-in-the-nineties/static/css/style.css +++ b/themes/ch0ccy-in-the-nineties/static/css/style.css @@ -1,6 +1,26 @@ +@media (prefers-color-scheme: dark) { + body { + background-color: #030319; + color: #c107f9; + } + + a { + color: #c107f9; + } +} + +@media (prefers-color-scheme: light) { + body { + background-color: #b508b4; + color: #fafdfc; + } + + a { + color: #fafdfc; + } +} + body { - background-color: black; - color: silver; font-size: 125%; line-height: 1.5; margin: 0 auto; @@ -11,14 +31,6 @@ img { height: auto; } -a { - color: red; -} - -h1, h2, h3, h4, h5, h6 { - color: yellow; -} - #content { margin-left: 160px; padding: 0px 10px; @@ -59,4 +71,4 @@ h1, h2, h3, h4, h5, h6 { .badge{ display: inline; text-decoration: none; -} \ No newline at end of file +}