diff --git a/freepost/static/css/freepost.css b/freepost/static/css/freepost.css index b4e8428..d728ff2 100644 --- a/freepost/static/css/freepost.css +++ b/freepost/static/css/freepost.css @@ -241,6 +241,13 @@ pre { white-space: -o-pre-wrap; } +@media (prefers-color-scheme: dark) { + pre { + background-color: #000; + color: #fff; + } +} + /* Monospace
to write some nice ASCII art in frontpage */ pre.new_year { background-color: transparent; @@ -272,6 +279,13 @@ pre.new_year { white-space: -o-pre-wrap; } +@media (prefers-color-scheme: dark) { + :not(pre) > code { + background-color: #000; + color: #fff; + } +} + /* A