From 44b67f41661b51447d5b2ef1b25475952132994d Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Thu, 15 Aug 2024 09:44:45 +0200 Subject: [PATCH] add light theme support --- site/robots.txt | 3 +++ site/style.css | 28 ++++++++++++++++++++-------- 2 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 site/robots.txt diff --git a/site/robots.txt b/site/robots.txt new file mode 100644 index 0000000..6ffbc30 --- /dev/null +++ b/site/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Disallow: / + diff --git a/site/style.css b/site/style.css index c2fda8b..3dab417 100644 --- a/site/style.css +++ b/site/style.css @@ -1,23 +1,35 @@ html { - color-scheme: dark; - color: #fff; font-family: sans-serif; - background-color: #111; } main { - width: calc(100% - 82px); - max-width: 800px; - background-color: #222; margin: auto; padding: 2px 32px 32px; + max-width: 800px; + width: calc(100% - 82px); border-left: 4px solid #d3f; + background-color: #f8eeff; } code { font-size: 1rem; - background-color: #1c1c1c; - color: #f90; + background-color: #eeccee; + color: #003; +} + +@media (prefers-color-scheme: dark) { + body { + color-scheme: dark; + color: #fff; + background-color: #111; + } + main { + background-color: #222; + } + code { + background-color: #1c1c1c; + color: #f90; + } } video, img { max-width: 100%; }