hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 64c2ec3a26883274bac1b00c17c4308d2e6572fe
parent ef178728dbe0fe9c7187073e4fd7178aa46befd2
Author: Byron Torres <b@torresjrjr.com>
Date:   Mon, 17 Jan 2022 10:34:59 +0000

cmd/haredoc: -Fhtml: add dark mode css

Signed-off-by: Byron Torres <b@torresjrjr.com>

Diffstat:
Mcmd/haredoc/html.ha | 35+++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+), 0 deletions(-)

diff --git a/cmd/haredoc/html.ha b/cmd/haredoc/html.ha @@ -865,6 +865,41 @@ details pre { padding: 0; } } + +@media(prefers-color-scheme: dark) { + body { + background: #121415; + color: #e1dfdc; + } + + img[src='/mascot.jpg'] { + filter: invert(.92); + } + + a { + color: #78bef8; + } + + a:visited { + color: #48a7f5; + } + + pre { + background-color: #1c1e20; + } + + summary { + background: #1c1e20; + } + + h3 { + border-bottom: solid #1c1e20; + } + + h4:target + pre { + background: #162329; + } +} </style> <nav> <img