[openstreetmap/openstreetmap-website] Introduce Dark Mode (WIP) (#3028)

Michal Migurski notifications at github.com
Sat Jan 2 16:10:01 UTC 2021


That was the first thing I tried, @pkrasicki! It doesn’t work because the variable definitions are interpreted at compile time while the media queries need to happen at render time. There’s a different potential approach using CSS variables which may interfere with the [5% of users who can’t see them](https://caniuse.com/css-variables); the [@media query has less support](https://caniuse.com/prefers-color-scheme) but it also defaults to existing behavior.

I’ll apply your suggestion of lightening everything slightly.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3028#issuecomment-753491416
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210102/5de482f4/attachment.htm>


More information about the rails-dev mailing list