about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-09-09 20:24:55 +0000
committerEric Wong <e@80x24.org>2020-09-09 20:56:37 +0000
commit3f0cbf20d0d811482fa48dd601c9d0ce90082e63 (patch)
tree97f4873979d0f446d1e182b0bcd34e41473f318a
parent2f61828fcb727e51cb0a10eea4fee65e9e866ba6 (diff)
downloadpublic-inbox-3f0cbf20d0d811482fa48dd601c9d0ce90082e63.tar.gz
contrib/css: limit <a> coloring to links, only
We don't want <a> tags without href= attributes to be colored,
since the `<a id=mirror>' tag in the HTML footer is intended
as an anchor destination for `<a href=#mirror>' link at the
top.
-rw-r--r--contrib/css/216dark.css2
-rw-r--r--contrib/css/216light.css2
-rw-r--r--lib/PublicInbox/UserContent.pm2
3 files changed, 3 insertions, 3 deletions
diff --git a/contrib/css/216dark.css b/contrib/css/216dark.css
index 6fc6cfe7..02804cbd 100644
--- a/contrib/css/216dark.css
+++ b/contrib/css/216dark.css
@@ -11,7 +11,7 @@
  * Underlined links add visual noise which make them hard-to-read.
  * Use colors to make them stand out, instead.
  */
-a { color:#69f; text-decoration:none }
+a:link { color:#69f; text-decoration:none }
 a:visited { color:#96f }
 
 /* quoted text in emails gets a different color */
diff --git a/contrib/css/216light.css b/contrib/css/216light.css
index 559a6b74..c66cfdfe 100644
--- a/contrib/css/216light.css
+++ b/contrib/css/216light.css
@@ -10,7 +10,7 @@
  * Underlined links add visual noise which make them hard-to-read.
  * Use colors to make them stand out, instead.
  */
-a { color:#00f; text-decoration:none }
+a:link { color:#00f; text-decoration:none }
 a:visited { color:#808 }
 
 /* quoted text gets a different color */
diff --git a/lib/PublicInbox/UserContent.pm b/lib/PublicInbox/UserContent.pm
index b6b43900..789da2f1 100644
--- a/lib/PublicInbox/UserContent.pm
+++ b/lib/PublicInbox/UserContent.pm
@@ -23,7 +23,7 @@ sub CSS () {
          * Underlined links add visual noise which make them hard-to-read.
          * Use colors to make them stand out, instead.
          */
-        a { color:#69f !important; text-decoration:none !important }
+        a:link { color:#69f !important; text-decoration:none !important }
         a:visited { color:#96f !important }
 
         /* quoted text in emails gets a different color */