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/_head.rhtml | |
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/_head.rhtml')
-rw-r--r-- | lib/oldweb/_head.rhtml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/oldweb/_head.rhtml b/lib/oldweb/_head.rhtml index 720fd95..15a428e 100644 --- a/lib/oldweb/_head.rhtml +++ b/lib/oldweb/_head.rhtml @@ -8,4 +8,8 @@ type="application/atom+xml" /><% end %><meta http-equiv="Content-Type" -content="text/html; charset=<%= @options.charset %>"> +content="text/html; charset=<%= @options.charset %>"><% +if @oldweb_style +%><style><%= @oldweb_style %></style><% +end +%> |