[Bug 267452] [request] docs.freebsd.org could auto-switch theme with modern browsers
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 267452] [request] docs.freebsd.org could auto-switch theme with modern browsers"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 267452] docs.freebsd.org: Add support CSS/@media/prefers-color-scheme (as default)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 267452] docs.freebsd.org: Add support CSS/@media/prefers-color-scheme (as default)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 31 Oct 2022 05:37:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267452
Bug ID: 267452
Summary: [request] docs.freebsd.org could auto-switch theme
with modern browsers
Product: Documentation
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: Books & Articles
Assignee: doc@FreeBSD.org
Reporter: jerry.jacobs@xor-gate.org
It is very easy with modern browsers to auto-switch to dark/normal theme if
prefered. With some javascript/CSS query to detect the OS dark mode preference:
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme
https://usefulangle.com/post/318/javascript-check-dark-mode-activated
--
You are receiving this mail because:
You are the assignee for the bug.