* [PATCH] dark216: disable text decoration on <a> tags
@ 2019-04-29 1:26 Eric Wong
2019-05-11 9:37 ` [PATCH 2/1] dark216: disable text decoration on <a> tags for light users, too Eric Wong
0 siblings, 1 reply; 2+ messages in thread
From: Eric Wong @ 2019-04-29 1:26 UTC (permalink / raw)
To: olddoc-public
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 ;>
---
lib/dark216.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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) {
--
EW
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-11 9:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-29 1:26 [PATCH] dark216: disable text decoration on <a> tags Eric Wong
2019-05-11 9:37 ` [PATCH 2/1] dark216: disable text decoration on <a> tags for light users, too Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/olddoc.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).