diff options
author | Eric Wong <e@80x24.org> | 2019-04-29 01:20:43 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-04-29 01:20:43 +0000 |
commit | 935fcc9ca5a814298402a71b5827c82ebc3c5734 (patch) | |
tree | 72537546dd6a32812cbbfc5b99b789454a39eb33 | |
parent | 9dcfc5157bd72fe490cf4dc8f531dd3f2044831f (diff) | |
download | olddoc-935fcc9ca5a814298402a71b5827c82ebc3c5734.tar.gz |
dark216: disable text decoration on <a> tags
Color-capable displays do not need text-decoration (the common default being underlines) to distinguish hyperlinks. Furthermore, underlines add visual noise which makes it tough to distinguish certain characters (e.g. 'i' vs 'j', 'L' vs '|'). This also saves a small amount of energy on OLEDs and CRTs since there's fewer pixels lit ;>
-rw-r--r-- | lib/dark216.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dark216.rb b/lib/dark216.rb index a01584c..2a20fe1 100644 --- a/lib/dark216.rb +++ b/lib/dark216.rb @@ -23,7 +23,7 @@ class Dark216 < Oldweb STYLE = <<''.gsub(/^\s*/m, '').delete!("\n") # :nodoc: @media screen { *{background:#000;color:#ccc} - a{color:#69f} + a{color:#69f;text-decoration:none} a:visited{color:#96f} } @media screen AND (prefers-color-scheme:light) { |