olddoc user/dev discussion/patches/bugs/etc
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: <olddoc-public@80x24.org>
Subject: [PATCH] dark216: disable text decoration on <a> tags
Date: Mon, 29 Apr 2019 01:26:09 +0000	[thread overview]
Message-ID: <20190429012609.21242-1-e@80x24.org> (raw)

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


             reply	other threads:[~2019-04-29  1:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-29  1:26 Eric Wong [this message]
2019-05-11  9:37 ` [PATCH 2/1] dark216: disable text decoration on <a> tags for light users, too Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://80x24.org/olddoc/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190429012609.21242-1-e@80x24.org \
    --to=e@80x24.org \
    --cc=olddoc-public@80x24.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).