]> granicus.if.org Git - cgit/commit
css: Support for dark mode jd/zx2c4-deployment
authorSamuel Lidén Borell <samuel@kodafritt.se>
Sun, 29 Jan 2023 16:55:29 +0000 (17:55 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 8 Feb 2023 16:50:05 +0000 (13:50 -0300)
commit8ed1bef90f631989c0cadc326a163b874a64e02d
treea5fa7dbbba44450a08c5f91f36774dc8c4016059
parentf37dd0dd3a8e48eb0ee59ba6fe53b6ebf92566b1
css: Support for dark mode

Modern browsers have a "dark mode" preference, which enables alternate
styles on web sites that support this.

This patch adds a dark color scheme, that is automatically activated
via a CSS @media query.

Older browsers that do not support color schemes will simply show the
light scheme, but possibly without syntax highlighting.

Note that filters that use color (such as source highlighters) and
logotypes may need to be updated to work with a black background!
See the updated files in the filters/ directory.

Signed-off-by: Samuel Lidén Borell <samuel@kodafritt.se>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
cgit.css
filters/html-converters/md2html
filters/syntax-highlighting.py
filters/syntax-highlighting.sh