* [PATCH] contrib/css: limit <a> coloring to links, only
@ 2020-09-09 20:24 Eric Wong
2020-09-09 20:56 ` [SQUASH] update UserContent.pm for CSS change Eric Wong
0 siblings, 1 reply; 2+ messages in thread
From: Eric Wong @ 2020-09-09 20:24 UTC (permalink / raw)
To: meta
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.
---
contrib/css/216dark.css | 2 +-
contrib/css/216light.css | 2 +-
2 files changed, 2 insertions(+), 2 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 */
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [SQUASH] update UserContent.pm for CSS change
2020-09-09 20:24 [PATCH] contrib/css: limit <a> coloring to links, only Eric Wong
@ 2020-09-09 20:56 ` Eric Wong
0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2020-09-09 20:56 UTC (permalink / raw)
To: meta
Oops, this gets auto-updated via "make" :x
Not a huge fan of the duplication in this file, but not having to
worry about installation locations for non-Perl files is
nice...
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 */
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-09 20:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-09 20:24 [PATCH] contrib/css: limit <a> coloring to links, only Eric Wong
2020-09-09 20:56 ` [SQUASH] update UserContent.pm for CSS change Eric Wong
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).