HowardHinnant / date

A date and time library based on the C++11/14/17 <chrono> header
Other
3.08k stars 669 forks source link

docs: support dark color-scheme #769

Open Tachi107 opened 1 year ago

Tachi107 commented 1 year ago

This patch updates the html documentation to add the color-scheme meta element, signalling light and dark color scheme support, and updating the inline CSS styles to override some colors when dark mode is active, to make sure that the document is always readable.

I've also cleaned up a bit the CSS styles, but without functional changes.

I've only updated the latest standard revision (r7), but please let me know if I should revert changes to that file.

Here's how it looks on my system; the dark scheme is provided by the browser:

image

image

PS: to be clear, the page is rendered in dark mode only if the user has set dark mode in the browser/system settings