From 3f0cbf20d0d811482fa48dd601c9d0ce90082e63 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 9 Sep 2020 20:24:55 +0000 Subject: [PATCH] contrib/css: limit coloring to links, only We don't want tags without href= attributes to be colored, since the `' tag in the HTML footer is intended as an anchor destination for `' link at the top. --- contrib/css/216dark.css | 2 +- contrib/css/216light.css | 2 +- lib/PublicInbox/UserContent.pm | 2 +- 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 */ -- 2.44.0