diff options
author | Eric Wong <e@80x24.org> | 2019-04-21 23:56:54 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-04-22 01:15:36 +0000 |
commit | 7555233ebc31d8c2e30629a61a9e1203a5eb573c (patch) | |
tree | e5051c9f9661b113cfa952c13e69f749393d76b8 /lib/oldweb.rb | |
parent | c9f6755f28fd5c55dbb74427d23c51c4cbceafc1 (diff) | |
download | olddoc-7555233ebc31d8c2e30629a61a9e1203a5eb573c.tar.gz |
"oldweb" remains for compatibility and we still have minimal styling. Some browsers (e.g. Firefox 67.0a1 via "ui.systemUsesDarkTheme") are adding support for the "prefers-color-scheme" @media query. So this allows pages to respect user choice when it comes to dark or light schemes. OLED and CRT displays measure significant power savings when using dark schemes. Dark themes work better with less ambient light, so favoring darkness can lead to overall power savings even with CCFL and LED-lit displays.
Diffstat (limited to 'lib/oldweb.rb')
-rw-r--r-- | lib/oldweb.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oldweb.rb b/lib/oldweb.rb index ccc37f7..5b55019 100644 --- a/lib/oldweb.rb +++ b/lib/oldweb.rb @@ -91,6 +91,7 @@ class Oldweb cgit_url << '#n%d' # lineno @old_vcs_url = cgit_url end + @oldweb_style = nil # used by dark216 end def generate # :nodoc: |